[13:29:42]ConnectInit Can't connect to host [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:04]accept exits with 7 [13:47:04]New connection [13:47:04]New thread 3067108708 created [13:47:04]Thread 3067252068 joined [13:47:04]Waiting for new connection... [13:47:04] Sock 7.Parse request [13:47:04]Sock 7.Check first char [13:47:04]Sock 7.First char is OK [13:47:04]request: POST /json_proto HTTP/1.0 [13:47:04]Method: POST [13:47:04]URL: /json_proto [13:47:04]Method is POST - this is cgi request [13:47:04]url: /json_proto [13:47:04]query_string will be loaded in cgi processing [13:47:04]execute_cgi json_proto POST (null) [13:47:04]execute_cgi path=json_proto method=POST [13:47:04]POST find Content-Length [13:47:04]Host: 172.17.42.196:8080 [13:47:04]Content-Length: 745 [13:47:04]Content-Type: application/json [13:47:04] [13:47:04]POST finish read [13:47:04]Found Content-Length = 745 [13:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199787", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:04]execute_script... [13:47:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199787", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:04]POST & json_proto [13:47:04]process_json_proto [13:47:04]json parsed OK: [13:47:04]protocol is kg_v1.0 [13:47:04]action value=close_receipt [13:47:04]process_action close_receipt [13:47:04]cmd_close_receipt [13:47:04]MH_GetDate [13:47:04]Write to MH i2c: F0 00 00 98 1B A2 [13:47:04]Write i2c OK [13:47:04]MH_I2C_Read... [13:47:04]Read from MH i2c: F0 [13:47:04]MH_I2C_Read... [13:47:04]Read from MH i2c: F0 09 00 [13:47:04]MH_I2C_Read... [13:47:04]Read from MH i2c: F0 09 00 98 1B 00 DC 4F 1A 67 FF C4 6B 64 E9 [13:47:04]GetLastDocTimeStamp 1729776538 [13:47:04]current date 1729777628 [13:47:04]FM_GetShiftState [13:47:04]SAM_PROTO_GetShiftState [13:47:04]wFMCommunicate request_size=4 [13:47:04]MH_SAM_APDU [13:47:04]CAPDU: 80 13 01 00 [13:47:04]Write to MH i2c: E2 08 00 99 1B 80 13 01 00 00 00 00 00 31 [13:47:04]Write i2c OK [13:47:04]MH_I2C_Read... [13:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:04]Read from MH i2c: E2 [13:47:04]MH_I2C_Read... [13:47:04]Read from MH i2c: E2 0E 00 [13:47:04]MH_I2C_Read... [13:47:04]Read from MH i2c: E2 0E 00 99 1B 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 64 [13:47:04]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [13:47:04]wFMCommunicate OK [13:47:04]SAM_PROTO_GetShiftState done [13:47:04]FM_GetShiftState done [13:47:04]opened in 1729730575 [13:47:04]opened+sec_in_day 1729816975 [13:47:04]quantity*price = 7000 [13:47:04]sum+1 = 7001 [13:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 77 24.10.2024 13:47 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60002 ФПД: 1122038839195 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134708&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60002&fm=1122038839195&tin=02508201610067®Number=0000000000091622&sum=7000 0 [13:47:05]StoreToDocumentArchive [13:47:05]shift 529 fd 60002 [13:47:05]save to /storage/0529/doc_00060002 [13:47:05]save last doc name /storage/0529/doc_00060002 to /storage/kkm_last_doc_name [13:47:05]save OK [13:47:05]Clear old archive folders... [13:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=312 [13:47:05]tlvbuf is 00D7B0B0 [13:47:05]SAM_PROTO_ClearQueue [13:47:05]wFMCommunicate request_size=4 [13:47:05]MH_SAM_APDU [13:47:05]CAPDU: 80 09 00 00 [13:47:05]Write to MH i2c: E2 08 00 A6 1B 80 09 00 00 00 00 00 00 33 [13:47:06]Write i2c OK [13:47:06]MH_I2C_Read... [13:47:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:06]Read from MH i2c: E2 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: E2 03 00 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: E2 03 00 A6 1B 00 90 00 35 [13:47:06]RAPDU: 90 00 [13:47:06]wFMCommunicate OK [13:47:06]SAM_PROTO_ClearQueue done [13:47:06]KKMCreateOFDPacket [13:47:06]OFDProtocolAddRootSTLVToBuf [13:47:06]FM_MakeSignedData [13:47:06]FM_MakeSignedData [13:47:06]SAM_PROTO_SignData [13:47:06]wFMCommunicate request_size=4 [13:47:06]MH_SAM_APDU [13:47:06]CAPDU: 80 0D 01 02 [13:47:06]Write to MH i2c: E2 08 00 A7 1B 80 0D 01 02 00 00 00 00 3B [13:47:06]Write i2c OK [13:47:06]MH_I2C_Read... [13:47:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:06]Read from MH i2c: E2 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: E2 03 00 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: E2 03 00 A7 1B 00 90 00 36 [13:47:06]RAPDU: 90 00 [13:47:06]wFMCommunicate OK [13:47:06]wFMCommunicate request_size=255 [13:47:06]MH_SAM_APDU [13:47:06]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DC 4F 1A 67 0E 04 04 00 11 [13:47:06]Write to MH i2c: E2 02 01 A8 1B 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DC 4F 1A 67 0E 04 04 00 11 00 00 A5 [13:47:06]Write i2c OK [13:47:06]MH_I2C_Read... [13:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:06]Read from MH i2c: E2 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: E2 03 00 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: E2 03 00 A8 1B 00 90 00 37 [13:47:06]RAPDU: 90 00 [13:47:06]wFMCommunicate OK [13:47:06]wFMCommunicate request_size=71 [13:47:06]MH_SAM_APDU [13:47:06]CAPDU: 80 0D 02 02 42 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 62 EA 00 00 35 04 06 00 01 05 3E B9 F7 9B [13:47:06]Write to MH i2c: E2 4A 00 A9 1B 80 0D 02 02 42 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 62 EA 00 00 35 04 06 00 01 05 3E B9 F7 9B 00 00 33 [13:47:06]Write i2c OK [13:47:06]MH_I2C_Read... [13:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:06]Read from MH i2c: E2 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: E2 03 00 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: E2 03 00 A9 1B 00 90 00 38 [13:47:06]RAPDU: 90 00 [13:47:06]wFMCommunicate OK [13:47:06]wFMCommunicate request_size=4 [13:47:06]MH_SAM_APDU [13:47:06]CAPDU: 80 0D 03 02 [13:47:06]Write to MH i2c: E2 08 00 AA 1B 80 0D 03 02 00 00 00 00 40 [13:47:06]Write i2c OK [13:47:06]MH_I2C_Read... [13:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:06]Read from MH i2c: E2 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: E2 0B 00 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: E2 0B 00 AA 1B 00 7B 18 F4 9F 97 19 F4 8C 90 00 97 [13:47:06]RAPDU: 7B 18 F4 9F 97 19 F4 8C 90 00 [13:47:06]wFMCommunicate OK [13:47:06]SAM_PROTO_SignData done [13:47:06]FM_MakeSignedData done [13:47:06]CreateOFDProtocolMessage [13:47:06]wFMCommunicate request_size=4 [13:47:06]MH_SAM_APDU [13:47:06]CAPDU: 80 11 00 00 [13:47:06]Write to MH i2c: E2 08 00 AB 1B 80 11 00 00 00 00 00 00 40 [13:47:06]Write i2c OK [13:47:06]MH_I2C_Read... [13:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:06]Read from MH i2c: E2 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: E2 17 00 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: E2 17 00 AB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 97 [13:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [13:47:06]wFMCommunicate OK [13:47:06]CreateOFDProtocolMessage done [13:47:06]OFDSenderStorePacket 60002 [13:47:06]StoreOFDPacket docnum=60002 [13:47:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4C 01 00 00 04 08 44 01 8D 3A 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DC 4F 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 62 EA 00 00 35 04 06 00 01 05 3E B9 F7 9B 7B 18 F4 9F 97 19 F4 8C [13:47:06]CheckFolder [13:47:06]dirname=/storage/ofd_packets [13:47:06]CheckFolder done [13:47:06]ProducePacketName [13:47:06]name=ofd_packets/00060002 [13:47:06]NVStorageSaveData ofd_packets/00060002 [13:47:06]File name is /storage/ofd_packets/00060002 [13:47:06]Write 362 bytes [13:47:06]NVStorageSaveData done [13:47:06]OFDSenderStorePacket done [13:47:06]KKMCreateOFDPacket done [13:47:06]NVStorageSaveData kkm_last_timestamp [13:47:06]File name is /storage/kkm_last_timestamp [13:47:06]Write 4 bytes [13:47:06]NVStorageSaveData done [13:47:06]ExternCall_PrintAddStr [13:47:06]wPrintStart [13:47:06]Write to MH i2c: 01 00 00 AC 1B C7 [13:47:06]Write i2c OK [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: 01 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: 01 07 00 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: 01 07 00 AC 1B 00 00 00 00 00 FF 0F DC [13:47:06]RasterBufferAndPrint [13:47:06]line Счет N : (3)199787 [13:47:06]line ИНН: 02508201610067 [13:47:06]line Контрольно-Кассовый Чек [13:47:06]line ПРОДАЖА [13:47:06]line Товар: 4870202521186 [13:47:06]line Чай холодный MAXI черный со вкусом клубн [13:47:06]line 1.000 * 70.00 [13:47:06]line = 70.00 [13:47:06]line НДС 12% НСП 1% [13:47:06]line > о реализуемом товаре [13:47:06]line ИТОГО: 70.00 [13:47:06]line НСП 1% : 0.62 [13:47:06]line НДС 12% : 7.43 [13:47:06]line Наличными: 70.00 [13:47:06]line Безнал.: 0.00 [13:47:06]line Место: АЗС № 87 "Партнер Нефть" [13:47:06]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [13:47:06]line СНО: Общий режим [13:47:06]line Чек 77 24.10.2024 13:47 [13:47:06]line Смена: 529 ФФД: 1.0 [13:47:06]line ЗНМ: 0300000084 [13:47:06]line РНМ: 0000000000091622 [13:47:06]line Версия ККМ: 001 [13:47:06]line ФМ: 0000000000874674 [13:47:06]line ФД: 60002 [13:47:06]line ФПД: 1122038839195 [13:47:06]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134708&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60002&fm=1122038839195&tin=02508201610067®Number=0000000000091622&sum=7000 [13:47:06]line 0 [13:47:06]written 0, free lines is 4095 [13:47:06]OFD Sender: Processing packet 60002 [packets to send 30, broken 29] [13:47:06]ProducePacketName [13:47:06]name=ofd_packets/00060002 [13:47:06]OFD Sender: To server: pG, [13:47:06]CommunicateWithHost lk.salyk.kg:30040 [13:47:06]ConnectInit lk.salyk.kg [13:47:07]Connected sock=10 [13: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 34 36 37 34 4C 01 00 00 04 08 44 01 8D 3A 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 DC 4F 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 62 EA 00 00 35 04 06 00 01 05 3E B9 F7 9B 7B 18 F4 9F 97 19 F4 8C [13:47:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 05 BF 47 00 87 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 34 36 37 34 10 04 04 00 62 EA 00 00 F4 03 04 00 CD F5 19 67 B6 04 01 00 00 91 1F 5B 83 BA 33 35 31 [13:47:07]CommunicateWithHost err = 0 [13:47:07]CheckOFDResponse [13:47:07]1017 (14) - 77093643461234 [13:47:07]1041 (16) - 0000000000874674 [13:47:07]1040 (4) - 60002 [13:47:07]1012 (4) - 24.10.2024 07:22 [13:47:07]1206 (1) - 0 [13:47:07]OFD Sender: Remove packet 60002 [13:47:07]ProducePacketName [13:47:07]name=ofd_packets/00060002 [13:47:07]NVStorageDeleteData [13:47:07]Write to MH i2c: 01 00 00 D5 1B F0 [13:47:07]Write i2c OK [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: 01 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: 01 07 00 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: 01 07 00 D5 1B 00 00 00 00 00 EB 0C EE [13:47:07]RasterBufferAndPrint [13:47:07]line [13:47:07]line [13:47:07]line [13:47:07]line [13:47:07]line [13:47:07]written 0, free lines is 3316 [13:47:07]MH_Cut [13:47:07]Write to MH i2c: D1 01 00 DC 1B 01 C9 [13:47:07]Write i2c OK [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: D1 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: D1 01 00 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: D1 01 00 DC 1B 00 C8 [13:47:07]Write to MH i2c: 01 00 00 DD 1B F8 [13:47:07]Write i2c OK [13:47:07]MH_I2C_Read... [13:47:07]OFD Sender: No OFD packet to send [13:47:08]*** Cut start [13:47:08]*** Partial cut [13:47:08]*** CUTSNS_PIN = 1 [13:47:08]*** CUTSNS_PIN = 0 [13:47:08]*** Brake cut motor [13:47:08]Read from MH i2c: 01 [13:47:08]MH_I2C_Read... [13:47:08]*** Stop cut motor [13:47:08]*** Cut end [13:47:08]Read from MH i2c: 01 07 00 [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: 01 07 00 DD 1B 00 00 00 00 00 FF 0F 0D [13:47:08]process_action close_receipt done [13:47:08]requested_data is exist [13:47:08]produce_requested_data [13:47:08]requested_item fm.sn is exist - process it [13:47:08]wFMCommunicate request_size=4 [13:47:08]MH_SAM_APDU [13:47:08]CAPDU: 80 11 00 00 [13:47:08]Write to MH i2c: E2 08 00 DE 1B 80 11 00 00 00 00 00 00 73 [13:47:08]Write i2c OK [13:47:08]MH_I2C_Read... [13:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:08]Read from MH i2c: E2 [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: E2 17 00 [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: E2 17 00 DE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 CA [13:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [13:47:08]wFMCommunicate OK [13:47:08]requested_item fd.num is exist - process it [13:47:08]SAM_PROTO_GetFieldsCounters [13:47:08]wFMCommunicate request_size=4 [13:47:08]MH_SAM_APDU [13:47:08]CAPDU: 80 13 00 00 [13:47:08]Write to MH i2c: E2 08 00 DF 1B 80 13 00 00 00 00 00 00 76 [13:47:08]Write i2c OK [13:47:08]MH_I2C_Read... [13:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:08]Read from MH i2c: E2 [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: E2 62 00 [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: E2 62 00 DF 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 62 EA 00 00 0E 04 04 00 11 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 DC [13:47: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 62 EA 00 00 0E 04 04 00 11 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 [13:47:08]wFMCommunicate OK [13:47:08]SAM_PROTO_GetFieldsCounters done [13:47:08]requested_item shift.num is exist - process it [13:47:08]requested_item shift.opened is exist - process it [13:47:08]req_shift_opened [13:47:08]FM_GetShiftState [13:47:08]SAM_PROTO_GetShiftState [13:47:08]wFMCommunicate request_size=4 [13:47:08]MH_SAM_APDU [13:47:08]CAPDU: 80 13 01 00 [13:47:08]Write to MH i2c: E2 08 00 E0 1B 80 13 01 00 00 00 00 00 78 [13:47:08]Write i2c OK [13:47:08]MH_I2C_Read... [13:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:09]Read from MH i2c: E2 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 0E 00 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 0E 00 E0 1B 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 AB [13:47:09]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [13:47:09]wFMCommunicate OK [13:47:09]SAM_PROTO_GetShiftState done [13:47:09]FM_GetShiftState done [13:47:09]req_shift_opened done [13:47:09]requested_item shift.open_date is exist - process it [13:47:09]req_shift_open_date [13:47:09]req_shift_open_date done [13:47:09]produce_requested_data done [13:47:09]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60002,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [13:47:09]process_action_free close_receipt [13:47:09]json_value_free [13:47:09]json_value_free done [13:47:09]process_json_proto returns [13:47:09]Send response to host [13:47:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60002,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [13:47:09]free response buf [13:47:09]execute_script done [13:47:09]execute_script returns [13:47:09]free content buf [13:47:09]Sock 7.Close socket [13:47:09]Sock 7.Thread stoped [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:01]accept exits with 9 [13:48:01]New connection [13:48:01]New thread 3067252068 created [13:48:01]Thread 3067108708 joined [13:48:01]Waiting for new connection... [13:48:01] Sock 9.Parse request [13:48:01]Sock 9.Check first char [13:48:01]Sock 9.First char is OK [13:48:01]request: POST /json_proto HTTP/1.0 [13:48:01]Method: POST [13:48:01]URL: /json_proto [13:48:01]Method is POST - this is cgi request [13:48:01]url: /json_proto [13:48:01]query_string will be loaded in cgi processing [13:48:01]execute_cgi json_proto POST (null) [13:48:01]execute_cgi path=json_proto method=POST [13:48:01]POST find Content-Length [13:48:01]Host: 172.17.42.196:8080 [13:48:01]Content-Length: 621 [13:48:01]Content-Type: application/json [13:48:01] [13:48:01]POST finish read [13:48:01]Found Content-Length = 621 [13:48:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199788", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:01]execute_script... [13:48:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199788", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:01]POST & json_proto [13:48:01]process_json_proto [13:48:01]json parsed OK: [13:48:01]protocol is kg_v1.0 [13:48:01]action value=close_receipt [13:48:01]process_action close_receipt [13:48:01]cmd_close_receipt [13:48:01]MH_GetDate [13:48:01]Write to MH i2c: F0 00 00 E1 1B EB [13:48:01]Write i2c OK [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: F0 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: F0 09 00 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: F0 09 00 E1 1B 00 15 50 1A 67 FF C4 6B 64 6C [13:48:01]GetLastDocTimeStamp 1729777628 [13:48:01]current date 1729777685 [13:48:01]FM_GetShiftState [13:48:01]SAM_PROTO_GetShiftState [13:48:01]wFMCommunicate request_size=4 [13:48:01]MH_SAM_APDU [13:48:01]CAPDU: 80 13 01 00 [13:48:01]Write to MH i2c: E2 08 00 E2 1B 80 13 01 00 00 00 00 00 7A [13:48:01]Write i2c OK [13:48:01]MH_I2C_Read... [13:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:01]Read from MH i2c: E2 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: E2 0E 00 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: E2 0E 00 E2 1B 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 AD [13:48:01]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [13:48:01]wFMCommunicate OK [13:48:01]SAM_PROTO_GetShiftState done [13:48:01]FM_GetShiftState done [13:48:01]opened in 1729730575 [13:48:01]opened+sec_in_day 1729816975 [13:48:01]quantity*price = 28800 [13:48:01]sum+1 = 28801 [13:48:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 78 24.10.2024 13:48 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60003 ФПД: 263574728229808 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134805&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60003&fm=263574728229808&tin=02508201610067®Number=0000000000091622&sum=28800 0 [13:48:03]StoreToDocumentArchive [13:48:03]shift 529 fd 60003 [13:48:03]save to /storage/0529/doc_00060003 [13:48:03]save last doc name /storage/0529/doc_00060003 to /storage/kkm_last_doc_name [13:48:03]save OK [13:48:03]Clear old archive folders... [13:48:03]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:48:03]tlvbuf is 00D785C0 [13:48:03]SAM_PROTO_ClearQueue [13:48:03]wFMCommunicate request_size=4 [13:48:03]MH_SAM_APDU [13:48:03]CAPDU: 80 09 00 00 [13:48:03]Write to MH i2c: E2 08 00 EF 1B 80 09 00 00 00 00 00 00 7C [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:03]Read from MH i2c: E2 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 EF 1B 00 90 00 7E [13:48:03]RAPDU: 90 00 [13:48:03]wFMCommunicate OK [13:48:03]SAM_PROTO_ClearQueue done [13:48:03]KKMCreateOFDPacket [13:48:03]OFDProtocolAddRootSTLVToBuf [13:48:03]FM_MakeSignedData [13:48:03]FM_MakeSignedData [13:48:03]SAM_PROTO_SignData [13:48:03]wFMCommunicate request_size=4 [13:48:03]MH_SAM_APDU [13:48:03]CAPDU: 80 0D 01 02 [13:48:03]Write to MH i2c: E2 08 00 F0 1B 80 0D 01 02 00 00 00 00 84 [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:03]Read from MH i2c: E2 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 F0 1B 00 90 00 7F [13:48:03]RAPDU: 90 00 [13:48:03]wFMCommunicate OK [13:48:03]wFMCommunicate request_size=255 [13:48:03]MH_SAM_APDU [13:48:03]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 15 50 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 [13:48:03]Write to MH i2c: E2 02 01 F1 1B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 15 50 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 03 [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:03]Read from MH i2c: E2 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 F1 1B 00 90 00 80 [13:48:03]RAPDU: 90 00 [13:48:03]wFMCommunicate OK [13:48:03]wFMCommunicate request_size=32 [13:48:03]MH_SAM_APDU [13:48:03]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 34 10 04 04 00 63 EA 00 00 35 04 06 00 EF B8 46 0C 43 B0 [13:48:03]Write to MH i2c: E2 23 00 F2 1B 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 34 10 04 04 00 63 EA 00 00 35 04 06 00 EF B8 46 0C 43 B0 00 00 21 [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:03]Read from MH i2c: E2 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 03 00 F2 1B 00 90 00 81 [13:48:03]RAPDU: 90 00 [13:48:03]wFMCommunicate OK [13:48:03]wFMCommunicate request_size=4 [13:48:03]MH_SAM_APDU [13:48:03]CAPDU: 80 0D 03 02 [13:48:03]Write to MH i2c: E2 08 00 F3 1B 80 0D 03 02 00 00 00 00 89 [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:03]Read from MH i2c: E2 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 0B 00 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 0B 00 F3 1B 00 FA 05 CF 1C 98 75 E2 D7 90 00 3A [13:48:03]RAPDU: FA 05 CF 1C 98 75 E2 D7 90 00 [13:48:03]wFMCommunicate OK [13:48:03]SAM_PROTO_SignData done [13:48:03]FM_MakeSignedData done [13:48:03]CreateOFDProtocolMessage [13:48:03]wFMCommunicate request_size=4 [13:48:03]MH_SAM_APDU [13:48:03]CAPDU: 80 11 00 00 [13:48:03]Write to MH i2c: E2 08 00 F4 1B 80 11 00 00 00 00 00 00 89 [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:03]Read from MH i2c: E2 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 17 00 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: E2 17 00 F4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 E0 [13:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [13:48:03]wFMCommunicate OK [13:48:03]CreateOFDProtocolMessage done [13:48:03]OFDSenderStorePacket 60003 [13:48:03]StoreOFDPacket docnum=60003 [13:48:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 2E 82 1D 01 79 89 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 15 50 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 63 EA 00 00 35 04 06 00 EF B8 46 0C 43 B0 FA 05 CF 1C 98 75 E2 D7 [13:48:03]CheckFolder [13:48:03]dirname=/storage/ofd_packets [13:48:03]CheckFolder done [13:48:03]ProducePacketName [13:48:03]name=ofd_packets/00060003 [13:48:03]NVStorageSaveData ofd_packets/00060003 [13:48:03]File name is /storage/ofd_packets/00060003 [13:48:03]Write 323 bytes [13:48:03]NVStorageSaveData done [13:48:03]OFDSenderStorePacket done [13:48:03]KKMCreateOFDPacket done [13:48:03]NVStorageSaveData kkm_last_timestamp [13:48:03]File name is /storage/kkm_last_timestamp [13:48:03]Write 4 bytes [13:48:03]NVStorageSaveData done [13:48:03]ExternCall_PrintAddStr [13:48:03]wPrintStart [13:48:03]Write to MH i2c: 01 00 00 F5 1B 10 [13:48:03]Write i2c OK [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: 01 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: 01 07 00 [13:48:03]MH_I2C_Read... [13:48:03]Read from MH i2c: 01 07 00 F5 1B 00 00 00 00 00 FF 0F 25 [13:48:03]RasterBufferAndPrint [13:48:03]line Счет N : (3)199788 [13:48:03]line ИНН: 02508201610067 [13:48:03]line Контрольно-Кассовый Чек [13:48:03]line ПРОДАЖА [13:48:03]line Товар: 48743570 [13:48:03]line Сигареты Winston XStyle Blue [13:48:03]line 2.000 * 144.00 [13:48:03]line = 288.00 [13:48:03]line НДС 12% НСП 1% [13:48:03]line > о реализуемом товаре [13:48:03]line ИТОГО: 288.00 [13:48:03]line НСП 1% : 2.55 [13:48:03]line НДС 12% : 30.58 [13:48:03]line Наличными: 288.00 [13:48:03]line Безнал.: 0.00 [13:48:03]line Место: АЗС № 87 "Партнер Нефть" [13:48:03]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [13:48:03]line СНО: Общий режим [13:48:03]line Чек 78 24.10.2024 13:48 [13:48:03]line Смена: 529 ФФД: 1.0 [13:48:03]line ЗНМ: 0300000084 [13:48:03]line РНМ: 0000000000091622 [13:48:03]line Версия ККМ: 001 [13:48:03]line ФМ: 0000000000874674 [13:48:03]line ФД: 60003 [13:48:03]line ФПД: 263574728229808 [13:48:03]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134805&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60003&fm=263574728229808&tin=02508201610067®Number=0000000000091622&sum=28800 [13:48:03]OFD Sender: Processing packet 60003 [packets to send 30, broken 29] [13:48:03]ProducePacketName [13:48:03]name=ofd_packets/00060003 [13:48:03]OFD Sender: To server: pG, [13:48:03]CommunicateWithHost lk.salyk.kg:30040 [13:48:03]ConnectInit lk.salyk.kg [13:48:03]line 0 [13:48:04]written 0, free lines is 4095 [13:48:04]Connected sock=10 [13:48:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 2E 82 1D 01 79 89 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 15 50 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 63 EA 00 00 35 04 06 00 EF B8 46 0C 43 B0 FA 05 CF 1C 98 75 E2 D7 [13:48:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 F6 40 47 00 73 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 63 EA 00 00 F4 03 04 00 06 F6 19 67 B6 04 01 00 00 41 CC 29 62 47 D9 0B E2 [13:48:04]CommunicateWithHost err = 0 [13:48:04]CheckOFDResponse [13:48:04]1017 (14) - 77093643461234 [13:48:04]1041 (16) - 0000000000874674 [13:48:04]1040 (4) - 60003 [13:48:04]1012 (4) - 24.10.2024 07:23 [13:48:04]1206 (1) - 0 [13:48:04]OFD Sender: Remove packet 60003 [13:48:04]ProducePacketName [13:48:04]name=ofd_packets/00060003 [13:48:04]NVStorageDeleteData [13:48:04]Write to MH i2c: 01 00 00 1D 1C 39 [13:48:04]Write i2c OK [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: 01 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: 01 07 00 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: 01 07 00 1D 1C 00 00 00 00 00 F1 0C 3D [13:48:04]RasterBufferAndPrint [13:48:04]line [13:48:04]line [13:48:04]line [13:48:04]line [13:48:04]line [13:48:04]written 0, free lines is 3319 [13:48:04]MH_Cut [13:48:04]Write to MH i2c: D1 01 00 24 1C 01 12 [13:48:04]Write i2c OK [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: D1 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: D1 01 00 [13:48:04]MH_I2C_Read... [13:48:04]Read from MH i2c: D1 01 00 24 1C 00 11 [13:48:04]Write to MH i2c: 01 00 00 25 1C 41 [13:48:04]Write i2c OK [13:48:04]MH_I2C_Read... [13:48:04]OFD Sender: No OFD packet to send [13:48:05]*** Cut start [13:48:05]*** Partial cut [13:48:05]*** CUTSNS_PIN = 1 [13:48:05]*** CUTSNS_PIN = 0 [13:48:05]*** Brake cut motor [13:48:05]Read from MH i2c: 01 [13:48:05]MH_I2C_Read... [13:48:05]*** Stop cut motor [13:48:05]*** Cut end [13:48:05]Read from MH i2c: 01 07 00 [13:48:05]MH_I2C_Read... [13:48:05]Read from MH i2c: 01 07 00 25 1C 00 00 00 00 00 FF 0F 56 [13:48:05]process_action close_receipt done [13:48:05]requested_data is exist [13:48:05]produce_requested_data [13:48:05]requested_item fm.sn is exist - process it [13:48:05]wFMCommunicate request_size=4 [13:48:05]MH_SAM_APDU [13:48:05]CAPDU: 80 11 00 00 [13:48:05]Write to MH i2c: E2 08 00 26 1C 80 11 00 00 00 00 00 00 BC [13:48:05]Write i2c OK [13:48:05]MH_I2C_Read... [13:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:05]Read from MH i2c: E2 [13:48:05]MH_I2C_Read... [13:48:05]Read from MH i2c: E2 17 00 [13:48:05]MH_I2C_Read... [13:48:05]Read from MH i2c: E2 17 00 26 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 13 [13:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [13:48:05]wFMCommunicate OK [13:48:05]requested_item fd.num is exist - process it [13:48:05]SAM_PROTO_GetFieldsCounters [13:48:05]wFMCommunicate request_size=4 [13:48:05]MH_SAM_APDU [13:48:05]CAPDU: 80 13 00 00 [13:48:05]Write to MH i2c: E2 08 00 27 1C 80 13 00 00 00 00 00 00 BF [13:48:05]Write i2c OK [13:48:05]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 62 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 62 00 27 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 63 EA 00 00 0E 04 04 00 11 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 29 [13:48: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 63 EA 00 00 0E 04 04 00 11 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 [13:48:06]wFMCommunicate OK [13:48:06]SAM_PROTO_GetFieldsCounters done [13:48:06]requested_item shift.num is exist - process it [13:48:06]requested_item shift.opened is exist - process it [13:48:06]req_shift_opened [13:48:06]FM_GetShiftState [13:48:06]SAM_PROTO_GetShiftState [13:48:06]wFMCommunicate request_size=4 [13:48:06]MH_SAM_APDU [13:48:06]CAPDU: 80 13 01 00 [13:48:06]Write to MH i2c: E2 08 00 28 1C 80 13 01 00 00 00 00 00 C1 [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 0E 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 0E 00 28 1C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 F4 [13:48:06]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [13:48:06]wFMCommunicate OK [13:48:06]SAM_PROTO_GetShiftState done [13:48:06]FM_GetShiftState done [13:48:06]req_shift_opened done [13:48:06]requested_item shift.open_date is exist - process it [13:48:06]req_shift_open_date [13:48:06]req_shift_open_date done [13:48:06]produce_requested_data done [13:48:06]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60003,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [13:48:06]process_action_free close_receipt [13:48:06]json_value_free [13:48:06]json_value_free done [13:48:06]process_json_proto returns [13:48:06]Send response to host [13:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60003,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [13:48:06]free response buf [13:48:06]execute_script done [13:48:06]execute_script returns [13:48:06]free content buf [13:48:06]Sock 9.Close socket [13:48:06]Sock 9.Thread stoped [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:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:46]accept exits with 7 [14:02:46]New connection [14:02:46]New thread 3067108708 created [14:02:46]Thread 3067252068 joined [14:02:46]Waiting for new connection... [14:02:46] Sock 7.Parse request [14:02:46]Sock 7.Check first char [14:02:46]Sock 7.First char is OK [14:02:46]request: POST /json_proto HTTP/1.0 [14:02:46]Method: POST [14:02:46]URL: /json_proto [14:02:46]Method is POST - this is cgi request [14:02:46]url: /json_proto [14:02:46]query_string will be loaded in cgi processing [14:02:46]execute_cgi json_proto POST (null) [14:02:46]execute_cgi path=json_proto method=POST [14:02:46]POST find Content-Length [14:02:46]Host: 172.17.42.196:8080 [14:02:46]Content-Length: 751 [14:02:46]Content-Type: application/json [14:02:46] [14:02:46]POST finish read [14:02:46]Found Content-Length = 751 [14:02:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199789", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 2.000, "sum" : 320.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" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:46]execute_script... [14: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 : (3)199789", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 2.000, "sum" : 320.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" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:46]POST & json_proto [14:02:46]process_json_proto [14:02:46]json parsed OK: [14:02:46]protocol is kg_v1.0 [14:02:46]action value=close_receipt [14:02:46]process_action close_receipt [14:02:46]cmd_close_receipt [14:02:46]MH_GetDate [14:02:46]Write to MH i2c: F0 00 00 29 1C 34 [14:02:46]Write i2c OK [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: F0 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: F0 09 00 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: F0 09 00 29 1C 00 8A 53 1A 67 FF C4 6B 64 2D [14:02:46]GetLastDocTimeStamp 1729777685 [14:02:46]current date 1729778570 [14:02:46]FM_GetShiftState [14:02:46]SAM_PROTO_GetShiftState [14:02:46]wFMCommunicate request_size=4 [14:02:46]MH_SAM_APDU [14:02:46]CAPDU: 80 13 01 00 [14:02:46]Write to MH i2c: E2 08 00 2A 1C 80 13 01 00 00 00 00 00 C3 [14:02:46]Write i2c OK [14:02:46]MH_I2C_Read... [14:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:46]Read from MH i2c: E2 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: E2 0E 00 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: E2 0E 00 2A 1C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 F6 [14:02:46]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:02:46]wFMCommunicate OK [14:02:46]SAM_PROTO_GetShiftState done [14:02:46]FM_GetShiftState done [14:02:46]opened in 1729730575 [14:02:46]opened+sec_in_day 1729816975 [14:02:46]quantity*price = 32000 [14:02:46]sum+1 = 32001 [14:02:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 0.00 Безнал.: 320.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 79 24.10.2024 14:02 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60004 ФПД: 111105653895662 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140250&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60004&fm=111105653895662&tin=02508201610067®Number=0000000000091622&sum=32000 0 [14:02:47]StoreToDocumentArchive [14:02:47]shift 529 fd 60004 [14:02:47]save to /storage/0529/doc_00060004 [14:02:47]save last doc name /storage/0529/doc_00060004 to /storage/kkm_last_doc_name [14:02:47]save OK [14:02:47]Clear old archive folders... [14:02:47]ProcessDocumentItem done err = 0, tmpTLVsize=276 [14:02:47]tlvbuf is 00DA8070 [14:02:47]SAM_PROTO_ClearQueue [14:02:47]wFMCommunicate request_size=4 [14:02:47]MH_SAM_APDU [14:02:47]CAPDU: 80 09 00 00 [14:02:47]Write to MH i2c: E2 08 00 37 1C 80 09 00 00 00 00 00 00 C5 [14:02:47]Write i2c OK [14:02:47]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 37 1C 00 90 00 C7 [14:02:48]RAPDU: 90 00 [14:02:48]wFMCommunicate OK [14:02:48]SAM_PROTO_ClearQueue done [14:02:48]KKMCreateOFDPacket [14:02:48]OFDProtocolAddRootSTLVToBuf [14:02:48]FM_MakeSignedData [14:02:48]FM_MakeSignedData [14:02:48]SAM_PROTO_SignData [14:02:48]wFMCommunicate request_size=4 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 0D 01 02 [14:02:48]Write to MH i2c: E2 08 00 38 1C 80 0D 01 02 00 00 00 00 CD [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 38 1C 00 90 00 C8 [14:02:48]RAPDU: 90 00 [14:02:48]wFMCommunicate OK [14:02:48]wFMCommunicate request_size=255 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 8A 53 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 [14:02:48]Write to MH i2c: E2 02 01 39 1C 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 8A 53 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 00 00 C3 [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 39 1C 00 90 00 C9 [14:02:48]RAPDU: 90 00 [14:02:48]wFMCommunicate OK [14:02:48]wFMCommunicate request_size=35 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 64 EA 00 00 35 04 06 00 65 0C CD 08 71 EE [14:02:48]Write to MH i2c: E2 26 00 3A 1C 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 64 EA 00 00 35 04 06 00 65 0C CD 08 71 EE 00 00 BA [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 3A 1C 00 90 00 CA [14:02:48]RAPDU: 90 00 [14:02:48]wFMCommunicate OK [14:02:48]wFMCommunicate request_size=4 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 0D 03 02 [14:02:48]Write to MH i2c: E2 08 00 3B 1C 80 0D 03 02 00 00 00 00 D2 [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 0B 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 0B 00 3B 1C 00 3E 5C F3 52 5D 6A 74 CB 90 00 B8 [14:02:48]RAPDU: 3E 5C F3 52 5D 6A 74 CB 90 00 [14:02:48]wFMCommunicate OK [14:02:48]SAM_PROTO_SignData done [14:02:48]FM_MakeSignedData done [14:02:48]CreateOFDProtocolMessage [14:02:48]wFMCommunicate request_size=4 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 11 00 00 [14:02:48]Write to MH i2c: E2 08 00 3C 1C 80 11 00 00 00 00 00 00 D2 [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 17 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 17 00 3C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 29 [14:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:02:48]wFMCommunicate OK [14:02:48]CreateOFDProtocolMessage done [14:02:48]OFDSenderStorePacket 60004 [14:02:48]StoreOFDPacket docnum=60004 [14:02:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 28 01 00 00 67 50 20 01 8A 68 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 8A 53 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 64 EA 00 00 35 04 06 00 65 0C CD 08 71 EE 3E 5C F3 52 5D 6A 74 CB [14:02:48]CheckFolder [14:02:48]dirname=/storage/ofd_packets [14:02:48]CheckFolder done [14:02:48]ProducePacketName [14:02:48]name=ofd_packets/00060004 [14:02:48]NVStorageSaveData ofd_packets/00060004 [14:02:48]File name is /storage/ofd_packets/00060004 [14:02:48]Write 326 bytes [14:02:48]NVStorageSaveData done [14:02:48]OFDSenderStorePacket done [14:02:48]KKMCreateOFDPacket done [14:02:48]NVStorageSaveData kkm_last_timestamp [14:02:48]File name is /storage/kkm_last_timestamp [14:02:48]Write 4 bytes [14:02:48]NVStorageSaveData done [14:02:48]ExternCall_PrintAddStr [14:02:48]wPrintStart [14:02:48]Write to MH i2c: 01 00 00 3D 1C 59 [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: 01 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: 01 07 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: 01 07 00 3D 1C 00 00 00 00 00 FF 0F 6E [14:02:48]RasterBufferAndPrint [14:02:48]line Счет N : (3)199789 [14:02:48]line ИНН: 02508201610067 [14:02:48]line Контрольно-Кассовый Чек [14:02:48]line ПРОДАЖА [14:02:48]line Товар: 48742245 [14:02:48]line Сигареты Parliament Silver Blue [14:02:48]line 2.000 * 160.00 [14:02:48]line = 320.00 [14:02:48]line НДС 12% НСП 1% [14:02:48]line > о реализуемом товаре [14:02:48]line ИТОГО: 320.00 [14:02:48]line НСП 1% : 2.83 [14:02:48]line НДС 12% : 33.98 [14:02:48]line Наличными: 0.00 [14:02:48]line Безнал.: 320.00 [14:02:48]line Место: АЗС № 87 "Партнер Нефть" [14:02:48]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [14:02:48]line СНО: Общий режим [14:02:48]line Чек 79 24.10.2024 14:02 [14:02:48]line Смена: 529 ФФД: 1.0 [14:02:48]line ЗНМ: 0300000084 [14:02:48]line РНМ: 0000000000091622 [14:02:48]line Версия ККМ: 001 [14:02:48]line Платежная система: Mbank [14:02:48]line ФМ: 0000000000874674 [14:02:48]line ФД: 60004 [14:02:48]line ФПД: 111105653895662 [14:02:48]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140250&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60004&fm=111105653895662&tin=02508201610067®Number=0000000000091622&sum=32000 [14:02:48]OFD Sender: Processing packet 60004 [packets to send 30, broken 29] [14:02:48]ProducePacketName [14:02:48]name=ofd_packets/00060004 [14:02:48]OFD Sender: To server: pG, [14:02:48]CommunicateWithHost lk.salyk.kg:30040 [14:02:48]ConnectInit lk.salyk.kg [14:02:48]line 0 [14:02:48]written 0, free lines is 4095 [14:02:48]Connected sock=10 [14: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 34 36 37 34 28 01 00 00 67 50 20 01 8A 68 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 8A 53 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 64 EA 00 00 35 04 06 00 65 0C CD 08 71 EE 3E 5C F3 52 5D 6A 74 CB [14:02:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 B3 28 47 00 07 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 34 36 37 34 10 04 04 00 64 EA 00 00 F4 03 04 00 7B F9 19 67 B6 04 01 00 00 E6 15 7B DD 80 2E 48 06 [14:02:49]CommunicateWithHost err = 0 [14:02:49]CheckOFDResponse [14:02:49]1017 (14) - 77093643461234 [14:02:49]1041 (16) - 0000000000874674 [14:02:49]1040 (4) - 60004 [14:02:49]1012 (4) - 24.10.2024 07:38 [14:02:49]1206 (1) - 0 [14:02:49]OFD Sender: Remove packet 60004 [14:02:49]ProducePacketName [14:02:49]name=ofd_packets/00060004 [14:02:49]NVStorageDeleteData [14:02:49]Write to MH i2c: 01 00 00 67 1C 83 [14:02:49]Write i2c OK [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: 01 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: 01 07 00 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: 01 07 00 67 1C 00 00 00 00 00 DC 0C 72 [14:02:49]RasterBufferAndPrint [14:02:49]line [14:02:49]line [14:02:49]line [14:02:49]line [14:02:49]line [14:02:49]written 0, free lines is 3298 [14:02:49]MH_Cut [14:02:49]Write to MH i2c: D1 01 00 6E 1C 01 5C [14:02:49]Write i2c OK [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: D1 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: D1 01 00 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: D1 01 00 6E 1C 00 5B [14:02:49]Write to MH i2c: 01 00 00 6F 1C 8B [14:02:49]Write i2c OK [14:02:49]MH_I2C_Read... [14:02:49]OFD Sender: No OFD packet to send [14:02:50]*** Cut start [14:02:50]*** Partial cut [14:02:50]*** CUTSNS_PIN = 1 [14:02:50]*** CUTSNS_PIN = 0 [14:02:50]*** Brake cut motor [14:02:50]Read from MH i2c: 01 [14:02:50]MH_I2C_Read... [14:02:50]*** Stop cut motor [14:02:50]*** Cut end [14:02:50]Read from MH i2c: 01 07 00 [14:02:50]MH_I2C_Read... [14:02:50]Read from MH i2c: 01 07 00 6F 1C 00 00 00 00 00 FF 0F A0 [14:02:50]process_action close_receipt done [14:02:50]requested_data is exist [14:02:50]produce_requested_data [14:02:50]requested_item fm.sn is exist - process it [14:02:50]wFMCommunicate request_size=4 [14:02:50]MH_SAM_APDU [14:02:50]CAPDU: 80 11 00 00 [14:02:50]Write to MH i2c: E2 08 00 70 1C 80 11 00 00 00 00 00 00 06 [14:02:50]Write i2c OK [14:02:50]MH_I2C_Read... [14:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:50]Read from MH i2c: E2 [14:02:50]MH_I2C_Read... [14:02:50]Read from MH i2c: E2 17 00 [14:02:50]MH_I2C_Read... [14:02:50]Read from MH i2c: E2 17 00 70 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 5D [14:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:02:50]wFMCommunicate OK [14:02:50]requested_item fd.num is exist - process it [14:02:50]SAM_PROTO_GetFieldsCounters [14:02:50]wFMCommunicate request_size=4 [14:02:50]MH_SAM_APDU [14:02:50]CAPDU: 80 13 00 00 [14:02:50]Write to MH i2c: E2 08 00 71 1C 80 13 00 00 00 00 00 00 09 [14:02:50]Write i2c OK [14:02:50]MH_I2C_Read... [14:02:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:50]Read from MH i2c: E2 [14:02:50]MH_I2C_Read... [14:02:50]Read from MH i2c: E2 62 00 [14:02:50]MH_I2C_Read... [14:02:50]Read from MH i2c: E2 62 00 71 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 64 EA 00 00 0E 04 04 00 11 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 77 [14:02: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 64 EA 00 00 0E 04 04 00 11 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 [14:02:50]wFMCommunicate OK [14:02:50]SAM_PROTO_GetFieldsCounters done [14:02:50]requested_item shift.num is exist - process it [14:02:50]requested_item shift.opened is exist - process it [14:02:50]req_shift_opened [14:02:50]FM_GetShiftState [14:02:50]SAM_PROTO_GetShiftState [14:02:50]wFMCommunicate request_size=4 [14:02:50]MH_SAM_APDU [14:02:50]CAPDU: 80 13 01 00 [14:02:50]Write to MH i2c: E2 08 00 72 1C 80 13 01 00 00 00 00 00 0B [14:02:51]Write i2c OK [14:02:51]MH_I2C_Read... [14:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:51]Read from MH i2c: E2 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 0E 00 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 0E 00 72 1C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 3E [14:02:51]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:02:51]wFMCommunicate OK [14:02:51]SAM_PROTO_GetShiftState done [14:02:51]FM_GetShiftState done [14:02:51]req_shift_opened done [14:02:51]requested_item shift.open_date is exist - process it [14:02:51]req_shift_open_date [14:02:51]req_shift_open_date done [14:02:51]produce_requested_data done [14:02:51]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60004,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [14:02:51]process_action_free close_receipt [14:02:51]json_value_free [14:02:51]json_value_free done [14:02:51]process_json_proto returns [14:02:51]Send response to host [14:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60004,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [14:02:51]free response buf [14:02:51]execute_script done [14:02:51]execute_script returns [14:02:51]free content buf [14:02:51]Sock 7.Close socket [14:02:51]Sock 7.Thread stoped [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:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:15]accept exits with 9 [14:12:15]New connection [14:12:15]New thread 3067252068 created [14:12:15]Thread 3067108708 joined [14:12:15]Waiting for new connection... [14:12:15] Sock 9.Parse request [14:12:15]Sock 9.Check first char [14:12:15]Sock 9.First char is OK [14:12:15]request: POST /json_proto HTTP/1.0 [14:12:15]Method: POST [14:12:15]URL: /json_proto [14:12:15]Method is POST - this is cgi request [14:12:15]url: /json_proto [14:12:15]query_string will be loaded in cgi processing [14:12:15]execute_cgi json_proto POST (null) [14:12:15]execute_cgi path=json_proto method=POST [14:12:15]POST find Content-Length [14:12:15]Host: 172.17.42.196:8080 [14:12:15]Content-Length: 718 [14:12:15]Content-Type: application/json [14:12:15] [14:12:15]POST finish read [14:12:15]Found Content-Length = 718 [14:12:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199790", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:15]execute_script... [14:12:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199790", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:15]POST & json_proto [14:12:15]process_json_proto [14:12:15]json parsed OK: [14:12:15]protocol is kg_v1.0 [14:12:15]action value=close_receipt [14:12:15]process_action close_receipt [14:12:15]cmd_close_receipt [14:12:15]MH_GetDate [14:12:15]Write to MH i2c: F0 00 00 73 1C 7E [14:12:15]Write i2c OK [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: F0 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: F0 09 00 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: F0 09 00 73 1C 00 C3 55 1A 67 FF C4 6B 64 B2 [14:12:15]GetLastDocTimeStamp 1729778570 [14:12:15]current date 1729779139 [14:12:15]FM_GetShiftState [14:12:15]SAM_PROTO_GetShiftState [14:12:15]wFMCommunicate request_size=4 [14:12:15]MH_SAM_APDU [14:12:15]CAPDU: 80 13 01 00 [14:12:15]Write to MH i2c: E2 08 00 74 1C 80 13 01 00 00 00 00 00 0D [14:12:15]Write i2c OK [14:12:15]MH_I2C_Read... [14:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:15]Read from MH i2c: E2 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: E2 0E 00 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: E2 0E 00 74 1C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 40 [14:12:15]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:12:15]wFMCommunicate OK [14:12:15]SAM_PROTO_GetShiftState done [14:12:15]FM_GetShiftState done [14:12:15]opened in 1729730575 [14:12:15]opened+sec_in_day 1729816975 [14:12:15]quantity*price = 10400 [14:12:15]sum+1 = 10401 [14:12:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 80 24.10.2024 14:12 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60005 ФПД: 91324506548772 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141219&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60005&fm=91324506548772&tin=02508201610067®Number=0000000000091622&sum=10400 0 [14:12:17]StoreToDocumentArchive [14:12:17]shift 529 fd 60005 [14:12:17]save to /storage/0529/doc_00060005 [14:12:17]save last doc name /storage/0529/doc_00060005 to /storage/kkm_last_doc_name [14:12:17]save OK [14:12:17]Clear old archive folders... [14:12:17]ProcessDocumentItem done err = 0, tmpTLVsize=306 [14:12:17]tlvbuf is B6EF13A0 [14:12:17]SAM_PROTO_ClearQueue [14:12:17]wFMCommunicate request_size=4 [14:12:17]MH_SAM_APDU [14:12:17]CAPDU: 80 09 00 00 [14:12:17]Write to MH i2c: E2 08 00 81 1C 80 09 00 00 00 00 00 00 0F [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:17]Read from MH i2c: E2 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 03 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 03 00 81 1C 00 90 00 11 [14:12:17]RAPDU: 90 00 [14:12:17]wFMCommunicate OK [14:12:17]SAM_PROTO_ClearQueue done [14:12:17]KKMCreateOFDPacket [14:12:17]OFDProtocolAddRootSTLVToBuf [14:12:17]FM_MakeSignedData [14:12:17]FM_MakeSignedData [14:12:17]SAM_PROTO_SignData [14:12:17]wFMCommunicate request_size=4 [14:12:17]MH_SAM_APDU [14:12:17]CAPDU: 80 0D 01 02 [14:12:17]Write to MH i2c: E2 08 00 82 1C 80 0D 01 02 00 00 00 00 17 [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:17]Read from MH i2c: E2 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 03 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 03 00 82 1C 00 90 00 12 [14:12:17]RAPDU: 90 00 [14:12:17]wFMCommunicate OK [14:12:17]wFMCommunicate request_size=255 [14:12:17]MH_SAM_APDU [14:12:17]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C3 55 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 [14:12:17]Write to MH i2c: E2 02 01 83 1C 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C3 55 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 00 02 [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:17]Read from MH i2c: E2 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 03 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 03 00 83 1C 00 90 00 13 [14:12:17]RAPDU: 90 00 [14:12:17]wFMCommunicate OK [14:12:17]wFMCommunicate request_size=65 [14:12:17]MH_SAM_APDU [14:12:17]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 65 EA 00 00 35 04 06 00 53 0F 24 C5 AA 24 [14:12:17]Write to MH i2c: E2 44 00 84 1C 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 65 EA 00 00 35 04 06 00 53 0F 24 C5 AA 24 00 00 D0 [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:17]Read from MH i2c: E2 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 03 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 03 00 84 1C 00 90 00 14 [14:12:17]RAPDU: 90 00 [14:12:17]wFMCommunicate OK [14:12:17]wFMCommunicate request_size=4 [14:12:17]MH_SAM_APDU [14:12:17]CAPDU: 80 0D 03 02 [14:12:17]Write to MH i2c: E2 08 00 85 1C 80 0D 03 02 00 00 00 00 1C [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:17]Read from MH i2c: E2 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 0B 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 0B 00 85 1C 00 8E C4 10 47 F4 FA 7E 48 90 00 7A [14:12:17]RAPDU: 8E C4 10 47 F4 FA 7E 48 90 00 [14:12:17]wFMCommunicate OK [14:12:17]SAM_PROTO_SignData done [14:12:17]FM_MakeSignedData done [14:12:17]CreateOFDProtocolMessage [14:12:17]wFMCommunicate request_size=4 [14:12:17]MH_SAM_APDU [14:12:17]CAPDU: 80 11 00 00 [14:12:17]Write to MH i2c: E2 08 00 86 1C 80 11 00 00 00 00 00 00 1C [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:17]Read from MH i2c: E2 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 17 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 17 00 86 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 73 [14:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:12:17]wFMCommunicate OK [14:12:17]CreateOFDProtocolMessage done [14:12:17]OFDSenderStorePacket 60005 [14:12:17]StoreOFDPacket docnum=60005 [14:12:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 46 01 00 00 62 89 3E 01 F1 1D 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C3 55 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 65 EA 00 00 35 04 06 00 53 0F 24 C5 AA 24 8E C4 10 47 F4 FA 7E 48 [14:12:17]CheckFolder [14:12:17]dirname=/storage/ofd_packets [14:12:17]CheckFolder done [14:12:17]ProducePacketName [14:12:17]name=ofd_packets/00060005 [14:12:17]NVStorageSaveData ofd_packets/00060005 [14:12:17]File name is /storage/ofd_packets/00060005 [14:12:17]Write 356 bytes [14:12:17]NVStorageSaveData done [14:12:17]OFDSenderStorePacket done [14:12:17]KKMCreateOFDPacket done [14:12:17]NVStorageSaveData kkm_last_timestamp [14:12:17]File name is /storage/kkm_last_timestamp [14:12:17]Write 4 bytes [14:12:17]NVStorageSaveData done [14:12:17]ExternCall_PrintAddStr [14:12:17]wPrintStart [14:12:17]Write to MH i2c: 01 00 00 87 1C A3 [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: 01 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: 01 07 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: 01 07 00 87 1C 00 00 00 00 00 FF 0F B8 [14:12:17]RasterBufferAndPrint [14:12:17]line Счет N : (3)199790 [14:12:17]line ИНН: 02508201610067 [14:12:17]line Контрольно-Кассовый Чек [14:12:17]line ПРОДАЖА [14:12:17]line Товар: 4870202522671 [14:12:17]line Garden напиток со вкусом граната 1,20 ПЭ [14:12:17]line 1.000 * 104.00 [14:12:17]line = 104.00 [14:12:17]line НДС 12% НСП 1% [14:12:17]line > о реализуемом товаре [14:12:17]line ИТОГО: 104.00 [14:12:17]line НСП 1% : 0.92 [14:12:17]line НДС 12% : 11.04 [14:12:17]line Наличными: 104.00 [14:12:17]line Безнал.: 0.00 [14:12:17]line Место: АЗС № 87 "Партнер Нефть" [14:12:17]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [14:12:17]line СНО: Общий режим [14:12:17]line Чек 80 24.10.2024 14:12 [14:12:17]line Смена: 529 ФФД: 1.0 [14:12:17]line ЗНМ: 0300000084 [14:12:17]line РНМ: 0000000000091622 [14:12:17]line Версия ККМ: 001 [14:12:17]line ФМ: 0000000000874674 [14:12:17]line ФД: 60005 [14:12:17]line ФПД: 91324506548772 [14:12:17]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141219&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60005&fm=91324506548772&tin=02508201610067®Number=0000000000091622&sum=10400 [14:12:17]line 0 [14:12:17]OFD Sender: Processing packet 60005 [packets to send 30, broken 29] [14:12:17]ProducePacketName [14:12:17]name=ofd_packets/00060005 [14:12:17]OFD Sender: To server: pG, [14:12:17]CommunicateWithHost lk.salyk.kg:30040 [14:12:18]ConnectInit lk.salyk.kg [14:12:18]written 0, free lines is 4095 [14:12:18]Connected sock=10 [14:12:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 46 01 00 00 62 89 3E 01 F1 1D 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C3 55 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 65 EA 00 00 35 04 06 00 53 0F 24 C5 AA 24 8E C4 10 47 F4 FA 7E 48 [14:12:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 BF D4 47 00 34 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 34 36 37 34 10 04 04 00 65 EA 00 00 F4 03 04 00 B4 FB 19 67 B6 04 01 00 00 20 31 C9 09 F3 B0 AA 5C [14:12:18]CommunicateWithHost err = 0 [14:12:18]CheckOFDResponse [14:12:18]1017 (14) - 77093643461234 [14:12:18]1041 (16) - 0000000000874674 [14:12:18]1040 (4) - 60005 [14:12:18]1012 (4) - 24.10.2024 07:48 [14:12:18]1206 (1) - 0 [14:12:18]OFD Sender: Remove packet 60005 [14:12:18]ProducePacketName [14:12:18]name=ofd_packets/00060005 [14:12:18]NVStorageDeleteData [14:12:18]Write to MH i2c: 01 00 00 B0 1C CC [14:12:18]Write i2c OK [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: 01 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: 01 07 00 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: 01 07 00 B0 1C 00 00 00 00 00 E4 0C C3 [14:12:18]RasterBufferAndPrint [14:12:18]line [14:12:18]line [14:12:18]line [14:12:18]line [14:12:18]line [14:12:18]written 0, free lines is 3307 [14:12:18]MH_Cut [14:12:18]Write to MH i2c: D1 01 00 B7 1C 01 A5 [14:12:18]Write i2c OK [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: D1 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: D1 01 00 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: D1 01 00 B7 1C 00 A4 [14:12:18]Write to MH i2c: 01 00 00 B8 1C D4 [14:12:18]Write i2c OK [14:12:18]MH_I2C_Read... [14:12:18]OFD Sender: No OFD packet to send [14:12:19]*** Cut start [14:12:19]*** Partial cut [14:12:19]*** CUTSNS_PIN = 1 [14:12:19]*** CUTSNS_PIN = 0 [14:12:19]*** Brake cut motor [14:12:19]Read from MH i2c: 01 [14:12:19]MH_I2C_Read... [14:12:19]*** Stop cut motor [14:12:19]*** Cut end [14:12:19]Read from MH i2c: 01 07 00 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: 01 07 00 B8 1C 00 00 00 00 00 FF 0F E9 [14:12:19]process_action close_receipt done [14:12:19]requested_data is exist [14:12:19]produce_requested_data [14:12:19]requested_item fm.sn is exist - process it [14:12:19]wFMCommunicate request_size=4 [14:12:19]MH_SAM_APDU [14:12:19]CAPDU: 80 11 00 00 [14:12:19]Write to MH i2c: E2 08 00 B9 1C 80 11 00 00 00 00 00 00 4F [14:12:19]Write i2c OK [14:12:19]MH_I2C_Read... [14:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:19]Read from MH i2c: E2 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: E2 17 00 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: E2 17 00 B9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 A6 [14:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:12:19]wFMCommunicate OK [14:12:19]requested_item fd.num is exist - process it [14:12:19]SAM_PROTO_GetFieldsCounters [14:12:19]wFMCommunicate request_size=4 [14:12:19]MH_SAM_APDU [14:12:19]CAPDU: 80 13 00 00 [14:12:19]Write to MH i2c: E2 08 00 BA 1C 80 13 00 00 00 00 00 00 52 [14:12:19]Write i2c OK [14:12:19]MH_I2C_Read... [14:12:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:20]Read from MH i2c: E2 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: E2 62 00 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: E2 62 00 BA 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 65 EA 00 00 0E 04 04 00 11 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 C4 [14:12: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 65 EA 00 00 0E 04 04 00 11 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 [14:12:20]wFMCommunicate OK [14:12:20]SAM_PROTO_GetFieldsCounters done [14:12:20]requested_item shift.num is exist - process it [14:12:20]requested_item shift.opened is exist - process it [14:12:20]req_shift_opened [14:12:20]FM_GetShiftState [14:12:20]SAM_PROTO_GetShiftState [14:12:20]wFMCommunicate request_size=4 [14:12:20]MH_SAM_APDU [14:12:20]CAPDU: 80 13 01 00 [14:12:20]Write to MH i2c: E2 08 00 BB 1C 80 13 01 00 00 00 00 00 54 [14:12:20]Write i2c OK [14:12:20]MH_I2C_Read... [14:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:20]Read from MH i2c: E2 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: E2 0E 00 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: E2 0E 00 BB 1C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 87 [14:12:20]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:12:20]wFMCommunicate OK [14:12:20]SAM_PROTO_GetShiftState done [14:12:20]FM_GetShiftState done [14:12:20]req_shift_opened done [14:12:20]requested_item shift.open_date is exist - process it [14:12:20]req_shift_open_date [14:12:20]req_shift_open_date done [14:12:20]produce_requested_data done [14:12:20]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60005,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [14:12:20]process_action_free close_receipt [14:12:20]json_value_free [14:12:20]json_value_free done [14:12:20]process_json_proto returns [14:12:20]Send response to host [14:12:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60005,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [14:12:20]free response buf [14:12:20]execute_script done [14:12:20]execute_script returns [14:12:20]free content buf [14:12:20]Sock 9.Close socket [14:12:20]Sock 9.Thread stoped [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:12:58]accept exits with 7 [14:12:58]New connection [14:12:58]New thread 3067108708 created [14:12:58]Thread 3067252068 joined [14:12:58]Waiting for new connection... [14:12:58] Sock 7.Parse request [14:12:58]Sock 7.Check first char [14:12:58]Sock 7.First char is OK [14:12:58]request: POST /json_proto HTTP/1.0 [14:12:58]Method: POST [14:12:58]URL: /json_proto [14:12:58]Method is POST - this is cgi request [14:12:58]url: /json_proto [14:12:58]query_string will be loaded in cgi processing [14:12:58]execute_cgi json_proto POST (null) [14:12:58]execute_cgi path=json_proto method=POST [14:12:58]POST find Content-Length [14:12:58]Host: 172.17.42.196:8080 [14:12:58]Content-Length: 646 [14:12:58]Content-Type: application/json [14:12:58] [14:12:58]POST finish read [14:12:58]Found Content-Length = 646 [14:12:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199791", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 159.00, "quantity" : 2.000, "sum" : 318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:58]execute_script... [14:12: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)199791", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 159.00, "quantity" : 2.000, "sum" : 318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:58]POST & json_proto [14:12:58]process_json_proto [14:12:58]json parsed OK: [14:12:58]protocol is kg_v1.0 [14:12:58]action value=close_receipt [14:12:58]process_action close_receipt [14:12:58]cmd_close_receipt [14:12:58]MH_GetDate [14:12:58]Write to MH i2c: F0 00 00 BC 1C C7 [14:12:58]Write i2c OK [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: F0 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: F0 09 00 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: F0 09 00 BC 1C 00 EE 55 1A 67 FF C4 6B 64 26 [14:12:58]GetLastDocTimeStamp 1729779139 [14:12:58]current date 1729779182 [14:12:58]FM_GetShiftState [14:12:58]SAM_PROTO_GetShiftState [14:12:58]wFMCommunicate request_size=4 [14:12:58]MH_SAM_APDU [14:12:58]CAPDU: 80 13 01 00 [14:12:58]Write to MH i2c: E2 08 00 BD 1C 80 13 01 00 00 00 00 00 56 [14:12:58]Write i2c OK [14:12:58]MH_I2C_Read... [14:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:58]Read from MH i2c: E2 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: E2 0E 00 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: E2 0E 00 BD 1C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 89 [14:12:58]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:12:58]wFMCommunicate OK [14:12:58]SAM_PROTO_GetShiftState done [14:12:58]FM_GetShiftState done [14:12:58]opened in 1729730575 [14:12:58]opened+sec_in_day 1729816975 [14:12:58]quantity*price = 31800 [14:12:58]sum+1 = 31801 [14:12:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 318.00 НСП 1% : 2.81 НДС 12% : 33.77 Наличными: 318.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 81 24.10.2024 14:13 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60006 ФПД: 58456663884259 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141303&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60006&fm=58456663884259&tin=02508201610067®Number=0000000000091622&sum=31800 0 [14:13:00]StoreToDocumentArchive [14:13:00]shift 529 fd 60006 [14:13:00]save to /storage/0529/doc_00060006 [14:13:00]save last doc name /storage/0529/doc_00060006 to /storage/kkm_last_doc_name [14:13:00]save OK [14:13:00]Clear old archive folders... [14:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:13:00]tlvbuf is 00DBC870 [14:13:00]SAM_PROTO_ClearQueue [14:13:00]wFMCommunicate request_size=4 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 09 00 00 [14:13:00]Write to MH i2c: E2 08 00 CA 1C 80 09 00 00 00 00 00 00 58 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 03 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 03 00 CA 1C 00 90 00 5A [14:13:00]RAPDU: 90 00 [14:13:00]wFMCommunicate OK [14:13:00]SAM_PROTO_ClearQueue done [14:13:00]KKMCreateOFDPacket [14:13:00]OFDProtocolAddRootSTLVToBuf [14:13:00]FM_MakeSignedData [14:13:00]FM_MakeSignedData [14:13:00]SAM_PROTO_SignData [14:13:00]wFMCommunicate request_size=4 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 0D 01 02 [14:13:00]Write to MH i2c: E2 08 00 CB 1C 80 0D 01 02 00 00 00 00 60 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 03 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 03 00 CB 1C 00 90 00 5B [14:13:00]RAPDU: 90 00 [14:13:00]wFMCommunicate OK [14:13:00]wFMCommunicate request_size=255 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 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 EF 55 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 [14:13:00]Write to MH i2c: E2 02 01 CC 1C 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 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 EF 55 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 00 00 24 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 03 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 03 00 CC 1C 00 90 00 5C [14:13:00]RAPDU: 90 00 [14:13:00]wFMCommunicate OK [14:13:00]wFMCommunicate request_size=37 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 66 EA 00 00 35 04 06 00 35 2A 80 AF 81 E3 [14:13:00]Write to MH i2c: E2 28 00 CD 1C 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 66 EA 00 00 35 04 06 00 35 2A 80 AF 81 E3 00 00 00 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 03 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 03 00 CD 1C 00 90 00 5D [14:13:00]RAPDU: 90 00 [14:13:00]wFMCommunicate OK [14:13:00]wFMCommunicate request_size=4 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 0D 03 02 [14:13:00]Write to MH i2c: E2 08 00 CE 1C 80 0D 03 02 00 00 00 00 65 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 0B 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 0B 00 CE 1C 00 9D C2 42 C2 43 19 B4 EE 90 00 C7 [14:13:00]RAPDU: 9D C2 42 C2 43 19 B4 EE 90 00 [14:13:00]wFMCommunicate OK [14:13:00]SAM_PROTO_SignData done [14:13:00]FM_MakeSignedData done [14:13:00]CreateOFDProtocolMessage [14:13:00]wFMCommunicate request_size=4 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 11 00 00 [14:13:00]Write to MH i2c: E2 08 00 CF 1C 80 11 00 00 00 00 00 00 65 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 17 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 17 00 CF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 BC [14:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:13:00]wFMCommunicate OK [14:13:00]CreateOFDProtocolMessage done [14:13:00]OFDSenderStorePacket 60006 [14:13:00]StoreOFDPacket docnum=60006 [14:13:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2A 01 00 00 99 FA 22 01 11 26 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 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 EF 55 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 66 EA 00 00 35 04 06 00 35 2A 80 AF 81 E3 9D C2 42 C2 43 19 B4 EE [14:13:00]CheckFolder [14:13:00]dirname=/storage/ofd_packets [14:13:00]CheckFolder done [14:13:00]ProducePacketName [14:13:00]name=ofd_packets/00060006 [14:13:00]NVStorageSaveData ofd_packets/00060006 [14:13:00]File name is /storage/ofd_packets/00060006 [14:13:00]Write 328 bytes [14:13:00]NVStorageSaveData done [14:13:00]OFDSenderStorePacket done [14:13:00]KKMCreateOFDPacket done [14:13:00]NVStorageSaveData kkm_last_timestamp [14:13:00]File name is /storage/kkm_last_timestamp [14:13:00]Write 4 bytes [14:13:00]NVStorageSaveData done [14:13:00]ExternCall_PrintAddStr [14:13:00]wPrintStart [14:13:00]Write to MH i2c: 01 00 00 D0 1C EC [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: 01 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: 01 07 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: 01 07 00 D0 1C 00 00 00 00 00 FF 0F 01 [14:13:00]RasterBufferAndPrint [14:13:00]line Счет N : (3)199791 [14:13:00]line ИНН: 02508201610067 [14:13:00]line Контрольно-Кассовый Чек [14:13:00]line ПРОДАЖА [14:13:00]line Товар: 90162602 [14:13:00]line Энерг напиток Red bull 0,25л [14:13:00]line 2.000 * 159.00 [14:13:00]line = 318.00 [14:13:00]line НДС 12% НСП 1% [14:13:00]line > о реализуемом товаре [14:13:00]line ИТОГО: 318.00 [14:13:00]line НСП 1% : 2.81 [14:13:00]line НДС 12% : 33.77 [14:13:00]line Наличными: 318.00 [14:13:00]line Безнал.: 0.00 [14:13:00]line Место: АЗС № 87 "Партнер Нефть" [14:13:00]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [14:13:00]line СНО: Общий режим [14:13:00]line Чек 81 24.10.2024 14:13 [14:13:00]line Смена: 529 ФФД: 1.0 [14:13:00]line ЗНМ: 0300000084 [14:13:00]line РНМ: 0000000000091622 [14:13:00]line Версия ККМ: 001 [14:13:00]line ФМ: 0000000000874674 [14:13:00]line ФД: 60006 [14:13:00]line ФПД: 58456663884259 [14:13:01]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141303&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60006&fm=58456663884259&tin=02508201610067®Number=0000000000091622&sum=31800 [14:13:01]line 0 [14:13:01]OFD Sender: Processing packet 60006 [packets to send 30, broken 29] [14:13:01]ProducePacketName [14:13:01]name=ofd_packets/00060006 [14:13:01]OFD Sender: To server: pG, [14:13:01]CommunicateWithHost lk.salyk.kg:30040 [14:13:01]ConnectInit lk.salyk.kg [14:13:01]written 0, free lines is 4095 [14:13:01]Connected sock=10 [14:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2A 01 00 00 99 FA 22 01 11 26 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 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 EF 55 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 66 EA 00 00 35 04 06 00 35 2A 80 AF 81 E3 9D C2 42 C2 43 19 B4 EE [14:13:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 65 34 47 00 FC A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 66 EA 00 00 F4 03 04 00 DF FB 19 67 B6 04 01 00 00 D9 D0 89 5F 83 E3 B8 CA [14:13:01]CommunicateWithHost err = 0 [14:13:01]CheckOFDResponse [14:13:01]1017 (14) - 77093643461234 [14:13:01]1041 (16) - 0000000000874674 [14:13:01]1040 (4) - 60006 [14:13:01]1012 (4) - 24.10.2024 07:48 [14:13:01]1206 (1) - 0 [14:13:01]OFD Sender: Remove packet 60006 [14:13:01]ProducePacketName [14:13:01]name=ofd_packets/00060006 [14:13:01]NVStorageDeleteData [14:13:01]Write to MH i2c: 01 00 00 F8 1C 14 [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: 01 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: 01 07 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: 01 07 00 F8 1C 00 00 00 00 00 06 0D 2E [14:13:01]RasterBufferAndPrint [14:13:01]line [14:13:01]line [14:13:01]line [14:13:01]line [14:13:01]line [14:13:01]written 0, free lines is 3340 [14:13:01]MH_Cut [14:13:01]Write to MH i2c: D1 01 00 FF 1C 01 ED [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: D1 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: D1 01 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: D1 01 00 FF 1C 00 EC [14:13:01]Write to MH i2c: 01 00 00 00 1D 1D [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]OFD Sender: No OFD packet to send [14:13:02]*** Cut start [14:13:02]*** Partial cut [14:13:02]*** CUTSNS_PIN = 1 [14:13:02]*** CUTSNS_PIN = 0 [14:13:02]*** Brake cut motor [14:13:02]Read from MH i2c: 01 [14:13:02]MH_I2C_Read... [14:13:02]*** Stop cut motor [14:13:02]*** Cut end [14:13:02]Read from MH i2c: 01 07 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: 01 07 00 00 1D 00 00 00 00 00 FF 0F 32 [14:13:02]process_action close_receipt done [14:13:02]requested_data is exist [14:13:02]produce_requested_data [14:13:02]requested_item fm.sn is exist - process it [14:13:02]wFMCommunicate request_size=4 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 11 00 00 [14:13:02]Write to MH i2c: E2 08 00 01 1D 80 11 00 00 00 00 00 00 98 [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 17 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 17 00 01 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 EF [14:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:13:02]wFMCommunicate OK [14:13:02]requested_item fd.num is exist - process it [14:13:02]SAM_PROTO_GetFieldsCounters [14:13:02]wFMCommunicate request_size=4 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 13 00 00 [14:13:02]Write to MH i2c: E2 08 00 02 1D 80 13 00 00 00 00 00 00 9B [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:03]Read from MH i2c: E2 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 62 00 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 62 00 02 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 66 EA 00 00 0E 04 04 00 11 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 11 [14:13: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 66 EA 00 00 0E 04 04 00 11 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 [14:13:03]wFMCommunicate OK [14:13:03]SAM_PROTO_GetFieldsCounters done [14:13:03]requested_item shift.num is exist - process it [14:13:03]requested_item shift.opened is exist - process it [14:13:03]req_shift_opened [14:13:03]FM_GetShiftState [14:13:03]SAM_PROTO_GetShiftState [14:13:03]wFMCommunicate request_size=4 [14:13:03]MH_SAM_APDU [14:13:03]CAPDU: 80 13 01 00 [14:13:03]Write to MH i2c: E2 08 00 03 1D 80 13 01 00 00 00 00 00 9D [14:13:03]Write i2c OK [14:13:03]MH_I2C_Read... [14:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:03]Read from MH i2c: E2 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 0E 00 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 0E 00 03 1D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 D0 [14:13:03]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:13:03]wFMCommunicate OK [14:13:03]SAM_PROTO_GetShiftState done [14:13:03]FM_GetShiftState done [14:13:03]req_shift_opened done [14:13:03]requested_item shift.open_date is exist - process it [14:13:03]req_shift_open_date [14:13:03]req_shift_open_date done [14:13:03]produce_requested_data done [14:13:03]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60006,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [14:13:03]process_action_free close_receipt [14:13:03]json_value_free [14:13:03]json_value_free done [14:13:03]process_json_proto returns [14:13:03]Send response to host [14:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60006,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [14:13:03]free response buf [14:13:03]execute_script done [14:13:03]execute_script returns [14:13:03]free content buf [14:13:03]Sock 7.Close socket [14:13:03]Sock 7.Thread stoped [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:31]accept exits with 9 [14:17:31]New connection [14:17:31]New thread 3067252068 created [14:17:31]Thread 3067108708 joined [14:17:31]Waiting for new connection... [14:17:31] Sock 9.Parse request [14:17:31]Sock 9.Check first char [14:17:31]Sock 9.First char is OK [14:17:31]request: POST /json_proto HTTP/1.0 [14:17:31]Method: POST [14:17:31]URL: /json_proto [14:17:31]Method is POST - this is cgi request [14:17:31]url: /json_proto [14:17:31]query_string will be loaded in cgi processing [14:17:31]execute_cgi json_proto POST (null) [14:17:31]execute_cgi path=json_proto method=POST [14:17:31]POST find Content-Length [14:17:31]Host: 172.17.42.196:8080 [14:17:31]Content-Length: 622 [14:17:31]Content-Type: application/json [14:17:31] [14:17:31]POST finish read [14:17:31]Found Content-Length = 622 [14:17:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199792", "tax_sys" : 0, "items" : [ { "code": "4700026030109", "name": "\u041A\u0443\u0440\u0443\u0442 \u0447\u043E\u0431\u043E\u0433\u043E", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:31]execute_script... [14:17:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199792", "tax_sys" : 0, "items" : [ { "code": "4700026030109", "name": "\u041A\u0443\u0440\u0443\u0442 \u0447\u043E\u0431\u043E\u0433\u043E", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:31]POST & json_proto [14:17:31]process_json_proto [14:17:31]json parsed OK: [14:17:31]protocol is kg_v1.0 [14:17:31]action value=close_receipt [14:17:31]process_action close_receipt [14:17:31]cmd_close_receipt [14:17:31]MH_GetDate [14:17:31]Write to MH i2c: F0 00 00 04 1D 10 [14:17:31]Write i2c OK [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: F0 [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: F0 09 00 [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: F0 09 00 04 1D 00 FF 56 1A 67 FF C4 6B 64 81 [14:17:31]GetLastDocTimeStamp 1729779183 [14:17:31]current date 1729779455 [14:17:31]FM_GetShiftState [14:17:31]SAM_PROTO_GetShiftState [14:17:31]wFMCommunicate request_size=4 [14:17:31]MH_SAM_APDU [14:17:31]CAPDU: 80 13 01 00 [14:17:31]Write to MH i2c: E2 08 00 05 1D 80 13 01 00 00 00 00 00 9F [14:17:31]Write i2c OK [14:17:31]MH_I2C_Read... [14:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:31]Read from MH i2c: E2 [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: E2 0E 00 [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: E2 0E 00 05 1D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 D2 [14:17:31]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:17:31]wFMCommunicate OK [14:17:31]SAM_PROTO_GetShiftState done [14:17:31]FM_GetShiftState done [14:17:31]opened in 1729730575 [14:17:31]opened+sec_in_day 1729816975 [14:17:31]quantity*price = 4900 [14:17:31]sum+1 = 4901 [14:17:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 82 24.10.2024 14:17 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60007 ФПД: 167658817875516 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141735&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60007&fm=167658817875516&tin=02508201610067®Number=0000000000091622&sum=4900 0 [14:17:32]StoreToDocumentArchive [14:17:32]shift 529 fd 60007 [14:17:32]save to /storage/0529/doc_00060007 [14:17:32]save last doc name /storage/0529/doc_00060007 to /storage/kkm_last_doc_name [14:17:32]save OK [14:17:32]Clear old archive folders... [14:17:32]ProcessDocumentItem done err = 0, tmpTLVsize=265 [14:17:32]tlvbuf is B6F9E7C0 [14:17:32]SAM_PROTO_ClearQueue [14:17:32]wFMCommunicate request_size=4 [14:17:32]MH_SAM_APDU [14:17:32]CAPDU: 80 09 00 00 [14:17:32]Write to MH i2c: E2 08 00 12 1D 80 09 00 00 00 00 00 00 A1 [14:17:32]Write i2c OK [14:17:32]MH_I2C_Read... [14:17:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:32]Read from MH i2c: E2 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: E2 03 00 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: E2 03 00 12 1D 00 90 00 A3 [14:17:32]RAPDU: 90 00 [14:17:32]wFMCommunicate OK [14:17:32]SAM_PROTO_ClearQueue done [14:17:32]KKMCreateOFDPacket [14:17:32]OFDProtocolAddRootSTLVToBuf [14:17:32]FM_MakeSignedData [14:17:32]FM_MakeSignedData [14:17:32]SAM_PROTO_SignData [14:17:32]wFMCommunicate request_size=4 [14:17:32]MH_SAM_APDU [14:17:32]CAPDU: 80 0D 01 02 [14:17:32]Write to MH i2c: E2 08 00 13 1D 80 0D 01 02 00 00 00 00 A9 [14:17:32]Write i2c OK [14:17:32]MH_I2C_Read... [14:17:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:32]Read from MH i2c: E2 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: E2 03 00 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: E2 03 00 13 1D 00 90 00 A4 [14:17:32]RAPDU: 90 00 [14:17:32]wFMCommunicate OK [14:17:32]wFMCommunicate request_size=255 [14:17:32]MH_SAM_APDU [14:17:32]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 31 30 39 06 04 17 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D1 87 D0 BE D0 B1 D0 BE D0 B3 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 FF 56 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 [14:17:33]Write to MH i2c: E2 02 01 14 1D 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 31 30 39 06 04 17 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D1 87 D0 BE D0 B1 D0 BE D0 B3 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 FF 56 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 00 00 87 [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:33]Read from MH i2c: E2 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 03 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 03 00 14 1D 00 90 00 A5 [14:17:33]RAPDU: 90 00 [14:17:33]wFMCommunicate OK [14:17:33]wFMCommunicate request_size=24 [14:17:33]MH_SAM_APDU [14:17:33]CAPDU: 80 0D 02 02 13 34 10 04 04 00 67 EA 00 00 35 04 06 00 98 7C 1C 48 6E 3C [14:17:33]Write to MH i2c: E2 1B 00 15 1D 80 0D 02 02 13 00 34 10 04 04 00 67 EA 00 00 35 04 06 00 98 7C 1C 48 6E 3C 00 00 D0 [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:33]Read from MH i2c: E2 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 03 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 03 00 15 1D 00 90 00 A6 [14:17:33]RAPDU: 90 00 [14:17:33]wFMCommunicate OK [14:17:33]wFMCommunicate request_size=4 [14:17:33]MH_SAM_APDU [14:17:33]CAPDU: 80 0D 03 02 [14:17:33]Write to MH i2c: E2 08 00 16 1D 80 0D 03 02 00 00 00 00 AE [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:33]Read from MH i2c: E2 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 0B 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 0B 00 16 1D 00 75 F3 E4 52 EE F5 35 36 90 00 9B [14:17:33]RAPDU: 75 F3 E4 52 EE F5 35 36 90 00 [14:17:33]wFMCommunicate OK [14:17:33]SAM_PROTO_SignData done [14:17:33]FM_MakeSignedData done [14:17:33]CreateOFDProtocolMessage [14:17:33]wFMCommunicate request_size=4 [14:17:33]MH_SAM_APDU [14:17:33]CAPDU: 80 11 00 00 [14:17:33]Write to MH i2c: E2 08 00 17 1D 80 11 00 00 00 00 00 00 AE [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:33]Read from MH i2c: E2 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 17 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 17 00 17 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 05 [14:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:17:33]wFMCommunicate OK [14:17:33]CreateOFDProtocolMessage done [14:17:33]OFDSenderStorePacket 60007 [14:17:33]StoreOFDPacket docnum=60007 [14:17:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 1D 01 00 00 0C 6D 15 01 F7 8F 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 31 30 39 06 04 17 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D1 87 D0 BE D0 B1 D0 BE D0 B3 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 FF 56 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 67 EA 00 00 35 04 06 00 98 7C 1C 48 6E 3C 75 F3 E4 52 EE F5 35 36 [14:17:33]CheckFolder [14:17:33]dirname=/storage/ofd_packets [14:17:33]CheckFolder done [14:17:33]ProducePacketName [14:17:33]name=ofd_packets/00060007 [14:17:33]NVStorageSaveData ofd_packets/00060007 [14:17:33]File name is /storage/ofd_packets/00060007 [14:17:33]Write 315 bytes [14:17:33]NVStorageSaveData done [14:17:33]OFDSenderStorePacket done [14:17:33]KKMCreateOFDPacket done [14:17:33]NVStorageSaveData kkm_last_timestamp [14:17:33]File name is /storage/kkm_last_timestamp [14:17:33]Write 4 bytes [14:17:33]NVStorageSaveData done [14:17:33]ExternCall_PrintAddStr [14:17:33]wPrintStart [14:17:33]Write to MH i2c: 01 00 00 18 1D 35 [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: 01 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: 01 07 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: 01 07 00 18 1D 00 00 00 00 00 FF 0F 4A [14:17:33]RasterBufferAndPrint [14:17:33]line Счет N : (3)199792 [14:17:33]line ИНН: 02508201610067 [14:17:33]line Контрольно-Кассовый Чек [14:17:33]line ПРОДАЖА [14:17:33]line Товар: 4700026030109 [14:17:33]line Курут чобого [14:17:33]line 1.000 * 49.00 [14:17:33]line = 49.00 [14:17:33]line НДС 12% НСП 1% [14:17:33]line > о реализуемом товаре [14:17:33]line ИТОГО: 49.00 [14:17:33]line НСП 1% : 0.43 [14:17:33]line НДС 12% : 5.20 [14:17:33]line Наличными: 49.00 [14:17:33]line Безнал.: 0.00 [14:17:33]line Место: АЗС № 87 "Партнер Нефть" [14:17:33]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [14:17:33]line СНО: Общий режим [14:17:33]line Чек 82 24.10.2024 14:17 [14:17:33]line Смена: 529 ФФД: 1.0 [14:17:33]line ЗНМ: 0300000084 [14:17:33]line РНМ: 0000000000091622 [14:17:33]line Версия ККМ: 001 [14:17:33]line ФМ: 0000000000874674 [14:17:33]line ФД: 60007 [14:17:33]line ФПД: 167658817875516 [14:17:33]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141735&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60007&fm=167658817875516&tin=02508201610067®Number=0000000000091622&sum=4900 [14:17:33]line 0 [14:17:33]written 0, free lines is 4095 [14:17:33]OFD Sender: Processing packet 60007 [packets to send 30, broken 29] [14:17:33]ProducePacketName [14:17:33]name=ofd_packets/00060007 [14:17:33]OFD Sender: To server: pG, [14:17:33]CommunicateWithHost lk.salyk.kg:30040 [14:17:33]ConnectInit lk.salyk.kg [14:17:33]Connected sock=7 [14:17:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 1D 01 00 00 0C 6D 15 01 F7 8F 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 31 30 39 06 04 17 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D1 87 D0 BE D0 B1 D0 BE D0 B3 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 FF 56 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 67 EA 00 00 35 04 06 00 98 7C 1C 48 6E 3C 75 F3 E4 52 EE F5 35 36 [14:17:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 34 1D 47 00 75 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 34 36 37 34 10 04 04 00 67 EA 00 00 F4 03 04 00 EF FC 19 67 B6 04 01 00 00 BF 3E D4 22 D2 65 DD F1 [14:17:33]CommunicateWithHost err = 0 [14:17:33]CheckOFDResponse [14:17:33]1017 (14) - 77093643461234 [14:17:33]1041 (16) - 0000000000874674 [14:17:33]1040 (4) - 60007 [14:17:33]1012 (4) - 24.10.2024 07:53 [14:17:33]1206 (1) - 0 [14:17:33]OFD Sender: Remove packet 60007 [14:17:33]ProducePacketName [14:17:33]name=ofd_packets/00060007 [14:17:33]NVStorageDeleteData [14:17:33]Write to MH i2c: 01 00 00 40 1D 5D [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: 01 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: 01 07 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: 01 07 00 40 1D 00 00 00 00 00 04 0D 75 [14:17:33]RasterBufferAndPrint [14:17:33]line [14:17:33]line [14:17:33]line [14:17:33]line [14:17:33]line [14:17:33]written 0, free lines is 3338 [14:17:33]MH_Cut [14:17:33]Write to MH i2c: D1 01 00 47 1D 01 36 [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: D1 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: D1 01 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: D1 01 00 47 1D 00 35 [14:17:33]Write to MH i2c: 01 00 00 48 1D 65 [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:34]OFD Sender: No OFD packet to send [14:17:34]*** Cut start [14:17:34]*** Partial cut [14:17:34]*** CUTSNS_PIN = 1 [14:17:34]*** CUTSNS_PIN = 0 [14:17:34]*** Brake cut motor [14:17:35]Read from MH i2c: 01 [14:17:35]MH_I2C_Read... [14:17:35]*** Stop cut motor [14:17:35]*** Cut end [14:17:35]Read from MH i2c: 01 07 00 [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: 01 07 00 48 1D 00 00 00 00 00 FF 0F 7A [14:17:35]process_action close_receipt done [14:17:35]requested_data is exist [14:17:35]produce_requested_data [14:17:35]requested_item fm.sn is exist - process it [14:17:35]wFMCommunicate request_size=4 [14:17:35]MH_SAM_APDU [14:17:35]CAPDU: 80 11 00 00 [14:17:35]Write to MH i2c: E2 08 00 49 1D 80 11 00 00 00 00 00 00 E0 [14:17:35]Write i2c OK [14:17:35]MH_I2C_Read... [14:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:35]Read from MH i2c: E2 [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: E2 17 00 [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: E2 17 00 49 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 37 [14:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:17:35]wFMCommunicate OK [14:17:35]requested_item fd.num is exist - process it [14:17:35]SAM_PROTO_GetFieldsCounters [14:17:35]wFMCommunicate request_size=4 [14:17:35]MH_SAM_APDU [14:17:35]CAPDU: 80 13 00 00 [14:17:35]Write to MH i2c: E2 08 00 4A 1D 80 13 00 00 00 00 00 00 E3 [14:17:35]Write i2c OK [14:17:35]MH_I2C_Read... [14:17:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:35]Read from MH i2c: E2 [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: E2 62 00 [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: E2 62 00 4A 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 67 EA 00 00 0E 04 04 00 11 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 5D [14:17: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 67 EA 00 00 0E 04 04 00 11 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 [14:17:35]wFMCommunicate OK [14:17:35]SAM_PROTO_GetFieldsCounters done [14:17:35]requested_item shift.num is exist - process it [14:17:35]requested_item shift.opened is exist - process it [14:17:35]req_shift_opened [14:17:35]FM_GetShiftState [14:17:35]SAM_PROTO_GetShiftState [14:17:35]wFMCommunicate request_size=4 [14:17:35]MH_SAM_APDU [14:17:35]CAPDU: 80 13 01 00 [14:17:35]Write to MH i2c: E2 08 00 4B 1D 80 13 01 00 00 00 00 00 E5 [14:17:35]Write i2c OK [14:17:35]MH_I2C_Read... [14:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:35]Read from MH i2c: E2 [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: E2 0E 00 [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: E2 0E 00 4B 1D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 18 [14:17:35]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:17:35]wFMCommunicate OK [14:17:35]SAM_PROTO_GetShiftState done [14:17:35]FM_GetShiftState done [14:17:35]req_shift_opened done [14:17:35]requested_item shift.open_date is exist - process it [14:17:35]req_shift_open_date [14:17:35]req_shift_open_date done [14:17:35]produce_requested_data done [14:17:35]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60007,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [14:17:35]process_action_free close_receipt [14:17:35]json_value_free [14:17:35]json_value_free done [14:17:35]process_json_proto returns [14:17:35]Send response to host [14:17:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60007,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [14:17:35]free response buf [14:17:35]execute_script done [14:17:35]execute_script returns [14:17:35]free content buf [14:17:35]Sock 9.Close socket [14:17:35]Sock 9.Thread stoped [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [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]accept exits with 10 [14:26:34]New connection [14:26:34]New thread 3067108708 created [14:26:34]Thread 3067252068 joined [14:26:34]Waiting for new connection... [14:26:34] Sock 10.Parse request [14:26:34]Sock 10.Check first char [14:26:34]Sock 10.First char is OK [14:26:34]request: POST /json_proto HTTP/1.0 [14:26:34]Method: POST [14:26:34]URL: /json_proto [14:26:34]Method is POST - this is cgi request [14:26:34]url: /json_proto [14:26:34]query_string will be loaded in cgi processing [14:26:34]execute_cgi json_proto POST (null) [14:26:34]execute_cgi path=json_proto method=POST [14:26:34]POST find Content-Length [14:26:34]Host: 172.17.42.196:8080 [14:26:34]Content-Length: 626 [14:26:34]Content-Type: application/json [14:26:34] [14:26:34]POST finish read [14:26:34]Found Content-Length = 626 [14:26:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199793", "tax_sys" : 0, "items" : [ { "code": "48743389", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:34]execute_script... [14:26: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 : (3)199793", "tax_sys" : 0, "items" : [ { "code": "48743389", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:34]POST & json_proto [14:26:34]process_json_proto [14:26:34]json parsed OK: [14:26:34]protocol is kg_v1.0 [14:26:34]action value=close_receipt [14:26:34]process_action close_receipt [14:26:34]cmd_close_receipt [14:26:34]MH_GetDate [14:26:34]Write to MH i2c: F0 00 00 4C 1D 58 [14:26:34]Write i2c OK [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: F0 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: F0 09 00 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: F0 09 00 4C 1D 00 1E 59 1A 67 FF C4 6B 64 EB [14:26:34]GetLastDocTimeStamp 1729779455 [14:26:34]current date 1729779998 [14:26:34]FM_GetShiftState [14:26:34]SAM_PROTO_GetShiftState [14:26:34]wFMCommunicate request_size=4 [14:26:34]MH_SAM_APDU [14:26:34]CAPDU: 80 13 01 00 [14:26:34]Write to MH i2c: E2 08 00 4D 1D 80 13 01 00 00 00 00 00 E7 [14:26:34]Write i2c OK [14:26:34]MH_I2C_Read... [14:26:34]OFD Sender: No OFD packet to send [14:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:34]Read from MH i2c: E2 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: E2 0E 00 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: E2 0E 00 4D 1D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 1A [14:26:34]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:26:34]wFMCommunicate OK [14:26:34]SAM_PROTO_GetShiftState done [14:26:34]FM_GetShiftState done [14:26:34]opened in 1729730575 [14:26:34]opened+sec_in_day 1729816975 [14:26:34]quantity*price = 13400 [14:26:34]sum+1 = 13401 [14:26:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 83 24.10.2024 14:26 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60008 ФПД: 24483842062447 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142638&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60008&fm=24483842062447&tin=02508201610067®Number=0000000000091622&sum=13400 0 [14:26:35]StoreToDocumentArchive [14:26:35]shift 529 fd 60008 [14:26:35]save to /storage/0529/doc_00060008 [14:26:35]save last doc name /storage/0529/doc_00060008 to /storage/kkm_last_doc_name [14:26:35]save OK [14:26:35]Clear old archive folders... [14:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:26:35]tlvbuf is B6F0AAA0 [14:26:35]SAM_PROTO_ClearQueue [14:26:35]wFMCommunicate request_size=4 [14:26:35]MH_SAM_APDU [14:26:35]CAPDU: 80 09 00 00 [14:26:35]Write to MH i2c: E2 08 00 5A 1D 80 09 00 00 00 00 00 00 E9 [14:26:35]Write i2c OK [14:26:35]MH_I2C_Read... [14:26:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:36]Read from MH i2c: E2 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 03 00 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 03 00 5A 1D 00 90 00 EB [14:26:36]RAPDU: 90 00 [14:26:36]wFMCommunicate OK [14:26:36]SAM_PROTO_ClearQueue done [14:26:36]KKMCreateOFDPacket [14:26:36]OFDProtocolAddRootSTLVToBuf [14:26:36]FM_MakeSignedData [14:26:36]FM_MakeSignedData [14:26:36]SAM_PROTO_SignData [14:26:36]wFMCommunicate request_size=4 [14:26:36]MH_SAM_APDU [14:26:36]CAPDU: 80 0D 01 02 [14:26:36]Write to MH i2c: E2 08 00 5B 1D 80 0D 01 02 00 00 00 00 F1 [14:26:36]Write i2c OK [14:26:36]MH_I2C_Read... [14:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:36]Read from MH i2c: E2 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 03 00 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 03 00 5B 1D 00 90 00 EC [14:26:36]RAPDU: 90 00 [14:26:36]wFMCommunicate OK [14:26:36]wFMCommunicate request_size=255 [14:26:36]MH_SAM_APDU [14:26:36]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 1E 59 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 [14:26:36]Write to MH i2c: E2 02 01 5C 1D 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 1E 59 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 00 00 7F [14:26:36]Write i2c OK [14:26:36]MH_I2C_Read... [14:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:36]Read from MH i2c: E2 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 03 00 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 03 00 5C 1D 00 90 00 ED [14:26:36]RAPDU: 90 00 [14:26:36]wFMCommunicate OK [14:26:36]wFMCommunicate request_size=37 [14:26:36]MH_SAM_APDU [14:26:36]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 68 EA 00 00 35 04 06 00 16 44 96 B5 78 6F [14:26:36]Write to MH i2c: E2 28 00 5D 1D 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 68 EA 00 00 35 04 06 00 16 44 96 B5 78 6F 00 00 2D [14:26:36]Write i2c OK [14:26:36]MH_I2C_Read... [14:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:36]Read from MH i2c: E2 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 03 00 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 03 00 5D 1D 00 90 00 EE [14:26:36]RAPDU: 90 00 [14:26:36]wFMCommunicate OK [14:26:36]wFMCommunicate request_size=4 [14:26:36]MH_SAM_APDU [14:26:36]CAPDU: 80 0D 03 02 [14:26:36]Write to MH i2c: E2 08 00 5E 1D 80 0D 03 02 00 00 00 00 F6 [14:26:36]Write i2c OK [14:26:36]MH_I2C_Read... [14:26:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:36]Read from MH i2c: E2 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 0B 00 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 0B 00 5E 1D 00 66 DE B0 41 C0 82 53 A4 90 00 65 [14:26:36]RAPDU: 66 DE B0 41 C0 82 53 A4 90 00 [14:26:36]wFMCommunicate OK [14:26:36]SAM_PROTO_SignData done [14:26:36]FM_MakeSignedData done [14:26:36]CreateOFDProtocolMessage [14:26:36]wFMCommunicate request_size=4 [14:26:36]MH_SAM_APDU [14:26:36]CAPDU: 80 11 00 00 [14:26:36]Write to MH i2c: E2 08 00 5F 1D 80 11 00 00 00 00 00 00 F6 [14:26:36]Write i2c OK [14:26:36]MH_I2C_Read... [14:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:36]Read from MH i2c: E2 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 17 00 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: E2 17 00 5F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 4D [14:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:26:36]wFMCommunicate OK [14:26:36]CreateOFDProtocolMessage done [14:26:36]OFDSenderStorePacket 60008 [14:26:36]StoreOFDPacket docnum=60008 [14:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2A 01 00 00 6C 1B 22 01 BE 90 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 1E 59 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 68 EA 00 00 35 04 06 00 16 44 96 B5 78 6F 66 DE B0 41 C0 82 53 A4 [14:26:36]CheckFolder [14:26:36]dirname=/storage/ofd_packets [14:26:36]CheckFolder done [14:26:36]ProducePacketName [14:26:36]name=ofd_packets/00060008 [14:26:36]NVStorageSaveData ofd_packets/00060008 [14:26:36]File name is /storage/ofd_packets/00060008 [14:26:36]Write 328 bytes [14:26:36]NVStorageSaveData done [14:26:36]OFDSenderStorePacket done [14:26:36]KKMCreateOFDPacket done [14:26:36]NVStorageSaveData kkm_last_timestamp [14:26:36]File name is /storage/kkm_last_timestamp [14:26:36]Write 4 bytes [14:26:36]NVStorageSaveData done [14:26:36]ExternCall_PrintAddStr [14:26:36]wPrintStart [14:26:36]Write to MH i2c: 01 00 00 60 1D 7D [14:26:36]Write i2c OK [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: 01 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: 01 07 00 [14:26:36]MH_I2C_Read... [14:26:36]Read from MH i2c: 01 07 00 60 1D 00 00 00 00 00 FF 0F 92 [14:26:36]RasterBufferAndPrint [14:26:36]line Счет N : (3)199793 [14:26:36]line ИНН: 02508201610067 [14:26:36]line Контрольно-Кассовый Чек [14:26:36]line ПРОДАЖА [14:26:36]line Товар: 48743389 [14:26:36]line Сигареты BOND STREET compact blue [14:26:36]line 1.000 * 134.00 [14:26:36]line = 134.00 [14:26:36]line НДС 12% НСП 1% [14:26:36]line > о реализуемом товаре [14:26:36]line ИТОГО: 134.00 [14:26:36]line НСП 1% : 1.19 [14:26:36]line НДС 12% : 14.23 [14:26:36]line Наличными: 134.00 [14:26:36]line Безнал.: 0.00 [14:26:36]line Место: АЗС № 87 "Партнер Нефть" [14:26:36]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [14:26:36]line СНО: Общий режим [14:26:36]line Чек 83 24.10.2024 14:26 [14:26:36]line Смена: 529 ФФД: 1.0 [14:26:36]line ЗНМ: 0300000084 [14:26:36]line РНМ: 0000000000091622 [14:26:36]line Версия ККМ: 001 [14:26:36]line ФМ: 0000000000874674 [14:26:36]line ФД: 60008 [14:26:36]line ФПД: 24483842062447 [14:26:36]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142638&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60008&fm=24483842062447&tin=02508201610067®Number=0000000000091622&sum=13400 [14:26:36]line 0 [14:26:36]OFD Sender: Processing packet 60008 [packets to send 30, broken 29] [14:26:36]ProducePacketName [14:26:36]name=ofd_packets/00060008 [14:26:36]OFD Sender: To server: pG, [14:26:36]CommunicateWithHost lk.salyk.kg:30040 [14:26:36]ConnectInit lk.salyk.kg [14:26:36]written 0, free lines is 4095 [14:26:36]Connected sock=9 [14:26:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2A 01 00 00 6C 1B 22 01 BE 90 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 1E 59 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 68 EA 00 00 35 04 06 00 16 44 96 B5 78 6F 66 DE B0 41 C0 82 53 A4 [14:26:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 7F 9C 47 00 A8 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 34 36 37 34 10 04 04 00 68 EA 00 00 F4 03 04 00 0F FF 19 67 B6 04 01 00 00 95 D3 DD 9D EE DF 0A A8 [14:26:37]CommunicateWithHost err = 0 [14:26:37]CheckOFDResponse [14:26:37]1017 (14) - 77093643461234 [14:26:37]1041 (16) - 0000000000874674 [14:26:37]1040 (4) - 60008 [14:26:37]1012 (4) - 24.10.2024 08:02 [14:26:37]1206 (1) - 0 [14:26:37]OFD Sender: Remove packet 60008 [14:26:37]ProducePacketName [14:26:37]name=ofd_packets/00060008 [14:26:37]NVStorageDeleteData [14:26:37]Write to MH i2c: 01 00 00 89 1D A6 [14:26:37]Write i2c OK [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: 01 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: 01 07 00 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: 01 07 00 89 1D 00 00 00 00 00 E8 0C A1 [14:26:37]RasterBufferAndPrint [14:26:37]line [14:26:37]line [14:26:37]line [14:26:37]line [14:26:37]line [14:26:37]written 0, free lines is 3310 [14:26:37]MH_Cut [14:26:37]Write to MH i2c: D1 01 00 90 1D 01 7F [14:26:37]Write i2c OK [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: D1 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: D1 01 00 [14:26:37]MH_I2C_Read... [14:26:37]Read from MH i2c: D1 01 00 90 1D 00 7E [14:26:37]Write to MH i2c: 01 00 00 91 1D AE [14:26:37]Write i2c OK [14:26:37]MH_I2C_Read... [14:26:37]OFD Sender: No OFD packet to send [14:26:38]*** Cut start [14:26:38]*** Partial cut [14:26:38]*** CUTSNS_PIN = 1 [14:26:38]*** CUTSNS_PIN = 0 [14:26:38]*** Brake cut motor [14:26:38]Read from MH i2c: 01 [14:26:38]MH_I2C_Read... [14:26:38]*** Stop cut motor [14:26:38]*** Cut end [14:26:38]Read from MH i2c: 01 07 00 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: 01 07 00 91 1D 00 00 00 00 00 FF 0F C3 [14:26:38]process_action close_receipt done [14:26:38]requested_data is exist [14:26:38]produce_requested_data [14:26:38]requested_item fm.sn is exist - process it [14:26:38]wFMCommunicate request_size=4 [14:26:38]MH_SAM_APDU [14:26:38]CAPDU: 80 11 00 00 [14:26:38]Write to MH i2c: E2 08 00 92 1D 80 11 00 00 00 00 00 00 29 [14:26:38]Write i2c OK [14:26:38]MH_I2C_Read... [14:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:38]Read from MH i2c: E2 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: E2 17 00 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: E2 17 00 92 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 80 [14:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:26:38]wFMCommunicate OK [14:26:38]requested_item fd.num is exist - process it [14:26:38]SAM_PROTO_GetFieldsCounters [14:26:38]wFMCommunicate request_size=4 [14:26:38]MH_SAM_APDU [14:26:38]CAPDU: 80 13 00 00 [14:26:38]Write to MH i2c: E2 08 00 93 1D 80 13 00 00 00 00 00 00 2C [14:26:38]Write i2c OK [14:26:38]MH_I2C_Read... [14:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:38]Read from MH i2c: E2 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: E2 62 00 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: E2 62 00 93 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 68 EA 00 00 0E 04 04 00 11 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 AA [14:26: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 68 EA 00 00 0E 04 04 00 11 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 [14:26:38]wFMCommunicate OK [14:26:38]SAM_PROTO_GetFieldsCounters done [14:26:38]requested_item shift.num is exist - process it [14:26:38]requested_item shift.opened is exist - process it [14:26:38]req_shift_opened [14:26:38]FM_GetShiftState [14:26:38]SAM_PROTO_GetShiftState [14:26:38]wFMCommunicate request_size=4 [14:26:38]MH_SAM_APDU [14:26:38]CAPDU: 80 13 01 00 [14:26:38]Write to MH i2c: E2 08 00 94 1D 80 13 01 00 00 00 00 00 2E [14:26:38]Write i2c OK [14:26:38]MH_I2C_Read... [14:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:38]Read from MH i2c: E2 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: E2 0E 00 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: E2 0E 00 94 1D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 61 [14:26:38]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:26:38]wFMCommunicate OK [14:26:38]SAM_PROTO_GetShiftState done [14:26:38]FM_GetShiftState done [14:26:38]req_shift_opened done [14:26:38]requested_item shift.open_date is exist - process it [14:26:38]req_shift_open_date [14:26:38]req_shift_open_date done [14:26:38]produce_requested_data done [14:26:38]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60008,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [14:26:38]process_action_free close_receipt [14:26:38]json_value_free [14:26:38]json_value_free done [14:26:38]process_json_proto returns [14:26:38]Send response to host [14:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60008,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [14:26:38]free response buf [14:26:38]execute_script done [14:26:38]execute_script returns [14:26:38]free content buf [14:26:38]Sock 10.Close socket [14:26:38]Sock 10.Thread stoped [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:11]accept exits with 7 [14:28:11]New connection [14:28:11]New thread 3067252068 created [14:28:11]Thread 3067108708 joined [14:28:11]Waiting for new connection... [14:28:11] Sock 7.Parse request [14:28:11]Sock 7.Check first char [14:28:11]Sock 7.First char is OK [14:28:11]request: POST /json_proto HTTP/1.0 [14:28:11]Method: POST [14:28:11]URL: /json_proto [14:28:11]Method is POST - this is cgi request [14:28:11]url: /json_proto [14:28:11]query_string will be loaded in cgi processing [14:28:11]execute_cgi json_proto POST (null) [14:28:11]execute_cgi path=json_proto method=POST [14:28:11]POST find Content-Length [14:28:11]Host: 172.17.42.196:8080 [14:28:11]Content-Length: 646 [14:28:11]Content-Type: application/json [14:28:11] [14:28:11]POST finish read [14:28:11]Found Content-Length = 646 [14:28:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199794", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:11]execute_script... [14:28: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 : (3)199794", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:11]POST & json_proto [14:28:11]process_json_proto [14:28:11]json parsed OK: [14:28:11]protocol is kg_v1.0 [14:28:11]action value=close_receipt [14:28:11]process_action close_receipt [14:28:11]cmd_close_receipt [14:28:11]MH_GetDate [14:28:11]Write to MH i2c: F0 00 00 95 1D A1 [14:28:11]Write i2c OK [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: F0 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: F0 09 00 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: F0 09 00 95 1D 00 7F 59 1A 67 FF C4 6B 64 95 [14:28:11]GetLastDocTimeStamp 1729779998 [14:28:11]current date 1729780095 [14:28:11]FM_GetShiftState [14:28:11]SAM_PROTO_GetShiftState [14:28:11]wFMCommunicate request_size=4 [14:28:11]MH_SAM_APDU [14:28:11]CAPDU: 80 13 01 00 [14:28:11]Write to MH i2c: E2 08 00 96 1D 80 13 01 00 00 00 00 00 30 [14:28:11]Write i2c OK [14:28:11]MH_I2C_Read... [14:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:11]Read from MH i2c: E2 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 0E 00 [14:28:11]MH_I2C_Read... [14:28:11]Read from MH i2c: E2 0E 00 96 1D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 63 [14:28:11]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:28:11]wFMCommunicate OK [14:28:11]SAM_PROTO_GetShiftState done [14:28:11]FM_GetShiftState done [14:28:11]opened in 1729730575 [14:28:11]opened+sec_in_day 1729816975 [14:28:11]quantity*price = 13000 [14:28:11]sum+1 = 13001 [14:28:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 84 24.10.2024 14:28 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60009 ФПД: 196372829472727 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142815&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60009&fm=196372829472727&tin=02508201610067®Number=0000000000091622&sum=13000 0 [14:28:12]StoreToDocumentArchive [14:28:12]shift 529 fd 60009 [14:28:12]save to /storage/0529/doc_00060009 [14:28:12]save last doc name /storage/0529/doc_00060009 to /storage/kkm_last_doc_name [14:28:12]save OK [14:28:12]Clear old archive folders... [14:28:12]ProcessDocumentItem done err = 0, tmpTLVsize=282 [14:28:12]tlvbuf is B6F0A870 [14:28:12]SAM_PROTO_ClearQueue [14:28:12]wFMCommunicate request_size=4 [14:28:12]MH_SAM_APDU [14:28:12]CAPDU: 80 09 00 00 [14:28:12]Write to MH i2c: E2 08 00 A3 1D 80 09 00 00 00 00 00 00 32 [14:28:12]Write i2c OK [14:28:12]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 [14:28:13]MH_I2C_Read... [14:28:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:13]Read from MH i2c: E2 03 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 03 00 A3 1D 00 90 00 34 [14:28:13]RAPDU: 90 00 [14:28:13]wFMCommunicate OK [14:28:13]SAM_PROTO_ClearQueue done [14:28:13]KKMCreateOFDPacket [14:28:13]OFDProtocolAddRootSTLVToBuf [14:28:13]FM_MakeSignedData [14:28:13]FM_MakeSignedData [14:28:13]SAM_PROTO_SignData [14:28:13]wFMCommunicate request_size=4 [14:28:13]MH_SAM_APDU [14:28:13]CAPDU: 80 0D 01 02 [14:28:13]Write to MH i2c: E2 08 00 A4 1D 80 0D 01 02 00 00 00 00 3A [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:13]Read from MH i2c: E2 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 03 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 03 00 A4 1D 00 90 00 35 [14:28:13]RAPDU: 90 00 [14:28:13]wFMCommunicate OK [14:28:13]wFMCommunicate request_size=255 [14:28:13]MH_SAM_APDU [14:28:13]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 7F 59 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 [14:28:13]Write to MH i2c: E2 02 01 A5 1D 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 7F 59 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 00 00 04 [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:13]Read from MH i2c: E2 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 03 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 03 00 A5 1D 00 90 00 36 [14:28:13]RAPDU: 90 00 [14:28:13]wFMCommunicate OK [14:28:13]wFMCommunicate request_size=41 [14:28:13]MH_SAM_APDU [14:28:13]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 69 EA 00 00 35 04 06 00 B2 99 9C BE 87 D7 [14:28:13]Write to MH i2c: E2 2C 00 A6 1D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 69 EA 00 00 35 04 06 00 B2 99 9C BE 87 D7 00 00 66 [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:13]Read from MH i2c: E2 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 03 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 03 00 A6 1D 00 90 00 37 [14:28:13]RAPDU: 90 00 [14:28:13]wFMCommunicate OK [14:28:13]wFMCommunicate request_size=4 [14:28:13]MH_SAM_APDU [14:28:13]CAPDU: 80 0D 03 02 [14:28:13]Write to MH i2c: E2 08 00 A7 1D 80 0D 03 02 00 00 00 00 3F [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:13]Read from MH i2c: E2 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 0B 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 0B 00 A7 1D 00 A4 96 9D 8F ED 1D 17 63 90 00 2A [14:28:13]RAPDU: A4 96 9D 8F ED 1D 17 63 90 00 [14:28:13]wFMCommunicate OK [14:28:13]SAM_PROTO_SignData done [14:28:13]FM_MakeSignedData done [14:28:13]CreateOFDProtocolMessage [14:28:13]wFMCommunicate request_size=4 [14:28:13]MH_SAM_APDU [14:28:13]CAPDU: 80 11 00 00 [14:28:13]Write to MH i2c: E2 08 00 A8 1D 80 11 00 00 00 00 00 00 3F [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:13]Read from MH i2c: E2 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 17 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 17 00 A8 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 96 [14:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:28:13]wFMCommunicate OK [14:28:13]CreateOFDProtocolMessage done [14:28:13]OFDSenderStorePacket 60009 [14:28:13]StoreOFDPacket docnum=60009 [14:28:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 A4 8B 26 01 4F 5C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 7F 59 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 69 EA 00 00 35 04 06 00 B2 99 9C BE 87 D7 A4 96 9D 8F ED 1D 17 63 [14:28:13]CheckFolder [14:28:13]dirname=/storage/ofd_packets [14:28:13]CheckFolder done [14:28:13]ProducePacketName [14:28:13]name=ofd_packets/00060009 [14:28:13]NVStorageSaveData ofd_packets/00060009 [14:28:13]File name is /storage/ofd_packets/00060009 [14:28:13]Write 332 bytes [14:28:13]NVStorageSaveData done [14:28:13]OFDSenderStorePacket done [14:28:13]KKMCreateOFDPacket done [14:28:13]NVStorageSaveData kkm_last_timestamp [14:28:13]File name is /storage/kkm_last_timestamp [14:28:13]Write 4 bytes [14:28:13]NVStorageSaveData done [14:28:13]ExternCall_PrintAddStr [14:28:13]wPrintStart [14:28:13]Write to MH i2c: 01 00 00 A9 1D C6 [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: 01 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: 01 07 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: 01 07 00 A9 1D 00 00 00 00 00 FF 0F DB [14:28:13]RasterBufferAndPrint [14:28:13]line Счет N : (3)199794 [14:28:13]line ИНН: 02508201610067 [14:28:13]line Контрольно-Кассовый Чек [14:28:13]line ПРОДАЖА [14:28:13]line Товар: 2000036220012 [14:28:13]line Кофе Капучино XL(GABB TRADE) [14:28:13]line 1.000 * 130.00 [14:28:13]line = 130.00 [14:28:13]line НДС 12% НСП 1% [14:28:13]line > о реализуемом товаре [14:28:13]line ИТОГО: 130.00 [14:28:13]line НСП 1% : 1.15 [14:28:13]line НДС 12% : 13.80 [14:28:13]line Наличными: 130.00 [14:28:13]line Безнал.: 0.00 [14:28:13]line Место: АЗС № 87 "Партнер Нефть" [14:28:13]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [14:28:13]line СНО: Общий режим [14:28:13]line Чек 84 24.10.2024 14:28 [14:28:13]line Смена: 529 ФФД: 1.0 [14:28:13]line ЗНМ: 0300000084 [14:28:13]line РНМ: 0000000000091622 [14:28:13]line Версия ККМ: 001 [14:28:13]line ФМ: 0000000000874674 [14:28:13]line ФД: 60009 [14:28:13]line ФПД: 196372829472727 [14:28:13]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142815&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60009&fm=196372829472727&tin=02508201610067®Number=0000000000091622&sum=13000 [14:28:13]line 0 [14:28:13]OFD Sender: Processing packet 60009 [packets to send 30, broken 29] [14:28:13]ProducePacketName [14:28:13]name=ofd_packets/00060009 [14:28:13]OFD Sender: To server: pG, [14:28:13]CommunicateWithHost lk.salyk.kg:30040 [14:28:13]ConnectInit lk.salyk.kg [14:28:13]written 0, free lines is 4095 [14:28:13]Connected sock=10 [14:28:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 A4 8B 26 01 4F 5C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 7F 59 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 69 EA 00 00 35 04 06 00 B2 99 9C BE 87 D7 A4 96 9D 8F ED 1D 17 63 [14:28:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 A6 F1 47 00 C9 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 34 36 37 34 10 04 04 00 69 EA 00 00 F4 03 04 00 70 FF 19 67 B6 04 01 00 00 C8 92 31 83 F9 67 A8 A8 [14:28:14]CommunicateWithHost err = 0 [14:28:14]CheckOFDResponse [14:28:14]1017 (14) - 77093643461234 [14:28:14]1041 (16) - 0000000000874674 [14:28:14]1040 (4) - 60009 [14:28:14]1012 (4) - 24.10.2024 08:04 [14:28:14]1206 (1) - 0 [14:28:14]OFD Sender: Remove packet 60009 [14:28:14]ProducePacketName [14:28:14]name=ofd_packets/00060009 [14:28:14]NVStorageDeleteData [14:28:14]Write to MH i2c: 01 00 00 D2 1D EF [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: 01 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: 01 07 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: 01 07 00 D2 1D 00 00 00 00 00 F4 0C F6 [14:28:14]RasterBufferAndPrint [14:28:14]line [14:28:14]line [14:28:14]line [14:28:14]line [14:28:14]line [14:28:14]written 0, free lines is 3323 [14:28:14]MH_Cut [14:28:14]Write to MH i2c: D1 01 00 D9 1D 01 C8 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: D1 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: D1 01 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: D1 01 00 D9 1D 00 C7 [14:28:14]Write to MH i2c: 01 00 00 DA 1D F7 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]OFD Sender: No OFD packet to send [14:28:15]*** Cut start [14:28:15]*** Partial cut [14:28:15]*** CUTSNS_PIN = 1 [14:28:15]*** CUTSNS_PIN = 0 [14:28:15]*** Brake cut motor [14:28:15]Read from MH i2c: 01 [14:28:15]MH_I2C_Read... [14:28:15]*** Stop cut motor [14:28:15]*** Cut end [14:28:15]Read from MH i2c: 01 07 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 07 00 DA 1D 00 00 00 00 00 FF 0F 0C [14:28:15]process_action close_receipt done [14:28:15]requested_data is exist [14:28:15]produce_requested_data [14:28:15]requested_item fm.sn is exist - process it [14:28:15]wFMCommunicate request_size=4 [14:28:15]MH_SAM_APDU [14:28:15]CAPDU: 80 11 00 00 [14:28:15]Write to MH i2c: E2 08 00 DB 1D 80 11 00 00 00 00 00 00 72 [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:15]Read from MH i2c: E2 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: E2 17 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: E2 17 00 DB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C9 [14:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:28:15]wFMCommunicate OK [14:28:15]requested_item fd.num is exist - process it [14:28:15]SAM_PROTO_GetFieldsCounters [14:28:15]wFMCommunicate request_size=4 [14:28:15]MH_SAM_APDU [14:28:15]CAPDU: 80 13 00 00 [14:28:15]Write to MH i2c: E2 08 00 DC 1D 80 13 00 00 00 00 00 00 75 [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:15]Read from MH i2c: E2 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: E2 62 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: E2 62 00 DC 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 69 EA 00 00 0E 04 04 00 11 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 F7 [14:28: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 69 EA 00 00 0E 04 04 00 11 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 [14:28:15]wFMCommunicate OK [14:28:15]SAM_PROTO_GetFieldsCounters done [14:28:15]requested_item shift.num is exist - process it [14:28:15]requested_item shift.opened is exist - process it [14:28:15]req_shift_opened [14:28:15]FM_GetShiftState [14:28:15]SAM_PROTO_GetShiftState [14:28:15]wFMCommunicate request_size=4 [14:28:15]MH_SAM_APDU [14:28:15]CAPDU: 80 13 01 00 [14:28:15]Write to MH i2c: E2 08 00 DD 1D 80 13 01 00 00 00 00 00 77 [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:15]Read from MH i2c: E2 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: E2 0E 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: E2 0E 00 DD 1D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 AA [14:28:15]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:28:15]wFMCommunicate OK [14:28:15]SAM_PROTO_GetShiftState done [14:28:15]FM_GetShiftState done [14:28:15]req_shift_opened done [14:28:15]requested_item shift.open_date is exist - process it [14:28:15]req_shift_open_date [14:28:15]req_shift_open_date done [14:28:15]produce_requested_data done [14:28:15]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60009,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [14:28:15]process_action_free close_receipt [14:28:15]json_value_free [14:28:15]json_value_free done [14:28:15]process_json_proto returns [14:28:15]Send response to host [14:28:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60009,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [14:28:15]free response buf [14:28:15]execute_script done [14:28:15]execute_script returns [14:28:15]free content buf [14:28:15]Sock 7.Close socket [14:28:15]Sock 7.Thread stoped [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:48]accept exits with 9 [14:34:48]New connection [14:34:48]New thread 3067108708 created [14:34:48]Thread 3067252068 joined [14:34:48]Waiting for new connection... [14:34:48] Sock 9.Parse request [14:34:48]Sock 9.Check first char [14:34:48]Sock 9.First char is OK [14:34:48]request: POST /json_proto HTTP/1.0 [14:34:48]Method: POST [14:34:48]URL: /json_proto [14:34:48]Method is POST - this is cgi request [14:34:48]url: /json_proto [14:34:48]query_string will be loaded in cgi processing [14:34:48]execute_cgi json_proto POST (null) [14:34:48]execute_cgi path=json_proto method=POST [14:34:48]POST find Content-Length [14:34:48]Host: 172.17.42.196:8080 [14:34:48]Content-Length: 792 [14:34:48]Content-Type: application/json [14:34:48] [14:34:48]POST finish read [14:34:48]Found Content-Length = 792 [14:34:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199795", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:48]execute_script... [14:34:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199795", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:48]POST & json_proto [14:34:48]process_json_proto [14:34:48]json parsed OK: [14:34:48]protocol is kg_v1.0 [14:34:48]action value=close_receipt [14:34:48]process_action close_receipt [14:34:48]cmd_close_receipt [14:34:48]MH_GetDate [14:34:48]Write to MH i2c: F0 00 00 DE 1D EA [14:34:48]Write i2c OK [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: F0 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: F0 09 00 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: F0 09 00 DE 1D 00 0C 5B 1A 67 FF C4 6B 64 6D [14:34:48]GetLastDocTimeStamp 1729780095 [14:34:48]current date 1729780492 [14:34:48]FM_GetShiftState [14:34:48]SAM_PROTO_GetShiftState [14:34:48]wFMCommunicate request_size=4 [14:34:48]MH_SAM_APDU [14:34:48]CAPDU: 80 13 01 00 [14:34:48]Write to MH i2c: E2 08 00 DF 1D 80 13 01 00 00 00 00 00 79 [14:34:48]Write i2c OK [14:34:48]MH_I2C_Read... [14:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:48]Read from MH i2c: E2 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: E2 0E 00 [14:34:48]MH_I2C_Read... [14:34:48]Read from MH i2c: E2 0E 00 DF 1D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 AC [14:34:48]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:34:48]wFMCommunicate OK [14:34:48]SAM_PROTO_GetShiftState done [14:34:48]FM_GetShiftState done [14:34:48]opened in 1729730575 [14:34:48]opened+sec_in_day 1729816975 [14:34:48]quantity*price = 9500 [14:34:48]sum+1 = 9501 [14:34:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 85 24.10.2024 14:34 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60010 ФПД: 127966788276852 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143452&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60010&fm=127966788276852&tin=02508201610067®Number=0000000000091622&sum=9500 0 [14:34:49]StoreToDocumentArchive [14:34:49]shift 529 fd 60010 [14:34:49]save to /storage/0529/doc_00060010 [14:34:49]save last doc name /storage/0529/doc_00060010 to /storage/kkm_last_doc_name [14:34:49]save OK [14:34:49]Clear old archive folders... [14:34:49]ProcessDocumentItem done err = 0, tmpTLVsize=296 [14:34:49]tlvbuf is B6F23540 [14:34:49]SAM_PROTO_ClearQueue [14:34:49]wFMCommunicate request_size=4 [14:34:49]MH_SAM_APDU [14:34:49]CAPDU: 80 09 00 00 [14:34:49]Write to MH i2c: E2 08 00 EC 1D 80 09 00 00 00 00 00 00 7B [14:34:49]Write i2c OK [14:34:49]MH_I2C_Read... [14:34:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:49]Read from MH i2c: E2 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 03 00 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 03 00 EC 1D 00 90 00 7D [14:34:49]RAPDU: 90 00 [14:34:49]wFMCommunicate OK [14:34:49]SAM_PROTO_ClearQueue done [14:34:49]KKMCreateOFDPacket [14:34:49]OFDProtocolAddRootSTLVToBuf [14:34:49]FM_MakeSignedData [14:34:49]FM_MakeSignedData [14:34:49]SAM_PROTO_SignData [14:34:49]wFMCommunicate request_size=4 [14:34:49]MH_SAM_APDU [14:34:49]CAPDU: 80 0D 01 02 [14:34:49]Write to MH i2c: E2 08 00 ED 1D 80 0D 01 02 00 00 00 00 83 [14:34:49]Write i2c OK [14:34:49]MH_I2C_Read... [14:34:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:49]Read from MH i2c: E2 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 03 00 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 03 00 ED 1D 00 90 00 7E [14:34:49]RAPDU: 90 00 [14:34:49]wFMCommunicate OK [14:34:49]wFMCommunicate request_size=255 [14:34:49]MH_SAM_APDU [14:34:49]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 0C 5B 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [14:34:49]Write to MH i2c: E2 02 01 EE 1D 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 0C 5B 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 53 [14:34:50]Write i2c OK [14:34:50]MH_I2C_Read... [14:34:50]OFD Sender: No OFD packet to send [14:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:50]Read from MH i2c: E2 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 03 00 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 03 00 EE 1D 00 90 00 7F [14:34:50]RAPDU: 90 00 [14:34:50]wFMCommunicate OK [14:34:50]wFMCommunicate request_size=55 [14:34:50]MH_SAM_APDU [14:34:50]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6A EA 00 00 35 04 06 00 74 62 96 F5 52 74 [14:34:50]Write to MH i2c: E2 3A 00 EF 1D 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6A EA 00 00 35 04 06 00 74 62 96 F5 52 74 00 00 59 [14:34:50]Write i2c OK [14:34:50]MH_I2C_Read... [14:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:50]Read from MH i2c: E2 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 03 00 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 03 00 EF 1D 00 90 00 80 [14:34:50]RAPDU: 90 00 [14:34:50]wFMCommunicate OK [14:34:50]wFMCommunicate request_size=4 [14:34:50]MH_SAM_APDU [14:34:50]CAPDU: 80 0D 03 02 [14:34:50]Write to MH i2c: E2 08 00 F0 1D 80 0D 03 02 00 00 00 00 88 [14:34:50]Write i2c OK [14:34:50]MH_I2C_Read... [14:34:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:50]Read from MH i2c: E2 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 0B 00 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 0B 00 F0 1D 00 C6 8F 05 C8 81 F6 1E 61 90 00 A1 [14:34:50]RAPDU: C6 8F 05 C8 81 F6 1E 61 90 00 [14:34:50]wFMCommunicate OK [14:34:50]SAM_PROTO_SignData done [14:34:50]FM_MakeSignedData done [14:34:50]CreateOFDProtocolMessage [14:34:50]wFMCommunicate request_size=4 [14:34:50]MH_SAM_APDU [14:34:50]CAPDU: 80 11 00 00 [14:34:50]Write to MH i2c: E2 08 00 F1 1D 80 11 00 00 00 00 00 00 88 [14:34:50]Write i2c OK [14:34:50]MH_I2C_Read... [14:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:50]Read from MH i2c: E2 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 17 00 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: E2 17 00 F1 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 DF [14:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:34:50]wFMCommunicate OK [14:34:50]CreateOFDProtocolMessage done [14:34:50]OFDSenderStorePacket 60010 [14:34:50]StoreOFDPacket docnum=60010 [14:34:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 3C 01 00 00 77 31 34 01 6F 37 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 0C 5B 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6A EA 00 00 35 04 06 00 74 62 96 F5 52 74 C6 8F 05 C8 81 F6 1E 61 [14:34:50]CheckFolder [14:34:50]dirname=/storage/ofd_packets [14:34:50]CheckFolder done [14:34:50]ProducePacketName [14:34:50]name=ofd_packets/00060010 [14:34:50]NVStorageSaveData ofd_packets/00060010 [14:34:50]File name is /storage/ofd_packets/00060010 [14:34:50]Write 346 bytes [14:34:50]NVStorageSaveData done [14:34:50]OFDSenderStorePacket done [14:34:50]KKMCreateOFDPacket done [14:34:50]NVStorageSaveData kkm_last_timestamp [14:34:50]File name is /storage/kkm_last_timestamp [14:34:50]Write 4 bytes [14:34:50]NVStorageSaveData done [14:34:50]ExternCall_PrintAddStr [14:34:50]wPrintStart [14:34:50]Write to MH i2c: 01 00 00 F2 1D 0F [14:34:50]Write i2c OK [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: 01 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: 01 07 00 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: 01 07 00 F2 1D 00 00 00 00 00 FF 0F 24 [14:34:50]RasterBufferAndPrint [14:34:50]line Счет N : (3)199795 [14:34:50]line ИНН: 02508201610067 [14:34:50]line Контрольно-Кассовый Чек [14:34:50]line ПРОДАЖА [14:34:50]line Товар: 4631150682851 [14:34:50]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [14:34:50]line 1.000 * 95.00 [14:34:50]line = 95.00 [14:34:50]line НДС 12% НСП 1% [14:34:50]line > о реализуемом товаре [14:34:50]line ИТОГО: 95.00 [14:34:50]line НСП 1% : 0.84 [14:34:50]line НДС 12% : 10.09 [14:34:50]line Наличными: 0.00 [14:34:50]line Безнал.: 95.00 [14:34:50]line Место: АЗС № 87 "Партнер Нефть" [14:34:50]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [14:34:50]line СНО: Общий режим [14:34:50]line Чек 85 24.10.2024 14:34 [14:34:50]line Смена: 529 ФФД: 1.0 [14:34:50]line ЗНМ: 0300000084 [14:34:50]line РНМ: 0000000000091622 [14:34:50]line Версия ККМ: 001 [14:34:50]line Платежная система: Mbank [14:34:50]line ФМ: 0000000000874674 [14:34:50]line ФД: 60010 [14:34:50]line ФПД: 127966788276852 [14:34:50]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143452&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60010&fm=127966788276852&tin=02508201610067®Number=0000000000091622&sum=9500 [14:34:50]line 0 [14:34:50]OFD Sender: Processing packet 60010 [packets to send 30, broken 29] [14:34:50]ProducePacketName [14:34:50]name=ofd_packets/00060010 [14:34:50]OFD Sender: To server: pG, [14:34:50]CommunicateWithHost lk.salyk.kg:30040 [14:34:50]ConnectInit lk.salyk.kg [14:34:50]written 0, free lines is 4095 [14:34:50]Connected sock=10 [14:34:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 3C 01 00 00 77 31 34 01 6F 37 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 0C 5B 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6A EA 00 00 35 04 06 00 74 62 96 F5 52 74 C6 8F 05 C8 81 F6 1E 61 [14:34:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 FE 21 47 00 E6 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 34 36 37 34 10 04 04 00 6A EA 00 00 F4 03 04 00 FD 00 1A 67 B6 04 01 00 00 E3 39 C0 AF 6B DA 8C 8C [14:34:51]CommunicateWithHost err = 0 [14:34:51]CheckOFDResponse [14:34:51]1017 (14) - 77093643461234 [14:34:51]1041 (16) - 0000000000874674 [14:34:51]1040 (4) - 60010 [14:34:51]1012 (4) - 24.10.2024 08:10 [14:34:51]1206 (1) - 0 [14:34:51]OFD Sender: Remove packet 60010 [14:34:51]ProducePacketName [14:34:51]name=ofd_packets/00060010 [14:34:51]NVStorageDeleteData [14:34:51]Write to MH i2c: 01 00 00 1C 1E 3A [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: 01 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: 01 07 00 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: 01 07 00 1C 1E 00 00 00 00 00 D9 0C 26 [14:34:51]RasterBufferAndPrint [14:34:51]line [14:34:51]line [14:34:51]line [14:34:51]line [14:34:51]line [14:34:51]written 0, free lines is 3296 [14:34:51]MH_Cut [14:34:51]Write to MH i2c: D1 01 00 23 1E 01 13 [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: D1 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: D1 01 00 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: D1 01 00 23 1E 00 12 [14:34:51]Write to MH i2c: 01 00 00 24 1E 42 [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:51]OFD Sender: No OFD packet to send [14:34:52]*** Cut start [14:34:52]*** Partial cut [14:34:52]*** CUTSNS_PIN = 1 [14:34:52]*** CUTSNS_PIN = 0 [14:34:52]*** Brake cut motor [14:34:52]Read from MH i2c: 01 [14:34:52]MH_I2C_Read... [14:34:52]*** Stop cut motor [14:34:52]*** Cut end [14:34:52]Read from MH i2c: 01 07 00 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: 01 07 00 24 1E 00 00 00 00 00 FF 0F 57 [14:34:52]process_action close_receipt done [14:34:52]requested_data is exist [14:34:52]produce_requested_data [14:34:52]requested_item fm.sn is exist - process it [14:34:52]wFMCommunicate request_size=4 [14:34:52]MH_SAM_APDU [14:34:52]CAPDU: 80 11 00 00 [14:34:52]Write to MH i2c: E2 08 00 25 1E 80 11 00 00 00 00 00 00 BD [14:34:52]Write i2c OK [14:34:52]MH_I2C_Read... [14:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:52]Read from MH i2c: E2 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: E2 17 00 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: E2 17 00 25 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 14 [14:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:34:52]wFMCommunicate OK [14:34:52]requested_item fd.num is exist - process it [14:34:52]SAM_PROTO_GetFieldsCounters [14:34:52]wFMCommunicate request_size=4 [14:34:52]MH_SAM_APDU [14:34:52]CAPDU: 80 13 00 00 [14:34:52]Write to MH i2c: E2 08 00 26 1E 80 13 00 00 00 00 00 00 C0 [14:34:52]Write i2c OK [14:34:52]MH_I2C_Read... [14:34:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:52]Read from MH i2c: E2 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: E2 62 00 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: E2 62 00 26 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6A EA 00 00 0E 04 04 00 11 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 46 [14:34: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6A EA 00 00 0E 04 04 00 11 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 [14:34:52]wFMCommunicate OK [14:34:52]SAM_PROTO_GetFieldsCounters done [14:34:52]requested_item shift.num is exist - process it [14:34:52]requested_item shift.opened is exist - process it [14:34:52]req_shift_opened [14:34:52]FM_GetShiftState [14:34:52]SAM_PROTO_GetShiftState [14:34:52]wFMCommunicate request_size=4 [14:34:52]MH_SAM_APDU [14:34:52]CAPDU: 80 13 01 00 [14:34:52]Write to MH i2c: E2 08 00 27 1E 80 13 01 00 00 00 00 00 C2 [14:34:52]Write i2c OK [14:34:52]MH_I2C_Read... [14:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:52]Read from MH i2c: E2 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: E2 0E 00 [14:34:52]MH_I2C_Read... [14:34:52]Read from MH i2c: E2 0E 00 27 1E 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 F5 [14:34:52]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:34:52]wFMCommunicate OK [14:34:52]SAM_PROTO_GetShiftState done [14:34:52]FM_GetShiftState done [14:34:52]req_shift_opened done [14:34:52]requested_item shift.open_date is exist - process it [14:34:52]req_shift_open_date [14:34:52]req_shift_open_date done [14:34:52]produce_requested_data done [14:34:52]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60010,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [14:34:52]process_action_free close_receipt [14:34:52]json_value_free [14:34:52]json_value_free done [14:34:52]process_json_proto returns [14:34:52]Send response to host [14:34:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60010,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [14:34:52]free response buf [14:34:52]execute_script done [14:34:52]execute_script returns [14:34:52]free content buf [14:34:52]Sock 9.Close socket [14:34:52]Sock 9.Thread stoped [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:06]accept exits with 7 [14:47:06]New connection [14:47:06]New thread 3067252068 created [14:47:06]Thread 3067108708 joined [14:47:06]Waiting for new connection... [14:47:06] Sock 7.Parse request [14:47:06]Sock 7.Check first char [14:47:06]Sock 7.First char is OK [14:47:06]request: POST /json_proto HTTP/1.0 [14:47:06]Method: POST [14:47:06]URL: /json_proto [14:47:06]Method is POST - this is cgi request [14:47:06]url: /json_proto [14:47:06]query_string will be loaded in cgi processing [14:47:06]execute_cgi json_proto POST (null) [14:47:06]execute_cgi path=json_proto method=POST [14:47:06]POST find Content-Length [14:47:06]Host: 172.17.42.196:8080 [14:47:06]Content-Length: 633 [14:47:06]Content-Type: application/json [14:47:06] [14:47:06]POST finish read [14:47:06]Found Content-Length = 633 [14:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199796", "tax_sys" : 0, "items" : [ { "code": "48746649", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims Winter F", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:06]execute_script... [14:47:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199796", "tax_sys" : 0, "items" : [ { "code": "48746649", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims Winter F", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:06]POST & json_proto [14:47:06]process_json_proto [14:47:06]json parsed OK: [14:47:06]protocol is kg_v1.0 [14:47:06]action value=close_receipt [14:47:06]process_action close_receipt [14:47:06]cmd_close_receipt [14:47:06]MH_GetDate [14:47:06]Write to MH i2c: F0 00 00 28 1E 35 [14:47:06]Write i2c OK [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: F0 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: F0 09 00 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: F0 09 00 28 1E 00 EF 5D 1A 67 FF C4 6B 64 9D [14:47:06]GetLastDocTimeStamp 1729780492 [14:47:06]current date 1729781231 [14:47:06]FM_GetShiftState [14:47:06]SAM_PROTO_GetShiftState [14:47:06]wFMCommunicate request_size=4 [14:47:06]MH_SAM_APDU [14:47:06]CAPDU: 80 13 01 00 [14:47:06]Write to MH i2c: E2 08 00 29 1E 80 13 01 00 00 00 00 00 C4 [14:47:06]Write i2c OK [14:47:06]MH_I2C_Read... [14:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:06]Read from MH i2c: E2 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: E2 0E 00 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: E2 0E 00 29 1E 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 F7 [14:47:06]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:47:06]wFMCommunicate OK [14:47:06]SAM_PROTO_GetShiftState done [14:47:06]FM_GetShiftState done [14:47:06]opened in 1729730575 [14:47:06]opened+sec_in_day 1729816975 [14:47:06]quantity*price = 14700 [14:47:06]sum+1 = 14701 [14:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 86 24.10.2024 14:47 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60011 ФПД: 194964390966563 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144711&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60011&fm=194964390966563&tin=02508201610067®Number=0000000000091622&sum=14700 0 [14:47:07]StoreToDocumentArchive [14:47:07]shift 529 fd 60011 [14:47:07]save to /storage/0529/doc_00060011 [14:47:07]save last doc name /storage/0529/doc_00060011 to /storage/kkm_last_doc_name [14:47:08]save OK [14:47:08]Clear old archive folders... [14:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=285 [14:47:08]tlvbuf is 00DD11C0 [14:47:08]SAM_PROTO_ClearQueue [14:47:08]wFMCommunicate request_size=4 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 09 00 00 [14:47:08]Write to MH i2c: E2 08 00 36 1E 80 09 00 00 00 00 00 00 C6 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 36 1E 00 90 00 C8 [14:47:08]RAPDU: 90 00 [14:47:08]wFMCommunicate OK [14:47:08]SAM_PROTO_ClearQueue done [14:47:08]KKMCreateOFDPacket [14:47:08]OFDProtocolAddRootSTLVToBuf [14:47:08]FM_MakeSignedData [14:47:08]FM_MakeSignedData [14:47:08]SAM_PROTO_SignData [14:47:08]wFMCommunicate request_size=4 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 0D 01 02 [14:47:08]Write to MH i2c: E2 08 00 37 1E 80 0D 01 02 00 00 00 00 CE [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 37 1E 00 90 00 C9 [14:47:08]RAPDU: 90 00 [14:47:08]wFMCommunicate OK [14:47:08]wFMCommunicate request_size=255 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 EF 5D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 [14:47:08]Write to MH i2c: E2 02 01 38 1E 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 EF 5D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 00 00 08 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 38 1E 00 90 00 CA [14:47:08]RAPDU: 90 00 [14:47:08]wFMCommunicate OK [14:47:08]wFMCommunicate request_size=44 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 0D 02 02 27 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6B EA 00 00 35 04 06 00 B1 51 AF 44 75 23 [14:47:08]Write to MH i2c: E2 2F 00 39 1E 80 0D 02 02 27 00 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6B EA 00 00 35 04 06 00 B1 51 AF 44 75 23 00 00 D3 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 39 1E 00 90 00 CB [14:47:08]RAPDU: 90 00 [14:47:08]wFMCommunicate OK [14:47:08]wFMCommunicate request_size=4 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 0D 03 02 [14:47:08]Write to MH i2c: E2 08 00 3A 1E 80 0D 03 02 00 00 00 00 D3 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 0B 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 0B 00 3A 1E 00 6E 4C 59 B4 0E 9D 2B 7C 90 00 ED [14:47:08]RAPDU: 6E 4C 59 B4 0E 9D 2B 7C 90 00 [14:47:08]wFMCommunicate OK [14:47:08]SAM_PROTO_SignData done [14:47:08]FM_MakeSignedData done [14:47:08]CreateOFDProtocolMessage [14:47:08]wFMCommunicate request_size=4 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 11 00 00 [14:47:08]Write to MH i2c: E2 08 00 3B 1E 80 11 00 00 00 00 00 00 D3 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 17 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 17 00 3B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 2A [14:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:47:08]wFMCommunicate OK [14:47:08]CreateOFDProtocolMessage done [14:47:08]OFDSenderStorePacket 60011 [14:47:08]StoreOFDPacket docnum=60011 [14:47:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 31 01 00 00 63 2B 29 01 89 CA 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 EF 5D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6B EA 00 00 35 04 06 00 B1 51 AF 44 75 23 6E 4C 59 B4 0E 9D 2B 7C [14:47:08]CheckFolder [14:47:08]dirname=/storage/ofd_packets [14:47:08]CheckFolder done [14:47:08]ProducePacketName [14:47:08]name=ofd_packets/00060011 [14:47:08]NVStorageSaveData ofd_packets/00060011 [14:47:08]File name is /storage/ofd_packets/00060011 [14:47:08]Write 335 bytes [14:47:08]NVStorageSaveData done [14:47:08]OFDSenderStorePacket done [14:47:08]KKMCreateOFDPacket done [14:47:08]NVStorageSaveData kkm_last_timestamp [14:47:08]File name is /storage/kkm_last_timestamp [14:47:08]Write 4 bytes [14:47:08]NVStorageSaveData done [14:47:08]ExternCall_PrintAddStr [14:47:08]wPrintStart [14:47:08]Write to MH i2c: 01 00 00 3C 1E 5A [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: 01 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: 01 07 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: 01 07 00 3C 1E 00 00 00 00 00 FF 0F 6F [14:47:08]RasterBufferAndPrint [14:47:08]line Счет N : (3)199796 [14:47:08]line ИНН: 02508201610067 [14:47:08]line Контрольно-Кассовый Чек [14:47:08]line ПРОДАЖА [14:47:08]line Товар: 48746649 [14:47:08]line Сигареты Parliament Super Slims Winter F [14:47:08]line 1.000 * 147.00 [14:47:08]line = 147.00 [14:47:08]line НДС 12% НСП 1% [14:47:08]line > о реализуемом товаре [14:47:08]line ИТОГО: 147.00 [14:47:08]line НСП 1% : 1.30 [14:47:08]line НДС 12% : 15.61 [14:47:08]line Наличными: 147.00 [14:47:08]line Безнал.: 0.00 [14:47:08]line Место: АЗС № 87 "Партнер Нефть" [14:47:08]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [14:47:08]line СНО: Общий режим [14:47:08]line Чек 86 24.10.2024 14:47 [14:47:08]line Смена: 529 ФФД: 1.0 [14:47:08]line ЗНМ: 0300000084 [14:47:08]line РНМ: 0000000000091622 [14:47:08]line Версия ККМ: 001 [14:47:08]line ФМ: 0000000000874674 [14:47:08]line ФД: 60011 [14:47:08]line ФПД: 194964390966563 [14:47:08]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144711&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60011&fm=194964390966563&tin=02508201610067®Number=0000000000091622&sum=14700 [14:47:08]line 0 [14:47:08]OFD Sender: Processing packet 60011 [packets to send 30, broken 29] [14:47:08]ProducePacketName [14:47:08]name=ofd_packets/00060011 [14:47:08]OFD Sender: To server: pG, [14:47:08]CommunicateWithHost lk.salyk.kg:30040 [14:47:08]ConnectInit lk.salyk.kg [14:47:08]written 0, free lines is 4095 [14:47:08]Connected sock=10 [14:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 31 01 00 00 63 2B 29 01 89 CA 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 EF 5D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6B EA 00 00 35 04 06 00 B1 51 AF 44 75 23 6E 4C 59 B4 0E 9D 2B 7C [14:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 22 BC 47 00 D2 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6B EA 00 00 F4 03 04 00 DF 03 1A 67 B6 04 01 00 00 BD D7 12 92 D4 88 05 EE [14:47:09]CommunicateWithHost err = 0 [14:47:09]CheckOFDResponse [14:47:09]1017 (14) - 77093643461234 [14:47:09]1041 (16) - 0000000000874674 [14:47:09]1040 (4) - 60011 [14:47:09]1012 (4) - 24.10.2024 08:22 [14:47:09]1206 (1) - 0 [14:47:09]OFD Sender: Remove packet 60011 [14:47:09]ProducePacketName [14:47:09]name=ofd_packets/00060011 [14:47:09]NVStorageDeleteData [14:47:09]Write to MH i2c: 01 00 00 65 1E 83 [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: 01 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: 01 07 00 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: 01 07 00 65 1E 00 00 00 00 00 DD 0C 73 [14:47:09]RasterBufferAndPrint [14:47:09]line [14:47:09]line [14:47:09]line [14:47:09]line [14:47:09]line [14:47:09]written 0, free lines is 3299 [14:47:09]MH_Cut [14:47:09]Write to MH i2c: D1 01 00 6C 1E 01 5C [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: D1 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: D1 01 00 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: D1 01 00 6C 1E 00 5B [14:47:09]Write to MH i2c: 01 00 00 6D 1E 8B [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]OFD Sender: No OFD packet to send [14:47:10]*** Cut start [14:47:10]*** Partial cut [14:47:10]*** CUTSNS_PIN = 1 [14:47:10]*** CUTSNS_PIN = 0 [14:47:10]*** Brake cut motor [14:47:10]Read from MH i2c: 01 [14:47:10]MH_I2C_Read... [14:47:10]*** Stop cut motor [14:47:10]*** Cut end [14:47:10]Read from MH i2c: 01 07 00 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: 01 07 00 6D 1E 00 00 00 00 00 FF 0F A0 [14:47:10]process_action close_receipt done [14:47:10]requested_data is exist [14:47:10]produce_requested_data [14:47:10]requested_item fm.sn is exist - process it [14:47:10]wFMCommunicate request_size=4 [14:47:10]MH_SAM_APDU [14:47:10]CAPDU: 80 11 00 00 [14:47:10]Write to MH i2c: E2 08 00 6E 1E 80 11 00 00 00 00 00 00 06 [14:47:10]Write i2c OK [14:47:10]MH_I2C_Read... [14:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:10]Read from MH i2c: E2 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: E2 17 00 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: E2 17 00 6E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 5D [14:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:47:10]wFMCommunicate OK [14:47:10]requested_item fd.num is exist - process it [14:47:10]SAM_PROTO_GetFieldsCounters [14:47:10]wFMCommunicate request_size=4 [14:47:10]MH_SAM_APDU [14:47:10]CAPDU: 80 13 00 00 [14:47:10]Write to MH i2c: E2 08 00 6F 1E 80 13 00 00 00 00 00 00 09 [14:47:10]Write i2c OK [14:47:10]MH_I2C_Read... [14:47:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:10]Read from MH i2c: E2 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: E2 62 00 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: E2 62 00 6F 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6B EA 00 00 0E 04 04 00 11 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 93 [14:47: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6B EA 00 00 0E 04 04 00 11 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 [14:47:10]wFMCommunicate OK [14:47:10]SAM_PROTO_GetFieldsCounters done [14:47:10]requested_item shift.num is exist - process it [14:47:10]requested_item shift.opened is exist - process it [14:47:10]req_shift_opened [14:47:10]FM_GetShiftState [14:47:10]SAM_PROTO_GetShiftState [14:47:10]wFMCommunicate request_size=4 [14:47:10]MH_SAM_APDU [14:47:10]CAPDU: 80 13 01 00 [14:47:10]Write to MH i2c: E2 08 00 70 1E 80 13 01 00 00 00 00 00 0B [14:47:10]Write i2c OK [14:47:10]MH_I2C_Read... [14:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:11]Read from MH i2c: E2 [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: E2 0E 00 [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: E2 0E 00 70 1E 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 3E [14:47:11]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:47:11]wFMCommunicate OK [14:47:11]SAM_PROTO_GetShiftState done [14:47:11]FM_GetShiftState done [14:47:11]req_shift_opened done [14:47:11]requested_item shift.open_date is exist - process it [14:47:11]req_shift_open_date [14:47:11]req_shift_open_date done [14:47:11]produce_requested_data done [14:47:11]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60011,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [14:47:11]process_action_free close_receipt [14:47:11]json_value_free [14:47:11]json_value_free done [14:47:11]process_json_proto returns [14:47:11]Send response to host [14:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60011,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [14:47:11]free response buf [14:47:11]execute_script done [14:47:11]execute_script returns [14:47:11]free content buf [14:47:11]Sock 7.Close socket [14:47:11]Sock 7.Thread stoped [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:25]accept exits with 9 [14:47:25]New connection [14:47:25]New thread 3067108708 created [14:47:25]Thread 3067252068 joined [14:47:25]Waiting for new connection... [14:47:25] Sock 9.Parse request [14:47:25]Sock 9.Check first char [14:47:25]Sock 9.First char is OK [14:47:25]request: POST /json_proto HTTP/1.0 [14:47:25]Method: POST [14:47:25]URL: /json_proto [14:47:25]Method is POST - this is cgi request [14:47:25]url: /json_proto [14:47:25]query_string will be loaded in cgi processing [14:47:25]execute_cgi json_proto POST (null) [14:47:25]execute_cgi path=json_proto method=POST [14:47:25]POST find Content-Length [14:47:25]Host: 172.17.42.196:8080 [14:47:25]Content-Length: 672 [14:47:25]Content-Type: application/json [14:47:25] [14:47:25]POST finish read [14:47:25]Found Content-Length = 672 [14:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199797", "tax_sys" : 0, "items" : [ { "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:25]execute_script... [14:47:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199797", "tax_sys" : 0, "items" : [ { "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:25]POST & json_proto [14:47:25]process_json_proto [14:47:25]json parsed OK: [14:47:25]protocol is kg_v1.0 [14:47:25]action value=close_receipt [14:47:25]process_action close_receipt [14:47:25]cmd_close_receipt [14:47:25]MH_GetDate [14:47:25]Write to MH i2c: F0 00 00 71 1E 7E [14:47:25]Write i2c OK [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: F0 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: F0 09 00 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: F0 09 00 71 1E 00 01 5E 1A 67 FF C4 6B 64 F9 [14:47:25]GetLastDocTimeStamp 1729781231 [14:47:25]current date 1729781249 [14:47:25]FM_GetShiftState [14:47:25]SAM_PROTO_GetShiftState [14:47:25]wFMCommunicate request_size=4 [14:47:25]MH_SAM_APDU [14:47:25]CAPDU: 80 13 01 00 [14:47:25]Write to MH i2c: E2 08 00 72 1E 80 13 01 00 00 00 00 00 0D [14:47:25]Write i2c OK [14:47:25]MH_I2C_Read... [14:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:25]Read from MH i2c: E2 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 0E 00 [14:47:25]MH_I2C_Read... [14:47:25]Read from MH i2c: E2 0E 00 72 1E 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 40 [14:47:25]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:47:25]wFMCommunicate OK [14:47:25]SAM_PROTO_GetShiftState done [14:47:25]FM_GetShiftState done [14:47:25]opened in 1729730575 [14:47:25]opened+sec_in_day 1729816975 [14:47:25]quantity*price = 19000 [14:47:25]sum+1 = 19001 [14:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 87 24.10.2024 14:47 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60012 ФПД: 21056509363446 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144729&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60012&fm=21056509363446&tin=02508201610067®Number=0000000000091622&sum=19000 0 [14:47:26]StoreToDocumentArchive [14:47:26]shift 529 fd 60012 [14:47:26]save to /storage/0529/doc_00060012 [14:47:26]save last doc name /storage/0529/doc_00060012 to /storage/kkm_last_doc_name [14:47:26]save OK [14:47:26]Clear old archive folders... [14:47:26]ProcessDocumentItem done err = 0, tmpTLVsize=281 [14:47:26]tlvbuf is B6F23760 [14:47:26]SAM_PROTO_ClearQueue [14:47:26]wFMCommunicate request_size=4 [14:47:26]MH_SAM_APDU [14:47:26]CAPDU: 80 09 00 00 [14:47:26]Write to MH i2c: E2 08 00 7F 1E 80 09 00 00 00 00 00 00 0F [14:47:26]Write i2c OK [14:47:26]MH_I2C_Read... [14:47:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:26]Read from MH i2c: E2 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: E2 03 00 [14:47:26]MH_I2C_Read... [14:47:26]Read from MH i2c: E2 03 00 7F 1E 00 90 00 11 [14:47:26]RAPDU: 90 00 [14:47:26]wFMCommunicate OK [14:47:26]SAM_PROTO_ClearQueue done [14:47:26]KKMCreateOFDPacket [14:47:26]OFDProtocolAddRootSTLVToBuf [14:47:26]FM_MakeSignedData [14:47:26]FM_MakeSignedData [14:47:26]SAM_PROTO_SignData [14:47:26]wFMCommunicate request_size=4 [14:47:26]MH_SAM_APDU [14:47:26]CAPDU: 80 0D 01 02 [14:47:26]Write to MH i2c: E2 08 00 80 1E 80 0D 01 02 00 00 00 00 17 [14:47:26]Write i2c OK [14:47:26]MH_I2C_Read... [14:47:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:27]Read from MH i2c: E2 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: E2 03 00 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: E2 03 00 80 1E 00 90 00 12 [14:47:27]RAPDU: 90 00 [14:47:27]wFMCommunicate OK [14:47:27]wFMCommunicate request_size=255 [14:47:27]MH_SAM_APDU [14:47:27]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 01 5E 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 [14:47:27]Write to MH i2c: E2 02 01 81 1E 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 01 5E 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 00 11 [14:47:27]Write i2c OK [14:47:27]MH_I2C_Read... [14:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:27]Read from MH i2c: E2 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: E2 03 00 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: E2 03 00 81 1E 00 90 00 13 [14:47:27]RAPDU: 90 00 [14:47:27]wFMCommunicate OK [14:47:27]wFMCommunicate request_size=40 [14:47:27]MH_SAM_APDU [14:47:27]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6C EA 00 00 35 04 06 00 13 26 99 C2 C4 F6 [14:47:27]Write to MH i2c: E2 2B 00 82 1E 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6C EA 00 00 35 04 06 00 13 26 99 C2 C4 F6 00 00 7F [14:47:27]Write i2c OK [14:47:27]MH_I2C_Read... [14:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:27]Read from MH i2c: E2 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: E2 03 00 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: E2 03 00 82 1E 00 90 00 14 [14:47:27]RAPDU: 90 00 [14:47:27]wFMCommunicate OK [14:47:27]wFMCommunicate request_size=4 [14:47:27]MH_SAM_APDU [14:47:27]CAPDU: 80 0D 03 02 [14:47:27]Write to MH i2c: E2 08 00 83 1E 80 0D 03 02 00 00 00 00 1C [14:47:27]Write i2c OK [14:47:27]MH_I2C_Read... [14:47:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:27]Read from MH i2c: E2 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: E2 0B 00 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: E2 0B 00 83 1E 00 A5 2A DF 78 A6 04 83 6C 90 00 DC [14:47:27]RAPDU: A5 2A DF 78 A6 04 83 6C 90 00 [14:47:27]wFMCommunicate OK [14:47:27]SAM_PROTO_SignData done [14:47:27]FM_MakeSignedData done [14:47:27]CreateOFDProtocolMessage [14:47:27]wFMCommunicate request_size=4 [14:47:27]MH_SAM_APDU [14:47:27]CAPDU: 80 11 00 00 [14:47:27]Write to MH i2c: E2 08 00 84 1E 80 11 00 00 00 00 00 00 1C [14:47:27]Write i2c OK [14:47:27]MH_I2C_Read... [14:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:27]Read from MH i2c: E2 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: E2 17 00 [14:47:27]MH_I2C_Read... [14:47:27]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 34 36 37 34 90 00 73 [14:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:47:27]wFMCommunicate OK [14:47:27]CreateOFDProtocolMessage done [14:47:27]OFDSenderStorePacket 60012 [14:47:27]StoreOFDPacket docnum=60012 [14:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2D 01 00 00 DC 6C 25 01 4A 6D 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 01 5E 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6C EA 00 00 35 04 06 00 13 26 99 C2 C4 F6 A5 2A DF 78 A6 04 83 6C [14:47:27]CheckFolder [14:47:27]dirname=/storage/ofd_packets [14:47:27]CheckFolder done [14:47:27]ProducePacketName [14:47:27]name=ofd_packets/00060012 [14:47:27]NVStorageSaveData ofd_packets/00060012 [14:47:27]File name is /storage/ofd_packets/00060012 [14:47:27]Write 331 bytes [14:47:27]NVStorageSaveData done [14:47:27]OFDSenderStorePacket done [14:47:27]KKMCreateOFDPacket done [14:47:27]NVStorageSaveData kkm_last_timestamp [14:47:27]File name is /storage/kkm_last_timestamp [14:47:27]Write 4 bytes [14:47:27]NVStorageSaveData done [14:47:27]ExternCall_PrintAddStr [14:47:27]wPrintStart [14:47:27]Write to MH i2c: 01 00 00 85 1E A3 [14:47:27]Write i2c OK [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: 01 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: 01 07 00 [14:47:27]MH_I2C_Read... [14:47:27]Read from MH i2c: 01 07 00 85 1E 00 00 00 00 00 FF 0F B8 [14:47:27]RasterBufferAndPrint [14:47:27]line Счет N : (3)199797 [14:47:27]line ИНН: 02508201610067 [14:47:27]line Контрольно-Кассовый Чек [14:47:27]line ПРОДАЖА [14:47:27]line Товар: 4660013331421 [14:47:27]line Эскимо Ленинградское [14:47:27]line 2.000 * 95.00 [14:47:27]line = 190.00 [14:47:27]line НДС 12% НСП 1% [14:47:27]line > о реализуемом товаре [14:47:27]line ИТОГО: 190.00 [14:47:27]line НСП 1% : 1.68 [14:47:27]line НДС 12% : 20.18 [14:47:27]line Наличными: 190.00 [14:47:27]line Безнал.: 0.00 [14:47:27]line Место: АЗС № 87 "Партнер Нефть" [14:47:27]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [14:47:27]line СНО: Общий режим [14:47:27]line Чек 87 24.10.2024 14:47 [14:47:27]line Смена: 529 ФФД: 1.0 [14:47:27]line ЗНМ: 0300000084 [14:47:27]line РНМ: 0000000000091622 [14:47:27]line Версия ККМ: 001 [14:47:27]line ФМ: 0000000000874674 [14:47:27]line ФД: 60012 [14:47:27]line ФПД: 21056509363446 [14:47:27]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144729&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60012&fm=21056509363446&tin=02508201610067®Number=0000000000091622&sum=19000 [14:47:27]line 0 [14:47:27]OFD Sender: Processing packet 60012 [packets to send 30, broken 29] [14:47:27]ProducePacketName [14:47:27]name=ofd_packets/00060012 [14:47:27]OFD Sender: To server: pG, [14:47:27]CommunicateWithHost lk.salyk.kg:30040 [14:47:27]ConnectInit lk.salyk.kg [14:47:27]written 0, free lines is 4095 [14:47:27]Connected sock=10 [14:47:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2D 01 00 00 DC 6C 25 01 4A 6D 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 01 5E 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6C EA 00 00 35 04 06 00 13 26 99 C2 C4 F6 A5 2A DF 78 A6 04 83 6C [14:47:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 80 A0 47 00 AA 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 34 36 37 34 10 04 04 00 6C EA 00 00 F4 03 04 00 F2 03 1A 67 B6 04 01 00 00 33 C7 FD B9 51 FC AE 8F [14:47:28]CommunicateWithHost err = 0 [14:47:28]CheckOFDResponse [14:47:28]1017 (14) - 77093643461234 [14:47:28]1041 (16) - 0000000000874674 [14:47:28]1040 (4) - 60012 [14:47:28]1012 (4) - 24.10.2024 08:23 [14:47:28]1206 (1) - 0 [14:47:28]OFD Sender: Remove packet 60012 [14:47:28]ProducePacketName [14:47:28]name=ofd_packets/00060012 [14:47:28]NVStorageDeleteData [14:47:28]Write to MH i2c: 01 00 00 AD 1E CB [14:47:28]Write i2c OK [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: 01 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: 01 07 00 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: 01 07 00 AD 1E 00 00 00 00 00 08 0D E7 [14:47:28]RasterBufferAndPrint [14:47:28]line [14:47:28]line [14:47:28]line [14:47:28]line [14:47:28]line [14:47:28]written 0, free lines is 3342 [14:47:28]MH_Cut [14:47:28]Write to MH i2c: D1 01 00 B4 1E 01 A4 [14:47:28]Write i2c OK [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: D1 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: D1 01 00 [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: D1 01 00 B4 1E 00 A3 [14:47:28]Write to MH i2c: 01 00 00 B5 1E D3 [14:47:28]Write i2c OK [14:47:28]MH_I2C_Read... [14:47:28]OFD Sender: No OFD packet to send [14:47:28]*** Cut start [14:47:28]*** Partial cut [14:47:28]*** CUTSNS_PIN = 1 [14:47:29]*** CUTSNS_PIN = 0 [14:47:29]*** Brake cut motor [14:47:29]Read from MH i2c: 01 [14:47:29]MH_I2C_Read... [14:47:29]*** Stop cut motor [14:47:29]*** Cut end [14:47:29]Read from MH i2c: 01 07 00 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: 01 07 00 B5 1E 00 00 00 00 00 FF 0F E8 [14:47:29]process_action close_receipt done [14:47:29]requested_data is exist [14:47:29]produce_requested_data [14:47:29]requested_item fm.sn is exist - process it [14:47:29]wFMCommunicate request_size=4 [14:47:29]MH_SAM_APDU [14:47:29]CAPDU: 80 11 00 00 [14:47:29]Write to MH i2c: E2 08 00 B6 1E 80 11 00 00 00 00 00 00 4E [14:47:29]Write i2c OK [14:47:29]MH_I2C_Read... [14:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:29]Read from MH i2c: E2 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 17 00 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 17 00 B6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 A5 [14:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [14:47:29]wFMCommunicate OK [14:47:29]requested_item fd.num is exist - process it [14:47:29]SAM_PROTO_GetFieldsCounters [14:47:29]wFMCommunicate request_size=4 [14:47:29]MH_SAM_APDU [14:47:29]CAPDU: 80 13 00 00 [14:47:29]Write to MH i2c: E2 08 00 B7 1E 80 13 00 00 00 00 00 00 51 [14:47:29]Write i2c OK [14:47:29]MH_I2C_Read... [14:47:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:29]Read from MH i2c: E2 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 62 00 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 62 00 B7 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6C EA 00 00 0E 04 04 00 11 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 DF [14:47: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6C EA 00 00 0E 04 04 00 11 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 [14:47:29]wFMCommunicate OK [14:47:29]SAM_PROTO_GetFieldsCounters done [14:47:29]requested_item shift.num is exist - process it [14:47:29]requested_item shift.opened is exist - process it [14:47:29]req_shift_opened [14:47:29]FM_GetShiftState [14:47:29]SAM_PROTO_GetShiftState [14:47:29]wFMCommunicate request_size=4 [14:47:29]MH_SAM_APDU [14:47:29]CAPDU: 80 13 01 00 [14:47:29]Write to MH i2c: E2 08 00 B8 1E 80 13 01 00 00 00 00 00 53 [14:47:29]Write i2c OK [14:47:29]MH_I2C_Read... [14:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:29]Read from MH i2c: E2 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 0E 00 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 0E 00 B8 1E 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 86 [14:47:29]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [14:47:29]wFMCommunicate OK [14:47:29]SAM_PROTO_GetShiftState done [14:47:29]FM_GetShiftState done [14:47:29]req_shift_opened done [14:47:29]requested_item shift.open_date is exist - process it [14:47:29]req_shift_open_date [14:47:29]req_shift_open_date done [14:47:29]produce_requested_data done [14:47:29]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60012,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [14:47:29]process_action_free close_receipt [14:47:29]json_value_free [14:47:29]json_value_free done [14:47:29]process_json_proto returns [14:47:29]Send response to host [14:47:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60012,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [14:47:29]free response buf [14:47:29]execute_script done [14:47:29]execute_script returns [14:47:29]free content buf [14:47:29]Sock 9.Close socket [14:47:29]Sock 9.Thread stoped [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:48]accept exits with 7 [15:09:48]New connection [15:09:48]New thread 3067252068 created [15:09:48]Thread 3067108708 joined [15:09:48]Waiting for new connection... [15:09:48] Sock 7.Parse request [15:09:48]Sock 7.Check first char [15:09:48]Sock 7.First char is OK [15:09:48]request: POST /json_proto HTTP/1.0 [15:09:48]Method: POST [15:09:48]URL: /json_proto [15:09:48]Method is POST - this is cgi request [15:09:48]url: /json_proto [15:09:48]query_string will be loaded in cgi processing [15:09:48]execute_cgi json_proto POST (null) [15:09:48]execute_cgi path=json_proto method=POST [15:09:48]POST find Content-Length [15:09:48]Host: 172.17.42.196:8080 [15:09:48]Content-Length: 623 [15:09:48]Content-Type: application/json [15:09:48] [15:09:48]POST finish read [15:09:48]Found Content-Length = 623 [15:09:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199798", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:48]execute_script... [15:09:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199798", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:48]POST & json_proto [15:09:48]process_json_proto [15:09:48]json parsed OK: [15:09:48]protocol is kg_v1.0 [15:09:48]action value=close_receipt [15:09:48]process_action close_receipt [15:09:48]cmd_close_receipt [15:09:48]MH_GetDate [15:09:48]Write to MH i2c: F0 00 00 B9 1E C6 [15:09:48]Write i2c OK [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: F0 [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: F0 09 00 [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: F0 09 00 B9 1E 00 40 63 1A 67 FF C4 6B 64 85 [15:09:48]GetLastDocTimeStamp 1729781249 [15:09:48]current date 1729782592 [15:09:48]FM_GetShiftState [15:09:48]SAM_PROTO_GetShiftState [15:09:48]wFMCommunicate request_size=4 [15:09:48]MH_SAM_APDU [15:09:48]CAPDU: 80 13 01 00 [15:09:48]Write to MH i2c: E2 08 00 BA 1E 80 13 01 00 00 00 00 00 55 [15:09:48]Write i2c OK [15:09:48]MH_I2C_Read... [15:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:48]Read from MH i2c: E2 [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: E2 0E 00 [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: E2 0E 00 BA 1E 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 88 [15:09:48]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [15:09:48]wFMCommunicate OK [15:09:48]SAM_PROTO_GetShiftState done [15:09:48]FM_GetShiftState done [15:09:48]opened in 1729730575 [15:09:48]opened+sec_in_day 1729816975 [15:09:48]quantity*price = 14400 [15:09:48]sum+1 = 14401 [15:09:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 88 24.10.2024 15:09 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60013 ФПД: 215359801529184 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T150952&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60013&fm=215359801529184&tin=02508201610067®Number=0000000000091622&sum=14400 0 [15:09:49]StoreToDocumentArchive [15:09:49]shift 529 fd 60013 [15:09:49]save to /storage/0529/doc_00060013 [15:09:49]save last doc name /storage/0529/doc_00060013 to /storage/kkm_last_doc_name [15:09:49]OFD Sender: No OFD packet to send [15:09:49]save OK [15:09:49]Clear old archive folders... [15:09:49]ProcessDocumentItem done err = 0, tmpTLVsize=275 [15:09:49]tlvbuf is B6F9E770 [15:09:49]SAM_PROTO_ClearQueue [15:09:49]wFMCommunicate request_size=4 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 09 00 00 [15:09:49]Write to MH i2c: E2 08 00 C7 1E 80 09 00 00 00 00 00 00 57 [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 C7 1E 00 90 00 59 [15:09:49]RAPDU: 90 00 [15:09:49]wFMCommunicate OK [15:09:49]SAM_PROTO_ClearQueue done [15:09:49]KKMCreateOFDPacket [15:09:49]OFDProtocolAddRootSTLVToBuf [15:09:49]FM_MakeSignedData [15:09:49]FM_MakeSignedData [15:09:49]SAM_PROTO_SignData [15:09:49]wFMCommunicate request_size=4 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 0D 01 02 [15:09:49]Write to MH i2c: E2 08 00 C8 1E 80 0D 01 02 00 00 00 00 5F [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 C8 1E 00 90 00 5A [15:09:49]RAPDU: 90 00 [15:09:49]wFMCommunicate OK [15:09:49]wFMCommunicate request_size=255 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 40 63 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [15:09:49]Write to MH i2c: E2 02 01 C9 1E 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 40 63 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 EE [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:50]Read from MH i2c: E2 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 03 00 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 03 00 C9 1E 00 90 00 5B [15:09:50]RAPDU: 90 00 [15:09:50]wFMCommunicate OK [15:09:50]wFMCommunicate request_size=34 [15:09:50]MH_SAM_APDU [15:09:50]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6D EA 00 00 35 04 06 00 C3 DE 5C 78 13 60 [15:09:50]Write to MH i2c: E2 25 00 CA 1E 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6D EA 00 00 35 04 06 00 C3 DE 5C 78 13 60 00 00 66 [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:50]Read from MH i2c: E2 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 03 00 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 03 00 CA 1E 00 90 00 5C [15:09:50]RAPDU: 90 00 [15:09:50]wFMCommunicate OK [15:09:50]wFMCommunicate request_size=4 [15:09:50]MH_SAM_APDU [15:09:50]CAPDU: 80 0D 03 02 [15:09:50]Write to MH i2c: E2 08 00 CB 1E 80 0D 03 02 00 00 00 00 64 [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:50]Read from MH i2c: E2 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 0B 00 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 0B 00 CB 1E 00 B7 37 51 4B 55 31 F4 A4 90 00 0D [15:09:50]RAPDU: B7 37 51 4B 55 31 F4 A4 90 00 [15:09:50]wFMCommunicate OK [15:09:50]SAM_PROTO_SignData done [15:09:50]FM_MakeSignedData done [15:09:50]CreateOFDProtocolMessage [15:09:50]wFMCommunicate request_size=4 [15:09:50]MH_SAM_APDU [15:09:50]CAPDU: 80 11 00 00 [15:09:50]Write to MH i2c: E2 08 00 CC 1E 80 11 00 00 00 00 00 00 64 [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:50]Read from MH i2c: E2 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 17 00 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 17 00 CC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 BB [15:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [15:09:50]wFMCommunicate OK [15:09:50]CreateOFDProtocolMessage done [15:09:50]OFDSenderStorePacket 60013 [15:09:50]StoreOFDPacket docnum=60013 [15:09:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 6F 1F 1F 01 EF 6B 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 40 63 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6D EA 00 00 35 04 06 00 C3 DE 5C 78 13 60 B7 37 51 4B 55 31 F4 A4 [15:09:50]CheckFolder [15:09:50]dirname=/storage/ofd_packets [15:09:50]CheckFolder done [15:09:50]ProducePacketName [15:09:50]name=ofd_packets/00060013 [15:09:50]NVStorageSaveData ofd_packets/00060013 [15:09:50]File name is /storage/ofd_packets/00060013 [15:09:50]Write 325 bytes [15:09:50]NVStorageSaveData done [15:09:50]OFDSenderStorePacket done [15:09:50]KKMCreateOFDPacket done [15:09:50]NVStorageSaveData kkm_last_timestamp [15:09:50]File name is /storage/kkm_last_timestamp [15:09:50]Write 4 bytes [15:09:50]NVStorageSaveData done [15:09:50]ExternCall_PrintAddStr [15:09:50]wPrintStart [15:09:50]Write to MH i2c: 01 00 00 CD 1E EB [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: 01 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: 01 07 00 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: 01 07 00 CD 1E 00 00 00 00 00 FF 0F 00 [15:09:50]RasterBufferAndPrint [15:09:50]line Счет N : (3)199798 [15:09:50]line ИНН: 02508201610067 [15:09:50]line Контрольно-Кассовый Чек [15:09:50]line ПРОДАЖА [15:09:50]line Товар: 48743587 [15:09:50]line Сигареты Winston XStyle Silver [15:09:50]line 1.000 * 144.00 [15:09:50]line = 144.00 [15:09:50]line НДС 12% НСП 1% [15:09:50]line > о реализуемом товаре [15:09:50]line ИТОГО: 144.00 [15:09:50]line НСП 1% : 1.27 [15:09:50]line НДС 12% : 15.29 [15:09:50]line Наличными: 144.00 [15:09:50]line Безнал.: 0.00 [15:09:50]line Место: АЗС № 87 "Партнер Нефть" [15:09:50]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [15:09:50]line СНО: Общий режим [15:09:50]line Чек 88 24.10.2024 15:09 [15:09:50]line Смена: 529 ФФД: 1.0 [15:09:50]line ЗНМ: 0300000084 [15:09:50]line РНМ: 0000000000091622 [15:09:50]line Версия ККМ: 001 [15:09:50]line ФМ: 0000000000874674 [15:09:50]line ФД: 60013 [15:09:50]line ФПД: 215359801529184 [15:09:50]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T150952&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60013&fm=215359801529184&tin=02508201610067®Number=0000000000091622&sum=14400 [15:09:50]line 0 [15:09:50]OFD Sender: Processing packet 60013 [packets to send 30, broken 29] [15:09:50]ProducePacketName [15:09:50]name=ofd_packets/00060013 [15:09:50]OFD Sender: To server: pG, [15:09:50]CommunicateWithHost lk.salyk.kg:30040 [15:09:50]ConnectInit lk.salyk.kg [15:09:50]written 0, free lines is 4095 [15:09:50]Connected sock=10 [15:09:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 6F 1F 1F 01 EF 6B 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 40 63 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6D EA 00 00 35 04 06 00 C3 DE 5C 78 13 60 B7 37 51 4B 55 31 F4 A4 [15:09:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 9C 9B 47 00 65 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6D EA 00 00 F4 03 04 00 31 09 1A 67 B6 04 01 00 00 AF 12 1C 52 28 E7 B2 FB [15:09:51]CommunicateWithHost err = 0 [15:09:51]CheckOFDResponse [15:09:51]1017 (14) - 77093643461234 [15:09:51]1041 (16) - 0000000000874674 [15:09:51]1040 (4) - 60013 [15:09:51]1012 (4) - 24.10.2024 08:45 [15:09:51]1206 (1) - 0 [15:09:51]OFD Sender: Remove packet 60013 [15:09:51]ProducePacketName [15:09:51]name=ofd_packets/00060013 [15:09:51]NVStorageDeleteData [15:09:51]Write to MH i2c: 01 00 00 F6 1E 14 [15:09:51]Write i2c OK [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: 01 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: 01 07 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: 01 07 00 F6 1E 00 00 00 00 00 EB 0C 12 [15:09:51]RasterBufferAndPrint [15:09:51]line [15:09:51]line [15:09:51]line [15:09:51]line [15:09:51]line [15:09:51]written 0, free lines is 3316 [15:09:51]MH_Cut [15:09:51]Write to MH i2c: D1 01 00 FD 1E 01 ED [15:09:51]Write i2c OK [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: D1 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: D1 01 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: D1 01 00 FD 1E 00 EC [15:09:51]Write to MH i2c: 01 00 00 FE 1E 1C [15:09:51]Write i2c OK [15:09:51]MH_I2C_Read... [15:09:51]OFD Sender: No OFD packet to send [15:09:51]*** Cut start [15:09:51]*** Partial cut [15:09:51]*** CUTSNS_PIN = 1 [15:09:51]*** CUTSNS_PIN = 0 [15:09:52]*** Brake cut motor [15:09:52]Read from MH i2c: 01 [15:09:52]MH_I2C_Read... [15:09:52]*** Stop cut motor [15:09:52]*** Cut end [15:09:52]Read from MH i2c: 01 07 00 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: 01 07 00 FE 1E 00 00 00 00 00 FF 0F 31 [15:09:52]process_action close_receipt done [15:09:52]requested_data is exist [15:09:52]produce_requested_data [15:09:52]requested_item fm.sn is exist - process it [15:09:52]wFMCommunicate request_size=4 [15:09:52]MH_SAM_APDU [15:09:52]CAPDU: 80 11 00 00 [15:09:52]Write to MH i2c: E2 08 00 FF 1E 80 11 00 00 00 00 00 00 97 [15:09:52]Write i2c OK [15:09:52]MH_I2C_Read... [15:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:52]Read from MH i2c: E2 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: E2 17 00 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: E2 17 00 FF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 EE [15:09:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [15:09:52]wFMCommunicate OK [15:09:52]requested_item fd.num is exist - process it [15:09:52]SAM_PROTO_GetFieldsCounters [15:09:52]wFMCommunicate request_size=4 [15:09:52]MH_SAM_APDU [15:09:52]CAPDU: 80 13 00 00 [15:09:52]Write to MH i2c: E2 08 00 00 1F 80 13 00 00 00 00 00 00 9B [15:09:52]Write i2c OK [15:09:52]MH_I2C_Read... [15:09:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:52]Read from MH i2c: E2 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: E2 62 00 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: E2 62 00 00 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6D EA 00 00 0E 04 04 00 11 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 2D [15:09: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6D EA 00 00 0E 04 04 00 11 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 [15:09:52]wFMCommunicate OK [15:09:52]SAM_PROTO_GetFieldsCounters done [15:09:52]requested_item shift.num is exist - process it [15:09:52]requested_item shift.opened is exist - process it [15:09:52]req_shift_opened [15:09:52]FM_GetShiftState [15:09:52]SAM_PROTO_GetShiftState [15:09:52]wFMCommunicate request_size=4 [15:09:52]MH_SAM_APDU [15:09:52]CAPDU: 80 13 01 00 [15:09:52]Write to MH i2c: E2 08 00 01 1F 80 13 01 00 00 00 00 00 9D [15:09:52]Write i2c OK [15:09:52]MH_I2C_Read... [15:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:52]Read from MH i2c: E2 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: E2 0E 00 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: E2 0E 00 01 1F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 D0 [15:09:52]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [15:09:52]wFMCommunicate OK [15:09:52]SAM_PROTO_GetShiftState done [15:09:52]FM_GetShiftState done [15:09:52]req_shift_opened done [15:09:52]requested_item shift.open_date is exist - process it [15:09:52]req_shift_open_date [15:09:52]req_shift_open_date done [15:09:52]produce_requested_data done [15:09:52]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60013,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [15:09:52]process_action_free close_receipt [15:09:52]json_value_free [15:09:52]json_value_free done [15:09:52]process_json_proto returns [15:09:52]Send response to host [15:09:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60013,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [15:09:52]free response buf [15:09:52]execute_script done [15:09:52]execute_script returns [15:09:52]free content buf [15:09:52]Sock 7.Close socket [15:09:52]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:52]accept exits with 9 [15:21:52]New connection [15:21:52]New thread 3067108708 created [15:21:52]Thread 3067252068 joined [15:21:52]Waiting for new connection... [15:21:52] Sock 9.Parse request [15:21:52]Sock 9.Check first char [15:21:52]Sock 9.First char is OK [15:21:52]request: POST /json_proto HTTP/1.0 [15:21:52]Method: POST [15:21:52]URL: /json_proto [15:21:52]Method is POST - this is cgi request [15:21:52]url: /json_proto [15:21:52]query_string will be loaded in cgi processing [15:21:52]execute_cgi json_proto POST (null) [15:21:52]execute_cgi path=json_proto method=POST [15:21:52]POST find Content-Length [15:21:52]Host: 172.17.42.196:8080 [15:21:52]Content-Length: 755 [15:21:52]Content-Type: application/json [15:21:52] [15:21:52]POST finish read [15:21:52]Found Content-Length = 755 [15:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199799", "tax_sys" : 0, "items" : [ { "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:52]execute_script... [15:21:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199799", "tax_sys" : 0, "items" : [ { "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:52]POST & json_proto [15:21:52]process_json_proto [15:21:52]json parsed OK: [15:21:52]protocol is kg_v1.0 [15:21:52]action value=close_receipt [15:21:52]process_action close_receipt [15:21:52]cmd_close_receipt [15:21:52]MH_GetDate [15:21:52]Write to MH i2c: F0 00 00 02 1F 10 [15:21:52]Write i2c OK [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: F0 [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: F0 09 00 [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: F0 09 00 02 1F 00 14 66 1A 67 FF C4 6B 64 A6 [15:21:52]GetLastDocTimeStamp 1729782592 [15:21:52]current date 1729783316 [15:21:52]FM_GetShiftState [15:21:52]SAM_PROTO_GetShiftState [15:21:52]wFMCommunicate request_size=4 [15:21:52]MH_SAM_APDU [15:21:52]CAPDU: 80 13 01 00 [15:21:52]Write to MH i2c: E2 08 00 03 1F 80 13 01 00 00 00 00 00 9F [15:21:52]Write i2c OK [15:21:52]MH_I2C_Read... [15:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:52]Read from MH i2c: E2 [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: E2 0E 00 [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: E2 0E 00 03 1F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 D2 [15:21:52]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [15:21:52]wFMCommunicate OK [15:21:52]SAM_PROTO_GetShiftState done [15:21:52]FM_GetShiftState done [15:21:52]opened in 1729730575 [15:21:52]opened+sec_in_day 1729816975 [15:21:52]quantity*price = 7500 [15:21:52]sum+1 = 7501 [15:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 89 24.10.2024 15:21 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60014 ФПД: 75672180977101 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152157&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60014&fm=75672180977101&tin=02508201610067®Number=0000000000091622&sum=7500 0 [15:21:53]StoreToDocumentArchive [15:21:53]shift 529 fd 60014 [15:21:53]save to /storage/0529/doc_00060014 [15:21:53]save last doc name /storage/0529/doc_00060014 to /storage/kkm_last_doc_name [15:21:53]save OK [15:21:53]Clear old archive folders... [15:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=314 [15:21:53]tlvbuf is B6F9E380 [15:21:53]SAM_PROTO_ClearQueue [15:21:53]wFMCommunicate request_size=4 [15:21:53]MH_SAM_APDU [15:21:53]CAPDU: 80 09 00 00 [15:21:53]Write to MH i2c: E2 08 00 10 1F 80 09 00 00 00 00 00 00 A1 [15:21:53]Write i2c OK [15:21:53]MH_I2C_Read... [15:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:53]Read from MH i2c: E2 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 03 00 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 03 00 10 1F 00 90 00 A3 [15:21:53]RAPDU: 90 00 [15:21:53]wFMCommunicate OK [15:21:53]SAM_PROTO_ClearQueue done [15:21:53]KKMCreateOFDPacket [15:21:53]OFDProtocolAddRootSTLVToBuf [15:21:53]FM_MakeSignedData [15:21:53]FM_MakeSignedData [15:21:53]SAM_PROTO_SignData [15:21:53]wFMCommunicate request_size=4 [15:21:53]MH_SAM_APDU [15:21:53]CAPDU: 80 0D 01 02 [15:21:53]Write to MH i2c: E2 08 00 11 1F 80 0D 01 02 00 00 00 00 A9 [15:21:53]Write i2c OK [15:21:53]MH_I2C_Read... [15:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:53]Read from MH i2c: E2 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 03 00 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 03 00 11 1F 00 90 00 A4 [15:21:53]RAPDU: 90 00 [15:21:53]wFMCommunicate OK [15:21:53]wFMCommunicate request_size=255 [15:21:53]MH_SAM_APDU [15:21:53]CAPDU: 80 0D 02 02 FA 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 15 66 1A 67 0E 04 04 [15:21:53]Write to MH i2c: E2 02 01 12 1F 80 0D 02 02 FA 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 15 66 1A 67 0E 04 04 00 00 D1 [15:21:53]Write i2c OK [15:21:53]MH_I2C_Read... [15:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:54]Read from MH i2c: E2 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 03 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 03 00 12 1F 00 90 00 A5 [15:21:54]RAPDU: 90 00 [15:21:54]wFMCommunicate OK [15:21:54]wFMCommunicate request_size=73 [15:21:54]MH_SAM_APDU [15:21:54]CAPDU: 80 0D 02 02 44 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6E EA 00 00 35 04 06 00 44 D2 CD 77 6D CD [15:21:54]Write to MH i2c: E2 4C 00 13 1F 80 0D 02 02 44 00 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6E EA 00 00 35 04 06 00 44 D2 CD 77 6D CD 00 00 C7 [15:21:54]Write i2c OK [15:21:54]MH_I2C_Read... [15:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:54]Read from MH i2c: E2 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 03 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 03 00 13 1F 00 90 00 A6 [15:21:54]RAPDU: 90 00 [15:21:54]wFMCommunicate OK [15:21:54]wFMCommunicate request_size=4 [15:21:54]MH_SAM_APDU [15:21:54]CAPDU: 80 0D 03 02 [15:21:54]Write to MH i2c: E2 08 00 14 1F 80 0D 03 02 00 00 00 00 AE [15:21:54]Write i2c OK [15:21:54]MH_I2C_Read... [15:21:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:54]Read from MH i2c: E2 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 0B 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 0B 00 14 1F 00 83 EB E5 07 C9 E8 77 EC 90 00 1D [15:21:54]RAPDU: 83 EB E5 07 C9 E8 77 EC 90 00 [15:21:54]wFMCommunicate OK [15:21:54]SAM_PROTO_SignData done [15:21:54]FM_MakeSignedData done [15:21:54]CreateOFDProtocolMessage [15:21:54]wFMCommunicate request_size=4 [15:21:54]MH_SAM_APDU [15:21:54]CAPDU: 80 11 00 00 [15:21:54]Write to MH i2c: E2 08 00 15 1F 80 11 00 00 00 00 00 00 AE [15:21:54]Write i2c OK [15:21:54]MH_I2C_Read... [15:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:54]Read from MH i2c: E2 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 17 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 17 00 15 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 05 [15:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [15:21:54]wFMCommunicate OK [15:21:54]CreateOFDProtocolMessage done [15:21:54]OFDSenderStorePacket 60014 [15:21:54]StoreOFDPacket docnum=60014 [15:21:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4E 01 00 00 2F 41 46 01 50 26 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 15 66 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6E EA 00 00 35 04 06 00 44 D2 CD 77 6D CD 83 EB E5 07 C9 E8 77 EC [15:21:54]CheckFolder [15:21:54]dirname=/storage/ofd_packets [15:21:54]CheckFolder done [15:21:54]ProducePacketName [15:21:54]name=ofd_packets/00060014 [15:21:54]NVStorageSaveData ofd_packets/00060014 [15:21:54]File name is /storage/ofd_packets/00060014 [15:21:54]Write 364 bytes [15:21:54]NVStorageSaveData done [15:21:54]OFDSenderStorePacket done [15:21:54]KKMCreateOFDPacket done [15:21:54]NVStorageSaveData kkm_last_timestamp [15:21:54]File name is /storage/kkm_last_timestamp [15:21:54]Write 4 bytes [15:21:54]NVStorageSaveData done [15:21:54]ExternCall_PrintAddStr [15:21:54]wPrintStart [15:21:54]Write to MH i2c: 01 00 00 16 1F 35 [15:21:54]Write i2c OK [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: 01 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: 01 07 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: 01 07 00 16 1F 00 00 00 00 00 FF 0F 4A [15:21:54]RasterBufferAndPrint [15:21:54]line Счет N : (3)199799 [15:21:54]line ИНН: 02508201610067 [15:21:54]line Контрольно-Кассовый Чек [15:21:54]line ПРОДАЖА [15:21:54]line Товар: 4630007400976 [15:21:54]line Арахис жарен Караван орехов Стандарт 90 [15:21:54]line 1.000 * 75.00 [15:21:54]line = 75.00 [15:21:54]line НДС 12% НСП 1% [15:21:54]line > о реализуемом товаре [15:21:54]line ИТОГО: 75.00 [15:21:54]line НСП 1% : 0.66 [15:21:54]line НДС 12% : 7.96 [15:21:54]line Наличными: 75.00 [15:21:54]line Безнал.: 0.00 [15:21:54]line Место: АЗС № 87 "Партнер Нефть" [15:21:54]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [15:21:54]line СНО: Общий режим [15:21:54]line Чек 89 24.10.2024 15:21 [15:21:54]line Смена: 529 ФФД: 1.0 [15:21:54]line ЗНМ: 0300000084 [15:21:54]line РНМ: 0000000000091622 [15:21:54]line Версия ККМ: 001 [15:21:54]line ФМ: 0000000000874674 [15:21:54]line ФД: 60014 [15:21:54]line ФПД: 75672180977101 [15:21:54]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152157&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60014&fm=75672180977101&tin=02508201610067®Number=0000000000091622&sum=7500 [15:21:54]line 0 [15:21:54]OFD Sender: Processing packet 60014 [packets to send 30, broken 29] [15:21:54]ProducePacketName [15:21:54]name=ofd_packets/00060014 [15:21:54]OFD Sender: To server: pG, [15:21:54]CommunicateWithHost lk.salyk.kg:30040 [15:21:54]ConnectInit lk.salyk.kg [15:21:54]written 0, free lines is 4095 [15:21:54]Connected sock=10 [15:21:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4E 01 00 00 2F 41 46 01 50 26 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 15 66 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6E EA 00 00 35 04 06 00 44 D2 CD 77 6D CD 83 EB E5 07 C9 E8 77 EC [15:21:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 2D 67 47 00 F0 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 34 36 37 34 10 04 04 00 6E EA 00 00 F4 03 04 00 05 0C 1A 67 B6 04 01 00 00 6B 03 B5 6E 57 09 F8 63 [15:21:55]CommunicateWithHost err = 0 [15:21:55]CheckOFDResponse [15:21:55]1017 (14) - 77093643461234 [15:21:55]1041 (16) - 0000000000874674 [15:21:55]1040 (4) - 60014 [15:21:55]1012 (4) - 24.10.2024 08:57 [15:21:55]1206 (1) - 0 [15:21:55]OFD Sender: Remove packet 60014 [15:21:55]ProducePacketName [15:21:55]name=ofd_packets/00060014 [15:21:55]NVStorageDeleteData [15:21:55]Write to MH i2c: 01 00 00 3F 1F 5E [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 07 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 07 00 3F 1F 00 00 00 00 00 E2 0C 53 [15:21:55]RasterBufferAndPrint [15:21:55]line [15:21:55]line [15:21:55]line [15:21:55]line [15:21:55]line [15:21:55]written 0, free lines is 3307 [15:21:55]MH_Cut [15:21:55]Write to MH i2c: D1 01 00 46 1F 01 37 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: D1 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: D1 01 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: D1 01 00 46 1F 00 36 [15:21:55]Write to MH i2c: 01 00 00 47 1F 66 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]OFD Sender: No OFD packet to send [15:21:56]*** Cut start [15:21:56]*** Partial cut [15:21:56]*** CUTSNS_PIN = 1 [15:21:56]*** CUTSNS_PIN = 0 [15:21:56]*** Brake cut motor [15:21:56]Read from MH i2c: 01 [15:21:56]MH_I2C_Read... [15:21:56]*** Stop cut motor [15:21:56]*** Cut end [15:21:56]Read from MH i2c: 01 07 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 07 00 47 1F 00 00 00 00 00 FF 0F 7B [15:21:56]process_action close_receipt done [15:21:56]requested_data is exist [15:21:56]produce_requested_data [15:21:56]requested_item fm.sn is exist - process it [15:21:56]wFMCommunicate request_size=4 [15:21:56]MH_SAM_APDU [15:21:56]CAPDU: 80 11 00 00 [15:21:56]Write to MH i2c: E2 08 00 48 1F 80 11 00 00 00 00 00 00 E1 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:56]Read from MH i2c: E2 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 17 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 17 00 48 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 38 [15:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [15:21:56]wFMCommunicate OK [15:21:56]requested_item fd.num is exist - process it [15:21:56]SAM_PROTO_GetFieldsCounters [15:21:56]wFMCommunicate request_size=4 [15:21:56]MH_SAM_APDU [15:21:56]CAPDU: 80 13 00 00 [15:21:56]Write to MH i2c: E2 08 00 49 1F 80 13 00 00 00 00 00 00 E4 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:56]Read from MH i2c: E2 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 62 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 62 00 49 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6E EA 00 00 0E 04 04 00 11 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 7A [15:21:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6E EA 00 00 0E 04 04 00 11 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 [15:21:56]wFMCommunicate OK [15:21:56]SAM_PROTO_GetFieldsCounters done [15:21:56]requested_item shift.num is exist - process it [15:21:56]requested_item shift.opened is exist - process it [15:21:56]req_shift_opened [15:21:56]FM_GetShiftState [15:21:56]SAM_PROTO_GetShiftState [15:21:56]wFMCommunicate request_size=4 [15:21:56]MH_SAM_APDU [15:21:56]CAPDU: 80 13 01 00 [15:21:56]Write to MH i2c: E2 08 00 4A 1F 80 13 01 00 00 00 00 00 E6 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:56]Read from MH i2c: E2 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 0E 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 0E 00 4A 1F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 19 [15:21:56]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [15:21:56]wFMCommunicate OK [15:21:56]SAM_PROTO_GetShiftState done [15:21:56]FM_GetShiftState done [15:21:56]req_shift_opened done [15:21:56]requested_item shift.open_date is exist - process it [15:21:56]req_shift_open_date [15:21:56]req_shift_open_date done [15:21:56]produce_requested_data done [15:21:56]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60014,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [15:21:56]process_action_free close_receipt [15:21:56]json_value_free [15:21:56]json_value_free done [15:21:56]process_json_proto returns [15:21:56]Send response to host [15:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60014,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [15:21:56]free response buf [15:21:56]execute_script done [15:21:56]execute_script returns [15:21:56]free content buf [15:21:56]Sock 9.Close socket [15:21:56]Sock 9.Thread stoped [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:15]accept exits with 7 [15:39:15]New connection [15:39:15]New thread 3067252068 created [15:39:15]Thread 3067108708 joined [15:39:15]Waiting for new connection... [15:39:15] Sock 7.Parse request [15:39:15]Sock 7.Check first char [15:39:15]Sock 7.First char is OK [15:39:15]request: POST /json_proto HTTP/1.0 [15:39:15]Method: POST [15:39:15]URL: /json_proto [15:39:15]Method is POST - this is cgi request [15:39:15]url: /json_proto [15:39:15]query_string will be loaded in cgi processing [15:39:15]execute_cgi json_proto POST (null) [15:39:15]execute_cgi path=json_proto method=POST [15:39:15]POST find Content-Length [15:39:15]Host: 172.17.42.196:8080 [15:39:15]Content-Length: 2139 [15:39:15]Content-Type: application/json [15:39:15] [15:39:15]POST finish read [15:39:15]Found Content-Length = 2139 [15:39:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199800", "tax_sys" : 0, "items" : [ { "code": "8683130057735", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0417\u043E\u043B\u043E\u0442\u043E\u0439 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u0441\u0442\u0430\u043A\u0430", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8683130065723", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 Algida \u0417\u043E\u043B\u043E\u0442\u043E\u0439 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 \u0421\u044D\u043D\u0434\u0432\u0438", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013330790", "name": "\u0428\u043E\u043A \u043F\u0435\u0447\u0435\u043D\u044C\u0435 \u0441\u044D\u043D\u0434\u0432\u0438\u0447 \u043F\u043B\u043E\u043C\u0431\u0438\u0440 \u0432\u0430\u043D\u0438\u043B\u044C\u043D\u044B\u0439", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 484.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:15]execute_script... [15:39:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199800", "tax_sys" : 0, "items" : [ { "code": "8683130057735", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0417\u043E\u043B\u043E\u0442\u043E\u0439 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u0441\u0442\u0430\u043A\u0430", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8683130065723", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 Algida \u0417\u043E\u043B\u043E\u0442\u043E\u0439 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 \u0421\u044D\u043D\u0434\u0432\u0438", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013330790", "name": "\u0428\u043E\u043A \u043F\u0435\u0447\u0435\u043D\u044C\u0435 \u0441\u044D\u043D\u0434\u0432\u0438\u0447 \u043F\u043B\u043E\u043C\u0431\u0438\u0440 \u0432\u0430\u043D\u0438\u043B\u044C\u043D\u044B\u0439", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 484.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:15]POST & json_proto [15:39:15]process_json_proto [15:39:15]json parsed OK: [15:39:15]protocol is kg_v1.0 [15:39:15]action value=close_receipt [15:39:15]process_action close_receipt [15:39:15]cmd_close_receipt [15:39:15]MH_GetDate [15:39:15]Write to MH i2c: F0 00 00 4B 1F 59 [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: F0 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: F0 09 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: F0 09 00 4B 1F 00 28 6A 1A 67 FF C4 6B 64 07 [15:39:15]GetLastDocTimeStamp 1729783317 [15:39:15]current date 1729784360 [15:39:15]FM_GetShiftState [15:39:15]SAM_PROTO_GetShiftState [15:39:15]wFMCommunicate request_size=4 [15:39:15]MH_SAM_APDU [15:39:15]CAPDU: 80 13 01 00 [15:39:15]Write to MH i2c: E2 08 00 4C 1F 80 13 01 00 00 00 00 00 E8 [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:15]Read from MH i2c: E2 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 0E 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 0E 00 4C 1F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 1B [15:39:15]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [15:39:15]wFMCommunicate OK [15:39:15]SAM_PROTO_GetShiftState done [15:39:15]FM_GetShiftState done [15:39:15]opened in 1729730575 [15:39:15]opened+sec_in_day 1729816975 [15:39:15]quantity*price = 9500 [15:39:15]sum+1 = 9501 [15:39:15]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8683130065723 Мороженое Algida Золотой Стандарт Сэндви 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660013330790 Шок печенье сэндвич пломбир ванильный 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010353 Напиток Let`s Go! с/с груша ПЭТ 1л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521216 Напиток MAXI чай 1,2 зел.лимон (новый) 1.000 * 104.00 = 104.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 484.00 НСП 1% : 4.28 НДС 12% : 51.40 Наличными: 484.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 90 24.10.2024 15:39 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60015 ФПД: 215018364848052 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153920&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60015&fm=215018364848052&tin=02508201610067®Number=0000000000091622&sum=48400 0 [15:39:17]StoreToDocumentArchive [15:39:17]shift 529 fd 60015 [15:39:17]save to /storage/0529/doc_00060015 [15:39:17]save last doc name /storage/0529/doc_00060015 to /storage/kkm_last_doc_name [15:39:17]save OK [15:39:17]Clear old archive folders... [15:39:17]ProcessDocumentItem done err = 0, tmpTLVsize=859 [15:39:17]tlvbuf is 00DF04A0 [15:39:17]SAM_PROTO_ClearQueue [15:39:17]wFMCommunicate request_size=4 [15:39:17]MH_SAM_APDU [15:39:17]CAPDU: 80 09 00 00 [15:39:17]Write to MH i2c: E2 08 00 59 1F 80 09 00 00 00 00 00 00 EA [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:17]Read from MH i2c: E2 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 59 1F 00 90 00 EC [15:39:17]RAPDU: 90 00 [15:39:17]wFMCommunicate OK [15:39:17]SAM_PROTO_ClearQueue done [15:39:17]KKMCreateOFDPacket [15:39:17]OFDProtocolAddRootSTLVToBuf [15:39:17]FM_MakeSignedData [15:39:17]FM_MakeSignedData [15:39:17]SAM_PROTO_SignData [15:39:17]wFMCommunicate request_size=4 [15:39:17]MH_SAM_APDU [15:39:17]CAPDU: 80 0D 01 02 [15:39:17]Write to MH i2c: E2 08 00 5A 1F 80 0D 01 02 00 00 00 00 F2 [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:17]Read from MH i2c: E2 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 5A 1F 00 90 00 ED [15:39:17]RAPDU: 90 00 [15:39:17]wFMCommunicate OK [15:39:17]wFMCommunicate request_size=255 [15:39:17]MH_SAM_APDU [15:39:17]CAPDU: 80 0D 02 02 FA 03 00 5B 03 1E 04 01 00 01 23 04 90 00 8A 04 0D 00 38 36 38 33 31 33 30 30 35 37 37 33 35 06 04 4C 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 38 36 38 33 31 33 30 30 36 35 37 32 33 06 04 46 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 A1 D1 8D D0 BD D0 B4 D0 B2 [15:39:17]Write to MH i2c: E2 02 01 5B 1F 80 0D 02 02 FA 00 03 00 5B 03 1E 04 01 00 01 23 04 90 00 8A 04 0D 00 38 36 38 33 31 33 30 30 35 37 37 33 35 06 04 4C 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 38 36 38 33 31 33 30 30 36 35 37 32 33 06 04 46 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 A1 D1 8D D0 BD D0 B4 D0 B2 00 00 B5 [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:17]Read from MH i2c: E2 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 5B 1F 00 90 00 EE [15:39:17]RAPDU: 90 00 [15:39:17]wFMCommunicate OK [15:39:17]wFMCommunicate request_size=255 [15:39:17]MH_SAM_APDU [15:39:17]CAPDU: 80 0D 02 02 FA D0 B8 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 30 37 39 30 06 04 46 00 D0 A8 D0 BE D0 BA 20 D0 BF D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D1 81 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 BF D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 B2 D0 B0 D0 BD D0 B8 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 [15:39:17]Write to MH i2c: E2 02 01 5C 1F 80 0D 02 02 FA 00 D0 B8 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 30 37 39 30 06 04 46 00 D0 A8 D0 BE D0 BA 20 D0 BF D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D1 81 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 BF D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 B2 D0 B0 D0 BD D0 B8 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 00 00 FD [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:18]Read from MH i2c: E2 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 03 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 03 00 5C 1F 00 90 00 EF [15:39:18]RAPDU: 90 00 [15:39:18]wFMCommunicate OK [15:39:18]wFMCommunicate request_size=255 [15:39:18]MH_SAM_APDU [15:39:18]CAPDU: 80 0D 02 02 FA 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 14 00 00 00 00 [15:39:18]Write to MH i2c: E2 02 01 5D 1F 80 0D 02 02 FA 00 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 14 00 00 00 00 00 00 A0 [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:18]Read from MH i2c: E2 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 03 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 03 00 5D 1F 00 90 00 F0 [15:39:18]RAPDU: 90 00 [15:39:18]wFMCommunicate OK [15:39:18]wFMCommunicate request_size=118 [15:39:18]MH_SAM_APDU [15:39:18]CAPDU: 80 0D 02 02 71 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 28 6A 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6F EA 00 00 35 04 06 00 C3 8E DD 41 C7 B4 [15:39:18]Write to MH i2c: E2 79 00 5E 1F 80 0D 02 02 71 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 28 6A 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6F EA 00 00 35 04 06 00 C3 8E DD 41 C7 B4 00 00 A2 [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 [15:39:18]MH_I2C_Read... [15:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:18]Read from MH i2c: E2 03 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 03 00 5E 1F 00 90 00 F1 [15:39:18]RAPDU: 90 00 [15:39:18]wFMCommunicate OK [15:39:18]wFMCommunicate request_size=4 [15:39:18]MH_SAM_APDU [15:39:18]CAPDU: 80 0D 03 02 [15:39:18]Write to MH i2c: E2 08 00 5F 1F 80 0D 03 02 00 00 00 00 F9 [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:18]Read from MH i2c: E2 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 0B 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 0B 00 5F 1F 00 60 79 7C 6B 8C 81 F9 41 90 00 01 [15:39:18]RAPDU: 60 79 7C 6B 8C 81 F9 41 90 00 [15:39:18]wFMCommunicate OK [15:39:18]SAM_PROTO_SignData done [15:39:18]FM_MakeSignedData done [15:39:18]CreateOFDProtocolMessage [15:39:18]wFMCommunicate request_size=4 [15:39:18]MH_SAM_APDU [15:39:18]CAPDU: 80 11 00 00 [15:39:18]Write to MH i2c: E2 08 00 60 1F 80 11 00 00 00 00 00 00 F9 [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:18]Read from MH i2c: E2 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 17 00 [15:39:18]MH_I2C_Read... [15:39:18]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 34 36 37 34 90 00 50 [15:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [15:39:18]wFMCommunicate OK [15:39:18]CreateOFDProtocolMessage done [15:39:18]OFDSenderStorePacket 60015 [15:39:18]StoreOFDPacket docnum=60015 [15:39:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 6F 03 00 00 C6 CF 67 03 F5 E7 5A 03 01 00 03 00 5B 03 1E 04 01 00 01 23 04 90 00 8A 04 0D 00 38 36 38 33 31 33 30 30 35 37 37 33 35 06 04 4C 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 38 36 38 33 31 33 30 30 36 35 37 32 33 06 04 46 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 30 37 39 30 06 04 46 00 D0 A8 D0 BE D0 BA 20 D0 BF D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D1 81 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 BF D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 B2 D0 B0 D0 BD D0 B8 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 28 6A 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6F EA 00 00 35 04 06 00 C3 8E DD 41 C7 B4 60 79 7C 6B 8C 81 F9 41 [15:39:18]CheckFolder [15:39:18]dirname=/storage/ofd_packets [15:39:18]CheckFolder done [15:39:18]ProducePacketName [15:39:18]name=ofd_packets/00060015 [15:39:18]NVStorageSaveData ofd_packets/00060015 [15:39:18]File name is /storage/ofd_packets/00060015 [15:39:18]Write 909 bytes [15:39:18]NVStorageSaveData done [15:39:18]OFDSenderStorePacket done [15:39:18]KKMCreateOFDPacket done [15:39:18]NVStorageSaveData kkm_last_timestamp [15:39:18]File name is /storage/kkm_last_timestamp [15:39:18]Write 4 bytes [15:39:18]NVStorageSaveData done [15:39:18]ExternCall_PrintAddStr [15:39:18]wPrintStart [15:39:18]Write to MH i2c: 01 00 00 61 1F 80 [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: 01 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: 01 07 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: 01 07 00 61 1F 00 00 00 00 00 FF 0F 95 [15:39:18]RasterBufferAndPrint [15:39:18]line Счет N : (3)199800 [15:39:18]line ИНН: 02508201610067 [15:39:18]line Контрольно-Кассовый Чек [15:39:18]line ПРОДАЖА [15:39:18]line Товар: 8683130057735 [15:39:18]line Мороженое Золотой Стандарт Пломбир стака [15:39:18]line 1.000 * 95.00 [15:39:18]line = 95.00 [15:39:18]line НДС 12% НСП 1% [15:39:18]line > о реализуемом товаре [15:39:18]line Товар: 8683130065723 [15:39:18]line Мороженое Algida Золотой Стандарт Сэндви [15:39:18]line 1.000 * 105.00 [15:39:18]line = 105.00 [15:39:18]line НДС 12% НСП 1% [15:39:18]line > о реализуемом товаре [15:39:18]line Товар: 4660013330790 [15:39:18]line Шок печенье сэндвич пломбир ванильный [15:39:18]line 1.000 * 100.00 [15:39:18]line = 100.00 [15:39:18]line НДС 12% НСП 1% [15:39:18]line > о реализуемом товаре [15:39:18]line Товар: 4700003010353 [15:39:18]line Напиток Let`s Go! с/с груша ПЭТ 1л [15:39:18]line 1.000 * 80.00 [15:39:18]line = 80.00 [15:39:18]line НДС 12% НСП 1% [15:39:18]line > о реализуемом товаре [15:39:18]line Товар: 4870202521216 [15:39:18]line Напиток MAXI чай 1,2 зел.лимон (новый) [15:39:18]line 1.000 * 104.00 [15:39:18]line = 104.00 [15:39:18]line НДС 12% НСП 1% [15:39:18]line > о реализуемом товаре [15:39:18]line ИТОГО: 484.00 [15:39:18]line НСП 1% : 4.28 [15:39:18]line НДС 12% : 51.40 [15:39:18]line Наличными: 484.00 [15:39:18]line Безнал.: 0.00 [15:39:18]line Место: АЗС № 87 "Партнер Нефть" [15:39:18]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [15:39:18]line СНО: Общий режим [15:39:18]line Чек 90 24.10.2024 15:39 [15:39:18]line Смена: 529 ФФД: 1.0 [15:39:18]line ЗНМ: 0300000084 [15:39:18]line РНМ: 0000000000091622 [15:39:18]line Версия ККМ: 001 [15:39:18]line ФМ: 0000000000874674 [15:39:18]line ФД: 60015 [15:39:18]line ФПД: 215018364848052 [15:39:18]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153920&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60015&fm=215018364848052&tin=02508201610067®Number=0000000000091622&sum=48400 [15:39:18]OFD Sender: Processing packet 60015 [packets to send 30, broken 29] [15:39:18]ProducePacketName [15:39:18]name=ofd_packets/00060015 [15:39:18]OFD Sender: To server: pG, [15:39:18]CommunicateWithHost lk.salyk.kg:30040 [15:39:18]ConnectInit lk.salyk.kg [15:39:18]line 0 [15:39:18]written 0, free lines is 4095 [15:39:19]Connected sock=11 [15:39:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 6F 03 00 00 C6 CF 67 03 F5 E7 5A 03 01 00 03 00 5B 03 1E 04 01 00 01 23 04 90 00 8A 04 0D 00 38 36 38 33 31 33 30 30 35 37 37 33 35 06 04 4C 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 38 36 38 33 31 33 30 30 36 35 37 32 33 06 04 46 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 30 37 39 30 06 04 46 00 D0 A8 D0 BE D0 BA 20 D0 BF D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D1 81 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 BF D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 B2 D0 B0 D0 BD D0 B8 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 14 00 00 00 00 07 04 06 00 10 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 28 6A 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6F EA 00 00 35 04 06 00 C3 8E DD 41 C7 B4 60 79 7C 6B 8C 81 F9 41 [15:39:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 57 63 47 00 6A 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6F EA 00 00 F4 03 04 00 19 10 1A 67 B6 04 01 00 00 05 DF 43 E3 9A C8 5B 3F [15:39:19]CommunicateWithHost err = 0 [15:39:19]CheckOFDResponse [15:39:19]1017 (14) - 77093643461234 [15:39:19]1041 (16) - 0000000000874674 [15:39:19]1040 (4) - 60015 [15:39:19]1012 (4) - 24.10.2024 09:15 [15:39:19]1206 (1) - 0 [15:39:19]OFD Sender: Remove packet 60015 [15:39:19]ProducePacketName [15:39:19]name=ofd_packets/00060015 [15:39:19]NVStorageDeleteData [15:39:19]Write to MH i2c: 01 00 00 A6 1F C5 [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 07 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 07 00 A6 1F 00 00 00 00 00 2E 0B 05 [15:39:19]RasterBufferAndPrint [15:39:19]line [15:39:19]line [15:39:19]line [15:39:19]line [15:39:19]line [15:39:19]written 0, free lines is 2872 [15:39:19]MH_Cut [15:39:19]Write to MH i2c: D1 01 00 AD 1F 01 9E [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: D1 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: D1 01 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: D1 01 00 AD 1F 00 9D [15:39:19]Write to MH i2c: 01 00 00 AE 1F CD [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]OFD Sender: No OFD packet to send [15:39:20]*** Cut start [15:39:20]*** Partial cut [15:39:20]*** CUTSNS_PIN = 1 [15:39:20]*** CUTSNS_PIN = 0 [15:39:21]*** Brake cut motor [15:39:21]Read from MH i2c: *** Stop cut motor [15:39:21]*** Cut end [15:39:21]01 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: 01 07 00 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: 01 07 00 AE 1F 00 00 00 00 00 FF 0F E2 [15:39:21]process_action close_receipt done [15:39:21]requested_data is exist [15:39:21]produce_requested_data [15:39:21]requested_item fm.sn is exist - process it [15:39:21]wFMCommunicate request_size=4 [15:39:21]MH_SAM_APDU [15:39:21]CAPDU: 80 11 00 00 [15:39:21]Write to MH i2c: E2 08 00 AF 1F 80 11 00 00 00 00 00 00 48 [15:39:21]Write i2c OK [15:39:21]MH_I2C_Read... [15:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:21]Read from MH i2c: E2 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: E2 17 00 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: E2 17 00 AF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 9F [15:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [15:39:21]wFMCommunicate OK [15:39:21]requested_item fd.num is exist - process it [15:39:21]SAM_PROTO_GetFieldsCounters [15:39:21]wFMCommunicate request_size=4 [15:39:21]MH_SAM_APDU [15:39:21]CAPDU: 80 13 00 00 [15:39:21]Write to MH i2c: E2 08 00 B0 1F 80 13 00 00 00 00 00 00 4B [15:39:21]Write i2c OK [15:39:21]MH_I2C_Read... [15:39:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:21]Read from MH i2c: E2 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: E2 62 00 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: E2 62 00 B0 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6F EA 00 00 0E 04 04 00 11 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 E5 [15:39: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6F EA 00 00 0E 04 04 00 11 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 [15:39:21]wFMCommunicate OK [15:39:21]SAM_PROTO_GetFieldsCounters done [15:39:21]requested_item shift.num is exist - process it [15:39:21]requested_item shift.opened is exist - process it [15:39:21]req_shift_opened [15:39:21]FM_GetShiftState [15:39:21]SAM_PROTO_GetShiftState [15:39:21]wFMCommunicate request_size=4 [15:39:21]MH_SAM_APDU [15:39:21]CAPDU: 80 13 01 00 [15:39:21]Write to MH i2c: E2 08 00 B1 1F 80 13 01 00 00 00 00 00 4D [15:39:21]Write i2c OK [15:39:21]MH_I2C_Read... [15:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:21]Read from MH i2c: E2 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: E2 0E 00 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: E2 0E 00 B1 1F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 80 [15:39:21]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [15:39:21]wFMCommunicate OK [15:39:21]SAM_PROTO_GetShiftState done [15:39:21]FM_GetShiftState done [15:39:21]req_shift_opened done [15:39:21]requested_item shift.open_date is exist - process it [15:39:21]req_shift_open_date [15:39:21]req_shift_open_date done [15:39:21]produce_requested_data done [15:39:21]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60015,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [15:39:21]process_action_free close_receipt [15:39:21]json_value_free [15:39:21]json_value_free done [15:39:21]process_json_proto returns [15:39:21]Send response to host [15:39:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60015,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [15:39:21]free response buf [15:39:21]execute_script done [15:39:21]execute_script returns [15:39:21]free content buf [15:39:21]Sock 7.Close socket [15:39:21]Sock 7.Thread stoped [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:32]accept exits with 9 [15:44:32]New connection [15:44:32]New thread 3067108708 created [15:44:32]Thread 3067252068 joined [15:44:32]Waiting for new connection... [15:44:32] Sock 9.Parse request [15:44:32]Sock 9.Check first char [15:44:32]Sock 9.First char is OK [15:44:32]request: POST /json_proto HTTP/1.0 [15:44:32]Method: POST [15:44:32]URL: /json_proto [15:44:32]Method is POST - this is cgi request [15:44:32]url: /json_proto [15:44:32]query_string will be loaded in cgi processing [15:44:32]execute_cgi json_proto POST (null) [15:44:32]execute_cgi path=json_proto method=POST [15:44:32]POST find Content-Length [15:44:32]Host: 172.17.42.196:8080 [15:44:32]Content-Length: 624 [15:44:32]Content-Type: application/json [15:44:32] [15:44:32]POST finish read [15:44:32]Found Content-Length = 624 [15:44:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199801", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:32]execute_script... [15:44: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 : (3)199801", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:32]POST & json_proto [15:44:32]process_json_proto [15:44:32]json parsed OK: [15:44:32]protocol is kg_v1.0 [15:44:32]action value=close_receipt [15:44:32]process_action close_receipt [15:44:32]cmd_close_receipt [15:44:32]MH_GetDate [15:44:32]Write to MH i2c: F0 00 00 B2 1F C0 [15:44:32]Write i2c OK [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: F0 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: F0 09 00 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: F0 09 00 B2 1F 00 65 6B 1A 67 FF C4 6B 64 AC [15:44:32]GetLastDocTimeStamp 1729784360 [15:44:32]current date 1729784677 [15:44:32]FM_GetShiftState [15:44:32]SAM_PROTO_GetShiftState [15:44:32]wFMCommunicate request_size=4 [15:44:32]MH_SAM_APDU [15:44:32]CAPDU: 80 13 01 00 [15:44:32]Write to MH i2c: E2 08 00 B3 1F 80 13 01 00 00 00 00 00 4F [15:44:32]Write i2c OK [15:44:32]MH_I2C_Read... [15:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:32]Read from MH i2c: E2 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 0E 00 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: E2 0E 00 B3 1F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 82 [15:44:32]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [15:44:32]wFMCommunicate OK [15:44:32]SAM_PROTO_GetShiftState done [15:44:32]FM_GetShiftState done [15:44:32]opened in 1729730575 [15:44:32]opened+sec_in_day 1729816975 [15:44:32]quantity*price = 16000 [15:44:32]sum+1 = 16001 [15:44:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 91 24.10.2024 15:44 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60016 ФПД: 138842543887188 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154437&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60016&fm=138842543887188&tin=02508201610067®Number=0000000000091622&sum=16000 0 [15:44:33]StoreToDocumentArchive [15:44:33]shift 529 fd 60016 [15:44:33]save to /storage/0529/doc_00060016 [15:44:33]save last doc name /storage/0529/doc_00060016 to /storage/kkm_last_doc_name [15:44:33]save OK [15:44:33]Clear old archive folders... [15:44:33]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:44:33]tlvbuf is B6F0A630 [15:44:33]SAM_PROTO_ClearQueue [15:44:33]wFMCommunicate request_size=4 [15:44:33]MH_SAM_APDU [15:44:33]CAPDU: 80 09 00 00 [15:44:33]Write to MH i2c: E2 08 00 C0 1F 80 09 00 00 00 00 00 00 51 [15:44:33]Write i2c OK [15:44:33]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 C0 1F 00 90 00 53 [15:44:34]RAPDU: 90 00 [15:44:34]wFMCommunicate OK [15:44:34]SAM_PROTO_ClearQueue done [15:44:34]KKMCreateOFDPacket [15:44:34]OFDProtocolAddRootSTLVToBuf [15:44:34]FM_MakeSignedData [15:44:34]FM_MakeSignedData [15:44:34]SAM_PROTO_SignData [15:44:34]wFMCommunicate request_size=4 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 0D 01 02 [15:44:34]Write to MH i2c: E2 08 00 C1 1F 80 0D 01 02 00 00 00 00 59 [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 C1 1F 00 90 00 54 [15:44:34]RAPDU: 90 00 [15:44:34]wFMCommunicate OK [15:44:34]wFMCommunicate request_size=255 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 65 6B 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 [15:44:34]Write to MH i2c: E2 02 01 C2 1F 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 65 6B 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 00 00 ED [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 C2 1F 00 90 00 55 [15:44:34]RAPDU: 90 00 [15:44:34]wFMCommunicate OK [15:44:34]wFMCommunicate request_size=35 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 70 EA 00 00 35 04 06 00 7E 46 CC 82 13 54 [15:44:34]Write to MH i2c: E2 26 00 C3 1F 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 70 EA 00 00 35 04 06 00 7E 46 CC 82 13 54 00 00 26 [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 C3 1F 00 90 00 56 [15:44:34]RAPDU: 90 00 [15:44:34]wFMCommunicate OK [15:44:34]wFMCommunicate request_size=4 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 0D 03 02 [15:44:34]Write to MH i2c: E2 08 00 C4 1F 80 0D 03 02 00 00 00 00 5E [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 0B 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 0B 00 C4 1F 00 39 48 0B FF B6 D1 A3 D4 90 00 E8 [15:44:34]RAPDU: 39 48 0B FF B6 D1 A3 D4 90 00 [15:44:34]wFMCommunicate OK [15:44:34]SAM_PROTO_SignData done [15:44:34]FM_MakeSignedData done [15:44:34]CreateOFDProtocolMessage [15:44:34]wFMCommunicate request_size=4 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 11 00 00 [15:44:34]Write to MH i2c: E2 08 00 C5 1F 80 11 00 00 00 00 00 00 5E [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 17 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 17 00 C5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 B5 [15:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [15:44:34]wFMCommunicate OK [15:44:34]CreateOFDProtocolMessage done [15:44:34]OFDSenderStorePacket 60016 [15:44:34]StoreOFDPacket docnum=60016 [15:44:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 28 01 00 00 ED 67 20 01 3D FB 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 65 6B 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 70 EA 00 00 35 04 06 00 7E 46 CC 82 13 54 39 48 0B FF B6 D1 A3 D4 [15:44:34]CheckFolder [15:44:34]dirname=/storage/ofd_packets [15:44:34]CheckFolder done [15:44:34]ProducePacketName [15:44:34]name=ofd_packets/00060016 [15:44:34]NVStorageSaveData ofd_packets/00060016 [15:44:34]File name is /storage/ofd_packets/00060016 [15:44:34]Write 326 bytes [15:44:34]NVStorageSaveData done [15:44:34]OFDSenderStorePacket done [15:44:34]KKMCreateOFDPacket done [15:44:34]NVStorageSaveData kkm_last_timestamp [15:44:34]File name is /storage/kkm_last_timestamp [15:44:34]Write 4 bytes [15:44:34]NVStorageSaveData done [15:44:34]ExternCall_PrintAddStr [15:44:34]wPrintStart [15:44:34]Write to MH i2c: 01 00 00 C6 1F E5 [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: 01 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: 01 07 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: 01 07 00 C6 1F 00 00 00 00 00 FF 0F FA [15:44:34]RasterBufferAndPrint [15:44:34]line Счет N : (3)199801 [15:44:34]line ИНН: 02508201610067 [15:44:34]line Контрольно-Кассовый Чек [15:44:34]line ПРОДАЖА [15:44:34]line Товар: 48742245 [15:44:34]line Сигареты Parliament Silver Blue [15:44:34]line 1.000 * 160.00 [15:44:34]line = 160.00 [15:44:34]line НДС 12% НСП 1% [15:44:34]line > о реализуемом товаре [15:44:34]line ИТОГО: 160.00 [15:44:34]line НСП 1% : 1.42 [15:44:34]line НДС 12% : 16.99 [15:44:34]line Наличными: 160.00 [15:44:34]line Безнал.: 0.00 [15:44:34]line Место: АЗС № 87 "Партнер Нефть" [15:44:34]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [15:44:34]line СНО: Общий режим [15:44:34]line Чек 91 24.10.2024 15:44 [15:44:34]line Смена: 529 ФФД: 1.0 [15:44:34]line ЗНМ: 0300000084 [15:44:34]line РНМ: 0000000000091622 [15:44:34]line Версия ККМ: 001 [15:44:34]line ФМ: 0000000000874674 [15:44:34]line ФД: 60016 [15:44:34]line ФПД: 138842543887188 [15:44:34]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154437&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60016&fm=138842543887188&tin=02508201610067®Number=0000000000091622&sum=16000 [15:44:34]OFD Sender: Processing packet 60016 [packets to send 30, broken 29] [15:44:34]ProducePacketName [15:44:34]name=ofd_packets/00060016 [15:44:34]OFD Sender: To server: pG, [15:44:34]CommunicateWithHost lk.salyk.kg:30040 [15:44:34]ConnectInit lk.salyk.kg [15:44:34]line 0 [15:44:34]written 0, free lines is 4095 [15:44:34]Connected sock=10 [15:44:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 28 01 00 00 ED 67 20 01 3D FB 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 65 6B 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 70 EA 00 00 35 04 06 00 7E 46 CC 82 13 54 39 48 0B FF B6 D1 A3 D4 [15:44:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 0C F8 47 00 D1 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 34 36 37 34 10 04 04 00 70 EA 00 00 F4 03 04 00 55 11 1A 67 B6 04 01 00 00 20 5E 16 45 2F 58 52 D6 [15:44:35]CommunicateWithHost err = 0 [15:44:35]CheckOFDResponse [15:44:35]1017 (14) - 77093643461234 [15:44:35]1041 (16) - 0000000000874674 [15:44:35]1040 (4) - 60016 [15:44:35]1012 (4) - 24.10.2024 09:20 [15:44:35]1206 (1) - 0 [15:44:35]OFD Sender: Remove packet 60016 [15:44:35]ProducePacketName [15:44:35]name=ofd_packets/00060016 [15:44:35]NVStorageDeleteData [15:44:35]Write to MH i2c: 01 00 00 EF 1F 0E [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: 01 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: 01 07 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: 01 07 00 EF 1F 00 00 00 00 00 D9 0C FA [15:44:35]RasterBufferAndPrint [15:44:35]line [15:44:35]line [15:44:35]line [15:44:35]line [15:44:35]line [15:44:35]written 0, free lines is 3296 [15:44:35]MH_Cut [15:44:35]Write to MH i2c: D1 01 00 F6 1F 01 E7 [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: D1 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: D1 01 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: D1 01 00 F6 1F 00 E6 [15:44:35]Write to MH i2c: 01 00 00 F7 1F 16 [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]OFD Sender: No OFD packet to send [15:44:36]*** Cut start [15:44:36]*** Partial cut [15:44:36]*** CUTSNS_PIN = 1 [15:44:36]*** CUTSNS_PIN = 0 [15:44:36]*** Brake cut motor [15:44:36]Read from MH i2c: 01 [15:44:36]MH_I2C_Read... [15:44:36]*** Stop cut motor [15:44:36]*** Cut end [15:44:36]Read from MH i2c: 01 07 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: 01 07 00 F7 1F 00 00 00 00 00 FF 0F 2B [15:44:36]process_action close_receipt done [15:44:36]requested_data is exist [15:44:36]produce_requested_data [15:44:36]requested_item fm.sn is exist - process it [15:44:36]wFMCommunicate request_size=4 [15:44:36]MH_SAM_APDU [15:44:36]CAPDU: 80 11 00 00 [15:44:36]Write to MH i2c: E2 08 00 F8 1F 80 11 00 00 00 00 00 00 91 [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:36]Read from MH i2c: E2 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 17 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 17 00 F8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 E8 [15:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [15:44:36]wFMCommunicate OK [15:44:36]requested_item fd.num is exist - process it [15:44:36]SAM_PROTO_GetFieldsCounters [15:44:36]wFMCommunicate request_size=4 [15:44:36]MH_SAM_APDU [15:44:36]CAPDU: 80 13 00 00 [15:44:36]Write to MH i2c: E2 08 00 F9 1F 80 13 00 00 00 00 00 00 94 [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:36]Read from MH i2c: E2 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 62 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 62 00 F9 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 70 EA 00 00 0E 04 04 00 11 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 32 [15:44: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 70 EA 00 00 0E 04 04 00 11 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 [15:44:36]wFMCommunicate OK [15:44:36]SAM_PROTO_GetFieldsCounters done [15:44:36]requested_item shift.num is exist - process it [15:44:36]requested_item shift.opened is exist - process it [15:44:36]req_shift_opened [15:44:36]FM_GetShiftState [15:44:36]SAM_PROTO_GetShiftState [15:44:36]wFMCommunicate request_size=4 [15:44:36]MH_SAM_APDU [15:44:36]CAPDU: 80 13 01 00 [15:44:36]Write to MH i2c: E2 08 00 FA 1F 80 13 01 00 00 00 00 00 96 [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:37]Read from MH i2c: E2 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 0E 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 0E 00 FA 1F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 C9 [15:44:37]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [15:44:37]wFMCommunicate OK [15:44:37]SAM_PROTO_GetShiftState done [15:44:37]FM_GetShiftState done [15:44:37]req_shift_opened done [15:44:37]requested_item shift.open_date is exist - process it [15:44:37]req_shift_open_date [15:44:37]req_shift_open_date done [15:44:37]produce_requested_data done [15:44:37]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60016,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [15:44:37]process_action_free close_receipt [15:44:37]json_value_free [15:44:37]json_value_free done [15:44:37]process_json_proto returns [15:44:37]Send response to host [15:44:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60016,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [15:44:37]free response buf [15:44:37]execute_script done [15:44:37]execute_script returns [15:44:37]free content buf [15:44:37]Sock 9.Close socket [15:44:37]Sock 9.Thread stoped [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:01]accept exits with 7 [15:52:01]New connection [15:52:01]New thread 3067252068 created [15:52:01]Thread 3067108708 joined [15:52:01]Waiting for new connection... [15:52:01] Sock 7.Parse request [15:52:01]Sock 7.Check first char [15:52:01]Sock 7.First char is OK [15:52:01]request: POST /json_proto HTTP/1.0 [15:52:01]Method: POST [15:52:01]URL: /json_proto [15:52:01]Method is POST - this is cgi request [15:52:01]url: /json_proto [15:52:01]query_string will be loaded in cgi processing [15:52:01]execute_cgi json_proto POST (null) [15:52:01]execute_cgi path=json_proto method=POST [15:52:01]POST find Content-Length [15:52:01]Host: 172.17.42.196:8080 [15:52:01]Content-Length: 649 [15:52:01]Content-Type: application/json [15:52:01] [15:52:01]POST finish read [15:52:01]Found Content-Length = 649 [15:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199802", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:01]execute_script... [15: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 : (3)199802", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:01]POST & json_proto [15:52:01]process_json_proto [15:52:01]json parsed OK: [15:52:01]protocol is kg_v1.0 [15:52:01]action value=close_receipt [15:52:01]process_action close_receipt [15:52:01]cmd_close_receipt [15:52:01]MH_GetDate [15:52:01]Write to MH i2c: F0 00 00 FB 1F 09 [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: F0 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: F0 09 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: F0 09 00 FB 1F 00 26 6D 1A 67 FF C4 6B 64 B8 [15:52:01]GetLastDocTimeStamp 1729784677 [15:52:01]current date 1729785126 [15:52:01]FM_GetShiftState [15:52:01]SAM_PROTO_GetShiftState [15:52:01]wFMCommunicate request_size=4 [15:52:01]MH_SAM_APDU [15:52:01]CAPDU: 80 13 01 00 [15:52:01]Write to MH i2c: E2 08 00 FC 1F 80 13 01 00 00 00 00 00 98 [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:01]Read from MH i2c: E2 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 0E 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 0E 00 FC 1F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 CB [15:52:01]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [15:52:01]wFMCommunicate OK [15:52:01]SAM_PROTO_GetShiftState done [15:52:01]FM_GetShiftState done [15:52:01]opened in 1729730575 [15:52:01]opened+sec_in_day 1729816975 [15:52:01]quantity*price = 8500 [15:52:01]sum+1 = 8501 [15:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 92 24.10.2024 15:52 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60017 ФПД: 197561179379422 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155206&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60017&fm=197561179379422&tin=02508201610067®Number=0000000000091622&sum=8500 0 [15:52:02]StoreToDocumentArchive [15:52:02]shift 529 fd 60017 [15:52:02]save to /storage/0529/doc_00060017 [15:52:02]save last doc name /storage/0529/doc_00060017 to /storage/kkm_last_doc_name [15:52:02]save OK [15:52:02]Clear old archive folders... [15:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:52:02]tlvbuf is B6F0A3B0 [15:52:02]SAM_PROTO_ClearQueue [15:52:02]wFMCommunicate request_size=4 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 09 00 00 [15:52:02]Write to MH i2c: E2 08 00 09 20 80 09 00 00 00 00 00 00 9B [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 09 20 00 90 00 9D [15:52:02]RAPDU: 90 00 [15:52:02]wFMCommunicate OK [15:52:02]SAM_PROTO_ClearQueue done [15:52:02]KKMCreateOFDPacket [15:52:02]OFDProtocolAddRootSTLVToBuf [15:52:02]FM_MakeSignedData [15:52:02]FM_MakeSignedData [15:52:02]SAM_PROTO_SignData [15:52:02]wFMCommunicate request_size=4 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 0D 01 02 [15:52:02]Write to MH i2c: E2 08 00 0A 20 80 0D 01 02 00 00 00 00 A3 [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 0A 20 00 90 00 9E [15:52:02]RAPDU: 90 00 [15:52:02]wFMCommunicate OK [15:52:02]wFMCommunicate request_size=255 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 26 6D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 [15:52:02]Write to MH i2c: E2 02 01 0B 20 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 26 6D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 00 00 FD [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:03]Read from MH i2c: E2 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 03 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 03 00 0B 20 00 90 00 9F [15:52:03]RAPDU: 90 00 [15:52:03]wFMCommunicate OK [15:52:03]wFMCommunicate request_size=39 [15:52:03]MH_SAM_APDU [15:52:03]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 71 EA 00 00 35 04 06 00 B3 AE 4B EB 16 DE [15:52:03]Write to MH i2c: E2 2A 00 0C 20 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 71 EA 00 00 35 04 06 00 B3 AE 4B EB 16 DE 00 00 4B [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:03]Read from MH i2c: E2 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 03 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 03 00 0C 20 00 90 00 A0 [15:52:03]RAPDU: 90 00 [15:52:03]wFMCommunicate OK [15:52:03]wFMCommunicate request_size=4 [15:52:03]MH_SAM_APDU [15:52:03]CAPDU: 80 0D 03 02 [15:52:03]Write to MH i2c: E2 08 00 0D 20 80 0D 03 02 00 00 00 00 A8 [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:03]Read from MH i2c: E2 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 0B 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 0B 00 0D 20 00 22 D7 8F D4 F3 A5 A9 AC 90 00 F2 [15:52:03]RAPDU: 22 D7 8F D4 F3 A5 A9 AC 90 00 [15:52:03]wFMCommunicate OK [15:52:03]SAM_PROTO_SignData done [15:52:03]FM_MakeSignedData done [15:52:03]CreateOFDProtocolMessage [15:52:03]wFMCommunicate request_size=4 [15:52:03]MH_SAM_APDU [15:52:03]CAPDU: 80 11 00 00 [15:52:03]Write to MH i2c: E2 08 00 0E 20 80 11 00 00 00 00 00 00 A8 [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:03]Read from MH i2c: E2 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 17 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 17 00 0E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 FF [15:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [15:52:03]wFMCommunicate OK [15:52:03]CreateOFDProtocolMessage done [15:52:03]OFDSenderStorePacket 60017 [15:52:03]StoreOFDPacket docnum=60017 [15:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2C 01 00 00 52 02 24 01 7A 26 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 26 6D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 71 EA 00 00 35 04 06 00 B3 AE 4B EB 16 DE 22 D7 8F D4 F3 A5 A9 AC [15:52:03]CheckFolder [15:52:03]dirname=/storage/ofd_packets [15:52:03]CheckFolder done [15:52:03]ProducePacketName [15:52:03]name=ofd_packets/00060017 [15:52:03]NVStorageSaveData ofd_packets/00060017 [15:52:03]File name is /storage/ofd_packets/00060017 [15:52:03]Write 330 bytes [15:52:03]NVStorageSaveData done [15:52:03]OFDSenderStorePacket done [15:52:03]KKMCreateOFDPacket done [15:52:03]NVStorageSaveData kkm_last_timestamp [15:52:03]File name is /storage/kkm_last_timestamp [15:52:03]Write 4 bytes [15:52:03]NVStorageSaveData done [15:52:03]ExternCall_PrintAddStr [15:52:03]wPrintStart [15:52:03]Write to MH i2c: 01 00 00 0F 20 2F [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 07 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 07 00 0F 20 00 00 00 00 00 FF 0F 44 [15:52:03]RasterBufferAndPrint [15:52:03]line Счет N : (3)199802 [15:52:03]line ИНН: 02508201610067 [15:52:03]line Контрольно-Кассовый Чек [15:52:03]line ПРОДАЖА [15:52:03]line Товар: 4870227272957 [15:52:03]line Лимонад Sunbel Тархун 1л [15:52:03]line 1.000 * 85.00 [15:52:03]line = 85.00 [15:52:03]line НДС 12% НСП 1% [15:52:03]line > о реализуемом товаре [15:52:03]line ИТОГО: 85.00 [15:52:03]line НСП 1% : 0.75 [15:52:03]line НДС 12% : 9.03 [15:52:03]line Наличными: 85.00 [15:52:03]line Безнал.: 0.00 [15:52:03]line Место: АЗС № 87 "Партнер Нефть" [15:52:03]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [15:52:03]line СНО: Общий режим [15:52:03]line Чек 92 24.10.2024 15:52 [15:52:03]line Смена: 529 ФФД: 1.0 [15:52:03]line ЗНМ: 0300000084 [15:52:03]line РНМ: 0000000000091622 [15:52:03]line Версия ККМ: 001 [15:52:03]line ФМ: 0000000000874674 [15:52:03]line ФД: 60017 [15:52:03]line ФПД: 197561179379422 [15:52:03]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155206&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60017&fm=197561179379422&tin=02508201610067®Number=0000000000091622&sum=8500 [15:52:03]line 0 [15:52:03]OFD Sender: Processing packet 60017 [packets to send 30, broken 29] [15:52:03]ProducePacketName [15:52:03]name=ofd_packets/00060017 [15:52:03]OFD Sender: To server: pG, [15:52:03]CommunicateWithHost lk.salyk.kg:30040 [15:52:03]ConnectInit lk.salyk.kg [15:52:03]written 0, free lines is 4095 [15:52:03]Connected sock=10 [15: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 34 36 37 34 2C 01 00 00 52 02 24 01 7A 26 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 26 6D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 71 EA 00 00 35 04 06 00 B3 AE 4B EB 16 DE 22 D7 8F D4 F3 A5 A9 AC [15:52:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 D9 E4 47 00 8E 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 34 36 37 34 10 04 04 00 71 EA 00 00 F4 03 04 00 16 13 1A 67 B6 04 01 00 00 81 38 A2 A0 AD 75 80 82 [15:52:04]CommunicateWithHost err = 0 [15:52:04]CheckOFDResponse [15:52:04]1017 (14) - 77093643461234 [15:52:04]1041 (16) - 0000000000874674 [15:52:04]1040 (4) - 60017 [15:52:04]1012 (4) - 24.10.2024 09:27 [15:52:04]1206 (1) - 0 [15:52:04]OFD Sender: Remove packet 60017 [15:52:04]ProducePacketName [15:52:04]name=ofd_packets/00060017 [15:52:04]NVStorageDeleteData [15:52:04]Write to MH i2c: 01 00 00 37 20 57 [15:52:04]Write i2c OK [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: 01 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: 01 07 00 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: 01 07 00 37 20 00 00 00 00 00 F6 0C 60 [15:52:04]RasterBufferAndPrint [15:52:04]line [15:52:04]line [15:52:04]line [15:52:04]line [15:52:04]line [15:52:04]written 0, free lines is 3324 [15:52:04]MH_Cut [15:52:04]Write to MH i2c: D1 01 00 3E 20 01 30 [15:52:04]Write i2c OK [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: D1 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: D1 01 00 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: D1 01 00 3E 20 00 2F [15:52:04]Write to MH i2c: 01 00 00 3F 20 5F [15:52:04]Write i2c OK [15:52:04]MH_I2C_Read... [15:52:04]OFD Sender: No OFD packet to send [15:52:04]*** Cut start [15:52:04]*** Partial cut [15:52:04]*** CUTSNS_PIN = 1 [15:52:04]*** CUTSNS_PIN = 0 [15:52:05]*** Brake cut motor [15:52:05]Read from MH i2c: 01 [15:52:05]MH_I2C_Read... [15:52:05]*** Stop cut motor [15:52:05]*** Cut end [15:52:05]Read from MH i2c: 01 07 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: 01 07 00 3F 20 00 00 00 00 00 FF 0F 74 [15:52:05]process_action close_receipt done [15:52:05]requested_data is exist [15:52:05]produce_requested_data [15:52:05]requested_item fm.sn is exist - process it [15:52:05]wFMCommunicate request_size=4 [15:52:05]MH_SAM_APDU [15:52:05]CAPDU: 80 11 00 00 [15:52:05]Write to MH i2c: E2 08 00 40 20 80 11 00 00 00 00 00 00 DA [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:05]Read from MH i2c: E2 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 17 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 17 00 40 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 31 [15:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [15:52:05]wFMCommunicate OK [15:52:05]requested_item fd.num is exist - process it [15:52:05]SAM_PROTO_GetFieldsCounters [15:52:05]wFMCommunicate request_size=4 [15:52:05]MH_SAM_APDU [15:52:05]CAPDU: 80 13 00 00 [15:52:05]Write to MH i2c: E2 08 00 41 20 80 13 00 00 00 00 00 00 DD [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:05]Read from MH i2c: E2 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 62 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 62 00 41 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 71 EA 00 00 0E 04 04 00 11 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 7F [15: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 71 EA 00 00 0E 04 04 00 11 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 [15:52:05]wFMCommunicate OK [15:52:05]SAM_PROTO_GetFieldsCounters done [15:52:05]requested_item shift.num is exist - process it [15:52:05]requested_item shift.opened is exist - process it [15:52:05]req_shift_opened [15:52:05]FM_GetShiftState [15:52:05]SAM_PROTO_GetShiftState [15:52:05]wFMCommunicate request_size=4 [15:52:05]MH_SAM_APDU [15:52:05]CAPDU: 80 13 01 00 [15:52:05]Write to MH i2c: E2 08 00 42 20 80 13 01 00 00 00 00 00 DF [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:05]Read from MH i2c: E2 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 0E 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 0E 00 42 20 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 12 [15:52:05]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [15:52:05]wFMCommunicate OK [15:52:05]SAM_PROTO_GetShiftState done [15:52:05]FM_GetShiftState done [15:52:05]req_shift_opened done [15:52:05]requested_item shift.open_date is exist - process it [15:52:05]req_shift_open_date [15:52:05]req_shift_open_date done [15:52:05]produce_requested_data done [15:52:05]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60017,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [15:52:05]process_action_free close_receipt [15:52:05]json_value_free [15:52:05]json_value_free done [15:52:05]process_json_proto returns [15:52:05]Send response to host [15:52:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60017,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [15:52:05]free response buf [15:52:05]execute_script done [15:52:05]execute_script returns [15:52:05]free content buf [15:52:05]Sock 7.Close socket [15:52:05]Sock 7.Thread stoped [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]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:45]accept exits with 9 [16:00:45]New connection [16:00:45]New thread 3067108708 created [16:00:45]Thread 3067252068 joined [16:00:45]Waiting for new connection... [16:00:45] Sock 9.Parse request [16:00:45]Sock 9.Check first char [16:00:45]Sock 9.First char is OK [16:00:45]request: POST /json_proto HTTP/1.0 [16:00:45]Method: POST [16:00:45]URL: /json_proto [16:00:45]Method is POST - this is cgi request [16:00:45]url: /json_proto [16:00:45]query_string will be loaded in cgi processing [16:00:45]execute_cgi json_proto POST (null) [16:00:45]execute_cgi path=json_proto method=POST [16:00:45]POST find Content-Length [16:00:45]Host: 172.17.42.196:8080 [16:00:45]Content-Length: 1024 [16:00:45]Content-Type: application/json [16:00:45] [16:00:45]POST finish read [16:00:45]Found Content-Length = 1024 [16:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199803", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.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" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:45]execute_script... [16: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 : (3)199803", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.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" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:45]POST & json_proto [16:00:45]process_json_proto [16:00:45]json parsed OK: [16:00:45]protocol is kg_v1.0 [16:00:45]action value=close_receipt [16:00:45]process_action close_receipt [16:00:45]cmd_close_receipt [16:00:45]MH_GetDate [16:00:45]Write to MH i2c: F0 00 00 43 20 52 [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: F0 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: F0 09 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: F0 09 00 43 20 00 32 6F 1A 67 FF C4 6B 64 0F [16:00:45]GetLastDocTimeStamp 1729785126 [16:00:45]current date 1729785650 [16:00:45]FM_GetShiftState [16:00:45]SAM_PROTO_GetShiftState [16:00:45]wFMCommunicate request_size=4 [16:00:45]MH_SAM_APDU [16:00:45]CAPDU: 80 13 01 00 [16:00:45]Write to MH i2c: E2 08 00 44 20 80 13 01 00 00 00 00 00 E1 [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:45]Read from MH i2c: E2 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 0E 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 0E 00 44 20 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 14 [16:00:45]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [16:00:45]wFMCommunicate OK [16:00:45]SAM_PROTO_GetShiftState done [16:00:45]FM_GetShiftState done [16:00:45]opened in 1729730575 [16:00:45]opened+sec_in_day 1729816975 [16:00:45]quantity*price = 16000 [16:00:45]sum+1 = 16001 [16:00:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000996 Напиток Кока-Кола 0,33л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.02 Наличными: 0.00 Безнал.: 245.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 93 24.10.2024 16:00 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60018 ФПД: 161376842284589 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160050&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60018&fm=161376842284589&tin=02508201610067®Number=0000000000091622&sum=24500 0 [16:00:46]StoreToDocumentArchive [16:00:46]shift 529 fd 60018 [16:00:46]save to /storage/0529/doc_00060018 [16:00:46]save last doc name /storage/0529/doc_00060018 to /storage/kkm_last_doc_name [16:00:46]save OK [16:00:46]Clear old archive folders... [16:00:46]ProcessDocumentItem done err = 0, tmpTLVsize=385 [16:00:46]tlvbuf is 00DD1310 [16:00:46]SAM_PROTO_ClearQueue [16:00:46]wFMCommunicate request_size=4 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 09 00 00 [16:00:46]Write to MH i2c: E2 08 00 51 20 80 09 00 00 00 00 00 00 E3 [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:47]Read from MH i2c: E2 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 51 20 00 90 00 E5 [16:00:47]RAPDU: 90 00 [16:00:47]wFMCommunicate OK [16:00:47]SAM_PROTO_ClearQueue done [16:00:47]KKMCreateOFDPacket [16:00:47]OFDProtocolAddRootSTLVToBuf [16:00:47]FM_MakeSignedData [16:00:47]FM_MakeSignedData [16:00:47]SAM_PROTO_SignData [16:00:47]wFMCommunicate request_size=4 [16:00:47]MH_SAM_APDU [16:00:47]CAPDU: 80 0D 01 02 [16:00:47]Write to MH i2c: E2 08 00 52 20 80 0D 01 02 00 00 00 00 EB [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:47]Read from MH i2c: E2 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 52 20 00 90 00 E6 [16:00:47]RAPDU: 90 00 [16:00:47]wFMCommunicate OK [16:00:47]wFMCommunicate request_size=255 [16:00:47]MH_SAM_APDU [16:00:47]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [16:00:47]Write to MH i2c: E2 02 01 53 20 80 0D 02 02 FA 00 03 00 81 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 13 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:47]Read from MH i2c: E2 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 53 20 00 90 00 E7 [16:00:47]RAPDU: 90 00 [16:00:47]wFMCommunicate OK [16:00:47]wFMCommunicate request_size=144 [16:00:47]MH_SAM_APDU [16:00:47]CAPDU: 80 0D 02 02 8B 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 32 6F 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 72 EA 00 00 35 04 06 00 92 C5 79 5B FE 2D [16:00:47]Write to MH i2c: E2 93 00 54 20 80 0D 02 02 8B 00 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 32 6F 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 72 EA 00 00 35 04 06 00 92 C5 79 5B FE 2D 00 00 94 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:47]Read from MH i2c: E2 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 54 20 00 90 00 E8 [16:00:47]RAPDU: 90 00 [16:00:47]wFMCommunicate OK [16:00:47]wFMCommunicate request_size=4 [16:00:47]MH_SAM_APDU [16:00:47]CAPDU: 80 0D 03 02 [16:00:47]Write to MH i2c: E2 08 00 55 20 80 0D 03 02 00 00 00 00 F0 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:47]Read from MH i2c: E2 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 0B 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 0B 00 55 20 00 67 DB FC 63 DD AB F7 40 90 00 51 [16:00:47]RAPDU: 67 DB FC 63 DD AB F7 40 90 00 [16:00:47]wFMCommunicate OK [16:00:47]SAM_PROTO_SignData done [16:00:47]FM_MakeSignedData done [16:00:47]CreateOFDProtocolMessage [16:00:47]wFMCommunicate request_size=4 [16:00:47]MH_SAM_APDU [16:00:47]CAPDU: 80 11 00 00 [16:00:47]Write to MH i2c: E2 08 00 56 20 80 11 00 00 00 00 00 00 F0 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:47]Read from MH i2c: E2 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 17 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 17 00 56 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 47 [16:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [16:00:47]wFMCommunicate OK [16:00:47]CreateOFDProtocolMessage done [16:00:47]OFDSenderStorePacket 60018 [16:00:47]StoreOFDPacket docnum=60018 [16:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 95 01 00 00 6C CE 8D 01 D5 E2 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 32 6F 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 72 EA 00 00 35 04 06 00 92 C5 79 5B FE 2D 67 DB FC 63 DD AB F7 40 [16:00:47]CheckFolder [16:00:47]dirname=/storage/ofd_packets [16:00:47]CheckFolder done [16:00:47]ProducePacketName [16:00:47]name=ofd_packets/00060018 [16:00:47]NVStorageSaveData ofd_packets/00060018 [16:00:47]File name is /storage/ofd_packets/00060018 [16:00:47]Write 435 bytes [16:00:47]NVStorageSaveData done [16:00:47]OFDSenderStorePacket done [16:00:47]KKMCreateOFDPacket done [16:00:47]NVStorageSaveData kkm_last_timestamp [16:00:47]File name is /storage/kkm_last_timestamp [16:00:47]Write 4 bytes [16:00:47]NVStorageSaveData done [16:00:47]ExternCall_PrintAddStr [16:00:47]wPrintStart [16:00:47]Write to MH i2c: 01 00 00 57 20 77 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: 01 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: 01 07 00 [16:00:47]MH_I2C_Read... [16:00:47]OFD Sender: Processing packet 60018 [packets to send 30, broken 29] [16:00:47]ProducePacketName [16:00:47]name=ofd_packets/00060018 [16:00:47]Read from MH i2c: 01 OFD Sender: To server: pG, [16:00:47]07 00 57 CommunicateWithHost lk.salyk.kg:30040 [16:00:47]20 ConnectInit lk.salyk.kg [16:00:47]00 00 00 00 00 FF 0F 8C [16:00:47]RasterBufferAndPrint [16:00:47]line Счет N : (3)199803 [16:00:47]line ИНН: 02508201610067 [16:00:47]line Контрольно-Кассовый Чек [16:00:47]line ПРОДАЖА [16:00:47]line Товар: 48741958 [16:00:47]line Сигареты Parliament Aqua Blue [16:00:47]line 1.000 * 160.00 [16:00:47]line = 160.00 [16:00:47]line НДС 12% НСП 1% [16:00:47]line > о реализуемом товаре [16:00:47]line Товар: 5449000000996 [16:00:47]line Напиток Кока-Кола 0,33л [16:00:47]line 1.000 * 85.00 [16:00:47]line = 85.00 [16:00:47]line НДС 12% НСП 1% [16:00:47]line > о реализуемом товаре [16:00:47]line ИТОГО: 245.00 [16:00:47]line НСП 1% : 2.17 [16:00:47]line НДС 12% : 26.02 [16:00:47]line Наличными: 0.00 [16:00:47]line Безнал.: 245.00 [16:00:47]line Место: АЗС № 87 "Партнер Нефть" [16:00:47]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [16:00:47]line СНО: Общий режим [16:00:47]line Чек 93 24.10.2024 16:00 [16:00:47]line Смена: 529 ФФД: 1.0 [16:00:47]line ЗНМ: 0300000084 [16:00:47]line РНМ: 0000000000091622 [16:00:47]line Версия ККМ: 001 [16:00:47]line Платежная система: Mbank [16:00:47]line ФМ: 0000000000874674 [16:00:47]line ФД: 60018 [16:00:47]line ФПД: 161376842284589 [16:00:47]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160050&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60018&fm=161376842284589&tin=02508201610067®Number=0000000000091622&sum=24500 [16:00:47]line 0 [16:00:47]written 0, free lines is 4095 [16:00:48]Connected sock=11 [16:00:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 95 01 00 00 6C CE 8D 01 D5 E2 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 32 6F 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 72 EA 00 00 35 04 06 00 92 C5 79 5B FE 2D 67 DB FC 63 DD AB F7 40 [16:00:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 C9 20 47 00 C0 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 34 36 37 34 10 04 04 00 72 EA 00 00 F4 03 04 00 22 15 1A 67 B6 04 01 00 00 E4 68 E2 CB 9A C7 72 75 [16:00:48]CommunicateWithHost err = 0 [16:00:48]CheckOFDResponse [16:00:48]1017 (14) - 77093643461234 [16:00:48]1041 (16) - 0000000000874674 [16:00:48]1040 (4) - 60018 [16:00:48]1012 (4) - 24.10.2024 09:36 [16:00:48]1206 (1) - 0 [16:00:48]OFD Sender: Remove packet 60018 [16:00:48]ProducePacketName [16:00:48]name=ofd_packets/00060018 [16:00:48]NVStorageDeleteData [16:00:48]Write to MH i2c: 01 00 00 87 20 A7 [16:00:48]Write i2c OK [16:00:48]MH_I2C_Read... [16:00:48]Read from MH i2c: 01 [16:00:48]MH_I2C_Read... [16:00:48]Read from MH i2c: 01 07 00 [16:00:48]MH_I2C_Read... [16:00:48]Read from MH i2c: 01 07 00 87 20 00 00 00 00 00 82 0C 3C [16:00:48]RasterBufferAndPrint [16:00:48]line [16:00:48]line [16:00:48]line [16:00:48]line [16:00:48]line [16:00:48]written 0, free lines is 3209 [16:00:48]MH_Cut [16:00:48]Write to MH i2c: D1 01 00 8E 20 01 80 [16:00:48]Write i2c OK [16:00:48]MH_I2C_Read... [16:00:48]Read from MH i2c: D1 [16:00:48]MH_I2C_Read... [16:00:48]Read from MH i2c: D1 01 00 [16:00:48]MH_I2C_Read... [16:00:48]Read from MH i2c: D1 01 00 8E 20 00 7F [16:00:48]Write to MH i2c: 01 00 00 8F 20 AF [16:00:48]Write i2c OK [16:00:48]MH_I2C_Read... [16:00:48]OFD Sender: No OFD packet to send [16:00:49]*** Cut start [16:00:49]*** Partial cut [16:00:49]*** CUTSNS_PIN = 1 [16:00:49]*** CUTSNS_PIN = 0 [16:00:49]*** Brake cut motor [16:00:49]Read from MH i2c: 01 [16:00:49]MH_I2C_Read... [16:00:49]*** Stop cut motor [16:00:49]*** Cut end [16:00:49]Read from MH i2c: 01 07 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: 01 07 00 8F 20 00 00 00 00 00 FF 0F C4 [16:00:49]process_action close_receipt done [16:00:49]requested_data is exist [16:00:49]produce_requested_data [16:00:49]requested_item fm.sn is exist - process it [16:00:49]wFMCommunicate request_size=4 [16:00:49]MH_SAM_APDU [16:00:49]CAPDU: 80 11 00 00 [16:00:49]Write to MH i2c: E2 08 00 90 20 80 11 00 00 00 00 00 00 2A [16:00:49]Write i2c OK [16:00:49]MH_I2C_Read... [16:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:50]Read from MH i2c: E2 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 17 00 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 17 00 90 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 81 [16:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [16:00:50]wFMCommunicate OK [16:00:50]requested_item fd.num is exist - process it [16:00:50]SAM_PROTO_GetFieldsCounters [16:00:50]wFMCommunicate request_size=4 [16:00:50]MH_SAM_APDU [16:00:50]CAPDU: 80 13 00 00 [16:00:50]Write to MH i2c: E2 08 00 91 20 80 13 00 00 00 00 00 00 2D [16:00:50]Write i2c OK [16:00:50]MH_I2C_Read... [16:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:50]Read from MH i2c: E2 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 62 00 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 62 00 91 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 72 EA 00 00 0E 04 04 00 11 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 D3 [16:00: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 72 EA 00 00 0E 04 04 00 11 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 [16:00:50]wFMCommunicate OK [16:00:50]SAM_PROTO_GetFieldsCounters done [16:00:50]requested_item shift.num is exist - process it [16:00:50]requested_item shift.opened is exist - process it [16:00:50]req_shift_opened [16:00:50]FM_GetShiftState [16:00:50]SAM_PROTO_GetShiftState [16:00:50]wFMCommunicate request_size=4 [16:00:50]MH_SAM_APDU [16:00:50]CAPDU: 80 13 01 00 [16:00:50]Write to MH i2c: E2 08 00 92 20 80 13 01 00 00 00 00 00 2F [16:00:50]Write i2c OK [16:00:50]MH_I2C_Read... [16:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:50]Read from MH i2c: E2 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 0E 00 [16:00:50]MH_I2C_Read... [16:00:50]Read from MH i2c: E2 0E 00 92 20 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 62 [16:00:50]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [16:00:50]wFMCommunicate OK [16:00:50]SAM_PROTO_GetShiftState done [16:00:50]FM_GetShiftState done [16:00:50]req_shift_opened done [16:00:50]requested_item shift.open_date is exist - process it [16:00:50]req_shift_open_date [16:00:50]req_shift_open_date done [16:00:50]produce_requested_data done [16:00:50]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60018,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [16:00:50]process_action_free close_receipt [16:00:50]json_value_free [16:00:50]json_value_free done [16:00:50]process_json_proto returns [16:00:50]Send response to host [16:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60018,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [16:00:50]free response buf [16:00:50]execute_script done [16:00:50]execute_script returns [16:00:50]free content buf [16:00:50]Sock 9.Close socket [16:00:50]Sock 9.Thread stoped [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02: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 [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:37]accept exits with 7 [16:14:37]New connection [16:14:37]New thread 3067252068 created [16:14:37]Thread 3067108708 joined [16:14:37]Waiting for new connection... [16:14:37] Sock 7.Parse request [16:14:37]Sock 7.Check first char [16:14:37]Sock 7.First char is OK [16:14:37]request: POST /json_proto HTTP/1.0 [16:14:37]Method: POST [16:14:37]URL: /json_proto [16:14:37]Method is POST - this is cgi request [16:14:37]url: /json_proto [16:14:37]query_string will be loaded in cgi processing [16:14:37]execute_cgi json_proto POST (null) [16:14:37]execute_cgi path=json_proto method=POST [16:14:37]POST find Content-Length [16:14:37]Host: 172.17.42.196:8080 [16:14:37]Content-Length: 910 [16:14:37]Content-Type: application/json [16:14:37] [16:14:37]POST finish read [16:14:37]Found Content-Length = 910 [16:14:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199804", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:37]execute_script... [16:14:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199804", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:37]POST & json_proto [16:14:37]process_json_proto [16:14:37]json parsed OK: [16:14:37]protocol is kg_v1.0 [16:14:37]action value=close_receipt [16:14:37]process_action close_receipt [16:14:37]cmd_close_receipt [16:14:37]MH_GetDate [16:14:37]Write to MH i2c: F0 00 00 93 20 A2 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: F0 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: F0 09 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: F0 09 00 93 20 00 72 72 1A 67 FF C4 6B 64 A2 [16:14:37]GetLastDocTimeStamp 1729785650 [16:14:37]current date 1729786482 [16:14:37]FM_GetShiftState [16:14:37]SAM_PROTO_GetShiftState [16:14:37]wFMCommunicate request_size=4 [16:14:37]MH_SAM_APDU [16:14:37]CAPDU: 80 13 01 00 [16:14:37]Write to MH i2c: E2 08 00 94 20 80 13 01 00 00 00 00 00 31 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:37]Read from MH i2c: E2 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 0E 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 0E 00 94 20 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 64 [16:14:37]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [16:14:37]wFMCommunicate OK [16:14:37]SAM_PROTO_GetShiftState done [16:14:37]FM_GetShiftState done [16:14:37]opened in 1729730575 [16:14:37]opened+sec_in_day 1729816975 [16:14:37]quantity*price = 10500 [16:14:37]sum+1 = 10501 [16:14:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 94 24.10.2024 16:14 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60019 ФПД: 98244943846719 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161442&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60019&fm=98244943846719&tin=02508201610067®Number=0000000000091622&sum=22000 0 [16:14:39]StoreToDocumentArchive [16:14:39]shift 529 fd 60019 [16:14:39]save to /storage/0529/doc_00060019 [16:14:39]save last doc name /storage/0529/doc_00060019 to /storage/kkm_last_doc_name [16:14:39]save OK [16:14:39]Clear old archive folders... [16:14:39]ProcessDocumentItem done err = 0, tmpTLVsize=392 [16:14:39]tlvbuf is B6F0A0E0 [16:14:39]SAM_PROTO_ClearQueue [16:14:39]wFMCommunicate request_size=4 [16:14:39]MH_SAM_APDU [16:14:39]CAPDU: 80 09 00 00 [16:14:39]Write to MH i2c: E2 08 00 A1 20 80 09 00 00 00 00 00 00 33 [16:14:39]Write i2c OK [16:14:39]MH_I2C_Read... [16:14:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:39]Read from MH i2c: E2 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 03 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 03 00 A1 20 00 90 00 35 [16:14:39]RAPDU: 90 00 [16:14:39]wFMCommunicate OK [16:14:39]SAM_PROTO_ClearQueue done [16:14:39]KKMCreateOFDPacket [16:14:39]OFDProtocolAddRootSTLVToBuf [16:14:39]FM_MakeSignedData [16:14:39]FM_MakeSignedData [16:14:39]SAM_PROTO_SignData [16:14:39]wFMCommunicate request_size=4 [16:14:39]MH_SAM_APDU [16:14:39]CAPDU: 80 0D 01 02 [16:14:39]Write to MH i2c: E2 08 00 A2 20 80 0D 01 02 00 00 00 00 3B [16:14:39]Write i2c OK [16:14:39]MH_I2C_Read... [16:14:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:39]Read from MH i2c: E2 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 03 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 03 00 A2 20 00 90 00 36 [16:14:39]RAPDU: 90 00 [16:14:39]wFMCommunicate OK [16:14:39]wFMCommunicate request_size=255 [16:14:39]MH_SAM_APDU [16:14:39]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [16:14:39]Write to MH i2c: E2 02 01 A3 20 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 D4 [16:14:39]Write i2c OK [16:14:39]MH_I2C_Read... [16:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:39]Read from MH i2c: E2 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 03 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 03 00 A3 20 00 90 00 37 [16:14:39]RAPDU: 90 00 [16:14:39]wFMCommunicate OK [16:14:39]wFMCommunicate request_size=151 [16:14:39]MH_SAM_APDU [16:14:39]CAPDU: 80 0D 02 02 92 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 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 72 72 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 73 EA 00 00 35 04 06 00 59 5A 6E FA 9D 3F [16:14:39]Write to MH i2c: E2 9A 00 A4 20 80 0D 02 02 92 00 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 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 72 72 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 73 EA 00 00 35 04 06 00 59 5A 6E FA 9D 3F 00 00 EE [16:14:39]Write i2c OK [16:14:39]MH_I2C_Read... [16:14:39]OFD Sender: No OFD packet to send [16:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:39]Read from MH i2c: E2 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 03 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 03 00 A4 20 00 90 00 38 [16:14:39]RAPDU: 90 00 [16:14:39]wFMCommunicate OK [16:14:39]wFMCommunicate request_size=4 [16:14:39]MH_SAM_APDU [16:14:39]CAPDU: 80 0D 03 02 [16:14:39]Write to MH i2c: E2 08 00 A5 20 80 0D 03 02 00 00 00 00 40 [16:14:39]Write i2c OK [16:14:39]MH_I2C_Read... [16:14:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:39]Read from MH i2c: E2 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 0B 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 0B 00 A5 20 00 B1 6D B4 B0 74 95 D1 C5 90 00 62 [16:14:39]RAPDU: B1 6D B4 B0 74 95 D1 C5 90 00 [16:14:39]wFMCommunicate OK [16:14:39]SAM_PROTO_SignData done [16:14:39]FM_MakeSignedData done [16:14:39]CreateOFDProtocolMessage [16:14:39]wFMCommunicate request_size=4 [16:14:39]MH_SAM_APDU [16:14:39]CAPDU: 80 11 00 00 [16:14:39]Write to MH i2c: E2 08 00 A6 20 80 11 00 00 00 00 00 00 40 [16:14:39]Write i2c OK [16:14:39]MH_I2C_Read... [16:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:39]Read from MH i2c: E2 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 17 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 17 00 A6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 97 [16:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [16:14:39]wFMCommunicate OK [16:14:39]CreateOFDProtocolMessage done [16:14:39]OFDSenderStorePacket 60019 [16:14:39]StoreOFDPacket docnum=60019 [16:14:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 9C 01 00 00 20 47 94 01 DC 8D 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 72 72 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 73 EA 00 00 35 04 06 00 59 5A 6E FA 9D 3F B1 6D B4 B0 74 95 D1 C5 [16:14:39]CheckFolder [16:14:39]dirname=/storage/ofd_packets [16:14:39]CheckFolder done [16:14:39]ProducePacketName [16:14:39]name=ofd_packets/00060019 [16:14:39]NVStorageSaveData ofd_packets/00060019 [16:14:39]File name is /storage/ofd_packets/00060019 [16:14:39]Write 442 bytes [16:14:39]NVStorageSaveData done [16:14:39]OFDSenderStorePacket done [16:14:39]KKMCreateOFDPacket done [16:14:39]NVStorageSaveData kkm_last_timestamp [16:14:39]File name is /storage/kkm_last_timestamp [16:14:39]Write 4 bytes [16:14:39]NVStorageSaveData done [16:14:39]ExternCall_PrintAddStr [16:14:39]wPrintStart [16:14:39]Write to MH i2c: 01 00 00 A7 20 C7 [16:14:39]Write i2c OK [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: 01 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: 01 07 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: 01 07 00 A7 20 00 00 00 00 00 FF 0F DC [16:14:39]RasterBufferAndPrint [16:14:39]line Счет N : (3)199804 [16:14:39]line ИНН: 02508201610067 [16:14:39]line Контрольно-Кассовый Чек [16:14:39]line ПРОДАЖА [16:14:39]line Товар: 2000034730018 [16:14:39]line Кофе Американо (GABB TRADE) [16:14:39]line 1.000 * 105.00 [16:14:39]line = 105.00 [16:14:39]line НДС 12% НСП 1% [16:14:39]line > о реализуемом товаре [16:14:39]line Товар: 2000036210013 [16:14:39]line Кофе Капучино (GABB TRADE) [16:14:39]line 1.000 * 115.00 [16:14:40]line = 115.00 [16:14:40]line НДС 12% НСП 1% [16:14:40]line > о реализуемом товаре [16:14:40]line ИТОГО: 220.00 [16:14:40]line НСП 1% : 1.95 [16:14:40]line НДС 12% : 23.36 [16:14:40]line Наличными: 220.00 [16:14:40]line Безнал.: 0.00 [16:14:40]line Место: АЗС № 87 "Партнер Нефть" [16:14:40]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [16:14:40]line СНО: Общий режим [16:14:40]line Чек 94 24.10.2024 16:14 [16:14:40]line Смена: 529 ФФД: 1.0 [16:14:40]line ЗНМ: 0300000084 [16:14:40]line РНМ: 0000000000091622 [16:14:40]line Версия ККМ: 001 [16:14:40]line ФМ: 0000000000874674 [16:14:40]line ФД: 60019 [16:14:40]line ФПД: 98244943846719 [16:14:40]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161442&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60019&fm=98244943846719&tin=02508201610067®Number=0000000000091622&sum=22000 [16:14:40]line 0 [16:14:40]OFD Sender: Processing packet 60019 [packets to send 30, broken 29] [16:14:40]ProducePacketName [16:14:40]name=ofd_packets/00060019 [16:14:40]OFD Sender: To server: pG, [16:14:40]CommunicateWithHost lk.salyk.kg:30040 [16:14:40]ConnectInit lk.salyk.kg [16:14:40]written 0, free lines is 4095 [16:14:40]Connected sock=10 [16:14:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 9C 01 00 00 20 47 94 01 DC 8D 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 72 72 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 73 EA 00 00 35 04 06 00 59 5A 6E FA 9D 3F B1 6D B4 B0 74 95 D1 C5 [16:14:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 45 48 47 00 91 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 34 36 37 34 10 04 04 00 73 EA 00 00 F4 03 04 00 62 18 1A 67 B6 04 01 00 00 D8 C1 C3 03 75 B5 C7 89 [16:14:40]CommunicateWithHost err = 0 [16:14:40]CheckOFDResponse [16:14:40]1017 (14) - 77093643461234 [16:14:40]1041 (16) - 0000000000874674 [16:14:40]1040 (4) - 60019 [16:14:40]1012 (4) - 24.10.2024 09:50 [16:14:40]1206 (1) - 0 [16:14:40]OFD Sender: Remove packet 60019 [16:14:40]ProducePacketName [16:14:40]name=ofd_packets/00060019 [16:14:40]NVStorageDeleteData [16:14:40]Write to MH i2c: 01 00 00 D6 20 F6 [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: 01 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: 01 07 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: 01 07 00 D6 20 00 00 00 00 00 A2 0C AB [16:14:40]RasterBufferAndPrint [16:14:40]line [16:14:40]line [16:14:40]line [16:14:40]line [16:14:40]line [16:14:40]written 0, free lines is 3241 [16:14:40]MH_Cut [16:14:40]Write to MH i2c: D1 01 00 DD 20 01 CF [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: D1 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: D1 01 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: D1 01 00 DD 20 00 CE [16:14:40]Write to MH i2c: 01 00 00 DE 20 FE [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]OFD Sender: No OFD packet to send [16:14:41]*** Cut start [16:14:41]*** Partial cut [16:14:41]*** CUTSNS_PIN = 1 [16:14:41]*** CUTSNS_PIN = 0 [16:14:41]*** Brake cut motor [16:14:41]Read from MH i2c: 01 [16:14:41]MH_I2C_Read... [16:14:41]*** Stop cut motor [16:14:41]*** Cut end [16:14:41]Read from MH i2c: 01 07 00 [16:14:41]MH_I2C_Read... [16:14:41]Read from MH i2c: 01 07 00 DE 20 00 00 00 00 00 FF 0F 13 [16:14:41]process_action close_receipt done [16:14:41]requested_data is exist [16:14:41]produce_requested_data [16:14:41]requested_item fm.sn is exist - process it [16:14:41]wFMCommunicate request_size=4 [16:14:41]MH_SAM_APDU [16:14:41]CAPDU: 80 11 00 00 [16:14:41]Write to MH i2c: E2 08 00 DF 20 80 11 00 00 00 00 00 00 79 [16:14:41]Write i2c OK [16:14:41]MH_I2C_Read... [16:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:42]Read from MH i2c: E2 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 17 00 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 17 00 DF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 D0 [16:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [16:14:42]wFMCommunicate OK [16:14:42]requested_item fd.num is exist - process it [16:14:42]SAM_PROTO_GetFieldsCounters [16:14:42]wFMCommunicate request_size=4 [16:14:42]MH_SAM_APDU [16:14:42]CAPDU: 80 13 00 00 [16:14:42]Write to MH i2c: E2 08 00 E0 20 80 13 00 00 00 00 00 00 7C [16:14:42]Write i2c OK [16:14:42]MH_I2C_Read... [16:14:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:42]Read from MH i2c: E2 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 62 00 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 62 00 E0 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 73 EA 00 00 0E 04 04 00 11 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 26 [16:14:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 73 EA 00 00 0E 04 04 00 11 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 [16:14:42]wFMCommunicate OK [16:14:42]SAM_PROTO_GetFieldsCounters done [16:14:42]requested_item shift.num is exist - process it [16:14:42]requested_item shift.opened is exist - process it [16:14:42]req_shift_opened [16:14:42]FM_GetShiftState [16:14:42]SAM_PROTO_GetShiftState [16:14:42]wFMCommunicate request_size=4 [16:14:42]MH_SAM_APDU [16:14:42]CAPDU: 80 13 01 00 [16:14:42]Write to MH i2c: E2 08 00 E1 20 80 13 01 00 00 00 00 00 7E [16:14:42]Write i2c OK [16:14:42]MH_I2C_Read... [16:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:42]Read from MH i2c: E2 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 0E 00 [16:14:42]MH_I2C_Read... [16:14:42]Read from MH i2c: E2 0E 00 E1 20 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 B1 [16:14:42]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [16:14:42]wFMCommunicate OK [16:14:42]SAM_PROTO_GetShiftState done [16:14:42]FM_GetShiftState done [16:14:42]req_shift_opened done [16:14:42]requested_item shift.open_date is exist - process it [16:14:42]req_shift_open_date [16:14:42]req_shift_open_date done [16:14:42]produce_requested_data done [16:14:42]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60019,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [16:14:42]process_action_free close_receipt [16:14:42]json_value_free [16:14:42]json_value_free done [16:14:42]process_json_proto returns [16:14:42]Send response to host [16:14:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60019,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [16:14:42]free response buf [16:14:42]execute_script done [16:14:42]execute_script returns [16:14:42]free content buf [16:14:42]Sock 7.Close socket [16:14:42]Sock 7.Thread stoped [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:53]accept exits with 9 [16:25:53]New connection [16:25:53]New thread 3067108708 created [16:25:53]Thread 3067252068 joined [16:25:53]Waiting for new connection... [16:25:53] Sock 9.Parse request [16:25:53]Sock 9.Check first char [16:25:53]Sock 9.First char is OK [16:25:53]request: POST /json_proto HTTP/1.0 [16:25:53]Method: POST [16:25:53]URL: /json_proto [16:25:53]Method is POST - this is cgi request [16:25:53]url: /json_proto [16:25:53]query_string will be loaded in cgi processing [16:25:53]execute_cgi json_proto POST (null) [16:25:53]execute_cgi path=json_proto method=POST [16:25:53]POST find Content-Length [16:25:53]Host: 172.17.42.196:8080 [16:25:53]Content-Length: 619 [16:25:53]Content-Type: application/json [16:25:53] [16:25:53]POST finish read [16:25:53]Found Content-Length = 619 [16:25:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199805", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:53]execute_script... [16:25:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199805", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:53]POST & json_proto [16:25:53]process_json_proto [16:25:53]json parsed OK: [16:25:53]protocol is kg_v1.0 [16:25:53]action value=close_receipt [16:25:53]process_action close_receipt [16:25:53]cmd_close_receipt [16:25:53]MH_GetDate [16:25:53]Write to MH i2c: F0 00 00 E2 20 F1 [16:25:53]Write i2c OK [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: F0 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: F0 09 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: F0 09 00 E2 20 00 16 75 1A 67 FF C4 6B 64 98 [16:25:53]GetLastDocTimeStamp 1729786482 [16:25:53]current date 1729787158 [16:25:53]FM_GetShiftState [16:25:53]SAM_PROTO_GetShiftState [16:25:53]wFMCommunicate request_size=4 [16:25:53]MH_SAM_APDU [16:25:53]CAPDU: 80 13 01 00 [16:25:53]Write to MH i2c: E2 08 00 E3 20 80 13 01 00 00 00 00 00 80 [16:25:53]Write i2c OK [16:25:53]MH_I2C_Read... [16:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:53]Read from MH i2c: E2 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 0E 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 0E 00 E3 20 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 B3 [16:25:53]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [16:25:53]wFMCommunicate OK [16:25:53]SAM_PROTO_GetShiftState done [16:25:53]FM_GetShiftState done [16:25:53]opened in 1729730575 [16:25:53]opened+sec_in_day 1729816975 [16:25:53]quantity*price = 28800 [16:25:53]sum+1 = 28801 [16:25:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 95 24.10.2024 16:25 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60020 ФПД: 47573528818595 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162558&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60020&fm=47573528818595&tin=02508201610067®Number=0000000000091622&sum=28800 0 [16:25:54]StoreToDocumentArchive [16:25:54]shift 529 fd 60020 [16:25:54]save to /storage/0529/doc_00060020 [16:25:54]save last doc name /storage/0529/doc_00060020 to /storage/kkm_last_doc_name [16:25:54]save OK [16:25:54]Clear old archive folders... [16:25:54]ProcessDocumentItem done err = 0, tmpTLVsize=271 [16:25:54]tlvbuf is 00E07500 [16:25:54]SAM_PROTO_ClearQueue [16:25:54]wFMCommunicate request_size=4 [16:25:54]MH_SAM_APDU [16:25:54]CAPDU: 80 09 00 00 [16:25:54]Write to MH i2c: E2 08 00 F0 20 80 09 00 00 00 00 00 00 82 [16:25:54]Write i2c OK [16:25:54]MH_I2C_Read... [16:25:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:54]Read from MH i2c: E2 [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: E2 03 00 [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: E2 03 00 F0 20 00 90 00 84 [16:25:54]RAPDU: 90 00 [16:25:54]wFMCommunicate OK [16:25:54]SAM_PROTO_ClearQueue done [16:25:54]KKMCreateOFDPacket [16:25:54]OFDProtocolAddRootSTLVToBuf [16:25:54]FM_MakeSignedData [16:25:54]FM_MakeSignedData [16:25:54]SAM_PROTO_SignData [16:25:54]wFMCommunicate request_size=4 [16:25:54]MH_SAM_APDU [16:25:54]CAPDU: 80 0D 01 02 [16:25:54]Write to MH i2c: E2 08 00 F1 20 80 0D 01 02 00 00 00 00 8A [16:25:54]Write i2c OK [16:25:54]MH_I2C_Read... [16:25:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:54]Read from MH i2c: E2 [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: E2 03 00 [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: E2 03 00 F1 20 00 90 00 85 [16:25:54]RAPDU: 90 00 [16:25:54]wFMCommunicate OK [16:25:54]wFMCommunicate request_size=255 [16:25:54]MH_SAM_APDU [16:25:54]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 16 75 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [16:25:54]Write to MH i2c: E2 02 01 F2 20 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 16 75 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 CF [16:25:54]Write i2c OK [16:25:54]MH_I2C_Read... [16:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:55]Read from MH i2c: E2 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 03 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 03 00 F2 20 00 90 00 86 [16:25:55]RAPDU: 90 00 [16:25:55]wFMCommunicate OK [16:25:55]wFMCommunicate request_size=30 [16:25:55]MH_SAM_APDU [16:25:55]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 34 10 04 04 00 74 EA 00 00 35 04 06 00 2B 44 93 49 33 A3 [16:25:55]Write to MH i2c: E2 21 00 F3 20 80 0D 02 02 19 00 30 38 37 34 36 37 34 10 04 04 00 74 EA 00 00 35 04 06 00 2B 44 93 49 33 A3 00 00 09 [16:25:55]Write i2c OK [16:25:55]MH_I2C_Read... [16:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:55]Read from MH i2c: E2 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 03 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 03 00 F3 20 00 90 00 87 [16:25:55]RAPDU: 90 00 [16:25:55]wFMCommunicate OK [16:25:55]wFMCommunicate request_size=4 [16:25:55]MH_SAM_APDU [16:25:55]CAPDU: 80 0D 03 02 [16:25:55]Write to MH i2c: E2 08 00 F4 20 80 0D 03 02 00 00 00 00 8F [16:25:55]Write i2c OK [16:25:55]MH_I2C_Read... [16:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:55]Read from MH i2c: E2 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 0B 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 0B 00 F4 20 00 FB 7F 86 DB 9F 70 0D E5 90 00 6C [16:25:55]RAPDU: FB 7F 86 DB 9F 70 0D E5 90 00 [16:25:55]wFMCommunicate OK [16:25:55]SAM_PROTO_SignData done [16:25:55]FM_MakeSignedData done [16:25:55]CreateOFDProtocolMessage [16:25:55]wFMCommunicate request_size=4 [16:25:55]MH_SAM_APDU [16:25:55]CAPDU: 80 11 00 00 [16:25:55]Write to MH i2c: E2 08 00 F5 20 80 11 00 00 00 00 00 00 8F [16:25:55]Write i2c OK [16:25:55]MH_I2C_Read... [16:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:55]Read from MH i2c: E2 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 17 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 17 00 F5 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 E6 [16:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [16:25:55]wFMCommunicate OK [16:25:55]CreateOFDProtocolMessage done [16:25:55]OFDSenderStorePacket 60020 [16:25:55]StoreOFDPacket docnum=60020 [16:25:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 23 01 00 00 17 E1 1B 01 E0 C4 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 16 75 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 74 EA 00 00 35 04 06 00 2B 44 93 49 33 A3 FB 7F 86 DB 9F 70 0D E5 [16:25:55]CheckFolder [16:25:55]dirname=/storage/ofd_packets [16:25:55]CheckFolder done [16:25:55]ProducePacketName [16:25:55]name=ofd_packets/00060020 [16:25:55]NVStorageSaveData ofd_packets/00060020 [16:25:55]File name is /storage/ofd_packets/00060020 [16:25:55]Write 321 bytes [16:25:55]NVStorageSaveData done [16:25:55]OFDSenderStorePacket done [16:25:55]KKMCreateOFDPacket done [16:25:55]NVStorageSaveData kkm_last_timestamp [16:25:55]File name is /storage/kkm_last_timestamp [16:25:55]Write 4 bytes [16:25:55]NVStorageSaveData done [16:25:55]ExternCall_PrintAddStr [16:25:55]wPrintStart [16:25:55]Write to MH i2c: 01 00 00 F6 20 16 [16:25:55]Write i2c OK [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: 01 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: 01 07 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: 01 07 00 F6 20 00 00 00 00 00 FF 0F 2B [16:25:55]RasterBufferAndPrint [16:25:55]line Счет N : (3)199805 [16:25:55]line ИНН: 02508201610067 [16:25:55]line Контрольно-Кассовый Чек [16:25:55]line ПРОДАЖА [16:25:55]line Товар: 47802995 [16:25:55]line Сигареты Winston XS Silver [16:25:55]line 2.000 * 144.00 [16:25:55]line = 288.00 [16:25:55]line НДС 12% НСП 1% [16:25:55]line > о реализуемом товаре [16:25:55]line ИТОГО: 288.00 [16:25:55]line НСП 1% : 2.55 [16:25:55]line НДС 12% : 30.58 [16:25:55]line Наличными: 288.00 [16:25:55]line Безнал.: 0.00 [16:25:55]line Место: АЗС № 87 "Партнер Нефть" [16:25:55]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [16:25:55]line СНО: Общий режим [16:25:55]line Чек 95 24.10.2024 16:25 [16:25:55]line Смена: 529 ФФД: 1.0 [16:25:55]line ЗНМ: 0300000084 [16:25:55]line РНМ: 0000000000091622 [16:25:55]line Версия ККМ: 001 [16:25:55]line ФМ: 0000000000874674 [16:25:55]line ФД: 60020 [16:25:55]line ФПД: 47573528818595 [16:25:55]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162558&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60020&fm=47573528818595&tin=02508201610067®Number=0000000000091622&sum=28800 [16:25:55]line 0 [16:25:55]written 0, free lines is 4095 [16:25:55]OFD Sender: Processing packet 60020 [packets to send 30, broken 29] [16:25:55]ProducePacketName [16:25:55]name=ofd_packets/00060020 [16:25:55]OFD Sender: To server: pG, [16:25:55]CommunicateWithHost lk.salyk.kg:30040 [16:25:55]ConnectInit lk.salyk.kg [16:25:55]Connected sock=10 [16:25:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 23 01 00 00 17 E1 1B 01 E0 C4 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 16 75 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 74 EA 00 00 35 04 06 00 2B 44 93 49 33 A3 FB 7F 86 DB 9F 70 0D E5 [16:25:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 05 7A 47 00 2B 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 34 36 37 34 10 04 04 00 74 EA 00 00 F4 03 04 00 05 1B 1A 67 B6 04 01 00 00 50 63 CB FC 78 19 FB 4E [16:25:55]CommunicateWithHost err = 0 [16:25:55]CheckOFDResponse [16:25:55]1017 (14) - 77093643461234 [16:25:55]1041 (16) - 0000000000874674 [16:25:55]1040 (4) - 60020 [16:25:55]1012 (4) - 24.10.2024 10:01 [16:25:55]1206 (1) - 0 [16:25:55]OFD Sender: Remove packet 60020 [16:25:55]ProducePacketName [16:25:55]name=ofd_packets/00060020 [16:25:55]NVStorageDeleteData [16:25:55]Write to MH i2c: 01 00 00 1E 21 3F [16:25:55]Write i2c OK [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: 01 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: 01 07 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: 01 07 00 1E 21 00 00 00 00 00 0B 0D 5E [16:25:55]RasterBufferAndPrint [16:25:55]line [16:25:55]line [16:25:55]line [16:25:55]line [16:25:55]line [16:25:55]written 0, free lines is 3346 [16:25:55]MH_Cut [16:25:55]Write to MH i2c: D1 01 00 25 21 01 18 [16:25:55]Write i2c OK [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: D1 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: D1 01 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: D1 01 00 25 21 00 17 [16:25:55]Write to MH i2c: 01 00 00 26 21 47 [16:25:55]Write i2c OK [16:25:55]MH_I2C_Read... [16:25:56]OFD Sender: No OFD packet to send [16:25:56]*** Cut start [16:25:56]*** Partial cut [16:25:56]*** CUTSNS_PIN = 1 [16:25:56]*** CUTSNS_PIN = 0 [16:25:56]*** Brake cut motor [16:25:57]Read from MH i2c: 01 [16:25:57]MH_I2C_Read... [16:25:57]*** Stop cut motor [16:25:57]*** Cut end [16:25:57]Read from MH i2c: 01 07 00 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: 01 07 00 26 21 00 00 00 00 00 FF 0F 5C [16:25:57]process_action close_receipt done [16:25:57]requested_data is exist [16:25:57]produce_requested_data [16:25:57]requested_item fm.sn is exist - process it [16:25:57]wFMCommunicate request_size=4 [16:25:57]MH_SAM_APDU [16:25:57]CAPDU: 80 11 00 00 [16:25:57]Write to MH i2c: E2 08 00 27 21 80 11 00 00 00 00 00 00 C2 [16:25:57]Write i2c OK [16:25:57]MH_I2C_Read... [16:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:57]Read from MH i2c: E2 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 17 00 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 17 00 27 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 19 [16:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [16:25:57]wFMCommunicate OK [16:25:57]requested_item fd.num is exist - process it [16:25:57]SAM_PROTO_GetFieldsCounters [16:25:57]wFMCommunicate request_size=4 [16:25:57]MH_SAM_APDU [16:25:57]CAPDU: 80 13 00 00 [16:25:57]Write to MH i2c: E2 08 00 28 21 80 13 00 00 00 00 00 00 C5 [16:25:57]Write i2c OK [16:25:57]MH_I2C_Read... [16:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:57]Read from MH i2c: E2 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 62 00 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 62 00 28 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 74 EA 00 00 0E 04 04 00 11 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 73 [16:25: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 74 EA 00 00 0E 04 04 00 11 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 [16:25:57]wFMCommunicate OK [16:25:57]SAM_PROTO_GetFieldsCounters done [16:25:57]requested_item shift.num is exist - process it [16:25:57]requested_item shift.opened is exist - process it [16:25:57]req_shift_opened [16:25:57]FM_GetShiftState [16:25:57]SAM_PROTO_GetShiftState [16:25:57]wFMCommunicate request_size=4 [16:25:57]MH_SAM_APDU [16:25:57]CAPDU: 80 13 01 00 [16:25:57]Write to MH i2c: E2 08 00 29 21 80 13 01 00 00 00 00 00 C7 [16:25:57]Write i2c OK [16:25:57]MH_I2C_Read... [16:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:57]Read from MH i2c: E2 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 0E 00 [16:25:57]MH_I2C_Read... [16:25:57]Read from MH i2c: E2 0E 00 29 21 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 FA [16:25:57]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [16:25:57]wFMCommunicate OK [16:25:57]SAM_PROTO_GetShiftState done [16:25:57]FM_GetShiftState done [16:25:57]req_shift_opened done [16:25:57]requested_item shift.open_date is exist - process it [16:25:57]req_shift_open_date [16:25:57]req_shift_open_date done [16:25:57]produce_requested_data done [16:25:57]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60020,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [16:25:57]process_action_free close_receipt [16:25:57]json_value_free [16:25:57]json_value_free done [16:25:57]process_json_proto returns [16:25:57]Send response to host [16:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60020,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [16:25:57]free response buf [16:25:57]execute_script done [16:25:57]execute_script returns [16:25:57]free content buf [16:25:57]Sock 9.Close socket [16:25:57]Sock 9.Thread stoped [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:28:56]accept exits with 7 [16:28:56]New connection [16:28:56]New thread 3067252068 created [16:28:56]Thread 3067108708 joined [16:28:56]Waiting for new connection... [16:28:56] Sock 7.Parse request [16:28:56]Sock 7.Check first char [16:28:56]Sock 7.First char is OK [16:28:56]request: POST /json_proto HTTP/1.0 [16:28:56]Method: POST [16:28:56]URL: /json_proto [16:28:56]Method is POST - this is cgi request [16:28:56]url: /json_proto [16:28:56]query_string will be loaded in cgi processing [16:28:56]execute_cgi json_proto POST (null) [16:28:56]execute_cgi path=json_proto method=POST [16:28:56]POST find Content-Length [16:28:56]Host: 172.17.42.196:8080 [16:28:56]Content-Length: 632 [16:28:56]Content-Type: application/json [16:28:56] [16:28:56]POST finish read [16:28:56]Found Content-Length = 632 [16:28:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199806", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:56]execute_script... [16:28:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199806", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:56]POST & json_proto [16:28:56]process_json_proto [16:28:56]json parsed OK: [16:28:56]protocol is kg_v1.0 [16:28:56]action value=close_receipt [16:28:56]process_action close_receipt [16:28:56]cmd_close_receipt [16:28:56]MH_GetDate [16:28:56]Write to MH i2c: F0 00 00 2A 21 3A [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: F0 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: F0 09 00 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: F0 09 00 2A 21 00 CD 75 1A 67 FF C4 6B 64 98 [16:28:56]GetLastDocTimeStamp 1729787158 [16:28:56]current date 1729787341 [16:28:56]FM_GetShiftState [16:28:56]SAM_PROTO_GetShiftState [16:28:56]wFMCommunicate request_size=4 [16:28:56]MH_SAM_APDU [16:28:56]CAPDU: 80 13 01 00 [16:28:56]Write to MH i2c: E2 08 00 2B 21 80 13 01 00 00 00 00 00 C9 [16:28:56]Write i2c OK [16:28:56]MH_I2C_Read... [16:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:56]Read from MH i2c: E2 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 0E 00 [16:28:56]MH_I2C_Read... [16:28:56]Read from MH i2c: E2 0E 00 2B 21 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 FC [16:28:56]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [16:28:56]wFMCommunicate OK [16:28:56]SAM_PROTO_GetShiftState done [16:28:56]FM_GetShiftState done [16:28:56]opened in 1729730575 [16:28:56]opened+sec_in_day 1729816975 [16:28:56]quantity*price = 6000 [16:28:56]sum+1 = 6001 [16:28:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 96 24.10.2024 16:29 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60021 ФПД: 60804290922203 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162901&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60021&fm=60804290922203&tin=02508201610067®Number=0000000000091622&sum=6000 0 [16:28:57]StoreToDocumentArchive [16:28:57]shift 529 fd 60021 [16:28:57]save to /storage/0529/doc_00060021 [16:28:57]save last doc name /storage/0529/doc_00060021 to /storage/kkm_last_doc_name [16:28:57]save OK [16:28:57]Clear old archive folders... [16:28:57]ProcessDocumentItem done err = 0, tmpTLVsize=271 [16:28:57]tlvbuf is 00E33C90 [16:28:57]SAM_PROTO_ClearQueue [16:28:57]wFMCommunicate request_size=4 [16:28:57]MH_SAM_APDU [16:28:57]CAPDU: 80 09 00 00 [16:28:57]Write to MH i2c: E2 08 00 38 21 80 09 00 00 00 00 00 00 CB [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:57]Read from MH i2c: E2 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 03 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 03 00 38 21 00 90 00 CD [16:28:57]RAPDU: 90 00 [16:28:57]wFMCommunicate OK [16:28:57]SAM_PROTO_ClearQueue done [16:28:57]KKMCreateOFDPacket [16:28:57]OFDProtocolAddRootSTLVToBuf [16:28:57]FM_MakeSignedData [16:28:57]FM_MakeSignedData [16:28:57]SAM_PROTO_SignData [16:28:57]wFMCommunicate request_size=4 [16:28:57]MH_SAM_APDU [16:28:57]CAPDU: 80 0D 01 02 [16:28:57]Write to MH i2c: E2 08 00 39 21 80 0D 01 02 00 00 00 00 D3 [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:57]Read from MH i2c: E2 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 03 00 [16:28:57]MH_I2C_Read... [16:28:57]Read from MH i2c: E2 03 00 39 21 00 90 00 CE [16:28:57]RAPDU: 90 00 [16:28:57]wFMCommunicate OK [16:28:57]wFMCommunicate request_size=255 [16:28:57]MH_SAM_APDU [16:28:57]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CD 75 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [16:28:57]Write to MH i2c: E2 02 01 3A 21 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CD 75 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 33 [16:28:57]Write i2c OK [16:28:57]MH_I2C_Read... [16:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:58]Read from MH i2c: E2 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 03 00 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 03 00 3A 21 00 90 00 CF [16:28:58]RAPDU: 90 00 [16:28:58]wFMCommunicate OK [16:28:58]wFMCommunicate request_size=30 [16:28:58]MH_SAM_APDU [16:28:58]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 34 10 04 04 00 75 EA 00 00 35 04 06 00 37 4D 1A 29 46 DB [16:28:58]Write to MH i2c: E2 21 00 3B 21 80 0D 02 02 19 00 30 38 37 34 36 37 34 10 04 04 00 75 EA 00 00 35 04 06 00 37 4D 1A 29 46 DB 00 00 1A [16:28:58]Write i2c OK [16:28:58]MH_I2C_Read... [16:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:58]Read from MH i2c: E2 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 03 00 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 03 00 3B 21 00 90 00 D0 [16:28:58]RAPDU: 90 00 [16:28:58]wFMCommunicate OK [16:28:58]wFMCommunicate request_size=4 [16:28:58]MH_SAM_APDU [16:28:58]CAPDU: 80 0D 03 02 [16:28:58]Write to MH i2c: E2 08 00 3C 21 80 0D 03 02 00 00 00 00 D8 [16:28:58]Write i2c OK [16:28:58]MH_I2C_Read... [16:28:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:58]Read from MH i2c: E2 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 0B 00 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 0B 00 3C 21 00 3D 56 6C F5 58 F6 B5 F5 90 00 C5 [16:28:58]RAPDU: 3D 56 6C F5 58 F6 B5 F5 90 00 [16:28:58]wFMCommunicate OK [16:28:58]SAM_PROTO_SignData done [16:28:58]FM_MakeSignedData done [16:28:58]CreateOFDProtocolMessage [16:28:58]wFMCommunicate request_size=4 [16:28:58]MH_SAM_APDU [16:28:58]CAPDU: 80 11 00 00 [16:28:58]Write to MH i2c: E2 08 00 3D 21 80 11 00 00 00 00 00 00 D8 [16:28:58]Write i2c OK [16:28:58]MH_I2C_Read... [16:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:58]Read from MH i2c: E2 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 17 00 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 17 00 3D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 2F [16:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [16:28:58]wFMCommunicate OK [16:28:58]CreateOFDProtocolMessage done [16:28:58]OFDSenderStorePacket 60021 [16:28:58]StoreOFDPacket docnum=60021 [16:28:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 23 01 00 00 C0 C5 1B 01 ED F4 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CD 75 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 75 EA 00 00 35 04 06 00 37 4D 1A 29 46 DB 3D 56 6C F5 58 F6 B5 F5 [16:28:58]CheckFolder [16:28:58]dirname=/storage/ofd_packets [16:28:58]CheckFolder done [16:28:58]ProducePacketName [16:28:58]name=ofd_packets/00060021 [16:28:58]NVStorageSaveData ofd_packets/00060021 [16:28:58]File name is /storage/ofd_packets/00060021 [16:28:58]Write 321 bytes [16:28:58]NVStorageSaveData done [16:28:58]OFDSenderStorePacket done [16:28:58]KKMCreateOFDPacket done [16:28:58]NVStorageSaveData kkm_last_timestamp [16:28:58]File name is /storage/kkm_last_timestamp [16:28:58]Write 4 bytes [16:28:58]NVStorageSaveData done [16:28:58]ExternCall_PrintAddStr [16:28:58]wPrintStart [16:28:58]Write to MH i2c: 01 00 00 3E 21 5F [16:28:58]Write i2c OK [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: 01 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: 01 07 00 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: 01 07 00 3E 21 00 00 00 00 00 FF 0F 74 [16:28:58]RasterBufferAndPrint [16:28:58]line Счет N : (3)199806 [16:28:58]line ИНН: 02508201610067 [16:28:58]line Контрольно-Кассовый Чек [16:28:58]line ПРОДАЖА [16:28:58]line Товар: 4700000160204 [16:28:58]line Вода Легенда 1,5л [16:28:58]line 1.000 * 60.00 [16:28:58]line = 60.00 [16:28:58]line НДС 12% НСП 1% [16:28:58]line > о реализуемом товаре [16:28:58]line ИТОГО: 60.00 [16:28:58]line НСП 1% : 0.53 [16:28:58]line НДС 12% : 6.37 [16:28:58]line Наличными: 60.00 [16:28:58]line Безнал.: 0.00 [16:28:58]line Место: АЗС № 87 "Партнер Нефть" [16:28:58]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [16:28:58]line СНО: Общий режим [16:28:58]line Чек 96 24.10.2024 16:29 [16:28:58]line Смена: 529 ФФД: 1.0 [16:28:58]line ЗНМ: 0300000084 [16:28:58]line РНМ: 0000000000091622 [16:28:58]line Версия ККМ: 001 [16:28:58]line ФМ: 0000000000874674 [16:28:58]line ФД: 60021 [16:28:58]line ФПД: 60804290922203 [16:28:58]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162901&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60021&fm=60804290922203&tin=02508201610067®Number=0000000000091622&sum=6000 [16:28:58]OFD Sender: Processing packet 60021 [packets to send 30, broken 29] [16:28:58]ProducePacketName [16:28:58]name=ofd_packets/00060021 [16:28:58]OFD Sender: To server: pG, [16:28:58]CommunicateWithHost lk.salyk.kg:30040 [16:28:58]ConnectInit lk.salyk.kg [16:28:58]line 0 [16:28:58]written 0, free lines is 4095 [16:28:58]Connected sock=10 [16:28:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 23 01 00 00 C0 C5 1B 01 ED F4 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CD 75 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 75 EA 00 00 35 04 06 00 37 4D 1A 29 46 DB 3D 56 6C F5 58 F6 B5 F5 [16:28:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 4C D2 47 00 5D 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 34 36 37 34 10 04 04 00 75 EA 00 00 F4 03 04 00 BD 1B 1A 67 B6 04 01 00 00 EB C5 A1 CA DA 5E DB 5A [16:28:59]CommunicateWithHost err = 0 [16:28:59]CheckOFDResponse [16:28:59]1017 (14) - 77093643461234 [16:28:59]1041 (16) - 0000000000874674 [16:28:59]1040 (4) - 60021 [16:28:59]1012 (4) - 24.10.2024 10:04 [16:28:59]1206 (1) - 0 [16:28:59]OFD Sender: Remove packet 60021 [16:28:59]ProducePacketName [16:28:59]name=ofd_packets/00060021 [16:28:59]NVStorageDeleteData [16:28:59]Write to MH i2c: 01 00 00 66 21 87 [16:28:59]Write i2c OK [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: 01 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: 01 07 00 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: 01 07 00 66 21 00 00 00 00 00 04 0D 9F [16:28:59]RasterBufferAndPrint [16:28:59]line [16:28:59]line [16:28:59]line [16:28:59]line [16:28:59]line [16:28:59]written 0, free lines is 3340 [16:28:59]MH_Cut [16:28:59]Write to MH i2c: D1 01 00 6D 21 01 60 [16:28:59]Write i2c OK [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: D1 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: D1 01 00 [16:28:59]MH_I2C_Read... [16:28:59]Read from MH i2c: D1 01 00 6D 21 00 5F [16:28:59]Write to MH i2c: 01 00 00 6E 21 8F [16:28:59]Write i2c OK [16:28:59]MH_I2C_Read... [16:28:59]OFD Sender: No OFD packet to send [16:28:59]*** Cut start [16:28:59]*** Partial cut [16:28:59]*** CUTSNS_PIN = 1 [16:28:59]*** CUTSNS_PIN = 0 [16:29:00]*** Brake cut motor [16:29:00]Read from MH i2c: 01 [16:29:00]MH_I2C_Read... [16:29:00]*** Stop cut motor [16:29:00]*** Cut end [16:29:00]Read from MH i2c: 01 07 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: 01 07 00 6E 21 00 00 00 00 00 FF 0F A4 [16:29:00]process_action close_receipt done [16:29:00]requested_data is exist [16:29:00]produce_requested_data [16:29:00]requested_item fm.sn is exist - process it [16:29:00]wFMCommunicate request_size=4 [16:29:00]MH_SAM_APDU [16:29:00]CAPDU: 80 11 00 00 [16:29:00]Write to MH i2c: E2 08 00 6F 21 80 11 00 00 00 00 00 00 0A [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 17 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 17 00 6F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 61 [16:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [16:29:00]wFMCommunicate OK [16:29:00]requested_item fd.num is exist - process it [16:29:00]SAM_PROTO_GetFieldsCounters [16:29:00]wFMCommunicate request_size=4 [16:29:00]MH_SAM_APDU [16:29:00]CAPDU: 80 13 00 00 [16:29:00]Write to MH i2c: E2 08 00 70 21 80 13 00 00 00 00 00 00 0D [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 62 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 62 00 70 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 75 EA 00 00 0E 04 04 00 11 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 BF [16:29: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 75 EA 00 00 0E 04 04 00 11 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 [16:29:00]wFMCommunicate OK [16:29:00]SAM_PROTO_GetFieldsCounters done [16:29:00]requested_item shift.num is exist - process it [16:29:00]requested_item shift.opened is exist - process it [16:29:00]req_shift_opened [16:29:00]FM_GetShiftState [16:29:00]SAM_PROTO_GetShiftState [16:29:00]wFMCommunicate request_size=4 [16:29:00]MH_SAM_APDU [16:29:00]CAPDU: 80 13 01 00 [16:29:00]Write to MH i2c: E2 08 00 71 21 80 13 01 00 00 00 00 00 0F [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 0E 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 0E 00 71 21 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 42 [16:29:00]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [16:29:00]wFMCommunicate OK [16:29:00]SAM_PROTO_GetShiftState done [16:29:00]FM_GetShiftState done [16:29:00]req_shift_opened done [16:29:00]requested_item shift.open_date is exist - process it [16:29:00]req_shift_open_date [16:29:00]req_shift_open_date done [16:29:00]produce_requested_data done [16:29:00]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60021,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [16:29:00]process_action_free close_receipt [16:29:00]json_value_free [16:29:00]json_value_free done [16:29:00]process_json_proto returns [16:29:00]Send response to host [16:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60021,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [16:29:00]free response buf [16:29:00]execute_script done [16:29:00]execute_script returns [16:29:00]free content buf [16:29:00]Sock 7.Close socket [16:29:00]Sock 7.Thread stoped [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32: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: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:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:00]accept exits with 9 [16:45:00]New connection [16:45:00]New thread 3067108708 created [16:45:00]Thread 3067252068 joined [16:45:00]Waiting for new connection... [16:45:00] Sock 9.Parse request [16:45:00]Sock 9.Check first char [16:45:00]Sock 9.First char is OK [16:45:00]request: POST /json_proto HTTP/1.0 [16:45:00]Method: POST [16:45:00]URL: /json_proto [16:45:00]Method is POST - this is cgi request [16:45:00]url: /json_proto [16:45:00]query_string will be loaded in cgi processing [16:45:00]execute_cgi json_proto POST (null) [16:45:00]execute_cgi path=json_proto method=POST [16:45:00]POST find Content-Length [16:45:00]Host: 172.17.42.196:8080 [16:45:00]Content-Length: 617 [16:45:00]Content-Type: application/json [16:45:00] [16:45:00]POST finish read [16:45:00]Found Content-Length = 617 [16:45:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199807", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:00]execute_script... [16:45:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199807", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:00]POST & json_proto [16:45:00]process_json_proto [16:45:00]json parsed OK: [16:45:00]protocol is kg_v1.0 [16:45:00]action value=close_receipt [16:45:00]process_action close_receipt [16:45:00]cmd_close_receipt [16:45:00]MH_GetDate [16:45:00]Write to MH i2c: F0 00 00 72 21 82 [16:45:00]Write i2c OK [16:45:00]MH_I2C_Read... [16:45:00]Read from MH i2c: F0 [16:45:00]MH_I2C_Read... [16:45:00]Read from MH i2c: F0 09 00 [16:45:00]MH_I2C_Read... [16:45:00]Read from MH i2c: F0 09 00 72 21 00 91 79 1A 67 FF C4 6B 64 A8 [16:45:00]GetLastDocTimeStamp 1729787341 [16:45:00]current date 1729788305 [16:45:00]FM_GetShiftState [16:45:00]SAM_PROTO_GetShiftState [16:45:00]wFMCommunicate request_size=4 [16:45:00]MH_SAM_APDU [16:45:00]CAPDU: 80 13 01 00 [16:45:00]Write to MH i2c: E2 08 00 73 21 80 13 01 00 00 00 00 00 11 [16:45:00]Write i2c OK [16:45:00]MH_I2C_Read... [16:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:00]Read from MH i2c: E2 [16:45:00]MH_I2C_Read... [16:45:00]Read from MH i2c: E2 0E 00 [16:45:00]MH_I2C_Read... [16:45:00]Read from MH i2c: E2 0E 00 73 21 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 44 [16:45:00]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [16:45:00]wFMCommunicate OK [16:45:00]SAM_PROTO_GetShiftState done [16:45:00]FM_GetShiftState done [16:45:00]opened in 1729730575 [16:45:00]opened+sec_in_day 1729816975 [16:45:00]quantity*price = 14400 [16:45:00]sum+1 = 14401 [16:45:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 97 24.10.2024 16:45 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60022 ФПД: 158034383570255 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164505&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60022&fm=158034383570255&tin=02508201610067®Number=0000000000091622&sum=14400 0 [16:45:01]StoreToDocumentArchive [16:45:01]shift 529 fd 60022 [16:45:01]save to /storage/0529/doc_00060022 [16:45:01]save last doc name /storage/0529/doc_00060022 to /storage/kkm_last_doc_name [16:45:01]save OK [16:45:01]Clear old archive folders... [16:45:01]ProcessDocumentItem done err = 0, tmpTLVsize=269 [16:45:01]tlvbuf is 00DDCBE0 [16:45:01]SAM_PROTO_ClearQueue [16:45:01]wFMCommunicate request_size=4 [16:45:01]MH_SAM_APDU [16:45:01]CAPDU: 80 09 00 00 [16:45:01]Write to MH i2c: E2 08 00 80 21 80 09 00 00 00 00 00 00 13 [16:45:01]Write i2c OK [16:45:01]MH_I2C_Read... [16:45:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:01]Read from MH i2c: E2 [16:45:01]MH_I2C_Read... [16:45:01]Read from MH i2c: E2 03 00 [16:45:01]MH_I2C_Read... [16:45:01]Read from MH i2c: E2 03 00 80 21 00 90 00 15 [16:45:01]RAPDU: 90 00 [16:45:01]wFMCommunicate OK [16:45:01]SAM_PROTO_ClearQueue done [16:45:01]KKMCreateOFDPacket [16:45:01]OFDProtocolAddRootSTLVToBuf [16:45:01]FM_MakeSignedData [16:45:01]FM_MakeSignedData [16:45:01]SAM_PROTO_SignData [16:45:01]wFMCommunicate request_size=4 [16:45:01]MH_SAM_APDU [16:45:01]CAPDU: 80 0D 01 02 [16:45:01]Write to MH i2c: E2 08 00 81 21 80 0D 01 02 00 00 00 00 1B [16:45:01]Write i2c OK [16:45:01]MH_I2C_Read... [16:45:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:01]Read from MH i2c: E2 [16:45:01]MH_I2C_Read... [16:45:01]Read from MH i2c: E2 03 00 [16:45:01]MH_I2C_Read... [16:45:01]Read from MH i2c: E2 03 00 81 21 00 90 00 16 [16:45:01]RAPDU: 90 00 [16:45:01]wFMCommunicate OK [16:45:01]wFMCommunicate request_size=255 [16:45:01]MH_SAM_APDU [16:45:01]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 91 79 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [16:45:01]Write to MH i2c: E2 02 01 82 21 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 91 79 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 75 [16:45:01]Write i2c OK [16:45:01]MH_I2C_Read... [16:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:01]Read from MH i2c: E2 [16:45:01]MH_I2C_Read... [16:45:01]Read from MH i2c: E2 03 00 [16:45:01]MH_I2C_Read... [16:45:01]Read from MH i2c: E2 03 00 82 21 00 90 00 17 [16:45:01]RAPDU: 90 00 [16:45:01]wFMCommunicate OK [16:45:01]wFMCommunicate request_size=28 [16:45:01]MH_SAM_APDU [16:45:01]CAPDU: 80 0D 02 02 17 37 34 36 37 34 10 04 04 00 76 EA 00 00 35 04 06 00 8F BB 3F 4B 85 4F [16:45:02]Write to MH i2c: E2 1F 00 83 21 80 0D 02 02 17 00 37 34 36 37 34 10 04 04 00 76 EA 00 00 35 04 06 00 8F BB 3F 4B 85 4F 00 00 B7 [16:45:02]Write i2c OK [16:45:02]MH_I2C_Read... [16:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:02]Read from MH i2c: E2 [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: E2 03 00 [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: E2 03 00 83 21 00 90 00 18 [16:45:02]RAPDU: 90 00 [16:45:02]wFMCommunicate OK [16:45:02]wFMCommunicate request_size=4 [16:45:02]MH_SAM_APDU [16:45:02]CAPDU: 80 0D 03 02 [16:45:02]Write to MH i2c: E2 08 00 84 21 80 0D 03 02 00 00 00 00 20 [16:45:02]Write i2c OK [16:45:02]MH_I2C_Read... [16:45:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:02]Read from MH i2c: E2 [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: E2 0B 00 [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: E2 0B 00 84 21 00 C2 A2 0E A1 71 B3 F8 84 90 00 D4 [16:45:02]RAPDU: C2 A2 0E A1 71 B3 F8 84 90 00 [16:45:02]wFMCommunicate OK [16:45:02]SAM_PROTO_SignData done [16:45:02]FM_MakeSignedData done [16:45:02]CreateOFDProtocolMessage [16:45:02]wFMCommunicate request_size=4 [16:45:02]MH_SAM_APDU [16:45:02]CAPDU: 80 11 00 00 [16:45:02]Write to MH i2c: E2 08 00 85 21 80 11 00 00 00 00 00 00 20 [16:45:02]Write i2c OK [16:45:02]MH_I2C_Read... [16:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:02]Read from MH i2c: E2 [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: E2 17 00 [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: E2 17 00 85 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 77 [16:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [16:45:02]wFMCommunicate OK [16:45:02]CreateOFDProtocolMessage done [16:45:02]OFDSenderStorePacket 60022 [16:45:02]StoreOFDPacket docnum=60022 [16:45:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 21 01 00 00 17 29 19 01 0D 18 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 91 79 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 76 EA 00 00 35 04 06 00 8F BB 3F 4B 85 4F C2 A2 0E A1 71 B3 F8 84 [16:45:02]CheckFolder [16:45:02]dirname=/storage/ofd_packets [16:45:02]CheckFolder done [16:45:02]ProducePacketName [16:45:02]name=ofd_packets/00060022 [16:45:02]NVStorageSaveData ofd_packets/00060022 [16:45:02]File name is /storage/ofd_packets/00060022 [16:45:02]Write 319 bytes [16:45:02]NVStorageSaveData done [16:45:02]OFDSenderStorePacket done [16:45:02]KKMCreateOFDPacket done [16:45:02]NVStorageSaveData kkm_last_timestamp [16:45:02]File name is /storage/kkm_last_timestamp [16:45:02]Write 4 bytes [16:45:02]NVStorageSaveData done [16:45:02]ExternCall_PrintAddStr [16:45:02]wPrintStart [16:45:02]Write to MH i2c: 01 00 00 86 21 A7 [16:45:02]Write i2c OK [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: 01 [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: 01 07 00 [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: 01 07 00 86 21 00 00 00 00 00 FF 0F BC [16:45:02]RasterBufferAndPrint [16:45:02]line Счет N : (3)199807 [16:45:02]line ИНН: 02508201610067 [16:45:02]line Контрольно-Кассовый Чек [16:45:02]line ПРОДАЖА [16:45:02]line Товар: 47803008 [16:45:02]line Сигареты Winston XS Blue [16:45:02]line 1.000 * 144.00 [16:45:02]line = 144.00 [16:45:02]line НДС 12% НСП 1% [16:45:02]line > о реализуемом товаре [16:45:02]line ИТОГО: 144.00 [16:45:02]line НСП 1% : 1.27 [16:45:02]line НДС 12% : 15.29 [16:45:02]line Наличными: 144.00 [16:45:02]line Безнал.: 0.00 [16:45:02]line Место: АЗС № 87 "Партнер Нефть" [16:45:02]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [16:45:02]line СНО: Общий режим [16:45:02]line Чек 97 24.10.2024 16:45 [16:45:02]line Смена: 529 ФФД: 1.0 [16:45:02]line ЗНМ: 0300000084 [16:45:02]line РНМ: 0000000000091622 [16:45:02]line Версия ККМ: 001 [16:45:02]line ФМ: 0000000000874674 [16:45:02]line ФД: 60022 [16:45:02]line ФПД: 158034383570255 [16:45:02]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164505&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60022&fm=158034383570255&tin=02508201610067®Number=0000000000091622&sum=14400 [16:45:02]line 0 [16:45:02]written 0, free lines is 4095 [16:45:02]OFD Sender: Processing packet 60022 [packets to send 30, broken 29] [16:45:02]ProducePacketName [16:45:02]name=ofd_packets/00060022 [16:45:02]OFD Sender: To server: pG, [16:45:02]CommunicateWithHost lk.salyk.kg:30040 [16:45:02]ConnectInit lk.salyk.kg [16:45:02]Connected sock=10 [16:45:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 21 01 00 00 17 29 19 01 0D 18 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 91 79 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 76 EA 00 00 35 04 06 00 8F BB 3F 4B 85 4F C2 A2 0E A1 71 B3 F8 84 [16:45:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 23 F9 47 00 58 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 34 36 37 34 10 04 04 00 76 EA 00 00 F4 03 04 00 80 1F 1A 67 B6 04 01 00 00 F7 FA F8 4F 54 29 03 C3 [16:45:02]CommunicateWithHost err = 0 [16:45:02]CheckOFDResponse [16:45:02]1017 (14) - 77093643461234 [16:45:02]1041 (16) - 0000000000874674 [16:45:02]1040 (4) - 60022 [16:45:02]1012 (4) - 24.10.2024 10:20 [16:45:02]1206 (1) - 0 [16:45:02]OFD Sender: Remove packet 60022 [16:45:02]ProducePacketName [16:45:02]name=ofd_packets/00060022 [16:45:02]NVStorageDeleteData [16:45:02]Write to MH i2c: 01 00 00 AE 21 CF [16:45:02]Write i2c OK [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: 01 [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: 01 07 00 [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: 01 07 00 AE 21 00 00 00 00 00 04 0D E7 [16:45:02]RasterBufferAndPrint [16:45:02]line [16:45:02]line [16:45:02]line [16:45:02]line [16:45:02]line [16:45:02]written 0, free lines is 3337 [16:45:02]MH_Cut [16:45:02]Write to MH i2c: D1 01 00 B5 21 01 A8 [16:45:02]Write i2c OK [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: D1 [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: D1 01 00 [16:45:02]MH_I2C_Read... [16:45:02]Read from MH i2c: D1 01 00 B5 21 00 A7 [16:45:02]Write to MH i2c: 01 00 00 B6 21 D7 [16:45:02]Write i2c OK [16:45:02]MH_I2C_Read... [16:45:03]OFD Sender: No OFD packet to send [16:45:03]*** Cut start [16:45:03]*** Partial cut [16:45:03]*** CUTSNS_PIN = 1 [16:45:03]*** CUTSNS_PIN = 0 [16:45:03]*** Brake cut motor [16:45:04]Read from MH i2c: 01 [16:45:04]MH_I2C_Read... [16:45:04]*** Stop cut motor [16:45:04]*** Cut end [16:45:04]Read from MH i2c: 01 07 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: 01 07 00 B6 21 00 00 00 00 00 FF 0F EC [16:45:04]process_action close_receipt done [16:45:04]requested_data is exist [16:45:04]produce_requested_data [16:45:04]requested_item fm.sn is exist - process it [16:45:04]wFMCommunicate request_size=4 [16:45:04]MH_SAM_APDU [16:45:04]CAPDU: 80 11 00 00 [16:45:04]Write to MH i2c: E2 08 00 B7 21 80 11 00 00 00 00 00 00 52 [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:04]Read from MH i2c: E2 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 17 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 17 00 B7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 A9 [16:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [16:45:04]wFMCommunicate OK [16:45:04]requested_item fd.num is exist - process it [16:45:04]SAM_PROTO_GetFieldsCounters [16:45:04]wFMCommunicate request_size=4 [16:45:04]MH_SAM_APDU [16:45:04]CAPDU: 80 13 00 00 [16:45:04]Write to MH i2c: E2 08 00 B8 21 80 13 00 00 00 00 00 00 55 [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:04]Read from MH i2c: E2 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 62 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 62 00 B8 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 76 EA 00 00 0E 04 04 00 11 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 0B [16:45: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 76 EA 00 00 0E 04 04 00 11 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 [16:45:04]wFMCommunicate OK [16:45:04]SAM_PROTO_GetFieldsCounters done [16:45:04]requested_item shift.num is exist - process it [16:45:04]requested_item shift.opened is exist - process it [16:45:04]req_shift_opened [16:45:04]FM_GetShiftState [16:45:04]SAM_PROTO_GetShiftState [16:45:04]wFMCommunicate request_size=4 [16:45:04]MH_SAM_APDU [16:45:04]CAPDU: 80 13 01 00 [16:45:04]Write to MH i2c: E2 08 00 B9 21 80 13 01 00 00 00 00 00 57 [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:04]Read from MH i2c: E2 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 0E 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 0E 00 B9 21 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 8A [16:45:04]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [16:45:04]wFMCommunicate OK [16:45:04]SAM_PROTO_GetShiftState done [16:45:04]FM_GetShiftState done [16:45:04]req_shift_opened done [16:45:04]requested_item shift.open_date is exist - process it [16:45:04]req_shift_open_date [16:45:04]req_shift_open_date done [16:45:04]produce_requested_data done [16:45:04]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60022,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [16:45:04]process_action_free close_receipt [16:45:04]json_value_free [16:45:04]json_value_free done [16:45:04]process_json_proto returns [16:45:04]Send response to host [16:45:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60022,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [16:45:04]free response buf [16:45:04]execute_script done [16:45:04]execute_script returns [16:45:04]free content buf [16:45:04]Sock 9.Close socket [16:45:04]Sock 9.Thread stoped [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:18]ConnectInit Can't connect to host [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:44]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [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:41]accept exits with 7 [17:17:41]New connection [17:17:41]New thread 3067252068 created [17:17:41]Thread 3067108708 joined [17:17:41]Waiting for new connection... [17:17:41] Sock 7.Parse request [17:17:41]Sock 7.Check first char [17:17:41]Sock 7.First char is OK [17:17:41]request: POST /json_proto HTTP/1.0 [17:17:41]Method: POST [17:17:41]URL: /json_proto [17:17:41]Method is POST - this is cgi request [17:17:41]url: /json_proto [17:17:41]query_string will be loaded in cgi processing [17:17:41]execute_cgi json_proto POST (null) [17:17:41]execute_cgi path=json_proto method=POST [17:17:41]POST find Content-Length [17:17:41]Host: 172.17.42.196:8080 [17:17:41]Content-Length: 623 [17:17:41]Content-Type: application/json [17:17:41] [17:17:41]POST finish read [17:17:41]Found Content-Length = 623 [17:17:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199808", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:41]execute_script... [17:17:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199808", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:41]POST & json_proto [17:17:41]process_json_proto [17:17:41]json parsed OK: [17:17:41]protocol is kg_v1.0 [17:17:41]action value=close_receipt [17:17:41]process_action close_receipt [17:17:41]cmd_close_receipt [17:17:41]MH_GetDate [17:17:41]Write to MH i2c: F0 00 00 BA 21 CA [17:17:41]Write i2c OK [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: F0 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: F0 09 00 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: F0 09 00 BA 21 00 3A 81 1A 67 FF C4 6B 64 A1 [17:17:41]GetLastDocTimeStamp 1729788305 [17:17:41]current date 1729790266 [17:17:41]FM_GetShiftState [17:17:41]SAM_PROTO_GetShiftState [17:17:41]wFMCommunicate request_size=4 [17:17:41]MH_SAM_APDU [17:17:41]CAPDU: 80 13 01 00 [17:17:41]Write to MH i2c: E2 08 00 BB 21 80 13 01 00 00 00 00 00 59 [17:17:41]Write i2c OK [17:17:41]MH_I2C_Read... [17:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:41]Read from MH i2c: E2 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: E2 0E 00 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: E2 0E 00 BB 21 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 8C [17:17:41]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:17:41]wFMCommunicate OK [17:17:41]SAM_PROTO_GetShiftState done [17:17:41]FM_GetShiftState done [17:17:41]opened in 1729730575 [17:17:41]opened+sec_in_day 1729816975 [17:17:41]quantity*price = 14400 [17:17:41]sum+1 = 14401 [17:17:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 98 24.10.2024 17:17 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60023 ФПД: 30586363869720 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171746&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60023&fm=30586363869720&tin=02508201610067®Number=0000000000091622&sum=14400 0 [17:17:42]StoreToDocumentArchive [17:17:42]shift 529 fd 60023 [17:17:42]save to /storage/0529/doc_00060023 [17:17:42]save last doc name /storage/0529/doc_00060023 to /storage/kkm_last_doc_name [17:17:42]save OK [17:17:42]Clear old archive folders... [17:17:42]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:17:42]tlvbuf is 00DDCAC0 [17:17:42]SAM_PROTO_ClearQueue [17:17:42]wFMCommunicate request_size=4 [17:17:42]MH_SAM_APDU [17:17:42]CAPDU: 80 09 00 00 [17:17:42]Write to MH i2c: E2 08 00 C8 21 80 09 00 00 00 00 00 00 5B [17:17:42]Write i2c OK [17:17:42]MH_I2C_Read... [17:17:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:42]Read from MH i2c: E2 [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: E2 03 00 [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: E2 03 00 C8 21 00 90 00 5D [17:17:42]RAPDU: 90 00 [17:17:42]wFMCommunicate OK [17:17:42]SAM_PROTO_ClearQueue done [17:17:42]KKMCreateOFDPacket [17:17:42]OFDProtocolAddRootSTLVToBuf [17:17:42]FM_MakeSignedData [17:17:42]FM_MakeSignedData [17:17:42]SAM_PROTO_SignData [17:17:42]wFMCommunicate request_size=4 [17:17:42]MH_SAM_APDU [17:17:42]CAPDU: 80 0D 01 02 [17:17:42]Write to MH i2c: E2 08 00 C9 21 80 0D 01 02 00 00 00 00 63 [17:17:42]Write i2c OK [17:17:42]MH_I2C_Read... [17:17:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:42]Read from MH i2c: E2 [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: E2 03 00 [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: E2 03 00 C9 21 00 90 00 5E [17:17:42]RAPDU: 90 00 [17:17:42]wFMCommunicate OK [17:17:42]wFMCommunicate request_size=255 [17:17:42]MH_SAM_APDU [17:17:42]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3A 81 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [17:17:42]Write to MH i2c: E2 02 01 CA 21 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3A 81 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 14 [17:17:42]Write i2c OK [17:17:42]MH_I2C_Read... [17:17:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:42]Read from MH i2c: E2 [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: E2 03 00 [17:17:42]MH_I2C_Read... [17:17:42]Read from MH i2c: E2 03 00 CA 21 00 90 00 5F [17:17:42]RAPDU: 90 00 [17:17:42]wFMCommunicate OK [17:17:42]wFMCommunicate request_size=34 [17:17:42]MH_SAM_APDU [17:17:42]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 77 EA 00 00 35 04 06 00 1B D1 71 5A 7A 18 [17:17:42]Write to MH i2c: E2 25 00 CB 21 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 77 EA 00 00 35 04 06 00 1B D1 71 5A 7A 18 00 00 D5 [17:17:42]Write i2c OK [17:17:42]MH_I2C_Read... [17:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:43]Read from MH i2c: E2 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 03 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 03 00 CB 21 00 90 00 60 [17:17:43]RAPDU: 90 00 [17:17:43]wFMCommunicate OK [17:17:43]wFMCommunicate request_size=4 [17:17:43]MH_SAM_APDU [17:17:43]CAPDU: 80 0D 03 02 [17:17:43]Write to MH i2c: E2 08 00 CC 21 80 0D 03 02 00 00 00 00 68 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:43]Read from MH i2c: E2 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 0B 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 0B 00 CC 21 00 7B 3B 5E 48 B5 F1 1D 8E 90 00 16 [17:17:43]RAPDU: 7B 3B 5E 48 B5 F1 1D 8E 90 00 [17:17:43]wFMCommunicate OK [17:17:43]SAM_PROTO_SignData done [17:17:43]FM_MakeSignedData done [17:17:43]CreateOFDProtocolMessage [17:17:43]wFMCommunicate request_size=4 [17:17:43]MH_SAM_APDU [17:17:43]CAPDU: 80 11 00 00 [17:17:43]Write to MH i2c: E2 08 00 CD 21 80 11 00 00 00 00 00 00 68 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:43]Read from MH i2c: E2 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 17 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 17 00 CD 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 BF [17:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:17:43]wFMCommunicate OK [17:17:43]CreateOFDProtocolMessage done [17:17:43]OFDSenderStorePacket 60023 [17:17:43]StoreOFDPacket docnum=60023 [17:17:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 5E 3F 1F 01 DF 71 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3A 81 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 77 EA 00 00 35 04 06 00 1B D1 71 5A 7A 18 7B 3B 5E 48 B5 F1 1D 8E [17:17:43]CheckFolder [17:17:43]dirname=/storage/ofd_packets [17:17:43]CheckFolder done [17:17:43]ProducePacketName [17:17:43]name=ofd_packets/00060023 [17:17:43]NVStorageSaveData ofd_packets/00060023 [17:17:43]File name is /storage/ofd_packets/00060023 [17:17:43]Write 325 bytes [17:17:43]NVStorageSaveData done [17:17:43]OFDSenderStorePacket done [17:17:43]KKMCreateOFDPacket done [17:17:43]NVStorageSaveData kkm_last_timestamp [17:17:43]File name is /storage/kkm_last_timestamp [17:17:43]Write 4 bytes [17:17:43]NVStorageSaveData done [17:17:43]ExternCall_PrintAddStr [17:17:43]wPrintStart [17:17:43]Write to MH i2c: 01 00 00 CE 21 EF [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: 01 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: 01 07 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: 01 07 00 CE 21 00 00 00 00 00 FF 0F 04 [17:17:43]RasterBufferAndPrint [17:17:43]line Счет N : (3)199808 [17:17:43]line ИНН: 02508201610067 [17:17:43]line Контрольно-Кассовый Чек [17:17:43]line ПРОДАЖА [17:17:43]line Товар: 48743587 [17:17:43]line Сигареты Winston XStyle Silver [17:17:43]line 1.000 * 144.00 [17:17:43]line = 144.00 [17:17:43]line НДС 12% НСП 1% [17:17:43]line > о реализуемом товаре [17:17:43]line ИТОГО: 144.00 [17:17:43]line НСП 1% : 1.27 [17:17:43]line НДС 12% : 15.29 [17:17:43]line Наличными: 144.00 [17:17:43]line Безнал.: 0.00 [17:17:43]line Место: АЗС № 87 "Партнер Нефть" [17:17:43]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [17:17:43]line СНО: Общий режим [17:17:43]line Чек 98 24.10.2024 17:17 [17:17:43]line Смена: 529 ФФД: 1.0 [17:17:43]line ЗНМ: 0300000084 [17:17:43]line РНМ: 0000000000091622 [17:17:43]line Версия ККМ: 001 [17:17:43]line ФМ: 0000000000874674 [17:17:43]line ФД: 60023 [17:17:43]line ФПД: 30586363869720 [17:17:43]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171746&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60023&fm=30586363869720&tin=02508201610067®Number=0000000000091622&sum=14400 [17:17:43]OFD Sender: Processing packet 60023 [packets to send 30, broken 29] [17:17:43]ProducePacketName [17:17:43]name=ofd_packets/00060023 [17:17:43]OFD Sender: To server: pG, [17:17:43]CommunicateWithHost lk.salyk.kg:30040 [17:17:43]ConnectInit lk.salyk.kg [17:17:43]line 0 [17:17:43]written 0, free lines is 4095 [17:17:43]Connected sock=10 [17:17:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 5E 3F 1F 01 DF 71 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3A 81 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 77 EA 00 00 35 04 06 00 1B D1 71 5A 7A 18 7B 3B 5E 48 B5 F1 1D 8E [17:17:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 AF 04 47 00 32 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 34 36 37 34 10 04 04 00 77 EA 00 00 F4 03 04 00 2A 27 1A 67 B6 04 01 00 00 33 2E 1E 42 22 18 93 32 [17:17:43]CommunicateWithHost err = 0 [17:17:43]CheckOFDResponse [17:17:43]1017 (14) - 77093643461234 [17:17:43]1041 (16) - 0000000000874674 [17:17:43]1040 (4) - 60023 [17:17:43]1012 (4) - 24.10.2024 10:53 [17:17:43]1206 (1) - 0 [17:17:43]OFD Sender: Remove packet 60023 [17:17:43]ProducePacketName [17:17:43]name=ofd_packets/00060023 [17:17:43]NVStorageDeleteData [17:17:43]Write to MH i2c: 01 00 00 F7 21 18 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: 01 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: 01 07 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: 01 07 00 F7 21 00 00 00 00 00 EB 0C 16 [17:17:43]RasterBufferAndPrint [17:17:43]line [17:17:43]line [17:17:43]line [17:17:43]line [17:17:43]line [17:17:43]written 0, free lines is 3313 [17:17:43]MH_Cut [17:17:43]Write to MH i2c: D1 01 00 FE 21 01 F1 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: D1 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: D1 01 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: D1 01 00 FE 21 00 F0 [17:17:43]Write to MH i2c: 01 00 00 FF 21 20 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:44]OFD Sender: No OFD packet to send [17:17:44]*** Cut start [17:17:44]*** Partial cut [17:17:44]*** CUTSNS_PIN = 1 [17:17:44]*** CUTSNS_PIN = 0 [17:17:45]*** Brake cut motor [17:17:45]Read from MH i2c: 01 [17:17:45]MH_I2C_Read... [17:17:45]*** Stop cut motor [17:17:45]*** Cut end [17:17:45]Read from MH i2c: 01 07 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: 01 07 00 FF 21 00 00 00 00 00 FF 0F 35 [17:17:45]process_action close_receipt done [17:17:45]requested_data is exist [17:17:45]produce_requested_data [17:17:45]requested_item fm.sn is exist - process it [17:17:45]wFMCommunicate request_size=4 [17:17:45]MH_SAM_APDU [17:17:45]CAPDU: 80 11 00 00 [17:17:45]Write to MH i2c: E2 08 00 00 22 80 11 00 00 00 00 00 00 9C [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:45]Read from MH i2c: E2 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 17 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 17 00 00 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F3 [17:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:17:45]wFMCommunicate OK [17:17:45]requested_item fd.num is exist - process it [17:17:45]SAM_PROTO_GetFieldsCounters [17:17:45]wFMCommunicate request_size=4 [17:17:45]MH_SAM_APDU [17:17:45]CAPDU: 80 13 00 00 [17:17:45]Write to MH i2c: E2 08 00 01 22 80 13 00 00 00 00 00 00 9F [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:45]Read from MH i2c: E2 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 62 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 62 00 01 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 77 EA 00 00 0E 04 04 00 11 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 59 [17:17: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 77 EA 00 00 0E 04 04 00 11 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 [17:17:45]wFMCommunicate OK [17:17:45]SAM_PROTO_GetFieldsCounters done [17:17:45]requested_item shift.num is exist - process it [17:17:45]requested_item shift.opened is exist - process it [17:17:45]req_shift_opened [17:17:45]FM_GetShiftState [17:17:45]SAM_PROTO_GetShiftState [17:17:45]wFMCommunicate request_size=4 [17:17:45]MH_SAM_APDU [17:17:45]CAPDU: 80 13 01 00 [17:17:45]Write to MH i2c: E2 08 00 02 22 80 13 01 00 00 00 00 00 A1 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:45]Read from MH i2c: E2 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 0E 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 0E 00 02 22 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 D4 [17:17:45]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:17:45]wFMCommunicate OK [17:17:45]SAM_PROTO_GetShiftState done [17:17:45]FM_GetShiftState done [17:17:45]req_shift_opened done [17:17:45]requested_item shift.open_date is exist - process it [17:17:45]req_shift_open_date [17:17:45]req_shift_open_date done [17:17:45]produce_requested_data done [17:17:45]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60023,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [17:17:45]process_action_free close_receipt [17:17:45]json_value_free [17:17:45]json_value_free done [17:17:45]process_json_proto returns [17:17:45]Send response to host [17:17:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60023,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [17:17:45]free response buf [17:17:45]execute_script done [17:17:45]execute_script returns [17:17:45]free content buf [17:17:45]Sock 7.Close socket [17:17:45]Sock 7.Thread stoped [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:04]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:55]accept exits with 9 [17:20:55]New connection [17:20:55]New thread 3067108708 created [17:20:55]Thread 3067252068 joined [17:20:55]Waiting for new connection... [17:20:55] Sock 9.Parse request [17:20:55]Sock 9.Check first char [17:20:55]Sock 9.First char is OK [17:20:55]request: POST /json_proto HTTP/1.0 [17:20:55]Method: POST [17:20:55]URL: /json_proto [17:20:55]Method is POST - this is cgi request [17:20:55]url: /json_proto [17:20:55]query_string will be loaded in cgi processing [17:20:55]execute_cgi json_proto POST (null) [17:20:55]execute_cgi path=json_proto method=POST [17:20:55]POST find Content-Length [17:20:55]Host: 172.17.42.196:8080 [17:20:55]Content-Length: 1760 [17:20:55]Content-Type: application/json [17:20:55] [17:20:55]POST finish read [17:20:55]Found Content-Length = 1760 [17:20:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199809", "tax_sys" : 0, "items" : [ { "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6957531032045", "name": "\u041A\u0430\u0431\u0435\u043B\u044C hoco rapid charging X1 type-C 1\u043C", "price" : 271.00, "quantity" : 1.000, "sum" : 271.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6000911553446", "name": "\u0410\u0432\u0442\u043E\u043C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u0437\u0430\u0440\u044F\u0434\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E CAR CH", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 3.000, "sum" : 180.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" : 844.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:55]execute_script... [17:20:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199809", "tax_sys" : 0, "items" : [ { "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6957531032045", "name": "\u041A\u0430\u0431\u0435\u043B\u044C hoco rapid charging X1 type-C 1\u043C", "price" : 271.00, "quantity" : 1.000, "sum" : 271.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6000911553446", "name": "\u0410\u0432\u0442\u043E\u043C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u0437\u0430\u0440\u044F\u0434\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E CAR CH", "price" : 300.00, "quantity" : 1.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 3.000, "sum" : 180.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" : 844.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:55]POST & json_proto [17:20:55]process_json_proto [17:20:55]json parsed OK: [17:20:55]protocol is kg_v1.0 [17:20:55]action value=close_receipt [17:20:55]process_action close_receipt [17:20:55]cmd_close_receipt [17:20:55]MH_GetDate [17:20:55]Write to MH i2c: F0 00 00 03 22 14 [17:20:55]Write i2c OK [17:20:55]MH_I2C_Read... [17:20:55]Read from MH i2c: F0 [17:20:55]MH_I2C_Read... [17:20:55]Read from MH i2c: F0 09 00 [17:20:55]MH_I2C_Read... [17:20:55]Read from MH i2c: F0 09 00 03 22 00 FC 81 1A 67 FF C4 6B 64 AD [17:20:55]GetLastDocTimeStamp 1729790266 [17:20:55]current date 1729790460 [17:20:55]FM_GetShiftState [17:20:55]SAM_PROTO_GetShiftState [17:20:55]wFMCommunicate request_size=4 [17:20:55]MH_SAM_APDU [17:20:55]CAPDU: 80 13 01 00 [17:20:55]Write to MH i2c: E2 08 00 04 22 80 13 01 00 00 00 00 00 A3 [17:20:55]Write i2c OK [17:20:55]MH_I2C_Read... [17:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:55]Read from MH i2c: E2 [17:20:55]MH_I2C_Read... [17:20:55]Read from MH i2c: E2 0E 00 [17:20:55]MH_I2C_Read... [17:20:55]Read from MH i2c: E2 0E 00 04 22 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 D6 [17:20:55]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:20:55]wFMCommunicate OK [17:20:55]SAM_PROTO_GetShiftState done [17:20:55]FM_GetShiftState done [17:20:55]opened in 1729730575 [17:20:55]opened+sec_in_day 1729816975 [17:20:55]quantity*price = 9300 [17:20:55]sum+1 = 9301 [17:20:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 6957531032045 Кабель hoco rapid charging X1 type-C 1м 1.000 * 271.00 = 271.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6000911553446 Автомобильное зарядное устройство CAR CH 1.000 * 300.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 3.000 * 60.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 844.00 НСП 1% : 7.46 НДС 12% : 89.63 Наличными: 0.00 Безнал.: 844.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 99 24.10.2024 17:21 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60024 ФПД: 202527255201665 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172100&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60024&fm=202527255201665&tin=02508201610067®Number=0000000000091622&sum=84400 0 [17:20:56]StoreToDocumentArchive [17:20:56]shift 529 fd 60024 [17:20:56]save to /storage/0529/doc_00060024 [17:20:56]save last doc name /storage/0529/doc_00060024 to /storage/kkm_last_doc_name [17:20:56]save OK [17:20:56]Clear old archive folders... [17:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=682 [17:20:56]tlvbuf is 00E66790 [17:20:56]SAM_PROTO_ClearQueue [17:20:56]wFMCommunicate request_size=4 [17:20:56]MH_SAM_APDU [17:20:56]CAPDU: 80 09 00 00 [17:20:56]Write to MH i2c: E2 08 00 11 22 80 09 00 00 00 00 00 00 A5 [17:20:56]Write i2c OK [17:20:56]MH_I2C_Read... [17:20:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:56]Read from MH i2c: E2 [17:20:56]MH_I2C_Read... [17:20:56]Read from MH i2c: E2 03 00 [17:20:56]MH_I2C_Read... [17:20:56]Read from MH i2c: E2 03 00 11 22 00 90 00 A7 [17:20:56]RAPDU: 90 00 [17:20:56]wFMCommunicate OK [17:20:56]SAM_PROTO_ClearQueue done [17:20:56]KKMCreateOFDPacket [17:20:56]OFDProtocolAddRootSTLVToBuf [17:20:56]FM_MakeSignedData [17:20:56]FM_MakeSignedData [17:20:56]SAM_PROTO_SignData [17:20:56]wFMCommunicate request_size=4 [17:20:56]MH_SAM_APDU [17:20:56]CAPDU: 80 0D 01 02 [17:20:56]Write to MH i2c: E2 08 00 12 22 80 0D 01 02 00 00 00 00 AD [17:20:56]Write i2c OK [17:20:56]MH_I2C_Read... [17:20:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:56]Read from MH i2c: E2 [17:20:56]MH_I2C_Read... [17:20:56]Read from MH i2c: E2 03 00 [17:20:56]MH_I2C_Read... [17:20:56]Read from MH i2c: E2 03 00 12 22 00 90 00 A8 [17:20:56]RAPDU: 90 00 [17:20:56]wFMCommunicate OK [17:20:56]wFMCommunicate request_size=255 [17:20:56]MH_SAM_APDU [17:20:56]CAPDU: 80 0D 02 02 FA 03 00 AA 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A [17:20:56]Write to MH i2c: E2 02 01 13 22 80 0D 02 02 FA 00 03 00 AA 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 00 00 41 [17:20:56]Write i2c OK [17:20:56]MH_I2C_Read... [17:20:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:56]Read from MH i2c: E2 [17:20:56]MH_I2C_Read... [17:20:56]Read from MH i2c: E2 03 00 [17:20:56]MH_I2C_Read... [17:20:56]Read from MH i2c: E2 03 00 13 22 00 90 00 A9 [17:20:56]RAPDU: 90 00 [17:20:56]wFMCommunicate OK [17:20:56]wFMCommunicate request_size=255 [17:20:56]MH_SAM_APDU [17:20:56]CAPDU: 80 0D 02 02 FA 04 0D 00 36 30 30 30 39 31 31 35 35 33 34 34 36 06 04 47 00 D0 90 D0 B2 D1 82 D0 BE D0 BC D0 BE D0 B1 D0 B8 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D0 B7 D0 B0 D1 80 D1 8F D0 B4 D0 BD D0 BE D0 B5 20 D1 83 D1 81 D1 82 D1 80 D0 BE D0 B9 D1 81 D1 82 D0 B2 D0 BE 20 43 41 52 20 43 48 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 [17:20:56]Write to MH i2c: E2 02 01 14 22 80 0D 02 02 FA 00 04 0D 00 36 30 30 30 39 31 31 35 35 33 34 34 36 06 04 47 00 D0 90 D0 B2 D1 82 D0 BE D0 BC D0 BE D0 B1 D0 B8 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D0 B7 D0 B0 D1 80 D1 8F D0 B4 D0 BD D0 BE D0 B5 20 D1 83 D1 81 D1 82 D1 80 D0 BE D0 B9 D1 81 D1 82 D0 B2 D0 BE 20 43 41 52 20 43 48 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 00 00 2C [17:20:56]Write i2c OK [17:20:56]MH_I2C_Read... [17:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:57]Read from MH i2c: E2 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 03 00 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 03 00 14 22 00 90 00 AA [17:20:57]RAPDU: 90 00 [17:20:57]wFMCommunicate OK [17:20:57]wFMCommunicate request_size=191 [17:20:57]MH_SAM_APDU [17:20:57]CAPDU: 80 0D 02 02 BA 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 49 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 49 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FC 81 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 78 EA 00 00 35 04 06 00 B8 32 8D 1A 87 81 [17:20:57]Write to MH i2c: E2 C2 00 15 22 80 0D 02 02 BA 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 49 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 49 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FC 81 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 78 EA 00 00 35 04 06 00 B8 32 8D 1A 87 81 00 00 25 [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:57]Read from MH i2c: E2 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 03 00 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 03 00 15 22 00 90 00 AB [17:20:57]RAPDU: 90 00 [17:20:57]wFMCommunicate OK [17:20:57]wFMCommunicate request_size=4 [17:20:57]MH_SAM_APDU [17:20:57]CAPDU: 80 0D 03 02 [17:20:57]Write to MH i2c: E2 08 00 16 22 80 0D 03 02 00 00 00 00 B3 [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:57]Read from MH i2c: E2 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 0B 00 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 0B 00 16 22 00 E6 19 3B 01 CF 99 13 B1 90 00 1B [17:20:57]RAPDU: E6 19 3B 01 CF 99 13 B1 90 00 [17:20:57]wFMCommunicate OK [17:20:57]SAM_PROTO_SignData done [17:20:57]FM_MakeSignedData done [17:20:57]CreateOFDProtocolMessage [17:20:57]wFMCommunicate request_size=4 [17:20:57]MH_SAM_APDU [17:20:57]CAPDU: 80 11 00 00 [17:20:57]Write to MH i2c: E2 08 00 17 22 80 11 00 00 00 00 00 00 B3 [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:57]Read from MH i2c: E2 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 17 00 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 17 00 17 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 0A [17:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:20:57]wFMCommunicate OK [17:20:57]CreateOFDProtocolMessage done [17:20:57]OFDSenderStorePacket 60024 [17:20:57]StoreOFDPacket docnum=60024 [17:20:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 BE 02 00 00 77 15 B6 02 74 CA 5A 03 01 00 03 00 AA 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 36 30 30 30 39 31 31 35 35 33 34 34 36 06 04 47 00 D0 90 D0 B2 D1 82 D0 BE D0 BC D0 BE D0 B1 D0 B8 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D0 B7 D0 B0 D1 80 D1 8F D0 B4 D0 BD D0 BE D0 B5 20 D1 83 D1 81 D1 82 D1 80 D0 BE D0 B9 D1 81 D1 82 D0 B2 D0 BE 20 43 41 52 20 43 48 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 49 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 49 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FC 81 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 78 EA 00 00 35 04 06 00 B8 32 8D 1A 87 81 E6 19 3B 01 CF 99 13 B1 [17:20:57]CheckFolder [17:20:57]dirname=/storage/ofd_packets [17:20:57]CheckFolder done [17:20:57]ProducePacketName [17:20:57]name=ofd_packets/00060024 [17:20:57]NVStorageSaveData ofd_packets/00060024 [17:20:57]File name is /storage/ofd_packets/00060024 [17:20:57]Write 732 bytes [17:20:57]NVStorageSaveData done [17:20:57]OFDSenderStorePacket done [17:20:57]KKMCreateOFDPacket done [17:20:57]NVStorageSaveData kkm_last_timestamp [17:20:57]File name is /storage/kkm_last_timestamp [17:20:57]Write 4 bytes [17:20:57]NVStorageSaveData done [17:20:57]ExternCall_PrintAddStr [17:20:57]wPrintStart [17:20:57]Write to MH i2c: 01 00 00 18 22 3A [17:20:57]OFD Sender: Processing packet 60024 [packets to send 30, broken 29] [17:20:57]ProducePacketName [17:20:57]name=ofd_packets/00060024 [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: 01 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: 01 07 00 [17:20:57]MH_I2C_Read... [17:20:57]OFD Sender: To server: pG, [17:20:57]CommunicateWithHost lk.salyk.kg:30040 [17:20:57]ConnectInit lk.salyk.kg [17:20:57]Read from MH i2c: 01 07 00 18 22 00 00 00 00 00 FF 0F 4F [17:20:57]RasterBufferAndPrint [17:20:57]line Счет N : (3)199809 [17:20:57]line ИНН: 02508201610067 [17:20:57]line Контрольно-Кассовый Чек [17:20:57]line ПРОДАЖА [17:20:57]line Товар: 4603290004879 [17:20:57]line Печ.сах.FORSITE Сэнд.кокос.вк [17:20:57]line 1.000 * 93.00 [17:20:57]line = 93.00 [17:20:57]line НДС 12% НСП 1% [17:20:57]line > о реализуемом товаре [17:20:57]line Товар: 6957531032045 [17:20:57]line Кабель hoco rapid charging X1 type-C 1м [17:20:57]line 1.000 * 271.00 [17:20:57]line = 271.00 [17:20:57]line НДС 12% НСП 1% [17:20:57]line > о реализуемом товаре [17:20:57]line Товар: 6000911553446 [17:20:57]line Автомобильное зарядное устройство CAR CH [17:20:57]line 1.000 * 300.00 [17:20:57]line = 300.00 [17:20:57]line НДС 12% НСП 1% [17:20:57]line > о реализуемом товаре [17:20:57]line Товар: 4700000160792 [17:20:57]line Снек Курут классический (круглый) [17:20:57]line 3.000 * 60.00 [17:20:57]line = 180.00 [17:20:57]line НДС 12% НСП 1% [17:20:57]line > о реализуемом товаре [17:20:57]line ИТОГО: 844.00 [17:20:57]line НСП 1% : 7.46 [17:20:57]line НДС 12% : 89.63 [17:20:57]line Наличными: 0.00 [17:20:57]line Безнал.: 844.00 [17:20:57]line Место: АЗС № 87 "Партнер Нефть" [17:20:57]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [17:20:57]line СНО: Общий режим [17:20:57]line Чек 99 24.10.2024 17:21 [17:20:57]line Смена: 529 ФФД: 1.0 [17:20:57]line ЗНМ: 0300000084 [17:20:57]line РНМ: 0000000000091622 [17:20:57]line Версия ККМ: 001 [17:20:57]line Платежная система: Mbank [17:20:57]line ФМ: 0000000000874674 [17:20:57]line ФД: 60024 [17:20:57]line ФПД: 202527255201665 [17:20:57]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172100&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60024&fm=202527255201665&tin=02508201610067®Number=0000000000091622&sum=84400 [17:20:57]line 0 [17:20:57]written 0, free lines is 4095 [17:20:57]Connected sock=10 [17:20:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 BE 02 00 00 77 15 B6 02 74 CA 5A 03 01 00 03 00 AA 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 36 30 30 30 39 31 31 35 35 33 34 34 36 06 04 47 00 D0 90 D0 B2 D1 82 D0 BE D0 BC D0 BE D0 B1 D0 B8 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D0 B7 D0 B0 D1 80 D1 8F D0 B4 D0 BD D0 BE D0 B5 20 D1 83 D1 81 D1 82 D1 80 D0 BE D0 B9 D1 81 D1 82 D0 B2 D0 BE 20 43 41 52 20 43 48 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 49 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 49 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FC 81 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 78 EA 00 00 35 04 06 00 B8 32 8D 1A 87 81 E6 19 3B 01 CF 99 13 B1 [17:20:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 42 A2 47 00 92 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 78 EA 00 00 F4 03 04 00 EC 27 1A 67 B6 04 01 00 00 49 1D CB 97 EC 8B FA EA [17:20:58]CommunicateWithHost err = 0 [17:20:58]CheckOFDResponse [17:20:58]1017 (14) - 77093643461234 [17:20:58]1041 (16) - 0000000000874674 [17:20:58]1040 (4) - 60024 [17:20:58]1012 (4) - 24.10.2024 10:56 [17:20:58]1206 (1) - 0 [17:20:58]OFD Sender: Remove packet 60024 [17:20:58]ProducePacketName [17:20:58]name=ofd_packets/00060024 [17:20:58]NVStorageDeleteData [17:20:58]Write to MH i2c: 01 00 00 56 22 78 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 07 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: 01 07 00 56 22 00 00 00 00 00 B3 0B 3D [17:20:58]RasterBufferAndPrint [17:20:58]line [17:20:58]line [17:20:58]line [17:20:58]line [17:20:58]line [17:20:58]written 0, free lines is 3005 [17:20:58]MH_Cut [17:20:58]Write to MH i2c: D1 01 00 5D 22 01 51 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: D1 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: D1 01 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: D1 01 00 5D 22 00 50 [17:20:58]Write to MH i2c: 01 00 00 5E 22 80 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]OFD Sender: No OFD packet to send [17:20:59]*** Cut start [17:20:59]*** Partial cut [17:20:59]*** CUTSNS_PIN = 1 [17:20:59]*** CUTSNS_PIN = 0 [17:20:59]*** Brake cut motor [17:21:00]Read from MH i2c: 01 [17:21:00]MH_I2C_Read... [17:21:00]*** Stop cut motor [17:21:00]*** Cut end [17:21:00]Read from MH i2c: 01 07 00 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: 01 07 00 5E 22 00 00 00 00 00 FF 0F 95 [17:21:00]process_action close_receipt done [17:21:00]requested_data is exist [17:21:00]produce_requested_data [17:21:00]requested_item fm.sn is exist - process it [17:21:00]wFMCommunicate request_size=4 [17:21:00]MH_SAM_APDU [17:21:00]CAPDU: 80 11 00 00 [17:21:00]Write to MH i2c: E2 08 00 5F 22 80 11 00 00 00 00 00 00 FB [17:21:00]Write i2c OK [17:21:00]MH_I2C_Read... [17:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:00]Read from MH i2c: E2 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 17 00 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 17 00 5F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 52 [17:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:21:00]wFMCommunicate OK [17:21:00]requested_item fd.num is exist - process it [17:21:00]SAM_PROTO_GetFieldsCounters [17:21:00]wFMCommunicate request_size=4 [17:21:00]MH_SAM_APDU [17:21:00]CAPDU: 80 13 00 00 [17:21:00]Write to MH i2c: E2 08 00 60 22 80 13 00 00 00 00 00 00 FE [17:21:00]Write i2c OK [17:21:00]MH_I2C_Read... [17:21:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:00]Read from MH i2c: E2 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 62 00 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 62 00 60 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 78 EA 00 00 0E 04 04 00 11 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 BC [17:21: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 78 EA 00 00 0E 04 04 00 11 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 [17:21:00]wFMCommunicate OK [17:21:00]SAM_PROTO_GetFieldsCounters done [17:21:00]requested_item shift.num is exist - process it [17:21:00]requested_item shift.opened is exist - process it [17:21:00]req_shift_opened [17:21:00]FM_GetShiftState [17:21:00]SAM_PROTO_GetShiftState [17:21:00]wFMCommunicate request_size=4 [17:21:00]MH_SAM_APDU [17:21:00]CAPDU: 80 13 01 00 [17:21:00]Write to MH i2c: E2 08 00 61 22 80 13 01 00 00 00 00 00 00 [17:21:00]Write i2c OK [17:21:00]MH_I2C_Read... [17:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:00]Read from MH i2c: E2 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 0E 00 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: E2 0E 00 61 22 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 33 [17:21:00]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:21:00]wFMCommunicate OK [17:21:00]SAM_PROTO_GetShiftState done [17:21:00]FM_GetShiftState done [17:21:00]req_shift_opened done [17:21:00]requested_item shift.open_date is exist - process it [17:21:00]req_shift_open_date [17:21:00]req_shift_open_date done [17:21:00]produce_requested_data done [17:21:00]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60024,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [17:21:00]process_action_free close_receipt [17:21:00]json_value_free [17:21:00]json_value_free done [17:21:00]process_json_proto returns [17:21:00]Send response to host [17:21:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60024,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [17:21:00]free response buf [17:21:00]execute_script done [17:21:00]execute_script returns [17:21:00]free content buf [17:21:00]Sock 9.Close socket [17:21:00]Sock 9.Thread stoped [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:11]accept exits with 7 [17:24:11]New connection [17:24:11]New thread 3067252068 created [17:24:11]Thread 3067108708 joined [17:24:11]Waiting for new connection... [17:24:11] Sock 7.Parse request [17:24:11]Sock 7.Check first char [17:24:11]Sock 7.First char is OK [17:24:11]request: POST /json_proto HTTP/1.0 [17:24:11]Method: POST [17:24:11]URL: /json_proto [17:24:11]Method is POST - this is cgi request [17:24:11]url: /json_proto [17:24:11]query_string will be loaded in cgi processing [17:24:11]execute_cgi json_proto POST (null) [17:24:11]execute_cgi path=json_proto method=POST [17:24:11]POST find Content-Length [17:24:11]Host: 172.17.42.196:8080 [17:24:11]Content-Length: 770 [17:24:11]Content-Type: application/json [17:24:11] [17:24:11]POST finish read [17:24:11]Found Content-Length = 770 [17:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:11]execute_script... [17:24: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)3309040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:11]POST & json_proto [17:24:11]process_json_proto [17:24:11]json parsed OK: [17:24:11]protocol is kg_v1.0 [17:24:11]action value=close_receipt [17:24:11]process_action close_receipt [17:24:11]cmd_close_receipt [17:24:11]MH_GetDate [17:24:11]Write to MH i2c: F0 00 00 62 22 73 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: F0 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: F0 09 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: F0 09 00 62 22 00 C0 82 1A 67 FF C4 6B 64 D1 [17:24:11]GetLastDocTimeStamp 1729790460 [17:24:11]current date 1729790656 [17:24:11]FM_GetShiftState [17:24:11]SAM_PROTO_GetShiftState [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 13 01 00 [17:24:11]Write to MH i2c: E2 08 00 63 22 80 13 01 00 00 00 00 00 02 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0E 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0E 00 63 22 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 35 [17:24:11]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:24:11]wFMCommunicate OK [17:24:11]SAM_PROTO_GetShiftState done [17:24:11]FM_GetShiftState done [17:24:11]opened in 1729730575 [17:24:11]opened+sec_in_day 1729816975 [17:24:11]quantity*price = 130053 [17:24:11]sum+1 = 130055 [17:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.54 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 0.00 Безнал.: 1300.54 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 100 24.10.2024 17:24 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60025 ФПД: 208836733748423 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172416&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60025&fm=208836733748423&tin=02508201610067®Number=0000000000091622&sum=130054 [17:24:12]StoreToDocumentArchive [17:24:12]shift 529 fd 60025 [17:24:12]save to /storage/0529/doc_00060025 [17:24:12]save last doc name /storage/0529/doc_00060025 to /storage/kkm_last_doc_name [17:24:12]save OK [17:24:12]Clear old archive folders... [17:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:12]tlvbuf is 00DD1310 [17:24:12]SAM_PROTO_ClearQueue [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 09 00 00 [17:24:12]Write to MH i2c: E2 08 00 70 22 80 09 00 00 00 00 00 00 04 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 70 22 00 90 00 06 [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]SAM_PROTO_ClearQueue done [17:24:12]KKMCreateOFDPacket [17:24:12]OFDProtocolAddRootSTLVToBuf [17:24:12]FM_MakeSignedData [17:24:12]FM_MakeSignedData [17:24:12]SAM_PROTO_SignData [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 0D 01 02 [17:24:12]Write to MH i2c: E2 08 00 71 22 80 0D 01 02 00 00 00 00 0C [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 71 22 00 90 00 07 [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]wFMCommunicate request_size=255 [17:24:12]MH_SAM_APDU [17:24: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 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 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 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 C0 82 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 79 EA 00 00 35 04 06 00 BD [17:24:12]Write to MH i2c: E2 02 01 72 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 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 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 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 C0 82 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 79 EA 00 00 35 04 06 00 BD 00 00 99 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 72 22 00 90 00 08 [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]wFMCommunicate request_size=10 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 0D 02 02 05 EF 97 54 C4 C7 [17:24:12]Write to MH i2c: E2 0D 00 73 22 80 0D 02 02 05 00 EF 97 54 C4 C7 00 00 7E [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 03 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 03 00 73 22 00 90 00 09 [17:24:13]RAPDU: 90 00 [17:24:13]wFMCommunicate OK [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 0D 03 02 [17:24:13]Write to MH i2c: E2 08 00 74 22 80 0D 03 02 00 00 00 00 11 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 0B 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 0B 00 74 22 00 8F AE 0A 74 FD 2A 30 5B 90 00 7F [17:24:13]RAPDU: 8F AE 0A 74 FD 2A 30 5B 90 00 [17:24:13]wFMCommunicate OK [17:24:13]SAM_PROTO_SignData done [17:24:13]FM_MakeSignedData done [17:24:13]CreateOFDProtocolMessage [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 11 00 00 [17:24:13]Write to MH i2c: E2 08 00 75 22 80 11 00 00 00 00 00 00 11 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 17 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 17 00 75 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 68 [17:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:24:13]wFMCommunicate OK [17:24:13]CreateOFDProtocolMessage done [17:24:13]OFDSenderStorePacket 60025 [17:24:13]StoreOFDPacket docnum=60025 [17:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 30 32 07 01 D0 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 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 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 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 C0 82 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 79 EA 00 00 35 04 06 00 BD EF 97 54 C4 C7 8F AE 0A 74 FD 2A 30 5B [17:24:13]CheckFolder [17:24:13]dirname=/storage/ofd_packets [17:24:13]CheckFolder done [17:24:13]ProducePacketName [17:24:13]name=ofd_packets/00060025 [17:24:13]NVStorageSaveData ofd_packets/00060025 [17:24:13]File name is /storage/ofd_packets/00060025 [17:24:13]Write 301 bytes [17:24:13]NVStorageSaveData done [17:24:13]OFDSenderStorePacket done [17:24:13]KKMCreateOFDPacket done [17:24:13]NVStorageSaveData kkm_last_timestamp [17:24:13]File name is /storage/kkm_last_timestamp [17:24:13]Write 4 bytes [17:24:13]NVStorageSaveData done [17:24:13]ExternCall_PrintAddStr [17:24:13]wPrintStart [17:24:13]Write to MH i2c: 01 00 00 76 22 98 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 07 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 07 00 76 22 00 00 00 00 00 FF 0F AD [17:24:13]RasterBufferAndPrint [17:24:13]line Счет N : (1)3309040 [17:24:13]line ИНН: 02508201610067 [17:24:13]line Контрольно-Кассовый Чек [17:24:13]line ПРОДАЖА [17:24:13]line ТРК (МРК, ГНК) : 42 [17:24:13]line Товар: 2710124130 [17:24:13]line Аи-92-К-4 [17:24:13]line 19.440 * 66.90 [17:24:13]line = 1300.54 [17:24:13]line НДС 12% НСП 1% [17:24:13]line > о реализуемом товаре [17:24:13]line ИТОГО: 1300.54 [17:24:13]line НСП 1% : 11.51 [17:24:13]line НДС 12% : 138.11 [17:24:13]line Наличными: 0.00 [17:24:13]line Безнал.: 1300.54 [17:24:13]line Место: АЗС № 87 "Партнер Нефть" [17:24:13]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [17:24:13]line СНО: Общий режим [17:24:13]line Чек 100 24.10.2024 17:24 [17:24:13]line Смена: 529 ФФД: 1.0 [17:24:13]line ЗНМ: 0300000084 [17:24:13]line РНМ: 0000000000091622 [17:24:13]line Версия ККМ: 001 [17:24:13]line Платежная система: Mbank [17:24:13]line ФМ: 0000000000874674 [17:24:13]line ФД: 60025 [17:24:13]line ФПД: 208836733748423 [17:24:13]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172416&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60025&fm=208836733748423&tin=02508201610067®Number=0000000000091622&sum=130054 [17:24:13]written 0, free lines is 4095 [17:24:13]OFD Sender: Processing packet 60025 [packets to send 30, broken 29] [17:24:13]ProducePacketName [17:24:13]name=ofd_packets/00060025 [17:24:13]OFD Sender: To server: pG, [17:24:13]CommunicateWithHost lk.salyk.kg:30040 [17:24:13]ConnectInit lk.salyk.kg [17:24:13]Connected sock=9 [17:24:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 30 32 07 01 D0 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 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 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 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 C0 82 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 79 EA 00 00 35 04 06 00 BD EF 97 54 C4 C7 8F AE 0A 74 FD 2A 30 5B [17:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 65 2F 47 00 5B 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 34 36 37 34 10 04 04 00 79 EA 00 00 F4 03 04 00 AF 28 1A 67 B6 04 01 00 00 3D 6A 55 5A 22 02 06 18 [17:24:13]CommunicateWithHost err = 0 [17:24:13]CheckOFDResponse [17:24:13]1017 (14) - 77093643461234 [17:24:13]1041 (16) - 0000000000874674 [17:24:13]1040 (4) - 60025 [17:24:13]1012 (4) - 24.10.2024 10:59 [17:24:13]1206 (1) - 0 [17:24:13]OFD Sender: Remove packet 60025 [17:24:13]ProducePacketName [17:24:13]name=ofd_packets/00060025 [17:24:13]NVStorageDeleteData [17:24:13]Write to MH i2c: 01 00 00 9F 22 C1 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 07 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 07 00 9F 22 00 00 00 00 00 09 0D DE [17:24:13]RasterBufferAndPrint [17:24:13]line [17:24:13]line [17:24:13]line [17:24:13]line [17:24:13]line [17:24:13]written 0, free lines is 3342 [17:24:13]MH_Cut [17:24:13]Write to MH i2c: D1 01 00 A6 22 01 9A [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: D1 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: D1 01 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: D1 01 00 A6 22 00 99 [17:24:13]Write to MH i2c: 01 00 00 A7 22 C9 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:14]OFD Sender: No OFD packet to send [17:24:14]*** Cut start [17:24:14]*** Partial cut [17:24:14]*** CUTSNS_PIN = 1 [17:24:14]*** CUTSNS_PIN = 0 [17:24:14]*** Brake cut motor [17:24:14]Read from MH i2c: 01 [17:24:14]MH_I2C_Read... [17:24:14]*** Stop cut motor [17:24:15]*** Cut end [17:24:15]Read from MH i2c: 01 07 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 07 00 A7 22 00 00 00 00 00 FF 0F DE [17:24:15]process_action close_receipt done [17:24:15]requested_data is exist [17:24:15]produce_requested_data [17:24:15]requested_item fm.sn is exist - process it [17:24:15]wFMCommunicate request_size=4 [17:24:15]MH_SAM_APDU [17:24:15]CAPDU: 80 11 00 00 [17:24:15]Write to MH i2c: E2 08 00 A8 22 80 11 00 00 00 00 00 00 44 [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:15]Read from MH i2c: E2 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 17 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 17 00 A8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 9B [17:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:24:15]wFMCommunicate OK [17:24:15]requested_item fd.num is exist - process it [17:24:15]SAM_PROTO_GetFieldsCounters [17:24:15]wFMCommunicate request_size=4 [17:24:15]MH_SAM_APDU [17:24:15]CAPDU: 80 13 00 00 [17:24:15]Write to MH i2c: E2 08 00 A9 22 80 13 00 00 00 00 00 00 47 [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:15]Read from MH i2c: E2 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 62 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 62 00 A9 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 79 EA 00 00 0E 04 04 00 11 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 09 [17:24: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 79 EA 00 00 0E 04 04 00 11 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 [17:24:15]wFMCommunicate OK [17:24:15]SAM_PROTO_GetFieldsCounters done [17:24:15]requested_item shift.num is exist - process it [17:24:15]requested_item shift.opened is exist - process it [17:24:15]req_shift_opened [17:24:15]FM_GetShiftState [17:24:15]SAM_PROTO_GetShiftState [17:24:15]wFMCommunicate request_size=4 [17:24:15]MH_SAM_APDU [17:24:15]CAPDU: 80 13 01 00 [17:24:15]Write to MH i2c: E2 08 00 AA 22 80 13 01 00 00 00 00 00 49 [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:15]Read from MH i2c: E2 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 0E 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 0E 00 AA 22 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 7C [17:24:15]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:24:15]wFMCommunicate OK [17:24:15]SAM_PROTO_GetShiftState done [17:24:15]FM_GetShiftState done [17:24:15]req_shift_opened done [17:24:15]requested_item shift.open_date is exist - process it [17:24:15]req_shift_open_date [17:24:15]req_shift_open_date done [17:24:15]produce_requested_data done [17:24:15]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60025,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [17:24:15]process_action_free close_receipt [17:24:15]json_value_free [17:24:15]json_value_free done [17:24:15]process_json_proto returns [17:24:15]Send response to host [17:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60025,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [17:24:15]free response buf [17:24:15]execute_script done [17:24:15]execute_script returns [17:24:15]free content buf [17:24:15]Sock 7.Close socket [17:24:15]Sock 7.Thread stoped [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:14]accept exits with 10 [17:25:14]New connection [17:25:14]New thread 3067108708 created [17:25:14]Thread 3067252068 joined [17:25:14]Waiting for new connection... [17:25:14] Sock 10.Parse request [17:25:14]Sock 10.Check first char [17:25:14]Sock 10.First char is OK [17:25:14]request: POST /json_proto HTTP/1.0 [17:25:14]Method: POST [17:25:14]URL: /json_proto [17:25:14]Method is POST - this is cgi request [17:25:14]url: /json_proto [17:25:14]query_string will be loaded in cgi processing [17:25:14]execute_cgi json_proto POST (null) [17:25:14]execute_cgi path=json_proto method=POST [17:25:14]POST find Content-Length [17:25:14]Host: 172.17.42.196:8080 [17:25:14]Content-Length: 678 [17:25:14]Content-Type: application/json [17:25:14] [17:25:14]POST finish read [17:25:14]Found Content-Length = 678 [17:25:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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:25:14]execute_script... [17:25: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)3309041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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:25:14]POST & json_proto [17:25:14]process_json_proto [17:25:14]json parsed OK: [17:25:14]protocol is kg_v1.0 [17:25:14]action value=close_receipt [17:25:14]process_action close_receipt [17:25:14]cmd_close_receipt [17:25:14]MH_GetDate [17:25:14]Write to MH i2c: F0 00 00 AB 22 BC [17:25:14]Write i2c OK [17:25:14]MH_I2C_Read... [17:25:14]Read from MH i2c: F0 [17:25:14]MH_I2C_Read... [17:25:14]Read from MH i2c: F0 09 00 [17:25:14]MH_I2C_Read... [17:25:14]Read from MH i2c: F0 09 00 AB 22 00 FE 82 1A 67 FF C4 6B 64 58 [17:25:14]GetLastDocTimeStamp 1729790656 [17:25:14]current date 1729790718 [17:25:14]FM_GetShiftState [17:25:14]SAM_PROTO_GetShiftState [17:25:14]wFMCommunicate request_size=4 [17:25:14]MH_SAM_APDU [17:25:14]CAPDU: 80 13 01 00 [17:25:14]Write to MH i2c: E2 08 00 AC 22 80 13 01 00 00 00 00 00 4B [17:25:14]Write i2c OK [17:25:14]MH_I2C_Read... [17:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:14]Read from MH i2c: E2 [17:25:14]MH_I2C_Read... [17:25:14]Read from MH i2c: E2 0E 00 [17:25:14]MH_I2C_Read... [17:25:14]Read from MH i2c: E2 0E 00 AC 22 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 7E [17:25:14]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:25:14]wFMCommunicate OK [17:25:14]SAM_PROTO_GetShiftState done [17:25:14]FM_GetShiftState done [17:25:14]opened in 1729730575 [17:25:14]opened+sec_in_day 1729816975 [17:25:14]quantity*price = 50041 [17:25:14]sum+1 = 50042 [17:25: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 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 101 24.10.2024 17:25 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60026 ФПД: 138334586806825 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172518&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60026&fm=138334586806825&tin=02508201610067®Number=0000000000091622&sum=50000 [17:25:15]StoreToDocumentArchive [17:25:15]shift 529 fd 60026 [17:25:15]save to /storage/0529/doc_00060026 [17:25:15]save last doc name /storage/0529/doc_00060026 to /storage/kkm_last_doc_name [17:25:15]save OK [17:25:15]Clear old archive folders... [17:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:15]tlvbuf is 00D7ABE0 [17:25:15]SAM_PROTO_ClearQueue [17:25:15]wFMCommunicate request_size=4 [17:25:15]MH_SAM_APDU [17:25:15]CAPDU: 80 09 00 00 [17:25:15]Write to MH i2c: E2 08 00 B9 22 80 09 00 00 00 00 00 00 4D [17:25:15]Write i2c OK [17:25:15]MH_I2C_Read... [17:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:15]Read from MH i2c: E2 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 03 00 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 03 00 B9 22 00 90 00 4F [17:25:15]RAPDU: 90 00 [17:25:15]wFMCommunicate OK [17:25:15]SAM_PROTO_ClearQueue done [17:25:15]KKMCreateOFDPacket [17:25:15]OFDProtocolAddRootSTLVToBuf [17:25:15]FM_MakeSignedData [17:25:15]FM_MakeSignedData [17:25:15]SAM_PROTO_SignData [17:25:15]wFMCommunicate request_size=4 [17:25:15]MH_SAM_APDU [17:25:15]CAPDU: 80 0D 01 02 [17:25:15]Write to MH i2c: E2 08 00 BA 22 80 0D 01 02 00 00 00 00 55 [17:25:15]Write i2c OK [17:25:15]MH_I2C_Read... [17:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:15]Read from MH i2c: E2 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 03 00 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 03 00 BA 22 00 90 00 50 [17:25:15]RAPDU: 90 00 [17:25:15]wFMCommunicate OK [17:25:15]wFMCommunicate request_size=255 [17:25:15]MH_SAM_APDU [17: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 65 00 00 00 F4 03 04 00 FE 82 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7A EA 00 00 35 04 06 00 7D [17:25:15]Write to MH i2c: E2 02 01 BB 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 34 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 65 00 00 00 F4 03 04 00 FE 82 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7A EA 00 00 35 04 06 00 7D 00 00 3C [17:25:15]Write i2c OK [17:25:15]MH_I2C_Read... [17:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:15]Read from MH i2c: E2 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 03 00 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 03 00 BB 22 00 90 00 51 [17:25:15]RAPDU: 90 00 [17:25:15]wFMCommunicate OK [17:25:15]wFMCommunicate request_size=10 [17:25:15]MH_SAM_APDU [17:25:15]CAPDU: 80 0D 02 02 05 D0 87 E8 22 29 [17:25:15]Write to MH i2c: E2 0D 00 BC 22 80 0D 02 02 05 00 D0 87 E8 22 29 00 00 EC [17:25:15]Write i2c OK [17:25:15]MH_I2C_Read... [17:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:15]Read from MH i2c: E2 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 03 00 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 03 00 BC 22 00 90 00 52 [17:25:15]RAPDU: 90 00 [17:25:15]wFMCommunicate OK [17:25:15]wFMCommunicate request_size=4 [17:25:15]MH_SAM_APDU [17:25:15]CAPDU: 80 0D 03 02 [17:25:15]Write to MH i2c: E2 08 00 BD 22 80 0D 03 02 00 00 00 00 5A [17:25:15]Write i2c OK [17:25:15]MH_I2C_Read... [17:25:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:15]Read from MH i2c: E2 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 0B 00 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 0B 00 BD 22 00 2C D0 A4 E0 B3 A3 1D 70 90 00 BE [17:25:15]RAPDU: 2C D0 A4 E0 B3 A3 1D 70 90 00 [17:25:15]wFMCommunicate OK [17:25:15]SAM_PROTO_SignData done [17:25:15]FM_MakeSignedData done [17:25:15]CreateOFDProtocolMessage [17:25:15]wFMCommunicate request_size=4 [17:25:15]MH_SAM_APDU [17:25:15]CAPDU: 80 11 00 00 [17:25:15]Write to MH i2c: E2 08 00 BE 22 80 11 00 00 00 00 00 00 5A [17:25:15]Write i2c OK [17:25:15]MH_I2C_Read... [17:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:15]Read from MH i2c: E2 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 17 00 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: E2 17 00 BE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 B1 [17:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:25:15]wFMCommunicate OK [17:25:15]CreateOFDProtocolMessage done [17:25:15]OFDSenderStorePacket 60026 [17:25:15]StoreOFDPacket docnum=60026 [17:25:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 69 4A 07 01 25 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 65 00 00 00 F4 03 04 00 FE 82 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7A EA 00 00 35 04 06 00 7D D0 87 E8 22 29 2C D0 A4 E0 B3 A3 1D 70 [17:25:15]CheckFolder [17:25:15]dirname=/storage/ofd_packets [17:25:15]CheckFolder done [17:25:15]ProducePacketName [17:25:15]name=ofd_packets/00060026 [17:25:15]NVStorageSaveData ofd_packets/00060026 [17:25:15]File name is /storage/ofd_packets/00060026 [17:25:15]Write 301 bytes [17:25:15]NVStorageSaveData done [17:25:15]OFDSenderStorePacket done [17:25:15]KKMCreateOFDPacket done [17:25:15]NVStorageSaveData kkm_last_timestamp [17:25:15]File name is /storage/kkm_last_timestamp [17:25:15]Write 4 bytes [17:25:15]NVStorageSaveData done [17:25:15]OFD Sender: Processing packet 60026 [packets to send 30, broken 29] [17:25:15]ProducePacketName [17:25:15]name=ofd_packets/00060026 [17:25:15]OFD Sender: To server: pG, [17:25:15]CommunicateWithHost lk.salyk.kg:30040 [17:25:15]ConnectInit lk.salyk.kg [17:25:15]ExternCall_PrintAddStr [17:25:15]wPrintStart [17:25:15]Write to MH i2c: 01 00 00 BF 22 E1 [17:25:15]Write i2c OK [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: 01 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: 01 07 00 [17:25:15]MH_I2C_Read... [17:25:15]Read from MH i2c: 01 07 00 BF 22 00 00 00 00 00 FF 0F F6 [17:25:15]RasterBufferAndPrint [17:25:15]line Счет N : (1)3309041 [17:25:15]line ИНН: 02508201610067 [17:25:15]line Контрольно-Кассовый Чек [17:25:15]line ПРОДАЖА [17:25:15]line ТРК (МРК, ГНК) : 12 [17:25:15]line Товар: 2710124130 [17:25:15]line Аи-92-К-4 [17:25:15]line 7.480 * 66.90 [17:25:15]line = 500.41 [17:25:15]line НДС 12% НСП 1% [17:25:15]line > о реализуемом товаре [17:25:15]line ОКРУГЛЕНИЕ: -0.41 [17:25:15]line ИТОГО: 500.00 [17:25:15]line Внесено: 500.00 [17:25:15]line СДАЧА: 0.00 [17:25:15]line НСП 1% : 4.43 [17:25:15]line НДС 12% : 53.14 [17:25:15]line Наличными: 500.00 [17:25:15]line Безнал.: 0.00 [17:25:15]line Место: АЗС № 87 "Партнер Нефть" [17:25:15]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [17:25:15]line СНО: Общий режим [17:25:15]line Чек 101 24.10.2024 17:25 [17:25:15]line Смена: 529 ФФД: 1.0 [17:25:15]line ЗНМ: 0300000084 [17:25:15]line РНМ: 0000000000091622 [17:25:15]line Версия ККМ: 001 [17:25:15]line ФМ: 0000000000874674 [17:25:15]line ФД: 60026 [17:25:15]line ФПД: 138334586806825 [17:25:16]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172518&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60026&fm=138334586806825&tin=02508201610067®Number=0000000000091622&sum=50000 [17:25:16]Connected sock=9 [17: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 34 36 37 34 0F 01 00 00 69 4A 07 01 25 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 65 00 00 00 F4 03 04 00 FE 82 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7A EA 00 00 35 04 06 00 7D D0 87 E8 22 29 2C D0 A4 E0 B3 A3 1D 70 [17:25:16]written 0, free lines is 4095 [17:25:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 D7 9B 47 00 CB 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 34 36 37 34 10 04 04 00 7A EA 00 00 F4 03 04 00 EE 28 1A 67 B6 04 01 00 00 8C D9 46 23 96 06 B7 81 [17:25:16]CommunicateWithHost err = 0 [17:25:16]CheckOFDResponse [17:25:16]1017 (14) - 77093643461234 [17:25:16]1041 (16) - 0000000000874674 [17:25:16]1040 (4) - 60026 [17:25:16]1012 (4) - 24.10.2024 11:01 [17:25:16]1206 (1) - 0 [17:25:16]OFD Sender: Remove packet 60026 [17:25:16]ProducePacketName [17:25:16]name=ofd_packets/00060026 [17:25:16]NVStorageDeleteData [17:25:16]Write to MH i2c: 01 00 00 EA 22 0C [17:25:16]Write i2c OK [17:25:16]MH_I2C_Read... [17:25:16]Read from MH i2c: 01 [17:25:16]MH_I2C_Read... [17:25:16]Read from MH i2c: 01 07 00 [17:25:16]MH_I2C_Read... [17:25:16]Read from MH i2c: 01 07 00 EA 22 00 00 00 00 00 D8 0C F7 [17:25:16]RasterBufferAndPrint [17:25:16]line [17:25:16]line [17:25:16]line [17:25:16]line [17:25:16]line [17:25:16]written 0, free lines is 3295 [17:25:16]MH_Cut [17:25:16]Write to MH i2c: D1 01 00 F1 22 01 E5 [17:25:16]Write i2c OK [17:25:16]MH_I2C_Read... [17:25:16]Read from MH i2c: D1 [17:25:16]MH_I2C_Read... [17:25:16]Read from MH i2c: D1 01 00 [17:25:16]MH_I2C_Read... [17:25:16]Read from MH i2c: D1 01 00 F1 22 00 E4 [17:25:16]Write to MH i2c: 01 00 00 F2 22 14 [17:25:16]Write i2c OK [17:25:16]MH_I2C_Read... [17:25:16]OFD Sender: No OFD packet to send [17:25:17]*** Cut start [17:25:17]*** Partial cut [17:25:17]*** CUTSNS_PIN = 1 [17:25:17]*** CUTSNS_PIN = 0 [17:25:17]*** Brake cut motor [17:25:18]Read from MH i2c: 01 [17:25:18]MH_I2C_Read... [17:25:18]*** Stop cut motor [17:25:18]*** Cut end [17:25:18]Read from MH i2c: 01 07 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: 01 07 00 F2 22 00 00 00 00 00 FF 0F 29 [17:25:18]process_action close_receipt done [17:25:18]requested_data is exist [17:25:18]produce_requested_data [17:25:18]requested_item fm.sn is exist - process it [17:25:18]wFMCommunicate request_size=4 [17:25:18]MH_SAM_APDU [17:25:18]CAPDU: 80 11 00 00 [17:25:18]Write to MH i2c: E2 08 00 F3 22 80 11 00 00 00 00 00 00 8F [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:18]Read from MH i2c: E2 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 17 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 17 00 F3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 E6 [17:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:25:18]wFMCommunicate OK [17:25:18]requested_item fd.num is exist - process it [17:25:18]SAM_PROTO_GetFieldsCounters [17:25:18]wFMCommunicate request_size=4 [17:25:18]MH_SAM_APDU [17:25:18]CAPDU: 80 13 00 00 [17:25:18]Write to MH i2c: E2 08 00 F4 22 80 13 00 00 00 00 00 00 92 [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:18]Read from MH i2c: E2 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 62 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 62 00 F4 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7A EA 00 00 0E 04 04 00 11 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 58 [17: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7A EA 00 00 0E 04 04 00 11 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 [17:25:18]wFMCommunicate OK [17:25:18]SAM_PROTO_GetFieldsCounters done [17:25:18]requested_item shift.num is exist - process it [17:25:18]requested_item shift.opened is exist - process it [17:25:18]req_shift_opened [17:25:18]FM_GetShiftState [17:25:18]SAM_PROTO_GetShiftState [17:25:18]wFMCommunicate request_size=4 [17:25:18]MH_SAM_APDU [17:25:18]CAPDU: 80 13 01 00 [17:25:18]Write to MH i2c: E2 08 00 F5 22 80 13 01 00 00 00 00 00 94 [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:18]Read from MH i2c: E2 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 0E 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 0E 00 F5 22 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 C7 [17:25:18]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:25:18]wFMCommunicate OK [17:25:18]SAM_PROTO_GetShiftState done [17:25:18]FM_GetShiftState done [17:25:18]req_shift_opened done [17:25:18]requested_item shift.open_date is exist - process it [17:25:18]req_shift_open_date [17:25:18]req_shift_open_date done [17:25:18]produce_requested_data done [17:25:18]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60026,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [17:25:18]process_action_free close_receipt [17:25:18]json_value_free [17:25:18]json_value_free done [17:25:18]process_json_proto returns [17:25:18]Send response to host [17:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60026,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [17:25:18]free response buf [17:25:18]execute_script done [17:25:18]execute_script returns [17:25:18]free content buf [17:25:18]Sock 10.Close socket [17:25:18]Sock 10.Thread stoped [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:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:52]accept exits with 7 [17:27:52]New connection [17:27:52]New thread 3067252068 created [17:27:52]Thread 3067108708 joined [17:27:52]Waiting for new connection... [17:27:52] Sock 7.Parse request [17:27:52]Sock 7.Check first char [17:27:52]Sock 7.First char is OK [17:27:52]request: POST /json_proto HTTP/1.0 [17:27:52]Method: POST [17:27:52]URL: /json_proto [17:27:52]Method is POST - this is cgi request [17:27:52]url: /json_proto [17:27:52]query_string will be loaded in cgi processing [17:27:52]execute_cgi json_proto POST (null) [17:27:52]execute_cgi path=json_proto method=POST [17:27:52]POST find Content-Length [17:27:52]Host: 172.17.42.196:8080 [17:27:52]Content-Length: 774 [17:27:52]Content-Type: application/json [17:27:52] [17:27:52]POST finish read [17:27:52]Found Content-Length = 774 [17:27:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 15.620, "sum" : 1190.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" : 1190.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:52]execute_script... [17:27:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 15.620, "sum" : 1190.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" : 1190.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:52]POST & json_proto [17:27:52]process_json_proto [17:27:52]json parsed OK: [17:27:52]protocol is kg_v1.0 [17:27:52]action value=close_receipt [17:27:52]process_action close_receipt [17:27:52]cmd_close_receipt [17:27:52]MH_GetDate [17:27:52]Write to MH i2c: F0 00 00 F6 22 07 [17:27:52]Write i2c OK [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: F0 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: F0 09 00 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: F0 09 00 F6 22 00 9D 83 1A 67 FF C4 6B 64 43 [17:27:52]GetLastDocTimeStamp 1729790718 [17:27:52]current date 1729790877 [17:27:52]FM_GetShiftState [17:27:52]SAM_PROTO_GetShiftState [17:27:52]wFMCommunicate request_size=4 [17:27:52]MH_SAM_APDU [17:27:52]CAPDU: 80 13 01 00 [17:27:52]Write to MH i2c: E2 08 00 F7 22 80 13 01 00 00 00 00 00 96 [17:27:52]Write i2c OK [17:27:52]MH_I2C_Read... [17:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:52]Read from MH i2c: E2 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: E2 0E 00 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: E2 0E 00 F7 22 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 C9 [17:27:52]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:27:52]wFMCommunicate OK [17:27:52]SAM_PROTO_GetShiftState done [17:27:52]FM_GetShiftState done [17:27:52]opened in 1729730575 [17:27:52]opened+sec_in_day 1729816975 [17:27:52]quantity*price = 119024 [17:27:52]sum+1 = 119025 [17:27:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1190.24 НСП 1% : 10.53 НДС 12% : 126.40 Наличными: 0.00 Безнал.: 1190.24 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 102 24.10.2024 17:27 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60027 ФПД: 50907717151990 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172757&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60027&fm=50907717151990&tin=02508201610067®Number=0000000000091622&sum=119024 [17:27:53]StoreToDocumentArchive [17:27:53]shift 529 fd 60027 [17:27:53]save to /storage/0529/doc_00060027 [17:27:53]save last doc name /storage/0529/doc_00060027 to /storage/kkm_last_doc_name [17:27:53]save OK [17:27:53]Clear old archive folders... [17:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:27:53]tlvbuf is 00DC5FA0 [17:27:53]SAM_PROTO_ClearQueue [17:27:53]wFMCommunicate request_size=4 [17:27:53]MH_SAM_APDU [17:27:53]CAPDU: 80 09 00 00 [17:27:53]Write to MH i2c: E2 08 00 04 23 80 09 00 00 00 00 00 00 99 [17:27:53]Write i2c OK [17:27:53]MH_I2C_Read... [17:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:53]Read from MH i2c: E2 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 03 00 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 03 00 04 23 00 90 00 9B [17:27:53]RAPDU: 90 00 [17:27:53]wFMCommunicate OK [17:27:53]SAM_PROTO_ClearQueue done [17:27:53]KKMCreateOFDPacket [17:27:53]OFDProtocolAddRootSTLVToBuf [17:27:53]FM_MakeSignedData [17:27:53]FM_MakeSignedData [17:27:53]SAM_PROTO_SignData [17:27:53]wFMCommunicate request_size=4 [17:27:53]MH_SAM_APDU [17:27:53]CAPDU: 80 0D 01 02 [17:27:53]Write to MH i2c: E2 08 00 05 23 80 0D 01 02 00 00 00 00 A1 [17:27:53]Write i2c OK [17:27:53]MH_I2C_Read... [17:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:53]Read from MH i2c: E2 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 03 00 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 03 00 05 23 00 90 00 9C [17:27:53]RAPDU: 90 00 [17:27:53]wFMCommunicate OK [17:27:53]wFMCommunicate request_size=255 [17:27:53]MH_SAM_APDU [17:27:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D0 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 9D 83 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7B EA 00 00 35 04 06 00 [17:27:53]Write to MH i2c: E2 02 01 06 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D0 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 9D 83 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7B EA 00 00 35 04 06 00 00 00 7B [17:27:53]Write i2c OK [17:27:53]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 03 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 03 00 06 23 00 90 00 9D [17:27:54]RAPDU: 90 00 [17:27:54]wFMCommunicate OK [17:27:54]wFMCommunicate request_size=11 [17:27:54]MH_SAM_APDU [17:27:54]CAPDU: 80 0D 02 02 06 2E 4C E0 65 AC F6 [17:27:54]Write to MH i2c: E2 0E 00 07 23 80 0D 02 02 06 00 2E 4C E0 65 AC F6 00 00 11 [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 03 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 03 00 07 23 00 90 00 9E [17:27:54]RAPDU: 90 00 [17:27:54]wFMCommunicate OK [17:27:54]wFMCommunicate request_size=4 [17:27:54]MH_SAM_APDU [17:27:54]CAPDU: 80 0D 03 02 [17:27:54]Write to MH i2c: E2 08 00 08 23 80 0D 03 02 00 00 00 00 A6 [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 0B 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 0B 00 08 23 00 F0 62 C2 28 B5 5A 16 16 90 00 1E [17:27:54]RAPDU: F0 62 C2 28 B5 5A 16 16 90 00 [17:27:54]wFMCommunicate OK [17:27:54]SAM_PROTO_SignData done [17:27:54]FM_MakeSignedData done [17:27:54]CreateOFDProtocolMessage [17:27:54]wFMCommunicate request_size=4 [17:27:54]MH_SAM_APDU [17:27:54]CAPDU: 80 11 00 00 [17:27:54]Write to MH i2c: E2 08 00 09 23 80 11 00 00 00 00 00 00 A6 [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 17 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 17 00 09 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 FD [17:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:27:54]wFMCommunicate OK [17:27:54]CreateOFDProtocolMessage done [17:27:54]OFDSenderStorePacket 60027 [17:27:54]StoreOFDPacket docnum=60027 [17:27:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 01 00 00 FE 0B 08 01 1C 44 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D0 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 9D 83 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7B EA 00 00 35 04 06 00 2E 4C E0 65 AC F6 F0 62 C2 28 B5 5A 16 16 [17:27:54]CheckFolder [17:27:54]dirname=/storage/ofd_packets [17:27:54]CheckFolder done [17:27:54]ProducePacketName [17:27:54]name=ofd_packets/00060027 [17:27:54]NVStorageSaveData ofd_packets/00060027 [17:27:54]File name is /storage/ofd_packets/00060027 [17:27:54]Write 302 bytes [17:27:54]NVStorageSaveData done [17:27:54]OFDSenderStorePacket done [17:27:54]KKMCreateOFDPacket done [17:27:54]NVStorageSaveData kkm_last_timestamp [17:27:54]File name is /storage/kkm_last_timestamp [17:27:54]Write 4 bytes [17:27:54]NVStorageSaveData done [17:27:54]ExternCall_PrintAddStr [17:27:54]wPrintStart [17:27:54]Write to MH i2c: 01 00 00 0A 23 2D [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 07 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 07 00 0A 23 00 00 00 00 00 FF 0F 42 [17:27:54]RasterBufferAndPrint [17:27:54]line Счет N : (1)3309045 [17:27:54]line ИНН: 02508201610067 [17:27:54]line Контрольно-Кассовый Чек [17:27:54]line ПРОДАЖА [17:27:54]line ТРК (МРК, ГНК) : 5 [17:27:54]line Товар: 2710194210 [17:27:54]line ДТ(л)-К-5 [17:27:54]line 15.620 * 76.20 [17:27:54]line = 1190.24 [17:27:54]line НДС 12% НСП 1% [17:27:54]line > о реализуемом товаре [17:27:54]line ИТОГО: 1190.24 [17:27:54]line НСП 1% : 10.53 [17:27:54]line НДС 12% : 126.40 [17:27:54]line Наличными: 0.00 [17:27:54]line Безнал.: 1190.24 [17:27:54]line Место: АЗС № 87 "Партнер Нефть" [17:27:54]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [17:27:54]line СНО: Общий режим [17:27:54]line Чек 102 24.10.2024 17:27 [17:27:54]line Смена: 529 ФФД: 1.0 [17:27:54]line ЗНМ: 0300000084 [17:27:54]line РНМ: 0000000000091622 [17:27:54]line Версия ККМ: 001 [17:27:54]line Платежная система: Mbank [17:27:54]line ФМ: 0000000000874674 [17:27:54]line ФД: 60027 [17:27:54]line ФПД: 50907717151990 [17:27:54]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172757&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60027&fm=50907717151990&tin=02508201610067®Number=0000000000091622&sum=119024 [17:27:54]OFD Sender: Processing packet 60027 [packets to send 30, broken 29] [17:27:54]ProducePacketName [17:27:54]name=ofd_packets/00060027 [17:27:54]OFD Sender: To server: pG, [17:27:54]CommunicateWithHost lk.salyk.kg:30040 [17:27:54]ConnectInit lk.salyk.kg [17:27:54]written 0, free lines is 4095 [17:27:54]Connected sock=10 [17:27:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 01 00 00 FE 0B 08 01 1C 44 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F0 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D0 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 9D 83 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7B EA 00 00 35 04 06 00 2E 4C E0 65 AC F6 F0 62 C2 28 B5 5A 16 16 [17:27:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 0D F5 47 00 9F C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7B EA 00 00 F4 03 04 00 8D 29 1A 67 B6 04 01 00 00 A5 F5 63 33 E2 61 C7 40 [17:27:54]CommunicateWithHost err = 0 [17:27:54]CheckOFDResponse [17:27:54]1017 (14) - 77093643461234 [17:27:54]1041 (16) - 0000000000874674 [17:27:54]1040 (4) - 60027 [17:27:54]1012 (4) - 24.10.2024 11:03 [17:27:54]1206 (1) - 0 [17:27:54]OFD Sender: Remove packet 60027 [17:27:54]ProducePacketName [17:27:54]name=ofd_packets/00060027 [17:27:54]NVStorageDeleteData [17:27:55]Write to MH i2c: 01 00 00 33 23 56 [17:27:55]Write i2c OK [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: 01 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: 01 07 00 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: 01 07 00 33 23 00 00 00 00 00 05 0D 6F [17:27:55]RasterBufferAndPrint [17:27:55]line [17:27:55]line [17:27:55]line [17:27:55]line [17:27:55]line [17:27:55]written 0, free lines is 3340 [17:27:55]MH_Cut [17:27:55]Write to MH i2c: D1 01 00 3A 23 01 2F [17:27:55]Write i2c OK [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: D1 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: D1 01 00 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: D1 01 00 3A 23 00 2E [17:27:55]Write to MH i2c: 01 00 00 3B 23 5E [17:27:55]Write i2c OK [17:27:55]MH_I2C_Read... [17:27:55]OFD Sender: No OFD packet to send [17:27:55]*** Cut start [17:27:55]*** Partial cut [17:27:55]*** CUTSNS_PIN = 1 [17:27:55]*** CUTSNS_PIN = 0 [17:27:56]*** Brake cut motor [17:27:56]Read from MH i2c: 01 [17:27:56]MH_I2C_Read... [17:27:56]*** Stop cut motor [17:27:56]*** Cut end [17:27:56]Read from MH i2c: 01 07 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: 01 07 00 3B 23 00 00 00 00 00 FF 0F 73 [17:27:56]process_action close_receipt done [17:27:56]requested_data is exist [17:27:56]produce_requested_data [17:27:56]requested_item fm.sn is exist - process it [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 11 00 00 [17:27:56]Write to MH i2c: E2 08 00 3C 23 80 11 00 00 00 00 00 00 D9 [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 17 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 17 00 3C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 30 [17:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:27:56]wFMCommunicate OK [17:27:56]requested_item fd.num is exist - process it [17:27:56]SAM_PROTO_GetFieldsCounters [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 13 00 00 [17:27:56]Write to MH i2c: E2 08 00 3D 23 80 13 00 00 00 00 00 00 DC [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 62 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 62 00 3D 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7B EA 00 00 0E 04 04 00 11 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 A6 [17:27:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7B EA 00 00 0E 04 04 00 11 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 [17:27:56]wFMCommunicate OK [17:27:56]SAM_PROTO_GetFieldsCounters done [17:27:56]requested_item shift.num is exist - process it [17:27:56]requested_item shift.opened is exist - process it [17:27:56]req_shift_opened [17:27:56]FM_GetShiftState [17:27:56]SAM_PROTO_GetShiftState [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 13 01 00 [17:27:56]Write to MH i2c: E2 08 00 3E 23 80 13 01 00 00 00 00 00 DE [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 0E 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 0E 00 3E 23 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 11 [17:27:56]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:27:56]wFMCommunicate OK [17:27:56]SAM_PROTO_GetShiftState done [17:27:56]FM_GetShiftState done [17:27:56]req_shift_opened done [17:27:56]requested_item shift.open_date is exist - process it [17:27:56]req_shift_open_date [17:27:56]req_shift_open_date done [17:27:56]produce_requested_data done [17:27:56]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60027,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [17:27:56]process_action_free close_receipt [17:27:56]json_value_free [17:27:56]json_value_free done [17:27:56]process_json_proto returns [17:27:56]Send response to host [17:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60027,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [17:27:56]free response buf [17:27:56]execute_script done [17:27:56]execute_script returns [17:27:56]free content buf [17:27:56]Sock 7.Close socket [17:27:56]Sock 7.Thread stoped [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:07]accept exits with 9 [17:28:07]New connection [17:28:07]New thread 3067108708 created [17:28:07]Thread 3067252068 joined [17:28:07]Waiting for new connection... [17:28:07] Sock 9.Parse request [17:28:07]Sock 9.Check first char [17:28:07]Sock 9.First char is OK [17:28:07]request: POST /json_proto HTTP/1.0 [17:28:07]Method: POST [17:28:07]URL: /json_proto [17:28:07]Method is POST - this is cgi request [17:28:07]url: /json_proto [17:28:07]query_string will be loaded in cgi processing [17:28:07]execute_cgi json_proto POST (null) [17:28:07]execute_cgi path=json_proto method=POST [17:28:07]POST find Content-Length [17:28:07]Host: 172.17.42.196:8080 [17:28:07]Content-Length: 770 [17:28:07]Content-Type: application/json [17:28:07] [17:28:07]POST finish read [17:28:07]Found Content-Length = 770 [17:28:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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" ] } } [17:28:07]execute_script... [17:28: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)3309046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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" ] } } [17:28:07]POST & json_proto [17:28:07]process_json_proto [17:28:07]json parsed OK: [17:28:07]protocol is kg_v1.0 [17:28:07]action value=close_receipt [17:28:07]process_action close_receipt [17:28:07]cmd_close_receipt [17:28:07]MH_GetDate [17:28:07]Write to MH i2c: F0 00 00 3F 23 51 [17:28:07]Write i2c OK [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: F0 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: F0 09 00 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: F0 09 00 3F 23 00 AC 83 1A 67 FF C4 6B 64 9C [17:28:07]GetLastDocTimeStamp 1729790877 [17:28:07]current date 1729790892 [17:28:07]FM_GetShiftState [17:28:07]SAM_PROTO_GetShiftState [17:28:07]wFMCommunicate request_size=4 [17:28:07]MH_SAM_APDU [17:28:07]CAPDU: 80 13 01 00 [17:28:07]Write to MH i2c: E2 08 00 40 23 80 13 01 00 00 00 00 00 E0 [17:28:07]Write i2c OK [17:28:07]MH_I2C_Read... [17:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:07]Read from MH i2c: E2 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: E2 0E 00 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: E2 0E 00 40 23 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 13 [17:28:07]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:28:07]wFMCommunicate OK [17:28:07]SAM_PROTO_GetShiftState done [17:28:07]FM_GetShiftState done [17:28:07]opened in 1729730575 [17:28:07]opened+sec_in_day 1729816975 [17:28:07]quantity*price = 100015 [17:28:07]sum+1 = 100017 [17:28:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 103 24.10.2024 17:28 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60028 ФПД: 136551423528015 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172812&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60028&fm=136551423528015&tin=02508201610067®Number=0000000000091622&sum=100016 [17:28:08]StoreToDocumentArchive [17:28:08]shift 529 fd 60028 [17:28:08]save to /storage/0529/doc_00060028 [17:28:08]save last doc name /storage/0529/doc_00060028 to /storage/kkm_last_doc_name [17:28:08]save OK [17:28:08]Clear old archive folders... [17:28:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:08]tlvbuf is 00DEBE70 [17:28:08]SAM_PROTO_ClearQueue [17:28:08]wFMCommunicate request_size=4 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 09 00 00 [17:28:08]Write to MH i2c: E2 08 00 4D 23 80 09 00 00 00 00 00 00 E2 [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 03 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 03 00 4D 23 00 90 00 E4 [17:28:08]RAPDU: 90 00 [17:28:08]wFMCommunicate OK [17:28:08]SAM_PROTO_ClearQueue done [17:28:08]KKMCreateOFDPacket [17:28:08]OFDProtocolAddRootSTLVToBuf [17:28:08]FM_MakeSignedData [17:28:08]FM_MakeSignedData [17:28:08]SAM_PROTO_SignData [17:28:08]wFMCommunicate request_size=4 [17:28:08]MH_SAM_APDU [17:28:08]CAPDU: 80 0D 01 02 [17:28:08]Write to MH i2c: E2 08 00 4E 23 80 0D 01 02 00 00 00 00 EA [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:08]Read from MH i2c: E2 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 03 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: E2 03 00 4E 23 00 90 00 E5 [17:28:08]RAPDU: 90 00 [17:28:08]wFMCommunicate OK [17:28:08]wFMCommunicate request_size=255 [17:28:08]MH_SAM_APDU [17:28: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 34 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 67 00 00 00 F4 03 04 00 AC 83 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7C EA 00 00 35 04 06 00 7C [17:28:08]Write to MH i2c: E2 02 01 4F 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 67 00 00 00 F4 03 04 00 AC 83 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7C EA 00 00 35 04 06 00 7C 00 00 9D [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 4F 23 00 90 00 E6 [17:28:09]RAPDU: 90 00 [17:28:09]wFMCommunicate OK [17:28:09]wFMCommunicate request_size=10 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 0D 02 02 05 31 5B 17 CC 4F [17:28:09]Write to MH i2c: E2 0D 00 50 23 80 0D 02 02 05 00 31 5B 17 CC 4F 00 00 B5 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 50 23 00 90 00 E7 [17:28:09]RAPDU: 90 00 [17:28:09]wFMCommunicate OK [17:28:09]wFMCommunicate request_size=4 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 0D 03 02 [17:28:09]Write to MH i2c: E2 08 00 51 23 80 0D 03 02 00 00 00 00 EF [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 0B 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 0B 00 51 23 00 54 D0 C2 57 97 44 3D D3 90 00 18 [17:28:09]RAPDU: 54 D0 C2 57 97 44 3D D3 90 00 [17:28:09]wFMCommunicate OK [17:28:09]SAM_PROTO_SignData done [17:28:09]FM_MakeSignedData done [17:28:09]CreateOFDProtocolMessage [17:28:09]wFMCommunicate request_size=4 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 11 00 00 [17:28:09]Write to MH i2c: E2 08 00 52 23 80 11 00 00 00 00 00 00 EF [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 17 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 17 00 52 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 46 [17:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:28:09]wFMCommunicate OK [17:28:09]CreateOFDProtocolMessage done [17:28:09]OFDSenderStorePacket 60028 [17:28:09]StoreOFDPacket docnum=60028 [17:28:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 69 B5 07 01 AF AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 67 00 00 00 F4 03 04 00 AC 83 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7C EA 00 00 35 04 06 00 7C 31 5B 17 CC 4F 54 D0 C2 57 97 44 3D D3 [17:28:09]CheckFolder [17:28:09]dirname=/storage/ofd_packets [17:28:09]CheckFolder done [17:28:09]ProducePacketName [17:28:09]name=ofd_packets/00060028 [17:28:09]NVStorageSaveData ofd_packets/00060028 [17:28:09]File name is /storage/ofd_packets/00060028 [17:28:09]Write 301 bytes [17:28:09]NVStorageSaveData done [17:28:09]OFDSenderStorePacket done [17:28:09]KKMCreateOFDPacket done [17:28:09]NVStorageSaveData kkm_last_timestamp [17:28:09]File name is /storage/kkm_last_timestamp [17:28:09]Write 4 bytes [17:28:09]NVStorageSaveData done [17:28:09]ExternCall_PrintAddStr [17:28:09]wPrintStart [17:28:09]Write to MH i2c: 01 00 00 53 23 76 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: 01 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: 01 07 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: 01 07 00 53 23 00 00 00 00 00 FF 0F 8B [17:28:09]RasterBufferAndPrint [17:28:09]line Счет N : (1)3309046 [17:28:09]line ИНН: 02508201610067 [17:28:09]line Контрольно-Кассовый Чек [17:28:09]line ПРОДАЖА [17:28:09]line ТРК (МРК, ГНК) : 32 [17:28:09]line Товар: 2710124130 [17:28:09]line Аи-92-К-4 [17:28:09]line 14.950 * 66.90 [17:28:09]line = 1000.16 [17:28:09]line НДС 12% НСП 1% [17:28:09]line > о реализуемом товаре [17:28:09]line ИТОГО: 1000.16 [17:28:09]line НСП 1% : 8.85 [17:28:09]line НДС 12% : 106.21 [17:28:09]line Наличными: 0.00 [17:28:09]line Безнал.: 1000.16 [17:28:09]line Место: АЗС № 87 "Партнер Нефть" [17:28:09]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [17:28:09]line СНО: Общий режим [17:28:09]line Чек 103 24.10.2024 17:28 [17:28:09]line Смена: 529 ФФД: 1.0 [17:28:09]line ЗНМ: 0300000084 [17:28:09]line РНМ: 0000000000091622 [17:28:09]line Версия ККМ: 001 [17:28:09]line Платежная система: Mbank [17:28:09]line ФМ: 0000000000874674 [17:28:09]line ФД: 60028 [17:28:09]line ФПД: 136551423528015 [17:28:09]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172812&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60028&fm=136551423528015&tin=02508201610067®Number=0000000000091622&sum=100016 [17:28:09]written 0, free lines is 4095 [17:28:09]OFD Sender: Processing packet 60028 [packets to send 30, broken 29] [17:28:09]ProducePacketName [17:28:09]name=ofd_packets/00060028 [17:28:09]OFD Sender: To server: pG, [17:28:09]CommunicateWithHost lk.salyk.kg:30040 [17:28:09]ConnectInit lk.salyk.kg [17:28:09]Connected sock=11 [17:28:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 69 B5 07 01 AF AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 67 00 00 00 F4 03 04 00 AC 83 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7C EA 00 00 35 04 06 00 7C 31 5B 17 CC 4F 54 D0 C2 57 97 44 3D D3 [17:28:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 E2 26 47 00 3B 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 34 36 37 34 10 04 04 00 7C EA 00 00 F4 03 04 00 9C 29 1A 67 B6 04 01 00 00 C8 ED A6 4E B3 14 20 5E [17:28:09]CommunicateWithHost err = 0 [17:28:09]CheckOFDResponse [17:28:09]1017 (14) - 77093643461234 [17:28:09]1041 (16) - 0000000000874674 [17:28:09]1040 (4) - 60028 [17:28:09]1012 (4) - 24.10.2024 11:03 [17:28:09]1206 (1) - 0 [17:28:09]OFD Sender: Remove packet 60028 [17:28:09]ProducePacketName [17:28:09]name=ofd_packets/00060028 [17:28:09]NVStorageDeleteData [17:28:09]Write to MH i2c: 01 00 00 7C 23 9F [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: 01 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: 01 07 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: 01 07 00 7C 23 00 00 00 00 00 0D 0D C0 [17:28:09]RasterBufferAndPrint [17:28:09]line [17:28:09]line [17:28:09]line [17:28:09]line [17:28:09]line [17:28:09]written 0, free lines is 3348 [17:28:09]MH_Cut [17:28:09]Write to MH i2c: D1 01 00 83 23 01 78 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: D1 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: D1 01 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: D1 01 00 83 23 00 77 [17:28:09]Write to MH i2c: 01 00 00 84 23 A7 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:10]OFD Sender: No OFD packet to send [17:28:10]*** Cut start [17:28:10]*** Partial cut [17:28:10]*** CUTSNS_PIN = 1 [17:28:10]*** CUTSNS_PIN = 0 [17:28:10]*** Brake cut motor [17:28:11]Read from MH i2c: 01 [17:28:11]MH_I2C_Read... [17:28:11]*** Stop cut motor [17:28:11]*** Cut end [17:28:11]Read from MH i2c: 01 07 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: 01 07 00 84 23 00 00 00 00 00 FF 0F BC [17:28:11]process_action close_receipt done [17:28:11]requested_data is exist [17:28:11]produce_requested_data [17:28:11]requested_item fm.sn is exist - process it [17:28:11]wFMCommunicate request_size=4 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 11 00 00 [17:28:11]Write to MH i2c: E2 08 00 85 23 80 11 00 00 00 00 00 00 22 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 17 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 17 00 85 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 79 [17:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:28:11]wFMCommunicate OK [17:28:11]requested_item fd.num is exist - process it [17:28:11]SAM_PROTO_GetFieldsCounters [17:28:11]wFMCommunicate request_size=4 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 13 00 00 [17:28:11]Write to MH i2c: E2 08 00 86 23 80 13 00 00 00 00 00 00 25 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 62 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 62 00 86 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7C EA 00 00 0E 04 04 00 11 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 F3 [17:28: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7C EA 00 00 0E 04 04 00 11 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 [17:28:11]wFMCommunicate OK [17:28:11]SAM_PROTO_GetFieldsCounters done [17:28:11]requested_item shift.num is exist - process it [17:28:11]requested_item shift.opened is exist - process it [17:28:11]req_shift_opened [17:28:11]FM_GetShiftState [17:28:11]SAM_PROTO_GetShiftState [17:28:11]wFMCommunicate request_size=4 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 13 01 00 [17:28:11]Write to MH i2c: E2 08 00 87 23 80 13 01 00 00 00 00 00 27 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 0E 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 0E 00 87 23 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 5A [17:28:11]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:28:11]wFMCommunicate OK [17:28:11]SAM_PROTO_GetShiftState done [17:28:11]FM_GetShiftState done [17:28:11]req_shift_opened done [17:28:11]requested_item shift.open_date is exist - process it [17:28:11]req_shift_open_date [17:28:11]req_shift_open_date done [17:28:11]produce_requested_data done [17:28:11]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60028,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [17:28:11]process_action_free close_receipt [17:28:11]json_value_free [17:28:11]json_value_free done [17:28:11]process_json_proto returns [17:28:11]Send response to host [17:28:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60028,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [17:28:11]free response buf [17:28:11]execute_script done [17:28:11]execute_script returns [17:28:11]free content buf [17:28:11]Sock 9.Close socket [17:28:11]Sock 9.Thread stoped [17:28:15]OFD Sender: No OFD packet to send [17:28:15]accept exits with 7 [17:28:15]New connection [17:28:15]New thread 3067252068 created [17:28:15]Thread 3067108708 joined [17:28:15]Waiting for new connection... [17:28:15] Sock 7.Parse request [17:28:15]Sock 7.Check first char [17:28:15]Sock 7.First char is OK [17:28:15]request: POST /json_proto HTTP/1.0 [17:28:15]Method: POST [17:28:15]URL: /json_proto [17:28:15]Method is POST - this is cgi request [17:28:15]url: /json_proto [17:28:15]query_string will be loaded in cgi processing [17:28:15]execute_cgi json_proto POST (null) [17:28:15]execute_cgi path=json_proto method=POST [17:28:15]POST find Content-Length [17:28:15]Host: 172.17.42.196:8080 [17:28:15]Content-Length: 678 [17:28:15]Content-Type: application/json [17:28:15] [17:28:15]POST finish read [17:28:15]Found Content-Length = 678 [17:28:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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:28:15]execute_script... [17:28:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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:28:15]POST & json_proto [17:28:15]process_json_proto [17:28:15]json parsed OK: [17:28:15]protocol is kg_v1.0 [17:28:15]action value=close_receipt [17:28:15]process_action close_receipt [17:28:15]cmd_close_receipt [17:28:15]MH_GetDate [17:28:15]Write to MH i2c: F0 00 00 88 23 9A [17:28:15]Write i2c OK [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: F0 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: F0 09 00 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: F0 09 00 88 23 00 B4 83 1A 67 FF C4 6B 64 ED [17:28:15]GetLastDocTimeStamp 1729790892 [17:28:15]current date 1729790900 [17:28:15]FM_GetShiftState [17:28:15]SAM_PROTO_GetShiftState [17:28:15]wFMCommunicate request_size=4 [17:28:15]MH_SAM_APDU [17:28:15]CAPDU: 80 13 01 00 [17:28:15]Write to MH i2c: E2 08 00 89 23 80 13 01 00 00 00 00 00 29 [17:28:15]Write i2c OK [17:28:15]MH_I2C_Read... [17:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:15]Read from MH i2c: E2 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 0E 00 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 0E 00 89 23 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 5C [17:28:15]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:28:15]wFMCommunicate OK [17:28:15]SAM_PROTO_GetShiftState done [17:28:15]FM_GetShiftState done [17:28:15]opened in 1729730575 [17:28:15]opened+sec_in_day 1729816975 [17:28:15]quantity*price = 50041 [17:28:15]sum+1 = 50042 [17:28:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 104 24.10.2024 17:28 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60029 ФПД: 259099963968276 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172820&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60029&fm=259099963968276&tin=02508201610067®Number=0000000000091622&sum=50000 [17:28:16]StoreToDocumentArchive [17:28:16]shift 529 fd 60029 [17:28:16]save to /storage/0529/doc_00060029 [17:28:16]save last doc name /storage/0529/doc_00060029 to /storage/kkm_last_doc_name [17:28:16]save OK [17:28:16]Clear old archive folders... [17:28:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:16]tlvbuf is 00DC3CD0 [17:28:16]SAM_PROTO_ClearQueue [17:28:16]wFMCommunicate request_size=4 [17:28:16]MH_SAM_APDU [17:28:16]CAPDU: 80 09 00 00 [17:28:16]Write to MH i2c: E2 08 00 96 23 80 09 00 00 00 00 00 00 2B [17:28:16]Write i2c OK [17:28:16]MH_I2C_Read... [17:28:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:16]Read from MH i2c: E2 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: E2 03 00 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: E2 03 00 96 23 00 90 00 2D [17:28:16]RAPDU: 90 00 [17:28:16]wFMCommunicate OK [17:28:16]SAM_PROTO_ClearQueue done [17:28:16]KKMCreateOFDPacket [17:28:16]OFDProtocolAddRootSTLVToBuf [17:28:16]FM_MakeSignedData [17:28:16]FM_MakeSignedData [17:28:16]SAM_PROTO_SignData [17:28:16]wFMCommunicate request_size=4 [17:28:16]MH_SAM_APDU [17:28:16]CAPDU: 80 0D 01 02 [17:28:16]Write to MH i2c: E2 08 00 97 23 80 0D 01 02 00 00 00 00 33 [17:28:16]Write i2c OK [17:28:16]MH_I2C_Read... [17:28:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:16]Read from MH i2c: E2 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: E2 03 00 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: E2 03 00 97 23 00 90 00 2E [17:28:16]RAPDU: 90 00 [17:28:16]wFMCommunicate OK [17:28:16]wFMCommunicate request_size=255 [17:28:16]MH_SAM_APDU [17:28: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 34 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 B4 83 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7D EA 00 00 35 04 06 00 EB [17:28:16]Write to MH i2c: E2 02 01 98 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 B4 83 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7D EA 00 00 35 04 06 00 EB 00 00 45 [17:28:16]Write i2c OK [17:28:16]MH_I2C_Read... [17:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:17]Read from MH i2c: E2 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 03 00 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 03 00 98 23 00 90 00 2F [17:28:17]RAPDU: 90 00 [17:28:17]wFMCommunicate OK [17:28:17]wFMCommunicate request_size=10 [17:28:17]MH_SAM_APDU [17:28:17]CAPDU: 80 0D 02 02 05 A6 69 50 4B 14 [17:28:17]Write to MH i2c: E2 0D 00 99 23 80 0D 02 02 05 00 A6 69 50 4B 14 00 00 FE [17:28:17]Write i2c OK [17:28:17]MH_I2C_Read... [17:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:17]Read from MH i2c: E2 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 03 00 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 03 00 99 23 00 90 00 30 [17:28:17]RAPDU: 90 00 [17:28:17]wFMCommunicate OK [17:28:17]wFMCommunicate request_size=4 [17:28:17]MH_SAM_APDU [17:28:17]CAPDU: 80 0D 03 02 [17:28:17]Write to MH i2c: E2 08 00 9A 23 80 0D 03 02 00 00 00 00 38 [17:28:17]Write i2c OK [17:28:17]MH_I2C_Read... [17:28:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:17]Read from MH i2c: E2 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 0B 00 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 0B 00 9A 23 00 FE 65 75 1B 01 D3 F1 62 90 00 53 [17:28:17]RAPDU: FE 65 75 1B 01 D3 F1 62 90 00 [17:28:17]wFMCommunicate OK [17:28:17]SAM_PROTO_SignData done [17:28:17]FM_MakeSignedData done [17:28:17]CreateOFDProtocolMessage [17:28:17]wFMCommunicate request_size=4 [17:28:17]MH_SAM_APDU [17:28:17]CAPDU: 80 11 00 00 [17:28:17]Write to MH i2c: E2 08 00 9B 23 80 11 00 00 00 00 00 00 38 [17:28:17]Write i2c OK [17:28:17]MH_I2C_Read... [17:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:17]Read from MH i2c: E2 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 17 00 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: E2 17 00 9B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 8F [17:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:28:17]wFMCommunicate OK [17:28:17]CreateOFDProtocolMessage done [17:28:17]OFDSenderStorePacket 60029 [17:28:17]StoreOFDPacket docnum=60029 [17:28:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 A9 0B 07 01 13 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 34 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 B4 83 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7D EA 00 00 35 04 06 00 EB A6 69 50 4B 14 FE 65 75 1B 01 D3 F1 62 [17:28:17]CheckFolder [17:28:17]dirname=/storage/ofd_packets [17:28:17]CheckFolder done [17:28:17]ProducePacketName [17:28:17]name=ofd_packets/00060029 [17:28:17]NVStorageSaveData ofd_packets/00060029 [17:28:17]File name is /storage/ofd_packets/00060029 [17:28:17]Write 301 bytes [17:28:17]NVStorageSaveData done [17:28:17]OFDSenderStorePacket done [17:28:17]KKMCreateOFDPacket done [17:28:17]NVStorageSaveData kkm_last_timestamp [17:28:17]File name is /storage/kkm_last_timestamp [17:28:17]Write 4 bytes [17:28:17]NVStorageSaveData done [17:28:17]ExternCall_PrintAddStr [17:28:17]wPrintStart [17:28:17]Write to MH i2c: 01 00 00 9C 23 BF [17:28:17]Write i2c OK [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: 01 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: 01 07 00 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: 01 07 00 9C 23 00 00 00 00 00 FF 0F D4 [17:28:17]RasterBufferAndPrint [17:28:17]line Счет N : (1)3309047 [17:28:17]line ИНН: 02508201610067 [17:28:17]line Контрольно-Кассовый Чек [17:28:17]line ПРОДАЖА [17:28:17]line ТРК (МРК, ГНК) : 12 [17:28:17]line Товар: 2710124130 [17:28:17]line Аи-92-К-4 [17:28:17]line 7.480 * 66.90 [17:28:17]line = 500.41 [17:28:17]line НДС 12% НСП 1% [17:28:17]line > о реализуемом товаре [17:28:17]line ОКРУГЛЕНИЕ: -0.41 [17:28:17]line ИТОГО: 500.00 [17:28:17]line Внесено: 500.00 [17:28:17]line СДАЧА: 0.00 [17:28:17]line НСП 1% : 4.43 [17:28:17]line НДС 12% : 53.14 [17:28:17]line Наличными: 500.00 [17:28:17]line Безнал.: 0.00 [17:28:17]line Место: АЗС № 87 "Партнер Нефть" [17:28:17]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [17:28:17]line СНО: Общий режим [17:28:17]line Чек 104 24.10.2024 17:28 [17:28:17]line Смена: 529 ФФД: 1.0 [17:28:17]line ЗНМ: 0300000084 [17:28:17]line РНМ: 0000000000091622 [17:28:17]line Версия ККМ: 001 [17:28:17]line ФМ: 0000000000874674 [17:28:17]line ФД: 60029 [17:28:17]line ФПД: 259099963968276 [17:28:17]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172820&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60029&fm=259099963968276&tin=02508201610067®Number=0000000000091622&sum=50000 [17:28:17]written 0, free lines is 4095 [17:28:17]OFD Sender: Processing packet 60029 [packets to send 30, broken 29] [17:28:17]ProducePacketName [17:28:17]name=ofd_packets/00060029 [17:28:17]OFD Sender: To server: pG, [17:28:17]CommunicateWithHost lk.salyk.kg:30040 [17:28:17]ConnectInit lk.salyk.kg [17:28:17]Connected sock=10 [17:28:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 A9 0B 07 01 13 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 34 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 B4 83 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7D EA 00 00 35 04 06 00 EB A6 69 50 4B 14 FE 65 75 1B 01 D3 F1 62 [17:28:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 59 B9 47 00 5B 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 34 36 37 34 10 04 04 00 7D EA 00 00 F4 03 04 00 A3 29 1A 67 B6 04 01 00 00 32 16 00 44 67 4B 50 CB [17:28:17]CommunicateWithHost err = 0 [17:28:17]CheckOFDResponse [17:28:17]1017 (14) - 77093643461234 [17:28:17]1041 (16) - 0000000000874674 [17:28:17]1040 (4) - 60029 [17:28:17]1012 (4) - 24.10.2024 11:04 [17:28:17]1206 (1) - 0 [17:28:17]OFD Sender: Remove packet 60029 [17:28:17]ProducePacketName [17:28:17]name=ofd_packets/00060029 [17:28:17]NVStorageDeleteData [17:28:17]Write to MH i2c: 01 00 00 C7 23 EA [17:28:17]Write i2c OK [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: 01 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: 01 07 00 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: 01 07 00 C7 23 00 00 00 00 00 E4 0C E1 [17:28:17]RasterBufferAndPrint [17:28:17]line [17:28:17]line [17:28:17]line [17:28:17]line [17:28:17]line [17:28:17]written 0, free lines is 3312 [17:28:17]MH_Cut [17:28:17]Write to MH i2c: D1 01 00 CE 23 01 C3 [17:28:17]Write i2c OK [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: D1 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: D1 01 00 [17:28:17]MH_I2C_Read... [17:28:17]Read from MH i2c: D1 01 00 CE 23 00 C2 [17:28:17]Write to MH i2c: 01 00 00 CF 23 F2 [17:28:17]Write i2c OK [17:28:17]MH_I2C_Read... [17:28:18]OFD Sender: No OFD packet to send [17:28:18]*** Cut start [17:28:18]*** Partial cut [17:28:18]*** CUTSNS_PIN = 1 [17:28:18]*** CUTSNS_PIN = 0 [17:28:18]*** Brake cut motor [17:28:19]Read from MH i2c: 01 [17:28:19]MH_I2C_Read... [17:28:19]*** Stop cut motor [17:28:19]*** Cut end [17:28:19]Read from MH i2c: 01 07 00 [17:28:19]MH_I2C_Read... [17:28:19]Read from MH i2c: 01 07 00 CF 23 00 00 00 00 00 FF 0F 07 [17:28:19]process_action close_receipt done [17:28:19]requested_data is exist [17:28:19]produce_requested_data [17:28:19]requested_item fm.sn is exist - process it [17:28:19]wFMCommunicate request_size=4 [17:28:19]MH_SAM_APDU [17:28:19]CAPDU: 80 11 00 00 [17:28:19]Write to MH i2c: E2 08 00 D0 23 80 11 00 00 00 00 00 00 6D [17:28:19]Write i2c OK [17:28:19]MH_I2C_Read... [17:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:19]Read from MH i2c: E2 [17:28:19]MH_I2C_Read... [17:28:19]Read from MH i2c: E2 17 00 [17:28:19]MH_I2C_Read... [17:28:19]Read from MH i2c: E2 17 00 D0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C4 [17:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:28:19]wFMCommunicate OK [17:28:19]requested_item fd.num is exist - process it [17:28:19]SAM_PROTO_GetFieldsCounters [17:28:19]wFMCommunicate request_size=4 [17:28:19]MH_SAM_APDU [17:28:19]CAPDU: 80 13 00 00 [17:28:19]Write to MH i2c: E2 08 00 D1 23 80 13 00 00 00 00 00 00 70 [17:28:19]Write i2c OK [17:28:19]MH_I2C_Read... [17:28:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:19]Read from MH i2c: E2 [17:28:19]MH_I2C_Read... [17:28:19]Read from MH i2c: E2 62 00 [17:28:19]MH_I2C_Read... [17:28:19]Read from MH i2c: E2 62 00 D1 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7D EA 00 00 0E 04 04 00 11 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 42 [17:28:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7D EA 00 00 0E 04 04 00 11 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 [17:28:19]wFMCommunicate OK [17:28:19]SAM_PROTO_GetFieldsCounters done [17:28:19]requested_item shift.num is exist - process it [17:28:19]requested_item shift.opened is exist - process it [17:28:19]req_shift_opened [17:28:19]FM_GetShiftState [17:28:19]SAM_PROTO_GetShiftState [17:28:19]wFMCommunicate request_size=4 [17:28:19]MH_SAM_APDU [17:28:19]CAPDU: 80 13 01 00 [17:28:19]Write to MH i2c: E2 08 00 D2 23 80 13 01 00 00 00 00 00 72 [17:28:19]Write i2c OK [17:28:19]MH_I2C_Read... [17:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:19]Read from MH i2c: E2 [17:28:19]MH_I2C_Read... [17:28:19]Read from MH i2c: E2 0E 00 [17:28:19]MH_I2C_Read... [17:28:19]Read from MH i2c: E2 0E 00 D2 23 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 A5 [17:28:19]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:28:19]wFMCommunicate OK [17:28:19]SAM_PROTO_GetShiftState done [17:28:19]FM_GetShiftState done [17:28:19]req_shift_opened done [17:28:19]requested_item shift.open_date is exist - process it [17:28:19]req_shift_open_date [17:28:19]req_shift_open_date done [17:28:19]produce_requested_data done [17:28:19]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60029,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [17:28:19]process_action_free close_receipt [17:28:19]json_value_free [17:28:19]json_value_free done [17:28:19]process_json_proto returns [17:28:19]Send response to host [17:28:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60029,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [17:28:19]free response buf [17:28:19]execute_script done [17:28:19]execute_script returns [17:28:19]free content buf [17:28:19]Sock 7.Close socket [17:28:19]Sock 7.Thread stoped [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:35]accept exits with 9 [17:42:35]New connection [17:42:35]New thread 3067108708 created [17:42:35]Thread 3067252068 joined [17:42:35]Waiting for new connection... [17:42:35] Sock 9.Parse request [17:42:35]Sock 9.Check first char [17:42:35]Sock 9.First char is OK [17:42:35]request: POST /json_proto HTTP/1.0 [17:42:35]Method: POST [17:42:35]URL: /json_proto [17:42:35]Method is POST - this is cgi request [17:42:35]url: /json_proto [17:42:35]query_string will be loaded in cgi processing [17:42:35]execute_cgi json_proto POST (null) [17:42:35]execute_cgi path=json_proto method=POST [17:42:35]POST find Content-Length [17:42:35]Host: 172.17.42.196:8080 [17:42:35]Content-Length: 1313 [17:42:35]Content-Type: application/json [17:42:35] [17:42:35]POST finish read [17:42:35]Found Content-Length = 1313 [17:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199810", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145002155", "name": "\u041F\u0438\u0432\u043E \u0411\u043E\u043B\u044C\u0448\u0430\u044F \u041A\u0440\u0443\u0436\u043A\u0430 \u041C\u044F\u0433\u043A\u043E\u0435 0,64\u043B \u0441\u0442/\u0431", "price" : 141.00, "quantity" : 2.000, "sum" : 282.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 392.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:35]execute_script... [17:42:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199810", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145002155", "name": "\u041F\u0438\u0432\u043E \u0411\u043E\u043B\u044C\u0448\u0430\u044F \u041A\u0440\u0443\u0436\u043A\u0430 \u041C\u044F\u0433\u043A\u043E\u0435 0,64\u043B \u0441\u0442/\u0431", "price" : 141.00, "quantity" : 2.000, "sum" : 282.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 392.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:35]POST & json_proto [17:42:35]process_json_proto [17:42:35]json parsed OK: [17:42:35]protocol is kg_v1.0 [17:42:35]action value=close_receipt [17:42:35]process_action close_receipt [17:42:35]cmd_close_receipt [17:42:35]MH_GetDate [17:42:35]Write to MH i2c: F0 00 00 D3 23 E5 [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: F0 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: F0 09 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: F0 09 00 D3 23 00 10 87 1A 67 FF C4 6B 64 98 [17:42:35]GetLastDocTimeStamp 1729790900 [17:42:35]current date 1729791760 [17:42:35]FM_GetShiftState [17:42:35]SAM_PROTO_GetShiftState [17:42:35]wFMCommunicate request_size=4 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 13 01 00 [17:42:35]Write to MH i2c: E2 08 00 D4 23 80 13 01 00 00 00 00 00 74 [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 0E 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 0E 00 D4 23 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 A7 [17:42:35]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:42:35]wFMCommunicate OK [17:42:35]SAM_PROTO_GetShiftState done [17:42:35]FM_GetShiftState done [17:42:35]opened in 1729730575 [17:42:35]opened+sec_in_day 1729816975 [17:42:35]quantity*price = 9500 [17:42:35]sum+1 = 9501 [17:42:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870145002155 Пиво Большая Кружка Мягкое 0,64л ст/б 2.000 * 141.00 = 282.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160884 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 392.00 НСП 1% : 3.47 НДС 12% : 41.63 Наличными: 392.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 105 24.10.2024 17:42 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60030 ФПД: 22617298809141 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174240&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60030&fm=22617298809141&tin=02508201610067®Number=0000000000091622&sum=39200 0 [17:42:36]StoreToDocumentArchive [17:42:36]shift 529 fd 60030 [17:42:36]save to /storage/0529/doc_00060030 [17:42:36]save last doc name /storage/0529/doc_00060030 to /storage/kkm_last_doc_name [17:42:36]save OK [17:42:36]Clear old archive folders... [17:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=549 [17:42:36]tlvbuf is 00E21A00 [17:42:36]SAM_PROTO_ClearQueue [17:42:36]wFMCommunicate request_size=4 [17:42:36]MH_SAM_APDU [17:42:36]CAPDU: 80 09 00 00 [17:42:36]Write to MH i2c: E2 08 00 E1 23 80 09 00 00 00 00 00 00 76 [17:42:36]Write i2c OK [17:42:36]MH_I2C_Read... [17:42:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:37]Read from MH i2c: E2 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 03 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 03 00 E1 23 00 90 00 78 [17:42:37]RAPDU: 90 00 [17:42:37]wFMCommunicate OK [17:42:37]SAM_PROTO_ClearQueue done [17:42:37]KKMCreateOFDPacket [17:42:37]OFDProtocolAddRootSTLVToBuf [17:42:37]FM_MakeSignedData [17:42:37]FM_MakeSignedData [17:42:37]SAM_PROTO_SignData [17:42:37]wFMCommunicate request_size=4 [17:42:37]MH_SAM_APDU [17:42:37]CAPDU: 80 0D 01 02 [17:42:37]Write to MH i2c: E2 08 00 E2 23 80 0D 01 02 00 00 00 00 7E [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:37]Read from MH i2c: E2 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 03 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 03 00 E2 23 00 90 00 79 [17:42:37]RAPDU: 90 00 [17:42:37]wFMCommunicate OK [17:42:37]wFMCommunicate request_size=255 [17:42:37]MH_SAM_APDU [17:42:37]CAPDU: 80 0D 02 02 FA 03 00 25 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 [17:42:37]Write to MH i2c: E2 02 01 E3 23 80 0D 02 02 FA 00 03 00 25 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 AD [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:37]Read from MH i2c: E2 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 03 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 03 00 E3 23 00 90 00 7A [17:42:37]RAPDU: 90 00 [17:42:37]wFMCommunicate OK [17:42:37]wFMCommunicate request_size=255 [17:42:37]MH_SAM_APDU [17:42:37]CAPDU: 80 0D 02 02 FA 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 10 00 00 00 00 07 04 06 00 20 99 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 10 87 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 [17:42:37]Write to MH i2c: E2 02 01 E4 23 80 0D 02 02 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 10 00 00 00 00 07 04 06 00 20 99 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 10 87 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 4E [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:37]Read from MH i2c: E2 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 03 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 03 00 E4 23 00 90 00 7B [17:42:37]RAPDU: 90 00 [17:42:37]wFMCommunicate OK [17:42:37]wFMCommunicate request_size=58 [17:42:37]MH_SAM_APDU [17:42:37]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7E EA 00 00 35 04 06 00 14 92 00 0F B1 35 [17:42:37]Write to MH i2c: E2 3D 00 E5 23 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7E EA 00 00 35 04 06 00 14 92 00 0F B1 35 00 00 73 [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:38]Read from MH i2c: E2 [17:42:38]MH_I2C_Read... [17:42:38]Read from MH i2c: E2 03 00 [17:42:38]MH_I2C_Read... [17:42:38]Read from MH i2c: E2 03 00 E5 23 00 90 00 7C [17:42:38]RAPDU: 90 00 [17:42:38]wFMCommunicate OK [17:42:38]wFMCommunicate request_size=4 [17:42:38]MH_SAM_APDU [17:42:38]CAPDU: 80 0D 03 02 [17:42:38]Write to MH i2c: E2 08 00 E6 23 80 0D 03 02 00 00 00 00 84 [17:42:38]Write i2c OK [17:42:38]MH_I2C_Read... [17:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:38]Read from MH i2c: E2 [17:42:38]MH_I2C_Read... [17:42:38]Read from MH i2c: E2 0B 00 [17:42:38]MH_I2C_Read... [17:42:38]Read from MH i2c: E2 0B 00 E6 23 00 34 17 A8 29 06 8C 9C 79 90 00 48 [17:42:38]RAPDU: 34 17 A8 29 06 8C 9C 79 90 00 [17:42:38]wFMCommunicate OK [17:42:38]SAM_PROTO_SignData done [17:42:38]FM_MakeSignedData done [17:42:38]CreateOFDProtocolMessage [17:42:38]wFMCommunicate request_size=4 [17:42:38]MH_SAM_APDU [17:42:38]CAPDU: 80 11 00 00 [17:42:38]Write to MH i2c: E2 08 00 E7 23 80 11 00 00 00 00 00 00 84 [17:42:38]Write i2c OK [17:42:38]MH_I2C_Read... [17:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:38]Read from MH i2c: E2 [17:42:38]MH_I2C_Read... [17:42:38]Read from MH i2c: E2 17 00 [17:42:38]MH_I2C_Read... [17:42:38]Read from MH i2c: E2 17 00 E7 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 DB [17:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:42:38]wFMCommunicate OK [17:42:38]CreateOFDProtocolMessage done [17:42:38]OFDSenderStorePacket 60030 [17:42:38]StoreOFDPacket docnum=60030 [17:42:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 39 02 00 00 2F C0 31 02 FC 0A 5A 03 01 00 03 00 25 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 10 00 00 00 00 07 04 06 00 20 99 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 10 87 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7E EA 00 00 35 04 06 00 14 92 00 0F B1 35 34 17 A8 29 06 8C 9C 79 [17:42:38]CheckFolder [17:42:38]dirname=/storage/ofd_packets [17:42:38]CheckFolder done [17:42:38]ProducePacketName [17:42:38]name=ofd_packets/00060030 [17:42:38]NVStorageSaveData ofd_packets/00060030 [17:42:38]File name is /storage/ofd_packets/00060030 [17:42:38]Write 599 bytes [17:42:38]NVStorageSaveData done [17:42:38]OFDSenderStorePacket done [17:42:38]KKMCreateOFDPacket done [17:42:38]NVStorageSaveData kkm_last_timestamp [17:42:38]File name is /storage/kkm_last_timestamp [17:42:38]Write 4 bytes [17:42:38]NVStorageSaveData done [17:42:38]ExternCall_PrintAddStr [17:42:38]wPrintStart [17:42:38]Write to MH i2c: 01 00 00 E8 23 0B [17:42:38]Write i2c OK [17:42:38]MH_I2C_Read... [17:42:38]Read from MH i2c: 01 [17:42:38]MH_I2C_Read... [17:42:38]Read from MH i2c: 01 07 00 [17:42:38]MH_I2C_Read... [17:42:38]Read from MH i2c: 01 07 00 E8 23 00 00 00 00 00 FF 0F 20 [17:42:38]RasterBufferAndPrint [17:42:38]line Счет N : (3)199810 [17:42:38]line ИНН: 02508201610067 [17:42:38]line Контрольно-Кассовый Чек [17:42:38]line ПРОДАЖА [17:42:38]line Товар: 4700000480050 [17:42:38]line Напиток Nitro Energy эн green ж/б 0,45л [17:42:38]line 1.000 * 95.00 [17:42:38]line = 95.00 [17:42:38]line НДС 12% НСП 1% [17:42:38]line > о реализуемом товаре [17:42:38]line Товар: 4870145002155 [17:42:38]line Пиво Большая Кружка Мягкое 0,64л ст/б [17:42:38]line 2.000 * 141.00 [17:42:38]line = 282.00 [17:42:38]line НДС 12% НСП 1% [17:42:38]line > о реализуемом товаре [17:42:38]line Товар: 4700000160884 [17:42:38]line Снек Курут индивидуальный [17:42:38]line 1.000 * 15.00 [17:42:38]line = 15.00 [17:42:38]line НДС 12% НСП 1% [17:42:38]line > о реализуемом товаре [17:42:38]line ИТОГО: 392.00 [17:42:38]line НСП 1% : 3.47 [17:42:38]line НДС 12% : 41.63 [17:42:38]line Наличными: 392.00 [17:42:38]line Безнал.: 0.00 [17:42:38]line Место: АЗС № 87 "Партнер Нефть" [17:42:38]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [17:42:38]line СНО: Общий режим [17:42:38]line Чек 105 24.10.2024 17:42 [17:42:38]line Смена: 529 ФФД: 1.0 [17:42:38]line ЗНМ: 0300000084 [17:42:38]line РНМ: 0000000000091622 [17:42:38]line Версия ККМ: 001 [17:42:38]line ФМ: 0000000000874674 [17:42:38]line ФД: 60030 [17:42:38]line ФПД: 22617298809141 [17:42:38]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174240&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60030&fm=22617298809141&tin=02508201610067®Number=0000000000091622&sum=39200 [17:42:38]line 0 [17:42:38]OFD Sender: Processing packet 60030 [packets to send 30, broken 29] [17:42:38]ProducePacketName [17:42:38]name=ofd_packets/00060030 [17:42:38]OFD Sender: To server: pG, [17:42:38]CommunicateWithHost lk.salyk.kg:30040 [17:42:38]ConnectInit lk.salyk.kg [17:42:38]written 0, free lines is 4095 [17:42:38]Connected sock=10 [17: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 34 36 37 34 39 02 00 00 2F C0 31 02 FC 0A 5A 03 01 00 03 00 25 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 10 00 00 00 00 07 04 06 00 20 99 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 10 87 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7E EA 00 00 35 04 06 00 14 92 00 0F B1 35 34 17 A8 29 06 8C 9C 79 [17:42:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 5B F3 47 00 FF 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 34 36 37 34 10 04 04 00 7E EA 00 00 F4 03 04 00 01 2D 1A 67 B6 04 01 00 00 B6 71 2D 7E C1 DC A2 F0 [17:42:38]CommunicateWithHost err = 0 [17:42:38]CheckOFDResponse [17:42:38]1017 (14) - 77093643461234 [17:42:38]1041 (16) - 0000000000874674 [17:42:38]1040 (4) - 60030 [17:42:38]1012 (4) - 24.10.2024 11:18 [17:42:38]1206 (1) - 0 [17:42:38]OFD Sender: Remove packet 60030 [17:42:38]ProducePacketName [17:42:38]name=ofd_packets/00060030 [17:42:38]NVStorageDeleteData [17:42:39]Write to MH i2c: 01 00 00 1E 24 42 [17:42:39]Write i2c OK [17:42:39]MH_I2C_Read... [17:42:39]Read from MH i2c: 01 [17:42:39]MH_I2C_Read... [17:42:39]Read from MH i2c: 01 07 00 [17:42:39]MH_I2C_Read... [17:42:39]Read from MH i2c: 01 07 00 1E 24 00 00 00 00 00 1E 0C 73 [17:42:39]RasterBufferAndPrint [17:42:39]line [17:42:39]line [17:42:39]line [17:42:39]line [17:42:39]line [17:42:39]written 0, free lines is 3109 [17:42:39]MH_Cut [17:42:39]Write to MH i2c: D1 01 00 25 24 01 1B [17:42:39]Write i2c OK [17:42:39]MH_I2C_Read... [17:42:39]Read from MH i2c: D1 [17:42:39]MH_I2C_Read... [17:42:39]Read from MH i2c: D1 01 00 [17:42:39]MH_I2C_Read... [17:42:39]Read from MH i2c: D1 01 00 25 24 00 1A [17:42:39]Write to MH i2c: 01 00 00 26 24 4A [17:42:39]Write i2c OK [17:42:39]MH_I2C_Read... [17:42:39]OFD Sender: No OFD packet to send [17:42:40]*** Cut start [17:42:40]*** Partial cut [17:42:40]*** CUTSNS_PIN = 1 [17:42:40]*** CUTSNS_PIN = 0 [17:42:40]*** Brake cut motor [17:42:40]Read from MH i2c: 01 [17:42:40]MH_I2C_Read... [17:42:40]*** Stop cut motor [17:42:40]*** Cut end [17:42:40]Read from MH i2c: 01 07 00 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: 01 07 00 26 24 00 00 00 00 00 FF 0F 5F [17:42:40]process_action close_receipt done [17:42:40]requested_data is exist [17:42:40]produce_requested_data [17:42:40]requested_item fm.sn is exist - process it [17:42:40]wFMCommunicate request_size=4 [17:42:40]MH_SAM_APDU [17:42:40]CAPDU: 80 11 00 00 [17:42:40]Write to MH i2c: E2 08 00 27 24 80 11 00 00 00 00 00 00 C5 [17:42:40]Write i2c OK [17:42:40]MH_I2C_Read... [17:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:40]Read from MH i2c: E2 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 17 00 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 17 00 27 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 1C [17:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:42:40]wFMCommunicate OK [17:42:40]requested_item fd.num is exist - process it [17:42:40]SAM_PROTO_GetFieldsCounters [17:42:40]wFMCommunicate request_size=4 [17:42:40]MH_SAM_APDU [17:42:40]CAPDU: 80 13 00 00 [17:42:40]Write to MH i2c: E2 08 00 28 24 80 13 00 00 00 00 00 00 C8 [17:42:40]Write i2c OK [17:42:40]MH_I2C_Read... [17:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:40]Read from MH i2c: E2 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 62 00 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 62 00 28 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7E EA 00 00 0E 04 04 00 11 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 9E [17: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7E EA 00 00 0E 04 04 00 11 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 [17:42:40]wFMCommunicate OK [17:42:40]SAM_PROTO_GetFieldsCounters done [17:42:40]requested_item shift.num is exist - process it [17:42:40]requested_item shift.opened is exist - process it [17:42:40]req_shift_opened [17:42:40]FM_GetShiftState [17:42:40]SAM_PROTO_GetShiftState [17:42:40]wFMCommunicate request_size=4 [17:42:40]MH_SAM_APDU [17:42:40]CAPDU: 80 13 01 00 [17:42:40]Write to MH i2c: E2 08 00 29 24 80 13 01 00 00 00 00 00 CA [17:42:40]Write i2c OK [17:42:40]MH_I2C_Read... [17:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:40]Read from MH i2c: E2 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 0E 00 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 0E 00 29 24 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 FD [17:42:40]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:42:40]wFMCommunicate OK [17:42:40]SAM_PROTO_GetShiftState done [17:42:40]FM_GetShiftState done [17:42:40]req_shift_opened done [17:42:40]requested_item shift.open_date is exist - process it [17:42:40]req_shift_open_date [17:42:40]req_shift_open_date done [17:42:40]produce_requested_data done [17:42:40]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60030,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [17:42:40]process_action_free close_receipt [17:42:40]json_value_free [17:42:40]json_value_free done [17:42:40]process_json_proto returns [17:42:40]Send response to host [17:42:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60030,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [17:42:40]free response buf [17:42:40]execute_script done [17:42:40]execute_script returns [17:42:40]free content buf [17:42:40]Sock 9.Close socket [17:42:40]Sock 9.Thread stoped [17:42:44]OFD Sender: No OFD packet to send [17:42:48]accept exits with 7 [17:42:48]New connection [17:42:48]New thread 3067252068 created [17:42:48]Thread 3067108708 joined [17:42:48]Waiting for new connection... [17:42:48] Sock 7.Parse request [17:42:48]Sock 7.Check first char [17:42:48]Sock 7.First char is OK [17:42:48]request: POST /json_proto HTTP/1.0 [17:42:48]Method: POST [17:42:48]URL: /json_proto [17:42:48]Method is POST - this is cgi request [17:42:48]url: /json_proto [17:42:48]query_string will be loaded in cgi processing [17:42:48]execute_cgi json_proto POST (null) [17:42:48]execute_cgi path=json_proto method=POST [17:42:48]POST find Content-Length [17:42:48]Host: 172.17.42.196:8080 [17:42:48]Content-Length: 621 [17:42:48]Content-Type: application/json [17:42:48] [17:42:48]POST finish read [17:42:48]Found Content-Length = 621 [17:42:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199811", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:48]execute_script... [17:42:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199811", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:48]POST & json_proto [17:42:48]process_json_proto [17:42:48]json parsed OK: [17:42:48]protocol is kg_v1.0 [17:42:48]action value=close_receipt [17:42:48]process_action close_receipt [17:42:48]cmd_close_receipt [17:42:48]MH_GetDate [17:42:48]Write to MH i2c: F0 00 00 2A 24 3D [17:42:48]Write i2c OK [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: F0 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: F0 09 00 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: F0 09 00 2A 24 00 1D 87 1A 67 FF C4 6B 64 FD [17:42:48]GetLastDocTimeStamp 1729791760 [17:42:48]current date 1729791773 [17:42:48]FM_GetShiftState [17:42:48]SAM_PROTO_GetShiftState [17:42:48]wFMCommunicate request_size=4 [17:42:48]MH_SAM_APDU [17:42:48]CAPDU: 80 13 01 00 [17:42:48]Write to MH i2c: E2 08 00 2B 24 80 13 01 00 00 00 00 00 CC [17:42:48]Write i2c OK [17:42:48]MH_I2C_Read... [17:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:48]Read from MH i2c: E2 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: E2 0E 00 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: E2 0E 00 2B 24 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 FF [17:42:48]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:42:48]wFMCommunicate OK [17:42:48]SAM_PROTO_GetShiftState done [17:42:48]FM_GetShiftState done [17:42:48]opened in 1729730575 [17:42:48]opened+sec_in_day 1729816975 [17:42:48]quantity*price = 14400 [17:42:48]sum+1 = 14401 [17:42:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 106 24.10.2024 17:42 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60031 ФПД: 96406632289438 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174253&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60031&fm=96406632289438&tin=02508201610067®Number=0000000000091622&sum=14400 0 [17:42:49]StoreToDocumentArchive [17:42:49]shift 529 fd 60031 [17:42:49]save to /storage/0529/doc_00060031 [17:42:49]save last doc name /storage/0529/doc_00060031 to /storage/kkm_last_doc_name [17:42:49]save OK [17:42:49]Clear old archive folders... [17:42:49]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:42:49]tlvbuf is 00D7AB50 [17:42:49]SAM_PROTO_ClearQueue [17:42:49]wFMCommunicate request_size=4 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 09 00 00 [17:42:49]Write to MH i2c: E2 08 00 38 24 80 09 00 00 00 00 00 00 CE [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:49]Read from MH i2c: E2 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 38 24 00 90 00 D0 [17:42:49]RAPDU: 90 00 [17:42:49]wFMCommunicate OK [17:42:49]SAM_PROTO_ClearQueue done [17:42:49]KKMCreateOFDPacket [17:42:49]OFDProtocolAddRootSTLVToBuf [17:42:49]FM_MakeSignedData [17:42:49]FM_MakeSignedData [17:42:49]SAM_PROTO_SignData [17:42:49]wFMCommunicate request_size=4 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 0D 01 02 [17:42:49]Write to MH i2c: E2 08 00 39 24 80 0D 01 02 00 00 00 00 D6 [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:49]Read from MH i2c: E2 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 39 24 00 90 00 D1 [17:42:49]RAPDU: 90 00 [17:42:49]wFMCommunicate OK [17:42:49]wFMCommunicate request_size=255 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 1D 87 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 [17:42:49]Write to MH i2c: E2 02 01 3A 24 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 1D 87 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 DD [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:49]Read from MH i2c: E2 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 3A 24 00 90 00 D2 [17:42:49]RAPDU: 90 00 [17:42:49]wFMCommunicate OK [17:42:49]wFMCommunicate request_size=32 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 34 10 04 04 00 7F EA 00 00 35 04 06 00 57 AE 6B 12 54 9E [17:42:49]Write to MH i2c: E2 23 00 3B 24 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 34 10 04 04 00 7F EA 00 00 35 04 06 00 57 AE 6B 12 54 9E 00 00 17 [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:50]Read from MH i2c: E2 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 03 00 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 03 00 3B 24 00 90 00 D3 [17:42:50]RAPDU: 90 00 [17:42:50]wFMCommunicate OK [17:42:50]wFMCommunicate request_size=4 [17:42:50]MH_SAM_APDU [17:42:50]CAPDU: 80 0D 03 02 [17:42:50]Write to MH i2c: E2 08 00 3C 24 80 0D 03 02 00 00 00 00 DB [17:42:50]Write i2c OK [17:42:50]MH_I2C_Read... [17:42:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:50]Read from MH i2c: E2 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 0B 00 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 0B 00 3C 24 00 2D 90 57 05 D1 AD 81 5B 90 00 4F [17:42:50]RAPDU: 2D 90 57 05 D1 AD 81 5B 90 00 [17:42:50]wFMCommunicate OK [17:42:50]SAM_PROTO_SignData done [17:42:50]FM_MakeSignedData done [17:42:50]CreateOFDProtocolMessage [17:42:50]wFMCommunicate request_size=4 [17:42:50]MH_SAM_APDU [17:42:50]CAPDU: 80 11 00 00 [17:42:50]Write to MH i2c: E2 08 00 3D 24 80 11 00 00 00 00 00 00 DB [17:42:50]Write i2c OK [17:42:50]MH_I2C_Read... [17:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:50]Read from MH i2c: E2 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 17 00 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 17 00 3D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 32 [17:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:42:50]wFMCommunicate OK [17:42:50]CreateOFDProtocolMessage done [17:42:50]OFDSenderStorePacket 60031 [17:42:50]StoreOFDPacket docnum=60031 [17:42:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 13 DA 1D 01 32 C1 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 1D 87 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7F EA 00 00 35 04 06 00 57 AE 6B 12 54 9E 2D 90 57 05 D1 AD 81 5B [17:42:50]CheckFolder [17:42:50]dirname=/storage/ofd_packets [17:42:50]CheckFolder done [17:42:50]ProducePacketName [17:42:50]name=ofd_packets/00060031 [17:42:50]NVStorageSaveData ofd_packets/00060031 [17:42:50]File name is /storage/ofd_packets/00060031 [17:42:50]Write 323 bytes [17:42:50]NVStorageSaveData done [17:42:50]OFDSenderStorePacket done [17:42:50]KKMCreateOFDPacket done [17:42:50]NVStorageSaveData kkm_last_timestamp [17:42:50]File name is /storage/kkm_last_timestamp [17:42:50]Write 4 bytes [17:42:50]NVStorageSaveData done [17:42:50]ExternCall_PrintAddStr [17:42:50]wPrintStart [17:42:50]Write to MH i2c: 01 00 00 3E 24 62 [17:42:50]Write i2c OK [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: 01 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: 01 07 00 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: 01 07 00 3E 24 00 00 00 00 00 FF 0F 77 [17:42:50]RasterBufferAndPrint [17:42:50]line Счет N : (3)199811 [17:42:50]line ИНН: 02508201610067 [17:42:50]line Контрольно-Кассовый Чек [17:42:50]line ПРОДАЖА [17:42:50]line Товар: 48743570 [17:42:50]line Сигареты Winston XStyle Blue [17:42:50]line 1.000 * 144.00 [17:42:50]line = 144.00 [17:42:50]line НДС 12% НСП 1% [17:42:50]line > о реализуемом товаре [17:42:50]line ИТОГО: 144.00 [17:42:50]line НСП 1% : 1.27 [17:42:50]line НДС 12% : 15.29 [17:42:50]line Наличными: 144.00 [17:42:50]line Безнал.: 0.00 [17:42:50]line Место: АЗС № 87 "Партнер Нефть" [17:42:50]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [17:42:50]line СНО: Общий режим [17:42:50]line Чек 106 24.10.2024 17:42 [17:42:50]line Смена: 529 ФФД: 1.0 [17:42:50]line ЗНМ: 0300000084 [17:42:50]line РНМ: 0000000000091622 [17:42:50]line Версия ККМ: 001 [17:42:50]line ФМ: 0000000000874674 [17:42:50]line ФД: 60031 [17:42:50]line ФПД: 96406632289438 [17:42:50]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174253&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60031&fm=96406632289438&tin=02508201610067®Number=0000000000091622&sum=14400 [17:42:50]line 0 [17:42:50]written 0, free lines is 4095 [17:42:50]OFD Sender: Processing packet 60031 [packets to send 30, broken 29] [17:42:50]ProducePacketName [17:42:50]name=ofd_packets/00060031 [17:42:50]OFD Sender: To server: pG, [17:42:50]CommunicateWithHost lk.salyk.kg:30040 [17:42:50]ConnectInit lk.salyk.kg [17:42:50]Connected sock=10 [17: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 34 36 37 34 25 01 00 00 13 DA 1D 01 32 C1 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 1D 87 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7F EA 00 00 35 04 06 00 57 AE 6B 12 54 9E 2D 90 57 05 D1 AD 81 5B [17:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 6F 58 47 00 83 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 34 36 37 34 10 04 04 00 7F EA 00 00 F4 03 04 00 0C 2D 1A 67 B6 04 01 00 00 8F 4C A8 AC E6 FF 2B 0A [17:42:50]CommunicateWithHost err = 0 [17:42:50]CheckOFDResponse [17:42:50]1017 (14) - 77093643461234 [17:42:50]1041 (16) - 0000000000874674 [17:42:50]1040 (4) - 60031 [17:42:50]1012 (4) - 24.10.2024 11:18 [17:42:50]1206 (1) - 0 [17:42:50]OFD Sender: Remove packet 60031 [17:42:50]ProducePacketName [17:42:50]name=ofd_packets/00060031 [17:42:50]NVStorageDeleteData [17:42:50]Write to MH i2c: 01 00 00 66 24 8A [17:42:50]Write i2c OK [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: 01 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: 01 07 00 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: 01 07 00 66 24 00 00 00 00 00 01 0D 9F [17:42:50]RasterBufferAndPrint [17:42:50]line [17:42:50]line [17:42:50]line [17:42:50]line [17:42:50]line [17:42:50]written 0, free lines is 3340 [17:42:50]MH_Cut [17:42:50]Write to MH i2c: D1 01 00 6D 24 01 63 [17:42:50]Write i2c OK [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: D1 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: D1 01 00 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: D1 01 00 6D 24 00 62 [17:42:50]Write to MH i2c: 01 00 00 6E 24 92 [17:42:50]Write i2c OK [17:42:50]MH_I2C_Read... [17:42:51]OFD Sender: No OFD packet to send [17:42:51]*** Cut start [17:42:51]*** Partial cut [17:42:51]*** CUTSNS_PIN = 1 [17:42:51]*** CUTSNS_PIN = 0 [17:42:51]*** Brake cut motor [17:42:51]Read from MH i2c: 01 [17:42:51]MH_I2C_Read... [17:42:51]*** Stop cut motor [17:42:52]*** Cut end [17:42:52]Read from MH i2c: 01 07 00 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: 01 07 00 6E 24 00 00 00 00 00 FF 0F A7 [17:42:52]process_action close_receipt done [17:42:52]requested_data is exist [17:42:52]produce_requested_data [17:42:52]requested_item fm.sn is exist - process it [17:42:52]wFMCommunicate request_size=4 [17:42:52]MH_SAM_APDU [17:42:52]CAPDU: 80 11 00 00 [17:42:52]Write to MH i2c: E2 08 00 6F 24 80 11 00 00 00 00 00 00 0D [17:42:52]Write i2c OK [17:42:52]MH_I2C_Read... [17:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:52]Read from MH i2c: E2 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 17 00 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 17 00 6F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 64 [17:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [17:42:52]wFMCommunicate OK [17:42:52]requested_item fd.num is exist - process it [17:42:52]SAM_PROTO_GetFieldsCounters [17:42:52]wFMCommunicate request_size=4 [17:42:52]MH_SAM_APDU [17:42:52]CAPDU: 80 13 00 00 [17:42:52]Write to MH i2c: E2 08 00 70 24 80 13 00 00 00 00 00 00 10 [17:42:52]Write i2c OK [17:42:52]MH_I2C_Read... [17:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:52]Read from MH i2c: E2 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 62 00 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 62 00 70 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7F EA 00 00 0E 04 04 00 11 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 EA [17: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7F EA 00 00 0E 04 04 00 11 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 [17:42:52]wFMCommunicate OK [17:42:52]SAM_PROTO_GetFieldsCounters done [17:42:52]requested_item shift.num is exist - process it [17:42:52]requested_item shift.opened is exist - process it [17:42:52]req_shift_opened [17:42:52]FM_GetShiftState [17:42:52]SAM_PROTO_GetShiftState [17:42:52]wFMCommunicate request_size=4 [17:42:52]MH_SAM_APDU [17:42:52]CAPDU: 80 13 01 00 [17:42:52]Write to MH i2c: E2 08 00 71 24 80 13 01 00 00 00 00 00 12 [17:42:52]Write i2c OK [17:42:52]MH_I2C_Read... [17:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:52]Read from MH i2c: E2 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 0E 00 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 0E 00 71 24 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 45 [17:42:52]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [17:42:52]wFMCommunicate OK [17:42:52]SAM_PROTO_GetShiftState done [17:42:52]FM_GetShiftState done [17:42:52]req_shift_opened done [17:42:52]requested_item shift.open_date is exist - process it [17:42:52]req_shift_open_date [17:42:52]req_shift_open_date done [17:42:52]produce_requested_data done [17:42:52]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60031,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [17:42:52]process_action_free close_receipt [17:42:52]json_value_free [17:42:52]json_value_free done [17:42:52]process_json_proto returns [17:42:52]Send response to host [17:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60031,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [17:42:52]free response buf [17:42:52]execute_script done [17:42:52]execute_script returns [17:42:52]free content buf [17:42:52]Sock 7.Close socket [17:42:52]Sock 7.Thread stoped [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:21]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01: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:25]accept exits with 9 [18:10:25]New connection [18:10:25]New thread 3067108708 created [18:10:25]Thread 3067252068 joined [18:10:25]Waiting for new connection... [18:10:25] Sock 9.Parse request [18:10:25]Sock 9.Check first char [18:10:25]Sock 9.First char is OK [18:10:25]request: POST /json_proto HTTP/1.0 [18:10:25]Method: POST [18:10:25]URL: /json_proto [18:10:25]Method is POST - this is cgi request [18:10:25]url: /json_proto [18:10:25]query_string will be loaded in cgi processing [18:10:25]execute_cgi json_proto POST (null) [18:10:25]execute_cgi path=json_proto method=POST [18:10:25]POST find Content-Length [18:10:25]Host: 172.17.42.196:8080 [18:10:25]Content-Length: 621 [18:10:25]Content-Type: application/json [18:10:25] [18:10:25]POST finish read [18:10:25]Found Content-Length = 621 [18:10:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199812", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:25]execute_script... [18:10:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199812", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:25]POST & json_proto [18:10:25]process_json_proto [18:10:25]json parsed OK: [18:10:25]protocol is kg_v1.0 [18:10:25]action value=close_receipt [18:10:25]process_action close_receipt [18:10:25]cmd_close_receipt [18:10:25]MH_GetDate [18:10:25]Write to MH i2c: F0 00 00 72 24 85 [18:10:25]Write i2c OK [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: F0 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: F0 09 00 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: F0 09 00 72 24 00 96 8D 1A 67 FF C4 6B 64 C4 [18:10:25]GetLastDocTimeStamp 1729791773 [18:10:25]current date 1729793430 [18:10:25]FM_GetShiftState [18:10:25]SAM_PROTO_GetShiftState [18:10:25]wFMCommunicate request_size=4 [18:10:25]MH_SAM_APDU [18:10:25]CAPDU: 80 13 01 00 [18:10:25]Write to MH i2c: E2 08 00 73 24 80 13 01 00 00 00 00 00 14 [18:10:25]Write i2c OK [18:10:25]MH_I2C_Read... [18:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:25]Read from MH i2c: E2 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: E2 0E 00 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: E2 0E 00 73 24 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 47 [18:10:25]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:10:25]wFMCommunicate OK [18:10:25]SAM_PROTO_GetShiftState done [18:10:25]FM_GetShiftState done [18:10:25]opened in 1729730575 [18:10:25]opened+sec_in_day 1729816975 [18:10:25]quantity*price = 14400 [18:10:25]sum+1 = 14401 [18:10:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 107 24.10.2024 18:10 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60032 ФПД: 219065648386234 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181030&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60032&fm=219065648386234&tin=02508201610067®Number=0000000000091622&sum=14400 0 [18:10:26]StoreToDocumentArchive [18:10:26]shift 529 fd 60032 [18:10:26]save to /storage/0529/doc_00060032 [18:10:26]save last doc name /storage/0529/doc_00060032 to /storage/kkm_last_doc_name [18:10:26]save OK [18:10:26]Clear old archive folders... [18:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:10:26]tlvbuf is 00DF0600 [18:10:26]SAM_PROTO_ClearQueue [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 09 00 00 [18:10:26]Write to MH i2c: E2 08 00 80 24 80 09 00 00 00 00 00 00 16 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 80 24 00 90 00 18 [18:10:26]RAPDU: 90 00 [18:10:26]wFMCommunicate OK [18:10:26]SAM_PROTO_ClearQueue done [18:10:26]KKMCreateOFDPacket [18:10:26]OFDProtocolAddRootSTLVToBuf [18:10:26]FM_MakeSignedData [18:10:26]FM_MakeSignedData [18:10:26]SAM_PROTO_SignData [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 0D 01 02 [18:10:26]Write to MH i2c: E2 08 00 81 24 80 0D 01 02 00 00 00 00 1E [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 81 24 00 90 00 19 [18:10:26]RAPDU: 90 00 [18:10:26]wFMCommunicate OK [18:10:26]wFMCommunicate request_size=255 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 96 8D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 [18:10:26]Write to MH i2c: E2 02 01 82 24 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 96 8D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 A5 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 82 24 00 90 00 1A [18:10:26]RAPDU: 90 00 [18:10:26]wFMCommunicate OK [18:10:26]wFMCommunicate request_size=32 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 34 10 04 04 00 80 EA 00 00 35 04 06 00 C7 3D 32 27 90 BA [18:10:26]Write to MH i2c: E2 23 00 83 24 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 34 10 04 04 00 80 EA 00 00 35 04 06 00 C7 3D 32 27 90 BA 00 00 93 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 83 24 00 90 00 1B [18:10:26]RAPDU: 90 00 [18:10:26]wFMCommunicate OK [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 0D 03 02 [18:10:26]Write to MH i2c: E2 08 00 84 24 80 0D 03 02 00 00 00 00 23 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 0B 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 0B 00 84 24 00 F7 33 DF B9 D7 B5 55 9E 90 00 65 [18:10:26]RAPDU: F7 33 DF B9 D7 B5 55 9E 90 00 [18:10:26]wFMCommunicate OK [18:10:26]SAM_PROTO_SignData done [18:10:26]FM_MakeSignedData done [18:10:26]CreateOFDProtocolMessage [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 11 00 00 [18:10:26]Write to MH i2c: E2 08 00 85 24 80 11 00 00 00 00 00 00 23 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:27]Read from MH i2c: E2 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: E2 17 00 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: E2 17 00 85 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 7A [18:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:10:27]wFMCommunicate OK [18:10:27]CreateOFDProtocolMessage done [18:10:27]OFDSenderStorePacket 60032 [18:10:27]StoreOFDPacket docnum=60032 [18:10:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 55 CF 1D 01 F9 3A 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 96 8D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 80 EA 00 00 35 04 06 00 C7 3D 32 27 90 BA F7 33 DF B9 D7 B5 55 9E [18:10:27]CheckFolder [18:10:27]dirname=/storage/ofd_packets [18:10:27]CheckFolder done [18:10:27]ProducePacketName [18:10:27]name=ofd_packets/00060032 [18:10:27]NVStorageSaveData ofd_packets/00060032 [18:10:27]File name is /storage/ofd_packets/00060032 [18:10:27]Write 323 bytes [18:10:27]NVStorageSaveData done [18:10:27]OFDSenderStorePacket done [18:10:27]KKMCreateOFDPacket done [18:10:27]NVStorageSaveData kkm_last_timestamp [18:10:27]File name is /storage/kkm_last_timestamp [18:10:27]Write 4 bytes [18:10:27]NVStorageSaveData done [18:10:27]ExternCall_PrintAddStr [18:10:27]wPrintStart [18:10:27]Write to MH i2c: 01 00 00 86 24 AA [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 07 00 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 07 00 86 24 00 00 00 00 00 FF 0F BF [18:10:27]RasterBufferAndPrint [18:10:27]line Счет N : (3)199812 [18:10:27]line ИНН: 02508201610067 [18:10:27]line Контрольно-Кассовый Чек [18:10:27]line ПРОДАЖА [18:10:27]line Товар: 48743570 [18:10:27]line Сигареты Winston XStyle Blue [18:10:27]line 1.000 * 144.00 [18:10:27]line = 144.00 [18:10:27]line НДС 12% НСП 1% [18:10:27]line > о реализуемом товаре [18:10:27]line ИТОГО: 144.00 [18:10:27]line НСП 1% : 1.27 [18:10:27]line НДС 12% : 15.29 [18:10:27]line Наличными: 144.00 [18:10:27]line Безнал.: 0.00 [18:10:27]line Место: АЗС № 87 "Партнер Нефть" [18:10:27]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [18:10:27]line СНО: Общий режим [18:10:27]line Чек 107 24.10.2024 18:10 [18:10:27]line Смена: 529 ФФД: 1.0 [18:10:27]line ЗНМ: 0300000084 [18:10:27]line РНМ: 0000000000091622 [18:10:27]line Версия ККМ: 001 [18:10:27]line ФМ: 0000000000874674 [18:10:27]line ФД: 60032 [18:10:27]line ФПД: 219065648386234 [18:10:27]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181030&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60032&fm=219065648386234&tin=02508201610067®Number=0000000000091622&sum=14400 [18:10:27]OFD Sender: Processing packet 60032 [packets to send 30, broken 29] [18:10:27]ProducePacketName [18:10:27]name=ofd_packets/00060032 [18:10:27]OFD Sender: To server: pG, [18:10:27]CommunicateWithHost lk.salyk.kg:30040 [18:10:27]ConnectInit lk.salyk.kg [18:10:27]line 0 [18:10:27]written 0, free lines is 4095 [18:10:27]Connected sock=10 [18:10:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 55 CF 1D 01 F9 3A 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 96 8D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 80 EA 00 00 35 04 06 00 C7 3D 32 27 90 BA F7 33 DF B9 D7 B5 55 9E [18:10:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 78 5D 47 00 43 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 80 EA 00 00 F4 03 04 00 86 33 1A 67 B6 04 01 00 00 E6 47 59 CF AA 11 6D 81 [18:10:27]CommunicateWithHost err = 0 [18:10:27]CheckOFDResponse [18:10:27]1017 (14) - 77093643461234 [18:10:27]1041 (16) - 0000000000874674 [18:10:27]1040 (4) - 60032 [18:10:27]1012 (4) - 24.10.2024 11:46 [18:10:27]1206 (1) - 0 [18:10:27]OFD Sender: Remove packet 60032 [18:10:27]ProducePacketName [18:10:27]name=ofd_packets/00060032 [18:10:27]NVStorageDeleteData [18:10:27]Write to MH i2c: 01 00 00 AE 24 D2 [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 07 00 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 07 00 AE 24 00 00 00 00 00 F4 0C D9 [18:10:27]RasterBufferAndPrint [18:10:27]line [18:10:27]line [18:10:27]line [18:10:27]line [18:10:27]line [18:10:27]written 0, free lines is 3324 [18:10:27]MH_Cut [18:10:27]Write to MH i2c: D1 01 00 B5 24 01 AB [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: D1 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: D1 01 00 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: D1 01 00 B5 24 00 AA [18:10:27]Write to MH i2c: 01 00 00 B6 24 DA [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:28]OFD Sender: No OFD packet to send [18:10:28]*** Cut start [18:10:28]*** Partial cut [18:10:28]*** CUTSNS_PIN = 1 [18:10:28]*** CUTSNS_PIN = 0 [18:10:28]*** Brake cut motor [18:10:29]Read from MH i2c: 01 [18:10:29]MH_I2C_Read... [18:10:29]*** Stop cut motor [18:10:29]*** Cut end [18:10:29]Read from MH i2c: 01 07 00 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: 01 07 00 B6 24 00 00 00 00 00 FF 0F EF [18:10:29]process_action close_receipt done [18:10:29]requested_data is exist [18:10:29]produce_requested_data [18:10:29]requested_item fm.sn is exist - process it [18:10:29]wFMCommunicate request_size=4 [18:10:29]MH_SAM_APDU [18:10:29]CAPDU: 80 11 00 00 [18:10:29]Write to MH i2c: E2 08 00 B7 24 80 11 00 00 00 00 00 00 55 [18:10:29]Write i2c OK [18:10:29]MH_I2C_Read... [18:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:29]Read from MH i2c: E2 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: E2 17 00 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: E2 17 00 B7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 AC [18:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:10:29]wFMCommunicate OK [18:10:29]requested_item fd.num is exist - process it [18:10:29]SAM_PROTO_GetFieldsCounters [18:10:29]wFMCommunicate request_size=4 [18:10:29]MH_SAM_APDU [18:10:29]CAPDU: 80 13 00 00 [18:10:29]Write to MH i2c: E2 08 00 B8 24 80 13 00 00 00 00 00 00 58 [18:10:29]Write i2c OK [18:10:29]MH_I2C_Read... [18:10:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:29]Read from MH i2c: E2 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: E2 62 00 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: E2 62 00 B8 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 80 EA 00 00 0E 04 04 00 11 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 36 [18:10: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 80 EA 00 00 0E 04 04 00 11 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 [18:10:29]wFMCommunicate OK [18:10:29]SAM_PROTO_GetFieldsCounters done [18:10:29]requested_item shift.num is exist - process it [18:10:29]requested_item shift.opened is exist - process it [18:10:29]req_shift_opened [18:10:29]FM_GetShiftState [18:10:29]SAM_PROTO_GetShiftState [18:10:29]wFMCommunicate request_size=4 [18:10:29]MH_SAM_APDU [18:10:29]CAPDU: 80 13 01 00 [18:10:29]Write to MH i2c: E2 08 00 B9 24 80 13 01 00 00 00 00 00 5A [18:10:29]Write i2c OK [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: E2 [18:10:29]MH_I2C_Read... [18:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:29]Read from MH i2c: E2 0E 00 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: E2 0E 00 B9 24 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 8D [18:10:29]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:10:29]wFMCommunicate OK [18:10:29]SAM_PROTO_GetShiftState done [18:10:29]FM_GetShiftState done [18:10:29]req_shift_opened done [18:10:29]requested_item shift.open_date is exist - process it [18:10:29]req_shift_open_date [18:10:29]req_shift_open_date done [18:10:29]produce_requested_data done [18:10:29]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60032,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [18:10:29]process_action_free close_receipt [18:10:29]json_value_free [18:10:29]json_value_free done [18:10:29]process_json_proto returns [18:10:29]Send response to host [18:10:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60032,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [18:10:29]free response buf [18:10:29]execute_script done [18:10:29]execute_script returns [18:10:29]free content buf [18:10:29]Sock 9.Close socket [18:10:29]Sock 9.Thread stoped [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]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: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:46]ConnectInit Can't connect to host [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:46]accept exits with 7 [18:23:46]New connection [18:23:46]New thread 3067252068 created [18:23:46]Thread 3067108708 joined [18:23:46]Waiting for new connection... [18:23:46] Sock 7.Parse request [18:23:46]Sock 7.Check first char [18:23:46]Sock 7.First char is OK [18:23:46]request: POST /json_proto HTTP/1.0 [18:23:46]Method: POST [18:23:46]URL: /json_proto [18:23:46]Method is POST - this is cgi request [18:23:46]url: /json_proto [18:23:46]query_string will be loaded in cgi processing [18:23:46]execute_cgi json_proto POST (null) [18:23:46]execute_cgi path=json_proto method=POST [18:23:46]POST find Content-Length [18:23:46]Host: 172.17.42.196:8080 [18:23:46]Content-Length: 759 [18:23:46]Content-Type: application/json [18:23:46] [18:23:46]POST finish read [18:23:46]Found Content-Length = 759 [18:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 60.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30098430", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:46]execute_script... [18:23: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)3309097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 60.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\u041A \u0413\u041F\u041D\u0410 Online\u000A30098430", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:46]POST & json_proto [18:23:46]process_json_proto [18:23:46]json parsed OK: [18:23:46]protocol is kg_v1.0 [18:23:46]action value=close_receipt [18:23:46]process_action close_receipt [18:23:46]cmd_close_receipt [18:23:46]MH_GetDate [18:23:46]Write to MH i2c: F0 00 00 BA 24 CD [18:23:46]Write i2c OK [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: F0 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: F0 09 00 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: F0 09 00 BA 24 00 B7 90 1A 67 FF C4 6B 64 30 [18:23:46]GetLastDocTimeStamp 1729793430 [18:23:46]current date 1729794231 [18:23:46]FM_GetShiftState [18:23:46]SAM_PROTO_GetShiftState [18:23:46]wFMCommunicate request_size=4 [18:23:46]MH_SAM_APDU [18:23:46]CAPDU: 80 13 01 00 [18:23:46]Write to MH i2c: E2 08 00 BB 24 80 13 01 00 00 00 00 00 5C [18:23:46]Write i2c OK [18:23:46]MH_I2C_Read... [18:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:46]Read from MH i2c: E2 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: E2 0E 00 [18:23:46]MH_I2C_Read... [18:23:46]Read from MH i2c: E2 0E 00 BB 24 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 8F [18:23:46]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:23:46]wFMCommunicate OK [18:23:46]SAM_PROTO_GetShiftState done [18:23:46]FM_GetShiftState done [18:23:46]opened in 1729730575 [18:23:46]opened+sec_in_day 1729816975 [18:23:46]quantity*price = 0 [18:23:46]sum+1 = 1 [18:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 108 24.10.2024 18:23 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Талоны: ТК ГПНА Online 30098430 ФМ: 0000000000874674 ФД: 60033 ФПД: 161029319294598 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182351&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60033&fm=161029319294598&tin=02508201610067®Number=0000000000091622&sum=0 [18:23:47]StoreToDocumentArchive [18:23:47]shift 529 fd 60033 [18:23:47]save to /storage/0529/doc_00060033 [18:23:47]save last doc name /storage/0529/doc_00060033 to /storage/kkm_last_doc_name [18:23:47]save OK [18:23:47]Clear old archive folders... [18:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:23:47]tlvbuf is 00D7D640 [18:23:47]SAM_PROTO_ClearQueue [18:23:47]wFMCommunicate request_size=4 [18:23:47]MH_SAM_APDU [18:23:47]CAPDU: 80 09 00 00 [18:23:47]Write to MH i2c: E2 08 00 C8 24 80 09 00 00 00 00 00 00 5E [18:23:47]Write i2c OK [18:23:47]MH_I2C_Read... [18:23:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:47]Read from MH i2c: E2 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: E2 03 00 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: E2 03 00 C8 24 00 90 00 60 [18:23:47]RAPDU: 90 00 [18:23:47]wFMCommunicate OK [18:23:47]SAM_PROTO_ClearQueue done [18:23:47]KKMCreateOFDPacket [18:23:47]OFDProtocolAddRootSTLVToBuf [18:23:47]FM_MakeSignedData [18:23:47]FM_MakeSignedData [18:23:47]SAM_PROTO_SignData [18:23:47]wFMCommunicate request_size=4 [18:23:47]MH_SAM_APDU [18:23:47]CAPDU: 80 0D 01 02 [18:23:47]Write to MH i2c: E2 08 00 C9 24 80 0D 01 02 00 00 00 00 66 [18:23:47]Write i2c OK [18:23:47]MH_I2C_Read... [18:23:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:47]Read from MH i2c: E2 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: E2 03 00 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: E2 03 00 C9 24 00 90 00 61 [18:23:47]RAPDU: 90 00 [18:23:47]wFMCommunicate OK [18:23:47]wFMCommunicate request_size=255 [18:23:47]MH_SAM_APDU [18:23:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 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 6C 00 00 00 F4 03 04 00 B7 90 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 81 EA 00 00 35 04 06 00 [18:23:47]Write to MH i2c: E2 02 01 CA 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 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 6C 00 00 00 F4 03 04 00 B7 90 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 81 EA 00 00 35 04 06 00 00 00 A6 [18:23:47]Write i2c OK [18:23:47]MH_I2C_Read... [18:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:47]Read from MH i2c: E2 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: E2 03 00 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: E2 03 00 CA 24 00 90 00 62 [18:23:47]RAPDU: 90 00 [18:23:47]wFMCommunicate OK [18:23:47]wFMCommunicate request_size=11 [18:23:47]MH_SAM_APDU [18:23:47]CAPDU: 80 0D 02 02 06 92 74 8F 5F FE 86 [18:23:47]Write to MH i2c: E2 0E 00 CB 24 80 0D 02 02 06 00 92 74 8F 5F FE 86 00 00 ED [18:23:47]Write i2c OK [18:23:47]MH_I2C_Read... [18:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:47]Read from MH i2c: E2 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: E2 03 00 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: E2 03 00 CB 24 00 90 00 63 [18:23:47]RAPDU: 90 00 [18:23:47]wFMCommunicate OK [18:23:47]wFMCommunicate request_size=4 [18:23:47]MH_SAM_APDU [18:23:47]CAPDU: 80 0D 03 02 [18:23:47]Write to MH i2c: E2 08 00 CC 24 80 0D 03 02 00 00 00 00 6B [18:23:47]Write i2c OK [18:23:47]MH_I2C_Read... [18:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:47]Read from MH i2c: E2 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: E2 0B 00 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: E2 0B 00 CC 24 00 6A D7 05 F0 43 6E B3 AA 90 00 B0 [18:23:47]RAPDU: 6A D7 05 F0 43 6E B3 AA 90 00 [18:23:47]wFMCommunicate OK [18:23:47]SAM_PROTO_SignData done [18:23:47]FM_MakeSignedData done [18:23:47]CreateOFDProtocolMessage [18:23:47]wFMCommunicate request_size=4 [18:23:47]MH_SAM_APDU [18:23:47]CAPDU: 80 11 00 00 [18:23:47]Write to MH i2c: E2 08 00 CD 24 80 11 00 00 00 00 00 00 6B [18:23:47]Write i2c OK [18:23:47]MH_I2C_Read... [18:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:47]Read from MH i2c: E2 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: E2 17 00 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: E2 17 00 CD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C2 [18:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:23:47]wFMCommunicate OK [18:23:47]CreateOFDProtocolMessage done [18:23:47]OFDSenderStorePacket 60033 [18:23:47]StoreOFDPacket docnum=60033 [18:23:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 01 00 00 36 24 08 01 48 0E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 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 6C 00 00 00 F4 03 04 00 B7 90 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 81 EA 00 00 35 04 06 00 92 74 8F 5F FE 86 6A D7 05 F0 43 6E B3 AA [18:23:47]CheckFolder [18:23:47]dirname=/storage/ofd_packets [18:23:47]CheckFolder done [18:23:47]ProducePacketName [18:23:47]name=ofd_packets/00060033 [18:23:47]NVStorageSaveData ofd_packets/00060033 [18:23:47]File name is /storage/ofd_packets/00060033 [18:23:47]Write 302 bytes [18:23:47]NVStorageSaveData done [18:23:47]OFDSenderStorePacket done [18:23:47]KKMCreateOFDPacket done [18:23:47]NVStorageSaveData kkm_last_timestamp [18:23:47]File name is /storage/kkm_last_timestamp [18:23:47]Write 4 bytes [18:23:47]NVStorageSaveData done [18:23:47]ExternCall_PrintAddStr [18:23:47]wPrintStart [18:23:47]Write to MH i2c: 01 00 00 CE 24 F2 [18:23:47]Write i2c OK [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: 01 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: 01 07 00 [18:23:47]MH_I2C_Read... [18:23:47]Read from MH i2c: 01 07 00 CE 24 00 00 00 00 00 FF 0F 07 [18:23:47]RasterBufferAndPrint [18:23:47]line Счет N : (1)3309097 [18:23:47]line ИНН: 02508201610067 [18:23:47]line Контрольно-Кассовый Чек [18:23:47]line ПРОДАЖА [18:23:47]line ТРК (МРК, ГНК) : 5 [18:23:47]line Товар: 2710194210 [18:23:47]line ДТ(л)-К-5 [18:23:47]line 60.000 * 0.00 [18:23:47]line = 0.00 [18:23:47]line НДС 12% НСП 1% [18:23:47]line > о реализуемом товаре [18:23:47]line ИТОГО: 0.00 [18:23:47]line НСП 1% : 0.00 [18:23:47]line НДС 12% : 0.00 [18:23:47]line Наличными: 0.00 [18:23:47]line Безнал.: 0.00 [18:23:47]line Место: АЗС № 87 "Партнер Нефть" [18:23:47]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [18:23:47]line СНО: Общий режим [18:23:47]line Чек 108 24.10.2024 18:23 [18:23:47]line Смена: 529 ФФД: 1.0 [18:23:47]line ЗНМ: 0300000084 [18:23:47]line РНМ: 0000000000091622 [18:23:47]line Версия ККМ: 001 [18:23:47]line Талоны: ТК ГПНА Online [18:23:47]line 30098430 [18:23:47]line ФМ: 0000000000874674 [18:23:47]line ФД: 60033 [18:23:47]line ФПД: 161029319294598 [18:23:47]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182351&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60033&fm=161029319294598&tin=02508201610067®Number=0000000000091622&sum=0 [18:23:48]OFD Sender: Processing packet 60033 [packets to send 30, broken 29] [18:23:48]ProducePacketName [18:23:48]name=ofd_packets/00060033 [18:23:48]OFD Sender: To server: pG, [18:23:48]CommunicateWithHost lk.salyk.kg:30040 [18:23:48]ConnectInit lk.salyk.kg [18:23:48]written 0, free lines is 4095 [18:23:48]Connected sock=9 [18:23:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 01 00 00 36 24 08 01 48 0E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 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 6C 00 00 00 F4 03 04 00 B7 90 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 81 EA 00 00 35 04 06 00 92 74 8F 5F FE 86 6A D7 05 F0 43 6E B3 AA [18:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 2C F3 47 00 D8 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 34 36 37 34 10 04 04 00 81 EA 00 00 F4 03 04 00 A6 36 1A 67 B6 04 01 00 00 49 84 6B 2B 03 E4 52 00 [18:23:48]CommunicateWithHost err = 0 [18:23:48]CheckOFDResponse [18:23:48]1017 (14) - 77093643461234 [18:23:48]1041 (16) - 0000000000874674 [18:23:48]1040 (4) - 60033 [18:23:48]1012 (4) - 24.10.2024 11:59 [18:23:48]1206 (1) - 0 [18:23:48]OFD Sender: Remove packet 60033 [18:23:48]ProducePacketName [18:23:48]name=ofd_packets/00060033 [18:23:48]NVStorageDeleteData [18:23:48]Write to MH i2c: 01 00 00 F8 24 1C [18:23:48]Write i2c OK [18:23:48]MH_I2C_Read... [18:23:48]Read from MH i2c: 01 [18:23:48]MH_I2C_Read... [18:23:48]Read from MH i2c: 01 07 00 [18:23:48]MH_I2C_Read... [18:23:48]Read from MH i2c: 01 07 00 F8 24 00 00 00 00 00 D9 0C 08 [18:23:48]RasterBufferAndPrint [18:23:48]line [18:23:48]line [18:23:48]line [18:23:48]line [18:23:48]line [18:23:48]written 0, free lines is 3296 [18:23:48]MH_Cut [18:23:48]Write to MH i2c: D1 01 00 FF 24 01 F5 [18:23:48]Write i2c OK [18:23:48]MH_I2C_Read... [18:23:48]Read from MH i2c: D1 [18:23:48]MH_I2C_Read... [18:23:48]Read from MH i2c: D1 01 00 [18:23:48]MH_I2C_Read... [18:23:48]Read from MH i2c: D1 01 00 FF 24 00 F4 [18:23:48]Write to MH i2c: 01 00 00 00 25 25 [18:23:48]Write i2c OK [18:23:48]MH_I2C_Read... [18:23:49]OFD Sender: No OFD packet to send [18:23:49]*** Cut start [18:23:49]*** Partial cut [18:23:49]*** CUTSNS_PIN = 1 [18:23:49]*** CUTSNS_PIN = 0 [18:23:49]*** Brake cut motor [18:23:50]Read from MH i2c: 01 [18:23:50]MH_I2C_Read... [18:23:50]*** Stop cut motor [18:23:50]*** Cut end [18:23:50]Read from MH i2c: 01 07 00 [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: 01 07 00 00 25 00 00 00 00 00 FF 0F 3A [18:23:50]process_action close_receipt done [18:23:50]requested_data is exist [18:23:50]produce_requested_data [18:23:50]requested_item fm.sn is exist - process it [18:23:50]wFMCommunicate request_size=4 [18:23:50]MH_SAM_APDU [18:23:50]CAPDU: 80 11 00 00 [18:23:50]Write to MH i2c: E2 08 00 01 25 80 11 00 00 00 00 00 00 A0 [18:23:50]Write i2c OK [18:23:50]MH_I2C_Read... [18:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:50]Read from MH i2c: E2 [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: E2 17 00 [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: E2 17 00 01 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F7 [18:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:23:50]wFMCommunicate OK [18:23:50]requested_item fd.num is exist - process it [18:23:50]SAM_PROTO_GetFieldsCounters [18:23:50]wFMCommunicate request_size=4 [18:23:50]MH_SAM_APDU [18:23:50]CAPDU: 80 13 00 00 [18:23:50]Write to MH i2c: E2 08 00 02 25 80 13 00 00 00 00 00 00 A3 [18:23:50]Write i2c OK [18:23:50]MH_I2C_Read... [18:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:50]Read from MH i2c: E2 [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: E2 62 00 [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: E2 62 00 02 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 81 EA 00 00 0E 04 04 00 11 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 85 [18:23: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 81 EA 00 00 0E 04 04 00 11 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 [18:23:50]wFMCommunicate OK [18:23:50]SAM_PROTO_GetFieldsCounters done [18:23:50]requested_item shift.num is exist - process it [18:23:50]requested_item shift.opened is exist - process it [18:23:50]req_shift_opened [18:23:50]FM_GetShiftState [18:23:50]SAM_PROTO_GetShiftState [18:23:50]wFMCommunicate request_size=4 [18:23:50]MH_SAM_APDU [18:23:50]CAPDU: 80 13 01 00 [18:23:50]Write to MH i2c: E2 08 00 03 25 80 13 01 00 00 00 00 00 A5 [18:23:50]Write i2c OK [18:23:50]MH_I2C_Read... [18:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:50]Read from MH i2c: E2 [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: E2 0E 00 [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: E2 0E 00 03 25 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 D8 [18:23:50]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:23:50]wFMCommunicate OK [18:23:50]SAM_PROTO_GetShiftState done [18:23:50]FM_GetShiftState done [18:23:50]req_shift_opened done [18:23:50]requested_item shift.open_date is exist - process it [18:23:50]req_shift_open_date [18:23:50]req_shift_open_date done [18:23:50]produce_requested_data done [18:23:50]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60033,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [18:23:50]process_action_free close_receipt [18:23:50]json_value_free [18:23:50]json_value_free done [18:23:50]process_json_proto returns [18:23:50]Send response to host [18:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60033,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [18:23:50]free response buf [18:23:50]execute_script done [18:23:50]execute_script returns [18:23:50]free content buf [18:23:50]Sock 7.Close socket [18:23:50]Sock 7.Thread stoped [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [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:10]accept exits with 10 [18:29:10]New connection [18:29:10]New thread 3067108708 created [18:29:10]Thread 3067252068 joined [18:29:10]Waiting for new connection... [18:29:10] Sock 10.Parse request [18:29:10]Sock 10.Check first char [18:29:10]Sock 10.First char is OK [18:29:10]request: POST /json_proto HTTP/1.0 [18:29:10]Method: POST [18:29:10]URL: /json_proto [18:29:10]Method is POST - this is cgi request [18:29:10]url: /json_proto [18:29:10]query_string will be loaded in cgi processing [18:29:10]execute_cgi json_proto POST (null) [18:29:10]execute_cgi path=json_proto method=POST [18:29:10]POST find Content-Length [18:29:10]Host: 172.17.42.196:8080 [18:29:10]Content-Length: 652 [18:29:10]Content-Type: application/json [18:29:10] [18:29:10]POST finish read [18:29:10]Found Content-Length = 652 [18:29:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199813", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:10]execute_script... [18:29:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199813", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:10]POST & json_proto [18:29:10]process_json_proto [18:29:10]json parsed OK: [18:29:10]protocol is kg_v1.0 [18:29:10]action value=close_receipt [18:29:10]process_action close_receipt [18:29:10]cmd_close_receipt [18:29:10]MH_GetDate [18:29:10]Write to MH i2c: F0 00 00 04 25 18 [18:29:10]Write i2c OK [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: F0 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: F0 09 00 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: F0 09 00 04 25 00 FB 91 1A 67 FF C4 6B 64 C0 [18:29:10]GetLastDocTimeStamp 1729794231 [18:29:10]current date 1729794555 [18:29:10]FM_GetShiftState [18:29:10]SAM_PROTO_GetShiftState [18:29:10]wFMCommunicate request_size=4 [18:29:10]MH_SAM_APDU [18:29:10]CAPDU: 80 13 01 00 [18:29:10]Write to MH i2c: E2 08 00 05 25 80 13 01 00 00 00 00 00 A7 [18:29:10]Write i2c OK [18:29:10]MH_I2C_Read... [18:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:10]Read from MH i2c: E2 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: E2 0E 00 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: E2 0E 00 05 25 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 DA [18:29:10]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:29:10]wFMCommunicate OK [18:29:10]SAM_PROTO_GetShiftState done [18:29:10]FM_GetShiftState done [18:29:10]opened in 1729730575 [18:29:10]opened+sec_in_day 1729816975 [18:29:10]quantity*price = 7500 [18:29:10]sum+1 = 7501 [18:29:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 109 24.10.2024 18:29 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60034 ФПД: 80362163717801 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182915&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60034&fm=80362163717801&tin=02508201610067®Number=0000000000091622&sum=7500 0 [18:29:11]StoreToDocumentArchive [18:29:11]shift 529 fd 60034 [18:29:11]save to /storage/0529/doc_00060034 [18:29:11]save last doc name /storage/0529/doc_00060034 to /storage/kkm_last_doc_name [18:29:11]save OK [18:29:11]Clear old archive folders... [18:29:11]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:29:11]tlvbuf is 00DF0760 [18:29:11]SAM_PROTO_ClearQueue [18:29:11]wFMCommunicate request_size=4 [18:29:11]MH_SAM_APDU [18:29:11]CAPDU: 80 09 00 00 [18:29:11]Write to MH i2c: E2 08 00 12 25 80 09 00 00 00 00 00 00 A9 [18:29:11]Write i2c OK [18:29:11]MH_I2C_Read... [18:29:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:11]Read from MH i2c: E2 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 12 25 00 90 00 AB [18:29:11]RAPDU: 90 00 [18:29:11]wFMCommunicate OK [18:29:11]SAM_PROTO_ClearQueue done [18:29:11]KKMCreateOFDPacket [18:29:11]OFDProtocolAddRootSTLVToBuf [18:29:11]FM_MakeSignedData [18:29:11]FM_MakeSignedData [18:29:11]SAM_PROTO_SignData [18:29:11]wFMCommunicate request_size=4 [18:29:11]MH_SAM_APDU [18:29:11]CAPDU: 80 0D 01 02 [18:29:11]Write to MH i2c: E2 08 00 13 25 80 0D 01 02 00 00 00 00 B1 [18:29:11]Write i2c OK [18:29:11]MH_I2C_Read... [18:29:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:11]Read from MH i2c: E2 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 13 25 00 90 00 AC [18:29:11]RAPDU: 90 00 [18:29:11]wFMCommunicate OK [18:29:11]wFMCommunicate request_size=255 [18:29:11]MH_SAM_APDU [18:29:11]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 FB 91 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [18:29:11]Write to MH i2c: E2 02 01 14 25 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 FB 91 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 28 [18:29:11]Write i2c OK [18:29:11]MH_I2C_Read... [18:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:11]Read from MH i2c: E2 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 14 25 00 90 00 AD [18:29:11]RAPDU: 90 00 [18:29:11]wFMCommunicate OK [18:29:11]wFMCommunicate request_size=34 [18:29:11]MH_SAM_APDU [18:29:11]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 82 EA 00 00 35 04 06 00 49 16 C6 38 C6 A9 [18:29:11]Write to MH i2c: E2 25 00 15 25 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 82 EA 00 00 35 04 06 00 49 16 C6 38 C6 A9 00 00 B1 [18:29:11]Write i2c OK [18:29:11]MH_I2C_Read... [18:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:11]Read from MH i2c: E2 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 15 25 00 90 00 AE [18:29:11]RAPDU: 90 00 [18:29:11]wFMCommunicate OK [18:29:11]wFMCommunicate request_size=4 [18:29:11]MH_SAM_APDU [18:29:11]CAPDU: 80 0D 03 02 [18:29:11]Write to MH i2c: E2 08 00 16 25 80 0D 03 02 00 00 00 00 B6 [18:29:11]Write i2c OK [18:29:11]MH_I2C_Read... [18:29:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:11]Read from MH i2c: E2 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 0B 00 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 0B 00 16 25 00 FC 12 40 FE E5 2E C7 56 90 00 33 [18:29:11]RAPDU: FC 12 40 FE E5 2E C7 56 90 00 [18:29:11]wFMCommunicate OK [18:29:11]SAM_PROTO_SignData done [18:29:11]FM_MakeSignedData done [18:29:11]CreateOFDProtocolMessage [18:29:11]wFMCommunicate request_size=4 [18:29:11]MH_SAM_APDU [18:29:11]CAPDU: 80 11 00 00 [18:29:11]Write to MH i2c: E2 08 00 17 25 80 11 00 00 00 00 00 00 B6 [18:29:11]Write i2c OK [18:29:11]MH_I2C_Read... [18:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:12]Read from MH i2c: E2 [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: E2 17 00 [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: E2 17 00 17 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 0D [18:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:29:12]wFMCommunicate OK [18:29:12]CreateOFDProtocolMessage done [18:29:12]OFDSenderStorePacket 60034 [18:29:12]StoreOFDPacket docnum=60034 [18:29:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 43 39 1F 01 FD 2F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 FB 91 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 82 EA 00 00 35 04 06 00 49 16 C6 38 C6 A9 FC 12 40 FE E5 2E C7 56 [18:29:12]CheckFolder [18:29:12]dirname=/storage/ofd_packets [18:29:12]CheckFolder done [18:29:12]ProducePacketName [18:29:12]name=ofd_packets/00060034 [18:29:12]NVStorageSaveData ofd_packets/00060034 [18:29:12]File name is /storage/ofd_packets/00060034 [18:29:12]Write 325 bytes [18:29:12]NVStorageSaveData done [18:29:12]OFDSenderStorePacket done [18:29:12]KKMCreateOFDPacket done [18:29:12]NVStorageSaveData kkm_last_timestamp [18:29:12]File name is /storage/kkm_last_timestamp [18:29:12]Write 4 bytes [18:29:12]NVStorageSaveData done [18:29:12]ExternCall_PrintAddStr [18:29:12]wPrintStart [18:29:12]Write to MH i2c: 01 00 00 18 25 3D [18:29:12]Write i2c OK [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: 01 [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: 01 07 00 [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: 01 07 00 18 25 00 00 00 00 00 FF 0F 52 [18:29:12]RasterBufferAndPrint [18:29:12]line Счет N : (3)199813 [18:29:12]line ИНН: 02508201610067 [18:29:12]line Контрольно-Кассовый Чек [18:29:12]line ПРОДАЖА [18:29:12]line Товар: 54491472 [18:29:12]line Напиток Кока-Кола 0,5л [18:29:12]line 1.000 * 75.00 [18:29:12]line = 75.00 [18:29:12]line НДС 12% НСП 1% [18:29:12]line > о реализуемом товаре [18:29:12]line ИТОГО: 75.00 [18:29:12]line НСП 1% : 0.66 [18:29:12]line НДС 12% : 7.96 [18:29:12]line Наличными: 75.00 [18:29:12]line Безнал.: 0.00 [18:29:12]line Место: АЗС № 87 "Партнер Нефть" [18:29:12]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [18:29:12]line СНО: Общий режим [18:29:12]line Чек 109 24.10.2024 18:29 [18:29:12]line Смена: 529 ФФД: 1.0 [18:29:12]line ЗНМ: 0300000084 [18:29:12]line РНМ: 0000000000091622 [18:29:12]line Версия ККМ: 001 [18:29:12]line ФМ: 0000000000874674 [18:29:12]line ФД: 60034 [18:29:12]line ФПД: 80362163717801 [18:29:12]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182915&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60034&fm=80362163717801&tin=02508201610067®Number=0000000000091622&sum=7500 [18:29:12]line 0 [18:29:12]OFD Sender: Processing packet 60034 [packets to send 30, broken 29] [18:29:12]ProducePacketName [18:29:12]name=ofd_packets/00060034 [18:29:12]OFD Sender: To server: pG, [18:29:12]CommunicateWithHost lk.salyk.kg:30040 [18:29:12]ConnectInit lk.salyk.kg [18:29:12]written 0, free lines is 4095 [18:29:12]Connected sock=9 [18:29:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 43 39 1F 01 FD 2F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 FB 91 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 82 EA 00 00 35 04 06 00 49 16 C6 38 C6 A9 FC 12 40 FE E5 2E C7 56 [18:29:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 0F F8 47 00 75 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 34 36 37 34 10 04 04 00 82 EA 00 00 F4 03 04 00 EB 37 1A 67 B6 04 01 00 00 98 26 06 F3 FA C8 B3 1A [18:29:12]CommunicateWithHost err = 0 [18:29:12]CheckOFDResponse [18:29:12]1017 (14) - 77093643461234 [18:29:12]1041 (16) - 0000000000874674 [18:29:12]1040 (4) - 60034 [18:29:12]1012 (4) - 24.10.2024 12:04 [18:29:12]1206 (1) - 0 [18:29:12]OFD Sender: Remove packet 60034 [18:29:12]ProducePacketName [18:29:12]name=ofd_packets/00060034 [18:29:12]NVStorageDeleteData [18:29:12]Write to MH i2c: 01 00 00 40 25 65 [18:29:12]Write i2c OK [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: 01 [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: 01 07 00 [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: 01 07 00 40 25 00 00 00 00 00 01 0D 7A [18:29:12]RasterBufferAndPrint [18:29:12]line [18:29:12]line [18:29:12]line [18:29:12]line [18:29:12]line [18:29:12]written 0, free lines is 3336 [18:29:12]MH_Cut [18:29:12]Write to MH i2c: D1 01 00 47 25 01 3E [18:29:12]Write i2c OK [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: D1 [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: D1 01 00 [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: D1 01 00 47 25 00 3D [18:29:12]Write to MH i2c: 01 00 00 48 25 6D [18:29:12]Write i2c OK [18:29:12]MH_I2C_Read... [18:29:13]OFD Sender: No OFD packet to send [18:29:13]*** Cut start [18:29:13]*** Partial cut [18:29:13]*** CUTSNS_PIN = 1 [18:29:13]*** CUTSNS_PIN = 0 [18:29:13]*** Brake cut motor [18:29:14]Read from MH i2c: 01 [18:29:14]MH_I2C_Read... [18:29:14]*** Stop cut motor [18:29:14]*** Cut end [18:29:14]Read from MH i2c: 01 07 00 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: 01 07 00 48 25 00 00 00 00 00 FF 0F 82 [18:29:14]process_action close_receipt done [18:29:14]requested_data is exist [18:29:14]produce_requested_data [18:29:14]requested_item fm.sn is exist - process it [18:29:14]wFMCommunicate request_size=4 [18:29:14]MH_SAM_APDU [18:29:14]CAPDU: 80 11 00 00 [18:29:14]Write to MH i2c: E2 08 00 49 25 80 11 00 00 00 00 00 00 E8 [18:29:14]Write i2c OK [18:29:14]MH_I2C_Read... [18:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:14]Read from MH i2c: E2 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 17 00 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 17 00 49 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 3F [18:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:29:14]wFMCommunicate OK [18:29:14]requested_item fd.num is exist - process it [18:29:14]SAM_PROTO_GetFieldsCounters [18:29:14]wFMCommunicate request_size=4 [18:29:14]MH_SAM_APDU [18:29:14]CAPDU: 80 13 00 00 [18:29:14]Write to MH i2c: E2 08 00 4A 25 80 13 00 00 00 00 00 00 EB [18:29:14]Write i2c OK [18:29:14]MH_I2C_Read... [18:29:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:14]Read from MH i2c: E2 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 62 00 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 62 00 4A 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 82 EA 00 00 0E 04 04 00 11 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 D1 [18:29:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 82 EA 00 00 0E 04 04 00 11 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 [18:29:14]wFMCommunicate OK [18:29:14]SAM_PROTO_GetFieldsCounters done [18:29:14]requested_item shift.num is exist - process it [18:29:14]requested_item shift.opened is exist - process it [18:29:14]req_shift_opened [18:29:14]FM_GetShiftState [18:29:14]SAM_PROTO_GetShiftState [18:29:14]wFMCommunicate request_size=4 [18:29:14]MH_SAM_APDU [18:29:14]CAPDU: 80 13 01 00 [18:29:14]Write to MH i2c: E2 08 00 4B 25 80 13 01 00 00 00 00 00 ED [18:29:14]Write i2c OK [18:29:14]MH_I2C_Read... [18:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:14]Read from MH i2c: E2 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 0E 00 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 0E 00 4B 25 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 20 [18:29:14]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:29:14]wFMCommunicate OK [18:29:14]SAM_PROTO_GetShiftState done [18:29:14]FM_GetShiftState done [18:29:14]req_shift_opened done [18:29:14]requested_item shift.open_date is exist - process it [18:29:14]req_shift_open_date [18:29:14]req_shift_open_date done [18:29:14]produce_requested_data done [18:29:14]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60034,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [18:29:14]process_action_free close_receipt [18:29:14]json_value_free [18:29:14]json_value_free done [18:29:14]process_json_proto returns [18:29:14]Send response to host [18:29:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60034,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [18:29:14]free response buf [18:29:14]execute_script done [18:29:14]execute_script returns [18:29:14]free content buf [18:29:14]Sock 10.Close socket [18:29:14]Sock 10.Thread stoped [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:42]accept exits with 7 [18:33:42]New connection [18:33:42]New thread 3067252068 created [18:33:42]Thread 3067108708 joined [18:33:42]Waiting for new connection... [18:33:42] Sock 7.Parse request [18:33:42]Sock 7.Check first char [18:33:42]Sock 7.First char is OK [18:33:42]request: POST /json_proto HTTP/1.0 [18:33:42]Method: POST [18:33:42]URL: /json_proto [18:33:42]Method is POST - this is cgi request [18:33:42]url: /json_proto [18:33:42]query_string will be loaded in cgi processing [18:33:42]execute_cgi json_proto POST (null) [18:33:42]execute_cgi path=json_proto method=POST [18:33:42]POST find Content-Length [18:33:42]Host: 172.17.42.196:8080 [18:33:42]Content-Length: 644 [18:33:42]Content-Type: application/json [18:33:42] [18:33:42]POST finish read [18:33:42]Found Content-Length = 644 [18:33:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199814", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:42]execute_script... [18:33:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199814", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:42]POST & json_proto [18:33:42]process_json_proto [18:33:42]json parsed OK: [18:33:42]protocol is kg_v1.0 [18:33:42]action value=close_receipt [18:33:42]process_action close_receipt [18:33:42]cmd_close_receipt [18:33:42]MH_GetDate [18:33:42]Write to MH i2c: F0 00 00 4C 25 60 [18:33:42]Write i2c OK [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: F0 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: F0 09 00 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: F0 09 00 4C 25 00 0B 93 1A 67 FF C4 6B 64 1A [18:33:42]GetLastDocTimeStamp 1729794555 [18:33:42]current date 1729794827 [18:33:42]FM_GetShiftState [18:33:42]SAM_PROTO_GetShiftState [18:33:42]wFMCommunicate request_size=4 [18:33:42]MH_SAM_APDU [18:33:42]CAPDU: 80 13 01 00 [18:33:42]Write to MH i2c: E2 08 00 4D 25 80 13 01 00 00 00 00 00 EF [18:33:42]Write i2c OK [18:33:42]MH_I2C_Read... [18:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:42]Read from MH i2c: E2 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: E2 0E 00 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: E2 0E 00 4D 25 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 22 [18:33:42]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:33:42]wFMCommunicate OK [18:33:42]SAM_PROTO_GetShiftState done [18:33:42]FM_GetShiftState done [18:33:42]opened in 1729730575 [18:33:42]opened+sec_in_day 1729816975 [18:33:42]quantity*price = 11500 [18:33:42]sum+1 = 11501 [18:33:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 110 24.10.2024 18:33 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60035 ФПД: 190440516968355 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183347&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60035&fm=190440516968355&tin=02508201610067®Number=0000000000091622&sum=11500 0 [18:33:43]StoreToDocumentArchive [18:33:43]shift 529 fd 60035 [18:33:43]save to /storage/0529/doc_00060035 [18:33:43]save last doc name /storage/0529/doc_00060035 to /storage/kkm_last_doc_name [18:33:43]save OK [18:33:43]Clear old archive folders... [18:33:43]ProcessDocumentItem done err = 0, tmpTLVsize=280 [18:33:43]tlvbuf is 00DA82E0 [18:33:43]SAM_PROTO_ClearQueue [18:33:43]wFMCommunicate request_size=4 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 09 00 00 [18:33:43]Write to MH i2c: E2 08 00 5A 25 80 09 00 00 00 00 00 00 F1 [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:43]Read from MH i2c: E2 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 5A 25 00 90 00 F3 [18:33:43]RAPDU: 90 00 [18:33:43]wFMCommunicate OK [18:33:43]SAM_PROTO_ClearQueue done [18:33:43]KKMCreateOFDPacket [18:33:43]OFDProtocolAddRootSTLVToBuf [18:33:43]FM_MakeSignedData [18:33:43]FM_MakeSignedData [18:33:43]SAM_PROTO_SignData [18:33:43]wFMCommunicate request_size=4 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 0D 01 02 [18:33:43]Write to MH i2c: E2 08 00 5B 25 80 0D 01 02 00 00 00 00 F9 [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:43]Read from MH i2c: E2 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 5B 25 00 90 00 F4 [18:33:43]RAPDU: 90 00 [18:33:43]wFMCommunicate OK [18:33:43]wFMCommunicate request_size=255 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 0B 93 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 [18:33:43]Write to MH i2c: E2 02 01 5C 25 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 0B 93 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 00 00 D4 [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:43]Read from MH i2c: E2 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 5C 25 00 90 00 F5 [18:33:43]RAPDU: 90 00 [18:33:43]wFMCommunicate OK [18:33:43]wFMCommunicate request_size=39 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 83 EA 00 00 35 04 06 00 AD 34 63 5D 5F A3 [18:33:43]Write to MH i2c: E2 2A 00 5D 25 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 83 EA 00 00 35 04 06 00 AD 34 63 5D 5F A3 00 00 CB [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:43]Read from MH i2c: E2 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 5D 25 00 90 00 F6 [18:33:43]RAPDU: 90 00 [18:33:43]wFMCommunicate OK [18:33:43]wFMCommunicate request_size=4 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 0D 03 02 [18:33:43]Write to MH i2c: E2 08 00 5E 25 80 0D 03 02 00 00 00 00 FE [18:33:43]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:44]Read from MH i2c: E2 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 0B 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 0B 00 5E 25 00 9D CB 40 DE 10 C5 3E 27 90 00 BF [18:33:44]RAPDU: 9D CB 40 DE 10 C5 3E 27 90 00 [18:33:44]wFMCommunicate OK [18:33:44]SAM_PROTO_SignData done [18:33:44]FM_MakeSignedData done [18:33:44]CreateOFDProtocolMessage [18:33:44]wFMCommunicate request_size=4 [18:33:44]MH_SAM_APDU [18:33:44]CAPDU: 80 11 00 00 [18:33:44]Write to MH i2c: E2 08 00 5F 25 80 11 00 00 00 00 00 00 FE [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:44]Read from MH i2c: E2 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 17 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 17 00 5F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 55 [18:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:33:44]wFMCommunicate OK [18:33:44]CreateOFDProtocolMessage done [18:33:44]OFDSenderStorePacket 60035 [18:33:44]StoreOFDPacket docnum=60035 [18:33:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2C 01 00 00 71 EB 24 01 07 15 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 0B 93 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 83 EA 00 00 35 04 06 00 AD 34 63 5D 5F A3 9D CB 40 DE 10 C5 3E 27 [18:33:44]CheckFolder [18:33:44]dirname=/storage/ofd_packets [18:33:44]CheckFolder done [18:33:44]ProducePacketName [18:33:44]name=ofd_packets/00060035 [18:33:44]NVStorageSaveData ofd_packets/00060035 [18:33:44]File name is /storage/ofd_packets/00060035 [18:33:44]Write 330 bytes [18:33:44]NVStorageSaveData done [18:33:44]OFDSenderStorePacket done [18:33:44]KKMCreateOFDPacket done [18:33:44]NVStorageSaveData kkm_last_timestamp [18:33:44]File name is /storage/kkm_last_timestamp [18:33:44]Write 4 bytes [18:33:44]NVStorageSaveData done [18:33:44]ExternCall_PrintAddStr [18:33:44]wPrintStart [18:33:44]Write to MH i2c: 01 00 00 60 25 85 [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: 01 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: 01 07 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: 01 07 00 60 25 00 00 00 00 00 FF 0F 9A [18:33:44]RasterBufferAndPrint [18:33:44]line Счет N : (3)199814 [18:33:44]line ИНН: 02508201610067 [18:33:44]line Контрольно-Кассовый Чек [18:33:44]line ПРОДАЖА [18:33:44]line Товар: 2000036210013 [18:33:44]line Кофе Капучино (GABB TRADE) [18:33:44]line 1.000 * 115.00 [18:33:44]line = 115.00 [18:33:44]line НДС 12% НСП 1% [18:33:44]line > о реализуемом товаре [18:33:44]line ИТОГО: 115.00 [18:33:44]line НСП 1% : 1.02 [18:33:44]line НДС 12% : 12.21 [18:33:44]line Наличными: 115.00 [18:33:44]line Безнал.: 0.00 [18:33:44]line Место: АЗС № 87 "Партнер Нефть" [18:33:44]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [18:33:44]line СНО: Общий режим [18:33:44]line Чек 110 24.10.2024 18:33 [18:33:44]line Смена: 529 ФФД: 1.0 [18:33:44]line ЗНМ: 0300000084 [18:33:44]line РНМ: 0000000000091622 [18:33:44]line Версия ККМ: 001 [18:33:44]line ФМ: 0000000000874674 [18:33:44]line ФД: 60035 [18:33:44]line ФПД: 190440516968355 [18:33:44]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183347&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60035&fm=190440516968355&tin=02508201610067®Number=0000000000091622&sum=11500 [18:33:44]line 0 [18:33:44]OFD Sender: Processing packet 60035 [packets to send 30, broken 29] [18:33:44]ProducePacketName [18:33:44]name=ofd_packets/00060035 [18:33:44]OFD Sender: To server: pG, [18:33:44]CommunicateWithHost lk.salyk.kg:30040 [18:33:44]ConnectInit lk.salyk.kg [18:33:44]written 0, free lines is 4095 [18:33:44]Connected sock=10 [18:33:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2C 01 00 00 71 EB 24 01 07 15 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 0B 93 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 83 EA 00 00 35 04 06 00 AD 34 63 5D 5F A3 9D CB 40 DE 10 C5 3E 27 [18:33:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 AB 30 47 00 BD 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 34 36 37 34 10 04 04 00 83 EA 00 00 F4 03 04 00 FB 38 1A 67 B6 04 01 00 00 90 45 9E E1 51 6A 54 FE [18:33:44]CommunicateWithHost err = 0 [18:33:44]CheckOFDResponse [18:33:44]1017 (14) - 77093643461234 [18:33:44]1041 (16) - 0000000000874674 [18:33:44]1040 (4) - 60035 [18:33:44]1012 (4) - 24.10.2024 12:09 [18:33:44]1206 (1) - 0 [18:33:44]OFD Sender: Remove packet 60035 [18:33:44]ProducePacketName [18:33:44]name=ofd_packets/00060035 [18:33:44]NVStorageDeleteData [18:33:44]Write to MH i2c: 01 00 00 88 25 AD [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: 01 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: 01 07 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: 01 07 00 88 25 00 00 00 00 00 01 0D C2 [18:33:44]RasterBufferAndPrint [18:33:44]line [18:33:44]line [18:33:44]line [18:33:44]line [18:33:44]line [18:33:44]written 0, free lines is 3336 [18:33:44]MH_Cut [18:33:44]Write to MH i2c: D1 01 00 8F 25 01 86 [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: D1 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: D1 01 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: D1 01 00 8F 25 00 85 [18:33:44]Write to MH i2c: 01 00 00 90 25 B5 [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:45]OFD Sender: No OFD packet to send [18:33:45]*** Cut start [18:33:45]*** Partial cut [18:33:45]*** CUTSNS_PIN = 1 [18:33:45]*** CUTSNS_PIN = 0 [18:33:45]*** Brake cut motor [18:33:46]Read from MH i2c: 01 [18:33:46]MH_I2C_Read... [18:33:46]*** Stop cut motor [18:33:46]*** Cut end [18:33:46]Read from MH i2c: 01 07 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: 01 07 00 90 25 00 00 00 00 00 FF 0F CA [18:33:46]process_action close_receipt done [18:33:46]requested_data is exist [18:33:46]produce_requested_data [18:33:46]requested_item fm.sn is exist - process it [18:33:46]wFMCommunicate request_size=4 [18:33:46]MH_SAM_APDU [18:33:46]CAPDU: 80 11 00 00 [18:33:46]Write to MH i2c: E2 08 00 91 25 80 11 00 00 00 00 00 00 30 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:46]Read from MH i2c: E2 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 17 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 17 00 91 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 87 [18:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:33:46]wFMCommunicate OK [18:33:46]requested_item fd.num is exist - process it [18:33:46]SAM_PROTO_GetFieldsCounters [18:33:46]wFMCommunicate request_size=4 [18:33:46]MH_SAM_APDU [18:33:46]CAPDU: 80 13 00 00 [18:33:46]Write to MH i2c: E2 08 00 92 25 80 13 00 00 00 00 00 00 33 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:46]Read from MH i2c: E2 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 62 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 62 00 92 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 83 EA 00 00 0E 04 04 00 11 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 1D [18:33: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 83 EA 00 00 0E 04 04 00 11 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 [18:33:46]wFMCommunicate OK [18:33:46]SAM_PROTO_GetFieldsCounters done [18:33:46]requested_item shift.num is exist - process it [18:33:46]requested_item shift.opened is exist - process it [18:33:46]req_shift_opened [18:33:46]FM_GetShiftState [18:33:46]SAM_PROTO_GetShiftState [18:33:46]wFMCommunicate request_size=4 [18:33:46]MH_SAM_APDU [18:33:46]CAPDU: 80 13 01 00 [18:33:46]Write to MH i2c: E2 08 00 93 25 80 13 01 00 00 00 00 00 35 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:46]Read from MH i2c: E2 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 0E 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 0E 00 93 25 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 68 [18:33:46]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:33:46]wFMCommunicate OK [18:33:46]SAM_PROTO_GetShiftState done [18:33:46]FM_GetShiftState done [18:33:46]req_shift_opened done [18:33:46]requested_item shift.open_date is exist - process it [18:33:46]req_shift_open_date [18:33:46]req_shift_open_date done [18:33:46]produce_requested_data done [18:33:46]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60035,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [18:33:46]process_action_free close_receipt [18:33:46]json_value_free [18:33:46]json_value_free done [18:33:46]process_json_proto returns [18:33:46]Send response to host [18:33:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60035,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [18:33:46]free response buf [18:33:46]execute_script done [18:33:46]execute_script returns [18:33:46]free content buf [18:33:46]Sock 7.Close socket [18:33:46]Sock 7.Thread stoped [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:27]accept exits with 9 [18:34:27]New connection [18:34:27]New thread 3067108708 created [18:34:27]Thread 3067252068 joined [18:34:27]Waiting for new connection... [18:34:27] Sock 9.Parse request [18:34:27]Sock 9.Check first char [18:34:27]Sock 9.First char is OK [18:34:27]request: POST /json_proto HTTP/1.0 [18:34:27]Method: POST [18:34:27]URL: /json_proto [18:34:27]Method is POST - this is cgi request [18:34:27]url: /json_proto [18:34:27]query_string will be loaded in cgi processing [18:34:27]execute_cgi json_proto POST (null) [18:34:27]execute_cgi path=json_proto method=POST [18:34:27]POST find Content-Length [18:34:27]Host: 172.17.42.196:8080 [18:34:27]Content-Length: 870 [18:34:27]Content-Type: application/json [18:34:27] [18:34:27]POST finish read [18:34:27]Found Content-Length = 870 [18:34:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199815", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:27]execute_script... [18:34:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199815", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:27]POST & json_proto [18:34:27]process_json_proto [18:34:27]json parsed OK: [18:34:27]protocol is kg_v1.0 [18:34:27]action value=close_receipt [18:34:27]process_action close_receipt [18:34:27]cmd_close_receipt [18:34:27]MH_GetDate [18:34:27]Write to MH i2c: F0 00 00 94 25 A8 [18:34:27]Write i2c OK [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: F0 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: F0 09 00 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: F0 09 00 94 25 00 38 93 1A 67 FF C4 6B 64 8F [18:34:27]GetLastDocTimeStamp 1729794827 [18:34:27]current date 1729794872 [18:34:27]FM_GetShiftState [18:34:27]SAM_PROTO_GetShiftState [18:34:27]wFMCommunicate request_size=4 [18:34:27]MH_SAM_APDU [18:34:27]CAPDU: 80 13 01 00 [18:34:27]Write to MH i2c: E2 08 00 95 25 80 13 01 00 00 00 00 00 37 [18:34:27]Write i2c OK [18:34:27]MH_I2C_Read... [18:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:27]Read from MH i2c: E2 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 0E 00 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 0E 00 95 25 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 6A [18:34:27]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:34:27]wFMCommunicate OK [18:34:27]SAM_PROTO_GetShiftState done [18:34:27]FM_GetShiftState done [18:34:27]opened in 1729730575 [18:34:27]opened+sec_in_day 1729816975 [18:34:27]quantity*price = 14400 [18:34:27]sum+1 = 14401 [18:34:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 194.00 НСП 1% : 1.71 НДС 12% : 20.60 Наличными: 194.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 111 24.10.2024 18:34 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60036 ФПД: 65973769937181 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183432&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60036&fm=65973769937181&tin=02508201610067®Number=0000000000091622&sum=19400 0 [18:34:28]StoreToDocumentArchive [18:34:28]shift 529 fd 60036 [18:34:28]save to /storage/0529/doc_00060036 [18:34:28]save last doc name /storage/0529/doc_00060036 to /storage/kkm_last_doc_name [18:34:28]save OK [18:34:28]Clear old archive folders... [18:34:28]ProcessDocumentItem done err = 0, tmpTLVsize=374 [18:34:28]tlvbuf is 00D8BF10 [18:34:28]SAM_PROTO_ClearQueue [18:34:28]wFMCommunicate request_size=4 [18:34:28]MH_SAM_APDU [18:34:28]CAPDU: 80 09 00 00 [18:34:28]Write to MH i2c: E2 08 00 A2 25 80 09 00 00 00 00 00 00 39 [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:28]Read from MH i2c: E2 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 03 00 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 03 00 A2 25 00 90 00 3B [18:34:28]RAPDU: 90 00 [18:34:28]wFMCommunicate OK [18:34:28]SAM_PROTO_ClearQueue done [18:34:28]KKMCreateOFDPacket [18:34:28]OFDProtocolAddRootSTLVToBuf [18:34:28]FM_MakeSignedData [18:34:28]FM_MakeSignedData [18:34:28]SAM_PROTO_SignData [18:34:28]wFMCommunicate request_size=4 [18:34:28]MH_SAM_APDU [18:34:28]CAPDU: 80 0D 01 02 [18:34:28]Write to MH i2c: E2 08 00 A3 25 80 0D 01 02 00 00 00 00 41 [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:28]Read from MH i2c: E2 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 03 00 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 03 00 A3 25 00 90 00 3C [18:34:28]RAPDU: 90 00 [18:34:28]wFMCommunicate OK [18:34:28]wFMCommunicate request_size=255 [18:34:28]MH_SAM_APDU [18:34:28]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 [18:34:28]Write to MH i2c: E2 02 01 A4 25 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 00 00 E5 [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 A4 25 00 90 00 3D [18:34:29]RAPDU: 90 00 [18:34:29]wFMCommunicate OK [18:34:29]wFMCommunicate request_size=133 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 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 38 93 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 84 EA 00 00 35 04 06 00 3C 00 B7 1F 21 1D [18:34:29]Write to MH i2c: E2 88 00 A5 25 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 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 38 93 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 84 EA 00 00 35 04 06 00 3C 00 B7 1F 21 1D 00 00 23 [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 A5 25 00 90 00 3E [18:34:29]RAPDU: 90 00 [18:34:29]wFMCommunicate OK [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 0D 03 02 [18:34:29]Write to MH i2c: E2 08 00 A6 25 80 0D 03 02 00 00 00 00 46 [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 0B 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 0B 00 A6 25 00 06 EA 8A F1 06 13 B4 7A 90 00 F9 [18:34:29]RAPDU: 06 EA 8A F1 06 13 B4 7A 90 00 [18:34:29]wFMCommunicate OK [18:34:29]SAM_PROTO_SignData done [18:34:29]FM_MakeSignedData done [18:34:29]CreateOFDProtocolMessage [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 11 00 00 [18:34:29]Write to MH i2c: E2 08 00 A7 25 80 11 00 00 00 00 00 00 46 [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 17 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 17 00 A7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 9D [18:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:34:29]wFMCommunicate OK [18:34:29]CreateOFDProtocolMessage done [18:34:29]OFDSenderStorePacket 60036 [18:34:29]StoreOFDPacket docnum=60036 [18:34:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 8A 01 00 00 4A E0 82 01 88 BD 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 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 38 93 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 84 EA 00 00 35 04 06 00 3C 00 B7 1F 21 1D 06 EA 8A F1 06 13 B4 7A [18:34:29]CheckFolder [18:34:29]dirname=/storage/ofd_packets [18:34:29]CheckFolder done [18:34:29]ProducePacketName [18:34:29]name=ofd_packets/00060036 [18:34:29]NVStorageSaveData ofd_packets/00060036 [18:34:29]File name is /storage/ofd_packets/00060036 [18:34:29]Write 424 bytes [18:34:29]NVStorageSaveData done [18:34:29]OFDSenderStorePacket done [18:34:29]KKMCreateOFDPacket done [18:34:29]NVStorageSaveData kkm_last_timestamp [18:34:29]File name is /storage/kkm_last_timestamp [18:34:29]Write 4 bytes [18:34:29]NVStorageSaveData done [18:34:29]ExternCall_PrintAddStr [18:34:29]wPrintStart [18:34:29]Write to MH i2c: 01 00 00 A8 25 CD [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: 01 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: 01 07 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: 01 07 00 A8 25 00 00 00 00 00 FF 0F E2 [18:34:29]RasterBufferAndPrint [18:34:29]line Счет N : (3)199815 [18:34:29]line ИНН: 02508201610067 [18:34:29]line Контрольно-Кассовый Чек [18:34:29]line ПРОДАЖА [18:34:29]line Товар: 48743587 [18:34:29]line Сигареты Winston XStyle Silver [18:34:29]line 1.000 * 144.00 [18:34:29]line = 144.00 [18:34:29]line НДС 12% НСП 1% [18:34:29]line > о реализуемом товаре [18:34:29]line Товар: 4700000160358 [18:34:29]line Вода Легенда 1л [18:34:29]line 1.000 * 50.00 [18:34:29]line = 50.00 [18:34:29]line НДС 12% НСП 1% [18:34:29]line > о реализуемом товаре [18:34:29]line ИТОГО: 194.00 [18:34:29]line НСП 1% : 1.71 [18:34:29]line НДС 12% : 20.60 [18:34:29]line Наличными: 194.00 [18:34:29]line Безнал.: 0.00 [18:34:29]line Место: АЗС № 87 "Партнер Нефть" [18:34:29]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [18:34:29]line СНО: Общий режим [18:34:29]line Чек 111 24.10.2024 18:34 [18:34:29]line Смена: 529 ФФД: 1.0 [18:34:29]line ЗНМ: 0300000084 [18:34:29]line РНМ: 0000000000091622 [18:34:29]line Версия ККМ: 001 [18:34:29]line ФМ: 0000000000874674 [18:34:29]line ФД: 60036 [18:34:29]line ФПД: 65973769937181 [18:34:29]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183432&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60036&fm=65973769937181&tin=02508201610067®Number=0000000000091622&sum=19400 [18:34:29]line 0 [18:34:29]OFD Sender: Processing packet 60036 [packets to send 30, broken 29] [18:34:29]ProducePacketName [18:34:29]name=ofd_packets/00060036 [18:34:29]OFD Sender: To server: pG, [18:34:29]CommunicateWithHost lk.salyk.kg:30040 [18:34:29]ConnectInit lk.salyk.kg [18:34:29]written 0, free lines is 4095 [18:34:29]Connected sock=11 [18:34:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 8A 01 00 00 4A E0 82 01 88 BD 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 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 38 93 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 84 EA 00 00 35 04 06 00 3C 00 B7 1F 21 1D 06 EA 8A F1 06 13 B4 7A [18:34:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 9D 82 47 00 25 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 34 36 37 34 10 04 04 00 84 EA 00 00 F4 03 04 00 28 39 1A 67 B6 04 01 00 00 9B 95 83 7E AA F3 73 36 [18:34:29]CommunicateWithHost err = 0 [18:34:29]CheckOFDResponse [18:34:29]1017 (14) - 77093643461234 [18:34:29]1041 (16) - 0000000000874674 [18:34:29]1040 (4) - 60036 [18:34:29]1012 (4) - 24.10.2024 12:10 [18:34:29]1206 (1) - 0 [18:34:29]OFD Sender: Remove packet 60036 [18:34:29]ProducePacketName [18:34:29]name=ofd_packets/00060036 [18:34:29]NVStorageDeleteData [18:34:30]Write to MH i2c: 01 00 00 D7 25 FC [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: 01 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: 01 07 00 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: 01 07 00 D7 25 00 00 00 00 00 8C 0C 9B [18:34:30]RasterBufferAndPrint [18:34:30]line [18:34:30]line [18:34:30]line [18:34:30]line [18:34:30]line [18:34:30]written 0, free lines is 3219 [18:34:30]MH_Cut [18:34:30]Write to MH i2c: D1 01 00 DE 25 01 D5 [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: D1 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: D1 01 00 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: D1 01 00 DE 25 00 D4 [18:34:30]Write to MH i2c: 01 00 00 DF 25 04 [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]OFD Sender: No OFD packet to send [18:34:30]*** Cut start [18:34:30]*** Partial cut [18:34:30]*** CUTSNS_PIN = 1 [18:34:31]*** CUTSNS_PIN = 0 [18:34:31]*** Brake cut motor [18:34:31]Read from MH i2c: 01 [18:34:31]MH_I2C_Read... [18:34:31]*** Stop cut motor [18:34:31]*** Cut end [18:34:31]Read from MH i2c: 01 07 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: 01 07 00 DF 25 00 00 00 00 00 FF 0F 19 [18:34:31]process_action close_receipt done [18:34:31]requested_data is exist [18:34:31]produce_requested_data [18:34:31]requested_item fm.sn is exist - process it [18:34:31]wFMCommunicate request_size=4 [18:34:31]MH_SAM_APDU [18:34:31]CAPDU: 80 11 00 00 [18:34:31]Write to MH i2c: E2 08 00 E0 25 80 11 00 00 00 00 00 00 7F [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:31]Read from MH i2c: E2 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 17 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 17 00 E0 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 D6 [18:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:34:31]wFMCommunicate OK [18:34:31]requested_item fd.num is exist - process it [18:34:31]SAM_PROTO_GetFieldsCounters [18:34:31]wFMCommunicate request_size=4 [18:34:31]MH_SAM_APDU [18:34:31]CAPDU: 80 13 00 00 [18:34:31]Write to MH i2c: E2 08 00 E1 25 80 13 00 00 00 00 00 00 82 [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:31]Read from MH i2c: E2 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 62 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 62 00 E1 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 84 EA 00 00 0E 04 04 00 11 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 70 [18:34: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 84 EA 00 00 0E 04 04 00 11 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 [18:34:31]wFMCommunicate OK [18:34:31]SAM_PROTO_GetFieldsCounters done [18:34:31]requested_item shift.num is exist - process it [18:34:31]requested_item shift.opened is exist - process it [18:34:31]req_shift_opened [18:34:31]FM_GetShiftState [18:34:31]SAM_PROTO_GetShiftState [18:34:31]wFMCommunicate request_size=4 [18:34:31]MH_SAM_APDU [18:34:31]CAPDU: 80 13 01 00 [18:34:31]Write to MH i2c: E2 08 00 E2 25 80 13 01 00 00 00 00 00 84 [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:31]Read from MH i2c: E2 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 0E 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 0E 00 E2 25 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 B7 [18:34:31]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:34:31]wFMCommunicate OK [18:34:31]SAM_PROTO_GetShiftState done [18:34:31]FM_GetShiftState done [18:34:31]req_shift_opened done [18:34:31]requested_item shift.open_date is exist - process it [18:34:31]req_shift_open_date [18:34:31]req_shift_open_date done [18:34:31]produce_requested_data done [18:34:31]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60036,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [18:34:31]process_action_free close_receipt [18:34:31]json_value_free [18:34:31]json_value_free done [18:34:31]process_json_proto returns [18:34:31]Send response to host [18:34:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60036,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [18:34:31]free response buf [18:34:31]execute_script done [18:34:31]execute_script returns [18:34:31]free content buf [18:34:31]Sock 9.Close socket [18:34:31]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:18]accept exits with 7 [18:40:18]New connection [18:40:18]New thread 3067252068 created [18:40:18]Thread 3067108708 joined [18:40:18]Waiting for new connection... [18:40:18] Sock 7.Parse request [18:40:18]Sock 7.Check first char [18:40:18]Sock 7.First char is OK [18:40:18]request: POST /json_proto HTTP/1.0 [18:40:18]Method: POST [18:40:18]URL: /json_proto [18:40:18]Method is POST - this is cgi request [18:40:18]url: /json_proto [18:40:18]query_string will be loaded in cgi processing [18:40:18]execute_cgi json_proto POST (null) [18:40:18]execute_cgi path=json_proto method=POST [18:40:18]POST find Content-Length [18:40:18]Host: 172.17.42.196:8080 [18:40:18]Content-Length: 773 [18:40:18]Content-Type: application/json [18:40:18] [18:40:18]POST finish read [18:40:18]Found Content-Length = 773 [18:40:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199816", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:18]execute_script... [18: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 : (3)199816", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:18]POST & json_proto [18:40:18]process_json_proto [18:40:18]json parsed OK: [18:40:18]protocol is kg_v1.0 [18:40:18]action value=close_receipt [18:40:18]process_action close_receipt [18:40:18]cmd_close_receipt [18:40:18]MH_GetDate [18:40:18]Write to MH i2c: F0 00 00 E3 25 F7 [18:40:18]Write i2c OK [18:40:18]MH_I2C_Read... [18:40:18]Read from MH i2c: F0 [18:40:18]MH_I2C_Read... [18:40:18]Read from MH i2c: F0 09 00 [18:40:18]MH_I2C_Read... [18:40:18]Read from MH i2c: F0 09 00 E3 25 00 97 94 1A 67 FF C4 6B 64 3E [18:40:18]GetLastDocTimeStamp 1729794872 [18:40:18]current date 1729795223 [18:40:18]FM_GetShiftState [18:40:18]SAM_PROTO_GetShiftState [18:40:18]wFMCommunicate request_size=4 [18:40:18]MH_SAM_APDU [18:40:18]CAPDU: 80 13 01 00 [18:40:18]Write to MH i2c: E2 08 00 E4 25 80 13 01 00 00 00 00 00 86 [18:40:18]Write i2c OK [18:40:18]MH_I2C_Read... [18:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:18]Read from MH i2c: E2 [18:40:18]MH_I2C_Read... [18:40:18]Read from MH i2c: E2 0E 00 [18:40:18]MH_I2C_Read... [18:40:18]Read from MH i2c: E2 0E 00 E4 25 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 B9 [18:40:18]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:40:18]wFMCommunicate OK [18:40:18]SAM_PROTO_GetShiftState done [18:40:18]FM_GetShiftState done [18:40:18]opened in 1729730575 [18:40:18]opened+sec_in_day 1729816975 [18:40:18]quantity*price = 26000 [18:40:18]sum+1 = 26001 [18:40:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 112 24.10.2024 18:40 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60037 ФПД: 278516290611171 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184023&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60037&fm=278516290611171&tin=02508201610067®Number=0000000000091622&sum=26000 0 [18:40:19]StoreToDocumentArchive [18:40:19]shift 529 fd 60037 [18:40:19]save to /storage/0529/doc_00060037 [18:40:19]save last doc name /storage/0529/doc_00060037 to /storage/kkm_last_doc_name [18:40:19]save OK [18:40:19]Clear old archive folders... [18:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:40:19]tlvbuf is 00D8FD90 [18:40:19]SAM_PROTO_ClearQueue [18:40:19]wFMCommunicate request_size=4 [18:40:19]MH_SAM_APDU [18:40:19]CAPDU: 80 09 00 00 [18:40:19]Write to MH i2c: E2 08 00 F1 25 80 09 00 00 00 00 00 00 88 [18:40:19]Write i2c OK [18:40:19]MH_I2C_Read... [18:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:19]Read from MH i2c: E2 [18:40:19]MH_I2C_Read... [18:40:19]Read from MH i2c: E2 03 00 [18:40:19]MH_I2C_Read... [18:40:19]Read from MH i2c: E2 03 00 F1 25 00 90 00 8A [18:40:19]RAPDU: 90 00 [18:40:19]wFMCommunicate OK [18:40:19]SAM_PROTO_ClearQueue done [18:40:19]KKMCreateOFDPacket [18:40:19]OFDProtocolAddRootSTLVToBuf [18:40:19]FM_MakeSignedData [18:40:19]FM_MakeSignedData [18:40:19]SAM_PROTO_SignData [18:40:19]wFMCommunicate request_size=4 [18:40:19]MH_SAM_APDU [18:40:19]CAPDU: 80 0D 01 02 [18:40:19]Write to MH i2c: E2 08 00 F2 25 80 0D 01 02 00 00 00 00 90 [18:40:19]Write i2c OK [18:40:19]MH_I2C_Read... [18:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:19]Read from MH i2c: E2 [18:40:19]MH_I2C_Read... [18:40:19]Read from MH i2c: E2 03 00 [18:40:19]MH_I2C_Read... [18:40:19]Read from MH i2c: E2 03 00 F2 25 00 90 00 8B [18:40:19]RAPDU: 90 00 [18:40:19]wFMCommunicate OK [18:40:19]wFMCommunicate request_size=255 [18:40:19]MH_SAM_APDU [18:40:19]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 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 97 94 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 [18:40:19]Write to MH i2c: E2 02 01 F3 25 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 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 97 94 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 00 00 83 [18:40:19]Write i2c OK [18:40:19]MH_I2C_Read... [18:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:19]Read from MH i2c: E2 [18:40:19]MH_I2C_Read... [18:40:19]Read from MH i2c: E2 03 00 [18:40:19]MH_I2C_Read... [18:40:19]Read from MH i2c: E2 03 00 F3 25 00 90 00 8C [18:40:19]RAPDU: 90 00 [18:40:19]wFMCommunicate OK [18:40:19]wFMCommunicate request_size=41 [18:40:19]MH_SAM_APDU [18:40:19]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 85 EA 00 00 35 04 06 00 FD 4F 20 90 E7 E3 [18:40:19]Write to MH i2c: E2 2C 00 F4 25 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 85 EA 00 00 35 04 06 00 FD 4F 20 90 E7 E3 00 00 9B [18:40:19]Write i2c OK [18:40:19]MH_I2C_Read... [18:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:20]Read from MH i2c: E2 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: E2 03 00 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: E2 03 00 F4 25 00 90 00 8D [18:40:20]RAPDU: 90 00 [18:40:20]wFMCommunicate OK [18:40:20]wFMCommunicate request_size=4 [18:40:20]MH_SAM_APDU [18:40:20]CAPDU: 80 0D 03 02 [18:40:20]Write to MH i2c: E2 08 00 F5 25 80 0D 03 02 00 00 00 00 95 [18:40:20]Write i2c OK [18:40:20]MH_I2C_Read... [18:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:20]Read from MH i2c: E2 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: E2 0B 00 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: E2 0B 00 F5 25 00 11 3A A9 11 3A 1C D3 21 90 00 E5 [18:40:20]RAPDU: 11 3A A9 11 3A 1C D3 21 90 00 [18:40:20]wFMCommunicate OK [18:40:20]SAM_PROTO_SignData done [18:40:20]FM_MakeSignedData done [18:40:20]CreateOFDProtocolMessage [18:40:20]wFMCommunicate request_size=4 [18:40:20]MH_SAM_APDU [18:40:20]CAPDU: 80 11 00 00 [18:40:20]Write to MH i2c: E2 08 00 F6 25 80 11 00 00 00 00 00 00 95 [18:40:20]Write i2c OK [18:40:20]MH_I2C_Read... [18:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:20]Read from MH i2c: E2 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: E2 17 00 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: E2 17 00 F6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 EC [18:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:40:20]wFMCommunicate OK [18:40:20]CreateOFDProtocolMessage done [18:40:20]OFDSenderStorePacket 60037 [18:40:20]StoreOFDPacket docnum=60037 [18:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 7F 7D 26 01 AD 77 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 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 97 94 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 85 EA 00 00 35 04 06 00 FD 4F 20 90 E7 E3 11 3A A9 11 3A 1C D3 21 [18:40:20]CheckFolder [18:40:20]dirname=/storage/ofd_packets [18:40:20]CheckFolder done [18:40:20]ProducePacketName [18:40:20]name=ofd_packets/00060037 [18:40:20]NVStorageSaveData ofd_packets/00060037 [18:40:20]File name is /storage/ofd_packets/00060037 [18:40:20]Write 332 bytes [18:40:20]NVStorageSaveData done [18:40:20]OFDSenderStorePacket done [18:40:20]KKMCreateOFDPacket done [18:40:20]NVStorageSaveData kkm_last_timestamp [18:40:20]File name is /storage/kkm_last_timestamp [18:40:20]Write 4 bytes [18:40:20]NVStorageSaveData done [18:40:20]ExternCall_PrintAddStr [18:40:20]wPrintStart [18:40:20]Write to MH i2c: 01 00 00 F7 25 1C [18:40:20]Write i2c OK [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: 01 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: 01 07 00 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: 01 07 00 F7 25 00 00 00 00 00 FF 0F 31 [18:40:20]RasterBufferAndPrint [18:40:20]line Счет N : (3)199816 [18:40:20]line ИНН: 02508201610067 [18:40:20]line Контрольно-Кассовый Чек [18:40:20]line ПРОДАЖА [18:40:20]line Товар: 2000036220012 [18:40:20]line Кофе Капучино XL(GABB TRADE) [18:40:20]line 2.000 * 130.00 [18:40:20]line = 260.00 [18:40:20]line НДС 12% НСП 1% [18:40:20]line > о реализуемом товаре [18:40:20]line ИТОГО: 260.00 [18:40:20]line НСП 1% : 2.30 [18:40:20]line НДС 12% : 27.61 [18:40:20]line Наличными: 0.00 [18:40:20]line Безнал.: 260.00 [18:40:20]line Место: АЗС № 87 "Партнер Нефть" [18:40:20]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [18:40:20]line СНО: Общий режим [18:40:20]line Чек 112 24.10.2024 18:40 [18:40:20]line Смена: 529 ФФД: 1.0 [18:40:20]line ЗНМ: 0300000084 [18:40:20]line РНМ: 0000000000091622 [18:40:20]line Версия ККМ: 001 [18:40:20]line Платежная система: Mbank [18:40:20]line ФМ: 0000000000874674 [18:40:20]line ФД: 60037 [18:40:20]line ФПД: 278516290611171 [18:40:20]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184023&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60037&fm=278516290611171&tin=02508201610067®Number=0000000000091622&sum=26000 [18:40:20]line 0 [18:40:20]OFD Sender: Processing packet 60037 [packets to send 30, broken 29] [18:40:20]ProducePacketName [18:40:20]name=ofd_packets/00060037 [18:40:20]OFD Sender: To server: pG, [18:40:20]CommunicateWithHost lk.salyk.kg:30040 [18:40:20]ConnectInit lk.salyk.kg [18:40:20]written 0, free lines is 4095 [18:40:20]Connected sock=10 [18: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 34 36 37 34 2E 01 00 00 7F 7D 26 01 AD 77 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 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 97 94 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 85 EA 00 00 35 04 06 00 FD 4F 20 90 E7 E3 11 3A A9 11 3A 1C D3 21 [18:40:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 97 D1 47 00 BC 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 34 36 37 34 10 04 04 00 85 EA 00 00 F4 03 04 00 87 3A 1A 67 B6 04 01 00 00 46 51 E0 F5 35 37 4E 29 [18:40:20]CommunicateWithHost err = 0 [18:40:20]CheckOFDResponse [18:40:20]1017 (14) - 77093643461234 [18:40:20]1041 (16) - 0000000000874674 [18:40:20]1040 (4) - 60037 [18:40:20]1012 (4) - 24.10.2024 12:16 [18:40:20]1206 (1) - 0 [18:40:20]OFD Sender: Remove packet 60037 [18:40:20]ProducePacketName [18:40:20]name=ofd_packets/00060037 [18:40:20]NVStorageDeleteData [18:40:20]Write to MH i2c: 01 00 00 21 26 47 [18:40:20]Write i2c OK [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: 01 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: 01 07 00 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: 01 07 00 21 26 00 00 00 00 00 E2 0C 3C [18:40:20]RasterBufferAndPrint [18:40:20]line [18:40:20]line [18:40:20]line [18:40:20]line [18:40:20]line [18:40:20]written 0, free lines is 3304 [18:40:20]MH_Cut [18:40:20]Write to MH i2c: D1 01 00 28 26 01 20 [18:40:20]Write i2c OK [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: D1 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: D1 01 00 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: D1 01 00 28 26 00 1F [18:40:20]Write to MH i2c: 01 00 00 29 26 4F [18:40:20]Write i2c OK [18:40:20]MH_I2C_Read... [18:40:21]OFD Sender: No OFD packet to send [18:40:21]*** Cut start [18:40:21]*** Partial cut [18:40:21]*** CUTSNS_PIN = 1 [18:40:21]*** CUTSNS_PIN = 0 [18:40:21]*** Brake cut motor [18:40:22]Read from MH i2c: 01 [18:40:22]MH_I2C_Read... [18:40:22]*** Stop cut motor [18:40:22]*** Cut end [18:40:22]Read from MH i2c: 01 07 00 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: 01 07 00 29 26 00 00 00 00 00 FF 0F 64 [18:40:22]process_action close_receipt done [18:40:22]requested_data is exist [18:40:22]produce_requested_data [18:40:22]requested_item fm.sn is exist - process it [18:40:22]wFMCommunicate request_size=4 [18:40:22]MH_SAM_APDU [18:40:22]CAPDU: 80 11 00 00 [18:40:22]Write to MH i2c: E2 08 00 2A 26 80 11 00 00 00 00 00 00 CA [18:40:22]Write i2c OK [18:40:22]MH_I2C_Read... [18:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:22]Read from MH i2c: E2 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: E2 17 00 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: E2 17 00 2A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 21 [18:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:40:22]wFMCommunicate OK [18:40:22]requested_item fd.num is exist - process it [18:40:22]SAM_PROTO_GetFieldsCounters [18:40:22]wFMCommunicate request_size=4 [18:40:22]MH_SAM_APDU [18:40:22]CAPDU: 80 13 00 00 [18:40:22]Write to MH i2c: E2 08 00 2B 26 80 13 00 00 00 00 00 00 CD [18:40:22]Write i2c OK [18:40:22]MH_I2C_Read... [18:40:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:22]Read from MH i2c: E2 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: E2 62 00 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: E2 62 00 2B 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 85 EA 00 00 0E 04 04 00 11 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 BF [18: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 85 EA 00 00 0E 04 04 00 11 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 [18:40:22]wFMCommunicate OK [18:40:22]SAM_PROTO_GetFieldsCounters done [18:40:22]requested_item shift.num is exist - process it [18:40:22]requested_item shift.opened is exist - process it [18:40:22]req_shift_opened [18:40:22]FM_GetShiftState [18:40:22]SAM_PROTO_GetShiftState [18:40:22]wFMCommunicate request_size=4 [18:40:22]MH_SAM_APDU [18:40:22]CAPDU: 80 13 01 00 [18:40:22]Write to MH i2c: E2 08 00 2C 26 80 13 01 00 00 00 00 00 CF [18:40:22]Write i2c OK [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: E2 [18:40:22]MH_I2C_Read... [18:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:22]Read from MH i2c: E2 0E 00 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: E2 0E 00 2C 26 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 02 [18:40:22]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:40:22]wFMCommunicate OK [18:40:22]SAM_PROTO_GetShiftState done [18:40:22]FM_GetShiftState done [18:40:22]req_shift_opened done [18:40:22]requested_item shift.open_date is exist - process it [18:40:22]req_shift_open_date [18:40:22]req_shift_open_date done [18:40:22]produce_requested_data done [18:40:22]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60037,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [18:40:22]process_action_free close_receipt [18:40:22]json_value_free [18:40:22]json_value_free done [18:40:22]process_json_proto returns [18:40:22]Send response to host [18:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60037,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [18:40:22]free response buf [18:40:22]execute_script done [18:40:22]execute_script returns [18:40:22]free content buf [18:40:22]Sock 7.Close socket [18:40:22]Sock 7.Thread stoped [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]accept exits with 9 [18:45:01]New connection [18:45:01]New thread 3067108708 created [18:45:01]Thread 3067252068 joined [18:45:01]Waiting for new connection... [18:45:01] Sock 9.Parse request [18:45:01]Sock 9.Check first char [18:45:01]Sock 9.First char is OK [18:45:01]request: POST /json_proto HTTP/1.0 [18:45:01]Method: POST [18:45:01]URL: /json_proto [18:45:01]Method is POST - this is cgi request [18:45:01]url: /json_proto [18:45:01]query_string will be loaded in cgi processing [18:45:01]execute_cgi json_proto POST (null) [18:45:01]execute_cgi path=json_proto method=POST [18:45:01]POST find Content-Length [18:45:01]Host: 172.17.42.196:8080 [18:45:01]Content-Length: 619 [18:45:01]Content-Type: application/json [18:45:01] [18:45:01]POST finish read [18:45:01]Found Content-Length = 619 [18:45:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199817", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:01]execute_script... [18: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 : (3)199817", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:01]POST & json_proto [18:45:01]process_json_proto [18:45:01]json parsed OK: [18:45:01]protocol is kg_v1.0 [18:45:01]action value=close_receipt [18:45:01]process_action close_receipt [18:45:01]cmd_close_receipt [18:45:01]MH_GetDate [18:45:01]Write to MH i2c: F0 00 00 2D 26 42 [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: F0 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: F0 09 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: F0 09 00 2D 26 00 B2 95 1A 67 FF C4 6B 64 A5 [18:45:01]GetLastDocTimeStamp 1729795223 [18:45:01]current date 1729795506 [18:45:01]FM_GetShiftState [18:45:01]SAM_PROTO_GetShiftState [18:45:01]wFMCommunicate request_size=4 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 13 01 00 [18:45:01]Write to MH i2c: E2 08 00 2E 26 80 13 01 00 00 00 00 00 D1 [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 0E 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 0E 00 2E 26 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 04 [18:45:01]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:45:01]wFMCommunicate OK [18:45:01]SAM_PROTO_GetShiftState done [18:45:01]FM_GetShiftState done [18:45:01]opened in 1729730575 [18:45:01]opened+sec_in_day 1729816975 [18:45:01]quantity*price = 14400 [18:45:01]sum+1 = 14401 [18:45:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 113 24.10.2024 18:45 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60038 ФПД: 14918356555862 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184506&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60038&fm=14918356555862&tin=02508201610067®Number=0000000000091622&sum=14400 0 [18:45:02]StoreToDocumentArchive [18:45:02]shift 529 fd 60038 [18:45:02]save to /storage/0529/doc_00060038 [18:45:02]save last doc name /storage/0529/doc_00060038 to /storage/kkm_last_doc_name [18:45:02]save OK [18:45:02]Clear old archive folders... [18:45:02]ProcessDocumentItem done err = 0, tmpTLVsize=271 [18:45:02]tlvbuf is 00E33DD0 [18:45:02]SAM_PROTO_ClearQueue [18:45:02]wFMCommunicate request_size=4 [18:45:02]MH_SAM_APDU [18:45:02]CAPDU: 80 09 00 00 [18:45:02]Write to MH i2c: E2 08 00 3B 26 80 09 00 00 00 00 00 00 D3 [18:45:02]Write i2c OK [18:45:02]MH_I2C_Read... [18:45:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:02]Read from MH i2c: E2 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: E2 03 00 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: E2 03 00 3B 26 00 90 00 D5 [18:45:02]RAPDU: 90 00 [18:45:02]wFMCommunicate OK [18:45:02]SAM_PROTO_ClearQueue done [18:45:02]KKMCreateOFDPacket [18:45:02]OFDProtocolAddRootSTLVToBuf [18:45:02]FM_MakeSignedData [18:45:02]FM_MakeSignedData [18:45:02]SAM_PROTO_SignData [18:45:02]wFMCommunicate request_size=4 [18:45:02]MH_SAM_APDU [18:45:02]CAPDU: 80 0D 01 02 [18:45:02]Write to MH i2c: E2 08 00 3C 26 80 0D 01 02 00 00 00 00 DB [18:45:02]Write i2c OK [18:45:02]MH_I2C_Read... [18:45:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:02]Read from MH i2c: E2 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: E2 03 00 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: E2 03 00 3C 26 00 90 00 D6 [18:45:02]RAPDU: 90 00 [18:45:02]wFMCommunicate OK [18:45:02]wFMCommunicate request_size=255 [18:45:02]MH_SAM_APDU [18:45:02]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B2 95 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [18:45:02]Write to MH i2c: E2 02 01 3D 26 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B2 95 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 1B [18:45:02]Write i2c OK [18:45:02]MH_I2C_Read... [18:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:02]Read from MH i2c: E2 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: E2 03 00 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: E2 03 00 3D 26 00 90 00 D7 [18:45:02]RAPDU: 90 00 [18:45:02]wFMCommunicate OK [18:45:02]wFMCommunicate request_size=30 [18:45:02]MH_SAM_APDU [18:45:02]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 34 10 04 04 00 86 EA 00 00 35 04 06 00 0D 91 73 57 D8 56 [18:45:02]Write to MH i2c: E2 21 00 3E 26 80 0D 02 02 19 00 30 38 37 34 36 37 34 10 04 04 00 86 EA 00 00 35 04 06 00 0D 91 73 57 D8 56 00 00 E1 [18:45:02]Write i2c OK [18:45:02]MH_I2C_Read... [18:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:02]Read from MH i2c: E2 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: E2 03 00 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: E2 03 00 3E 26 00 90 00 D8 [18:45:02]RAPDU: 90 00 [18:45:02]wFMCommunicate OK [18:45:02]wFMCommunicate request_size=4 [18:45:02]MH_SAM_APDU [18:45:02]CAPDU: 80 0D 03 02 [18:45:02]Write to MH i2c: E2 08 00 3F 26 80 0D 03 02 00 00 00 00 E0 [18:45:02]Write i2c OK [18:45:02]MH_I2C_Read... [18:45:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:02]Read from MH i2c: E2 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: E2 0B 00 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: E2 0B 00 3F 26 00 B3 7E C8 8C D8 2D 65 56 90 00 26 [18:45:02]RAPDU: B3 7E C8 8C D8 2D 65 56 90 00 [18:45:02]wFMCommunicate OK [18:45:02]SAM_PROTO_SignData done [18:45:02]FM_MakeSignedData done [18:45:02]CreateOFDProtocolMessage [18:45:02]wFMCommunicate request_size=4 [18:45:02]MH_SAM_APDU [18:45:02]CAPDU: 80 11 00 00 [18:45:02]Write to MH i2c: E2 08 00 40 26 80 11 00 00 00 00 00 00 E0 [18:45:02]Write i2c OK [18:45:02]MH_I2C_Read... [18:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:03]Read from MH i2c: E2 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: E2 17 00 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: E2 17 00 40 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 37 [18:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:45:03]wFMCommunicate OK [18:45:03]CreateOFDProtocolMessage done [18:45:03]OFDSenderStorePacket 60038 [18:45:03]StoreOFDPacket docnum=60038 [18:45:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 23 01 00 00 5F A6 1B 01 13 2F 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B2 95 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 86 EA 00 00 35 04 06 00 0D 91 73 57 D8 56 B3 7E C8 8C D8 2D 65 56 [18:45:03]CheckFolder [18:45:03]dirname=/storage/ofd_packets [18:45:03]CheckFolder done [18:45:03]ProducePacketName [18:45:03]name=ofd_packets/00060038 [18:45:03]NVStorageSaveData ofd_packets/00060038 [18:45:03]File name is /storage/ofd_packets/00060038 [18:45:03]Write 321 bytes [18:45:03]NVStorageSaveData done [18:45:03]OFDSenderStorePacket done [18:45:03]KKMCreateOFDPacket done [18:45:03]NVStorageSaveData kkm_last_timestamp [18:45:03]File name is /storage/kkm_last_timestamp [18:45:03]Write 4 bytes [18:45:03]NVStorageSaveData done [18:45:03]ExternCall_PrintAddStr [18:45:03]wPrintStart [18:45:03]Write to MH i2c: 01 00 00 41 26 67 [18:45:03]Write i2c OK [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: 01 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: 01 07 00 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: 01 07 00 41 26 00 00 00 00 00 FF 0F 7C [18:45:03]RasterBufferAndPrint [18:45:03]line Счет N : (3)199817 [18:45:03]line ИНН: 02508201610067 [18:45:03]line Контрольно-Кассовый Чек [18:45:03]line ПРОДАЖА [18:45:03]line Товар: 47802995 [18:45:03]line Сигареты Winston XS Silver [18:45:03]line 1.000 * 144.00 [18:45:03]line = 144.00 [18:45:03]line НДС 12% НСП 1% [18:45:03]line > о реализуемом товаре [18:45:03]line ИТОГО: 144.00 [18:45:03]line НСП 1% : 1.27 [18:45:03]line НДС 12% : 15.29 [18:45:03]line Наличными: 144.00 [18:45:03]line Безнал.: 0.00 [18:45:03]line Место: АЗС № 87 "Партнер Нефть" [18:45:03]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [18:45:03]line СНО: Общий режим [18:45:03]line Чек 113 24.10.2024 18:45 [18:45:03]line Смена: 529 ФФД: 1.0 [18:45:03]line ЗНМ: 0300000084 [18:45:03]line РНМ: 0000000000091622 [18:45:03]line Версия ККМ: 001 [18:45:03]line ФМ: 0000000000874674 [18:45:03]line ФД: 60038 [18:45:03]line ФПД: 14918356555862 [18:45:03]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184506&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60038&fm=14918356555862&tin=02508201610067®Number=0000000000091622&sum=14400 [18:45:03]OFD Sender: Processing packet 60038 [packets to send 30, broken 29] [18:45:03]ProducePacketName [18:45:03]name=ofd_packets/00060038 [18:45:03]OFD Sender: To server: pG, [18:45:03]CommunicateWithHost lk.salyk.kg:30040 [18:45:03]ConnectInit lk.salyk.kg [18:45:03]line 0 [18:45:03]written 0, free lines is 4095 [18:45:03]Connected sock=10 [18: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 34 36 37 34 23 01 00 00 5F A6 1B 01 13 2F 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B2 95 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 86 EA 00 00 35 04 06 00 0D 91 73 57 D8 56 B3 7E C8 8C D8 2D 65 56 [18:45:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 6F 04 47 00 0F 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 86 EA 00 00 F4 03 04 00 A2 3B 1A 67 B6 04 01 00 00 8D E7 4B 36 C4 41 88 04 [18:45:03]CommunicateWithHost err = 0 [18:45:03]CheckOFDResponse [18:45:03]1017 (14) - 77093643461234 [18:45:03]1041 (16) - 0000000000874674 [18:45:03]1040 (4) - 60038 [18:45:03]1012 (4) - 24.10.2024 12:20 [18:45:03]1206 (1) - 0 [18:45:03]OFD Sender: Remove packet 60038 [18:45:03]ProducePacketName [18:45:03]name=ofd_packets/00060038 [18:45:03]NVStorageDeleteData [18:45:03]Write to MH i2c: 01 00 00 69 26 8F [18:45:03]Write i2c OK [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: 01 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: 01 07 00 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: 01 07 00 69 26 00 00 00 00 00 FD 0C 9F [18:45:03]RasterBufferAndPrint [18:45:03]line [18:45:03]line [18:45:03]line [18:45:03]line [18:45:03]line [18:45:03]written 0, free lines is 3331 [18:45:03]MH_Cut [18:45:03]Write to MH i2c: D1 01 00 70 26 01 68 [18:45:03]Write i2c OK [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: D1 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: D1 01 00 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: D1 01 00 70 26 00 67 [18:45:03]Write to MH i2c: 01 00 00 71 26 97 [18:45:03]Write i2c OK [18:45:03]MH_I2C_Read... [18:45:04]OFD Sender: No OFD packet to send [18:45:04]*** Cut start [18:45:04]*** Partial cut [18:45:04]*** CUTSNS_PIN = 1 [18:45:04]*** CUTSNS_PIN = 0 [18:45:04]*** Brake cut motor [18:45:05]Read from MH i2c: 01 [18:45:05]MH_I2C_Read... [18:45:05]*** Stop cut motor [18:45:05]*** Cut end [18:45:05]Read from MH i2c: 01 07 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: 01 07 00 71 26 00 00 00 00 00 FF 0F AC [18:45:05]process_action close_receipt done [18:45:05]requested_data is exist [18:45:05]produce_requested_data [18:45:05]requested_item fm.sn is exist - process it [18:45:05]wFMCommunicate request_size=4 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 11 00 00 [18:45:05]Write to MH i2c: E2 08 00 72 26 80 11 00 00 00 00 00 00 12 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 17 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 17 00 72 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 69 [18:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:45:05]wFMCommunicate OK [18:45:05]requested_item fd.num is exist - process it [18:45:05]SAM_PROTO_GetFieldsCounters [18:45:05]wFMCommunicate request_size=4 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 13 00 00 [18:45:05]Write to MH i2c: E2 08 00 73 26 80 13 00 00 00 00 00 00 15 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 62 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 62 00 73 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 86 EA 00 00 0E 04 04 00 11 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 0B [18: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 86 EA 00 00 0E 04 04 00 11 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 [18:45:05]wFMCommunicate OK [18:45:05]SAM_PROTO_GetFieldsCounters done [18:45:05]requested_item shift.num is exist - process it [18:45:05]requested_item shift.opened is exist - process it [18:45:05]req_shift_opened [18:45:05]FM_GetShiftState [18:45:05]SAM_PROTO_GetShiftState [18:45:05]wFMCommunicate request_size=4 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 13 01 00 [18:45:05]Write to MH i2c: E2 08 00 74 26 80 13 01 00 00 00 00 00 17 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 0E 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 0E 00 74 26 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 4A [18:45:05]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:45:05]wFMCommunicate OK [18:45:05]SAM_PROTO_GetShiftState done [18:45:05]FM_GetShiftState done [18:45:05]req_shift_opened done [18:45:05]requested_item shift.open_date is exist - process it [18:45:05]req_shift_open_date [18:45:05]req_shift_open_date done [18:45:05]produce_requested_data done [18:45:05]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60038,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [18:45:05]process_action_free close_receipt [18:45:05]json_value_free [18:45:05]json_value_free done [18:45:05]process_json_proto returns [18:45:05]Send response to host [18:45:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60038,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [18:45:05]free response buf [18:45:05]execute_script done [18:45:05]execute_script returns [18:45:05]free content buf [18:45:05]Sock 9.Close socket [18:45:05]Sock 9.Thread stoped [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:46]accept exits with 7 [18:46:46]New connection [18:46:46]New thread 3067252068 created [18:46:46]Thread 3067108708 joined [18:46:46]Waiting for new connection... [18:46:46] Sock 7.Parse request [18:46:46]Sock 7.Check first char [18:46:46]Sock 7.First char is OK [18:46:46]request: POST /json_proto HTTP/1.0 [18:46:46]Method: POST [18:46:46]URL: /json_proto [18:46:46]Method is POST - this is cgi request [18:46:46]url: /json_proto [18:46:46]query_string will be loaded in cgi processing [18:46:46]execute_cgi json_proto POST (null) [18:46:46]execute_cgi path=json_proto method=POST [18:46:46]POST find Content-Length [18:46:46]Host: 172.17.42.196:8080 [18:46:46]Content-Length: 614 [18:46:46]Content-Type: application/json [18:46:46] [18:46:46]POST finish read [18:46:46]Found Content-Length = 614 [18:46:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199818", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:46]execute_script... [18:46:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199818", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:46]POST & json_proto [18:46:46]process_json_proto [18:46:46]json parsed OK: [18:46:46]protocol is kg_v1.0 [18:46:46]action value=close_receipt [18:46:46]process_action close_receipt [18:46:46]cmd_close_receipt [18:46:46]MH_GetDate [18:46:46]Write to MH i2c: F0 00 00 75 26 8A [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: F0 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: F0 09 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: F0 09 00 75 26 00 1B 96 1A 67 FF C4 6B 64 57 [18:46:46]GetLastDocTimeStamp 1729795506 [18:46:46]current date 1729795611 [18:46:46]FM_GetShiftState [18:46:46]SAM_PROTO_GetShiftState [18:46:46]wFMCommunicate request_size=4 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 13 01 00 [18:46:46]Write to MH i2c: E2 08 00 76 26 80 13 01 00 00 00 00 00 19 [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 0E 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 0E 00 76 26 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 4C [18:46:46]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:46:46]wFMCommunicate OK [18:46:46]SAM_PROTO_GetShiftState done [18:46:46]FM_GetShiftState done [18:46:46]opened in 1729730575 [18:46:46]opened+sec_in_day 1729816975 [18:46:46]quantity*price = 11900 [18:46:46]sum+1 = 11901 [18:46:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 119.00 НСП 1% : 1.05 НДС 12% : 12.64 Наличными: 119.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 114 24.10.2024 18:46 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60039 ФПД: 266307473018120 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184651&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60039&fm=266307473018120&tin=02508201610067®Number=0000000000091622&sum=11900 0 [18:46:47]StoreToDocumentArchive [18:46:47]shift 529 fd 60039 [18:46:47]save to /storage/0529/doc_00060039 [18:46:47]save last doc name /storage/0529/doc_00060039 to /storage/kkm_last_doc_name [18:46:47]save OK [18:46:47]Clear old archive folders... [18:46:47]ProcessDocumentItem done err = 0, tmpTLVsize=266 [18:46:47]tlvbuf is 00D900F0 [18:46:47]SAM_PROTO_ClearQueue [18:46:47]wFMCommunicate request_size=4 [18:46:47]MH_SAM_APDU [18:46:47]CAPDU: 80 09 00 00 [18:46:47]Write to MH i2c: E2 08 00 83 26 80 09 00 00 00 00 00 00 1B [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:47]Read from MH i2c: E2 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 03 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 03 00 83 26 00 90 00 1D [18:46:47]RAPDU: 90 00 [18:46:47]wFMCommunicate OK [18:46:47]SAM_PROTO_ClearQueue done [18:46:47]KKMCreateOFDPacket [18:46:47]OFDProtocolAddRootSTLVToBuf [18:46:47]FM_MakeSignedData [18:46:47]FM_MakeSignedData [18:46:47]SAM_PROTO_SignData [18:46:47]wFMCommunicate request_size=4 [18:46:47]MH_SAM_APDU [18:46:47]CAPDU: 80 0D 01 02 [18:46:47]Write to MH i2c: E2 08 00 84 26 80 0D 01 02 00 00 00 00 23 [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:47]Read from MH i2c: E2 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 03 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 03 00 84 26 00 90 00 1E [18:46:47]RAPDU: 90 00 [18:46:47]wFMCommunicate OK [18:46:47]wFMCommunicate request_size=255 [18:46:47]MH_SAM_APDU [18:46:47]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 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 72 00 00 00 F4 03 04 00 1B 96 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [18:46:47]Write to MH i2c: E2 02 01 85 26 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 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 72 00 00 00 F4 03 04 00 1B 96 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 00 00 D5 [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:47]Read from MH i2c: E2 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 03 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 03 00 85 26 00 90 00 1F [18:46:47]RAPDU: 90 00 [18:46:47]wFMCommunicate OK [18:46:47]wFMCommunicate request_size=25 [18:46:47]MH_SAM_APDU [18:46:47]CAPDU: 80 0D 02 02 14 37 34 10 04 04 00 87 EA 00 00 35 04 06 00 F2 34 8A 54 8D 08 [18:46:47]Write to MH i2c: E2 1C 00 86 26 80 0D 02 02 14 00 37 34 10 04 04 00 87 EA 00 00 35 04 06 00 F2 34 8A 54 8D 08 00 00 1A [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:47]Read from MH i2c: E2 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 03 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 03 00 86 26 00 90 00 20 [18:46:47]RAPDU: 90 00 [18:46:47]wFMCommunicate OK [18:46:47]wFMCommunicate request_size=4 [18:46:47]MH_SAM_APDU [18:46:47]CAPDU: 80 0D 03 02 [18:46:47]Write to MH i2c: E2 08 00 87 26 80 0D 03 02 00 00 00 00 28 [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:47]Read from MH i2c: E2 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 0B 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 0B 00 87 26 00 54 EF 16 D3 46 B4 51 BA 90 00 5A [18:46:47]RAPDU: 54 EF 16 D3 46 B4 51 BA 90 00 [18:46:47]wFMCommunicate OK [18:46:47]SAM_PROTO_SignData done [18:46:47]FM_MakeSignedData done [18:46:47]CreateOFDProtocolMessage [18:46:47]wFMCommunicate request_size=4 [18:46:47]MH_SAM_APDU [18:46:47]CAPDU: 80 11 00 00 [18:46:47]Write to MH i2c: E2 08 00 88 26 80 11 00 00 00 00 00 00 28 [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:47]Read from MH i2c: E2 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 17 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 17 00 88 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 7F [18:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:46:47]wFMCommunicate OK [18:46:47]CreateOFDProtocolMessage done [18:46:47]OFDSenderStorePacket 60039 [18:46:47]StoreOFDPacket docnum=60039 [18:46:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 1E 01 00 00 08 D7 16 01 EC 97 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 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 72 00 00 00 F4 03 04 00 1B 96 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 87 EA 00 00 35 04 06 00 F2 34 8A 54 8D 08 54 EF 16 D3 46 B4 51 BA [18:46:47]CheckFolder [18:46:47]dirname=/storage/ofd_packets [18:46:47]CheckFolder done [18:46:47]ProducePacketName [18:46:47]name=ofd_packets/00060039 [18:46:47]NVStorageSaveData ofd_packets/00060039 [18:46:47]File name is /storage/ofd_packets/00060039 [18:46:47]Write 316 bytes [18:46:47]NVStorageSaveData done [18:46:47]OFDSenderStorePacket done [18:46:47]KKMCreateOFDPacket done [18:46:47]NVStorageSaveData kkm_last_timestamp [18:46:47]File name is /storage/kkm_last_timestamp [18:46:47]Write 4 bytes [18:46:47]NVStorageSaveData done [18:46:47]ExternCall_PrintAddStr [18:46:47]wPrintStart [18:46:47]Write to MH i2c: 01 00 00 89 26 AF [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 07 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 07 00 89 26 00 00 00 00 00 FF 0F C4 [18:46:47]RasterBufferAndPrint [18:46:47]line Счет N : (3)199818 [18:46:47]line ИНН: 02508201610067 [18:46:47]line Контрольно-Кассовый Чек [18:46:47]line ПРОДАЖА [18:46:47]line Товар: 4870001570071 [18:46:47]line Напиток Pepsi 1л [18:46:47]line 1.000 * 119.00 [18:46:47]line = 119.00 [18:46:47]line НДС 12% НСП 1% [18:46:47]line > о реализуемом товаре [18:46:47]line ИТОГО: 119.00 [18:46:47]line НСП 1% : 1.05 [18:46:47]line НДС 12% : 12.64 [18:46:47]line Наличными: 119.00 [18:46:47]line Безнал.: 0.00 [18:46:47]line Место: АЗС № 87 "Партнер Нефть" [18:46:47]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [18:46:47]line СНО: Общий режим [18:46:47]line Чек 114 24.10.2024 18:46 [18:46:47]line Смена: 529 ФФД: 1.0 [18:46:47]line ЗНМ: 0300000084 [18:46:47]line РНМ: 0000000000091622 [18:46:47]line Версия ККМ: 001 [18:46:47]line ФМ: 0000000000874674 [18:46:47]line ФД: 60039 [18:46:47]line ФПД: 266307473018120 [18:46:47]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184651&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60039&fm=266307473018120&tin=02508201610067®Number=0000000000091622&sum=11900 [18:46:48]OFD Sender: Processing packet 60039 [packets to send 30, broken 29] [18:46:48]ProducePacketName [18:46:48]name=ofd_packets/00060039 [18:46:48]OFD Sender: To server: pG, [18:46:48]CommunicateWithHost lk.salyk.kg:30040 [18:46:48]ConnectInit lk.salyk.kg [18:46:48]line 0 [18:46:48]written 0, free lines is 4095 [18:46:48]Connected sock=10 [18:46:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 1E 01 00 00 08 D7 16 01 EC 97 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 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 72 00 00 00 F4 03 04 00 1B 96 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 87 EA 00 00 35 04 06 00 F2 34 8A 54 8D 08 54 EF 16 D3 46 B4 51 BA [18:46:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 8F E1 47 00 7F 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 34 36 37 34 10 04 04 00 87 EA 00 00 F4 03 04 00 0B 3C 1A 67 B6 04 01 00 00 15 60 F4 49 0A 3E 01 20 [18:46:48]CommunicateWithHost err = 0 [18:46:48]CheckOFDResponse [18:46:48]1017 (14) - 77093643461234 [18:46:48]1041 (16) - 0000000000874674 [18:46:48]1040 (4) - 60039 [18:46:48]1012 (4) - 24.10.2024 12:22 [18:46:48]1206 (1) - 0 [18:46:48]OFD Sender: Remove packet 60039 [18:46:48]ProducePacketName [18:46:48]name=ofd_packets/00060039 [18:46:48]NVStorageDeleteData [18:46:48]Write to MH i2c: 01 00 00 B1 26 D7 [18:46:48]Write i2c OK [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: 01 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: 01 07 00 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: 01 07 00 B1 26 00 00 00 00 00 04 0D EF [18:46:48]RasterBufferAndPrint [18:46:48]line [18:46:48]line [18:46:48]line [18:46:48]line [18:46:48]line [18:46:48]written 0, free lines is 3341 [18:46:48]MH_Cut [18:46:48]Write to MH i2c: D1 01 00 B8 26 01 B0 [18:46:48]Write i2c OK [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: D1 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: D1 01 00 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: D1 01 00 B8 26 00 AF [18:46:48]Write to MH i2c: 01 00 00 B9 26 DF [18:46:48]Write i2c OK [18:46:48]MH_I2C_Read... [18:46:49]OFD Sender: No OFD packet to send [18:46:49]*** Cut start [18:46:49]*** Partial cut [18:46:49]*** CUTSNS_PIN = 1 [18:46:49]*** CUTSNS_PIN = 0 [18:46:49]*** Brake cut motor [18:46:50]Read from MH i2c: 01 [18:46:50]MH_I2C_Read... [18:46:50]*** Stop cut motor [18:46:50]*** Cut end [18:46:50]Read from MH i2c: 01 07 00 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: 01 07 00 B9 26 00 00 00 00 00 FF 0F F4 [18:46:50]process_action close_receipt done [18:46:50]requested_data is exist [18:46:50]produce_requested_data [18:46:50]requested_item fm.sn is exist - process it [18:46:50]wFMCommunicate request_size=4 [18:46:50]MH_SAM_APDU [18:46:50]CAPDU: 80 11 00 00 [18:46:50]Write to MH i2c: E2 08 00 BA 26 80 11 00 00 00 00 00 00 5A [18:46:50]Write i2c OK [18:46:50]MH_I2C_Read... [18:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:50]Read from MH i2c: E2 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: E2 17 00 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: E2 17 00 BA 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 B1 [18:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:46:50]wFMCommunicate OK [18:46:50]requested_item fd.num is exist - process it [18:46:50]SAM_PROTO_GetFieldsCounters [18:46:50]wFMCommunicate request_size=4 [18:46:50]MH_SAM_APDU [18:46:50]CAPDU: 80 13 00 00 [18:46:50]Write to MH i2c: E2 08 00 BB 26 80 13 00 00 00 00 00 00 5D [18:46:50]Write i2c OK [18:46:50]MH_I2C_Read... [18:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:50]Read from MH i2c: E2 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: E2 62 00 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: E2 62 00 BB 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 87 EA 00 00 0E 04 04 00 11 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 57 [18:46: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 87 EA 00 00 0E 04 04 00 11 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 [18:46:50]wFMCommunicate OK [18:46:50]SAM_PROTO_GetFieldsCounters done [18:46:50]requested_item shift.num is exist - process it [18:46:50]requested_item shift.opened is exist - process it [18:46:50]req_shift_opened [18:46:50]FM_GetShiftState [18:46:50]SAM_PROTO_GetShiftState [18:46:50]wFMCommunicate request_size=4 [18:46:50]MH_SAM_APDU [18:46:50]CAPDU: 80 13 01 00 [18:46:50]Write to MH i2c: E2 08 00 BC 26 80 13 01 00 00 00 00 00 5F [18:46:50]Write i2c OK [18:46:50]MH_I2C_Read... [18:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:50]Read from MH i2c: E2 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: E2 0E 00 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: E2 0E 00 BC 26 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 92 [18:46:50]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:46:50]wFMCommunicate OK [18:46:50]SAM_PROTO_GetShiftState done [18:46:50]FM_GetShiftState done [18:46:50]req_shift_opened done [18:46:50]requested_item shift.open_date is exist - process it [18:46:50]req_shift_open_date [18:46:50]req_shift_open_date done [18:46:50]produce_requested_data done [18:46:50]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60039,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [18:46:50]process_action_free close_receipt [18:46:50]json_value_free [18:46:50]json_value_free done [18:46:50]process_json_proto returns [18:46:50]Send response to host [18:46:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60039,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [18:46:50]free response buf [18:46:50]execute_script done [18:46:50]execute_script returns [18:46:50]free content buf [18:46:50]Sock 7.Close socket [18:46:50]Sock 7.Thread stoped [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:06]accept exits with 9 [18:47:06]New connection [18:47:06]New thread 3067108708 created [18:47:06]Thread 3067252068 joined [18:47:06]Waiting for new connection... [18:47:06] Sock 9.Parse request [18:47:06]Sock 9.Check first char [18:47:06]Sock 9.First char is OK [18:47:06]request: POST /json_proto HTTP/1.0 [18:47:06]Method: POST [18:47:06]URL: /json_proto [18:47:06]Method is POST - this is cgi request [18:47:06]url: /json_proto [18:47:06]query_string will be loaded in cgi processing [18:47:06]execute_cgi json_proto POST (null) [18:47:06]execute_cgi path=json_proto method=POST [18:47:06]POST find Content-Length [18:47:06]Host: 172.17.42.196:8080 [18:47:06]Content-Length: 622 [18:47:06]Content-Type: application/json [18:47:06] [18:47:06]POST finish read [18:47:06]Found Content-Length = 622 [18:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199819", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 2.000, "sum" : 318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:06]execute_script... [18:47:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199819", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 2.000, "sum" : 318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:06]POST & json_proto [18:47:06]process_json_proto [18:47:06]json parsed OK: [18:47:06]protocol is kg_v1.0 [18:47:06]action value=close_receipt [18:47:06]process_action close_receipt [18:47:06]cmd_close_receipt [18:47:06]MH_GetDate [18:47:06]Write to MH i2c: F0 00 00 BD 26 D2 [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: F0 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: F0 09 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: F0 09 00 BD 26 00 2F 96 1A 67 FF C4 6B 64 B3 [18:47:06]GetLastDocTimeStamp 1729795611 [18:47:06]current date 1729795631 [18:47:06]FM_GetShiftState [18:47:06]SAM_PROTO_GetShiftState [18:47:06]wFMCommunicate request_size=4 [18:47:06]MH_SAM_APDU [18:47:06]CAPDU: 80 13 01 00 [18:47:06]Write to MH i2c: E2 08 00 BE 26 80 13 01 00 00 00 00 00 61 [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:06]Read from MH i2c: E2 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 0E 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 0E 00 BE 26 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 94 [18:47:06]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:47:06]wFMCommunicate OK [18:47:06]SAM_PROTO_GetShiftState done [18:47:06]FM_GetShiftState done [18:47:06]opened in 1729730575 [18:47:06]opened+sec_in_day 1729816975 [18:47:06]quantity*price = 31800 [18:47:06]sum+1 = 31801 [18:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 318.00 НСП 1% : 2.81 НДС 12% : 33.77 Наличными: 318.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 115 24.10.2024 18:47 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60040 ФПД: 196765556221689 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184711&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60040&fm=196765556221689&tin=02508201610067®Number=0000000000091622&sum=31800 0 [18:47:07]StoreToDocumentArchive [18:47:07]shift 529 fd 60040 [18:47:07]save to /storage/0529/doc_00060040 [18:47:07]save last doc name /storage/0529/doc_00060040 to /storage/kkm_last_doc_name [18:47:07]save OK [18:47:07]Clear old archive folders... [18:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=274 [18:47:07]tlvbuf is B6FA17C0 [18:47:07]SAM_PROTO_ClearQueue [18:47:07]wFMCommunicate request_size=4 [18:47:07]MH_SAM_APDU [18:47:07]CAPDU: 80 09 00 00 [18:47:07]Write to MH i2c: E2 08 00 CB 26 80 09 00 00 00 00 00 00 63 [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:07]Read from MH i2c: E2 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 03 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 03 00 CB 26 00 90 00 65 [18:47:07]RAPDU: 90 00 [18:47:07]wFMCommunicate OK [18:47:07]SAM_PROTO_ClearQueue done [18:47:07]KKMCreateOFDPacket [18:47:07]OFDProtocolAddRootSTLVToBuf [18:47:07]FM_MakeSignedData [18:47:07]FM_MakeSignedData [18:47:07]SAM_PROTO_SignData [18:47:07]wFMCommunicate request_size=4 [18:47:07]MH_SAM_APDU [18:47:07]CAPDU: 80 0D 01 02 [18:47:07]Write to MH i2c: E2 08 00 CC 26 80 0D 01 02 00 00 00 00 6B [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:07]Read from MH i2c: E2 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 03 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 03 00 CC 26 00 90 00 66 [18:47:07]RAPDU: 90 00 [18:47:07]wFMCommunicate OK [18:47:07]wFMCommunicate request_size=255 [18:47:07]MH_SAM_APDU [18:47:07]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 00 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 2F 96 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 [18:47:07]Write to MH i2c: E2 02 01 CD 26 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 00 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 2F 96 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 00 00 7D [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:07]Read from MH i2c: E2 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 03 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 03 00 CD 26 00 90 00 67 [18:47:07]RAPDU: 90 00 [18:47:07]wFMCommunicate OK [18:47:07]wFMCommunicate request_size=33 [18:47:07]MH_SAM_APDU [18:47:07]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 34 10 04 04 00 88 EA 00 00 35 04 06 00 B2 F5 0D 15 26 F9 [18:47:07]Write to MH i2c: E2 24 00 CE 26 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 34 10 04 04 00 88 EA 00 00 35 04 06 00 B2 F5 0D 15 26 F9 00 00 5B [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:07]Read from MH i2c: E2 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 03 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 03 00 CE 26 00 90 00 68 [18:47:07]RAPDU: 90 00 [18:47:07]wFMCommunicate OK [18:47:07]wFMCommunicate request_size=4 [18:47:07]MH_SAM_APDU [18:47:07]CAPDU: 80 0D 03 02 [18:47:07]Write to MH i2c: E2 08 00 CF 26 80 0D 03 02 00 00 00 00 70 [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:07]Read from MH i2c: E2 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 0B 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 0B 00 CF 26 00 61 AD 98 02 D9 64 A4 A2 90 00 9C [18:47:07]RAPDU: 61 AD 98 02 D9 64 A4 A2 90 00 [18:47:07]wFMCommunicate OK [18:47:07]SAM_PROTO_SignData done [18:47:07]FM_MakeSignedData done [18:47:07]CreateOFDProtocolMessage [18:47:07]wFMCommunicate request_size=4 [18:47:07]MH_SAM_APDU [18:47:07]CAPDU: 80 11 00 00 [18:47:07]Write to MH i2c: E2 08 00 D0 26 80 11 00 00 00 00 00 00 70 [18:47:07]Write i2c OK [18:47:07]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 D0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C7 [18:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:47:07]wFMCommunicate OK [18:47:07]CreateOFDProtocolMessage done [18:47:07]OFDSenderStorePacket 60040 [18:47:07]StoreOFDPacket docnum=60040 [18:47:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 26 01 00 00 41 69 1E 01 6E 91 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 00 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 2F 96 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 88 EA 00 00 35 04 06 00 B2 F5 0D 15 26 F9 61 AD 98 02 D9 64 A4 A2 [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/00060040 [18:47:07]NVStorageSaveData ofd_packets/00060040 [18:47:07]File name is /storage/ofd_packets/00060040 [18:47:07]Write 324 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 D1 26 F7 [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 D1 26 00 00 00 00 00 FF 0F 0C [18:47:07]RasterBufferAndPrint [18:47:07]line Счет N : (3)199819 [18:47:07]line ИНН: 02508201610067 [18:47:07]line Контрольно-Кассовый Чек [18:47:07]line ПРОДАЖА [18:47:07]line Товар: 4640030091645 [18:47:07]line Сигареты ESSE Exchange M [18:47:07]line 2.000 * 159.00 [18:47:07]line = 318.00 [18:47:07]line НДС 12% НСП 1% [18:47:07]line > о реализуемом товаре [18:47:07]line ИТОГО: 318.00 [18:47:07]line НСП 1% : 2.81 [18:47:07]line НДС 12% : 33.77 [18:47:07]line Наличными: 318.00 [18:47:07]line Безнал.: 0.00 [18:47:07]line Место: АЗС № 87 "Партнер Нефть" [18:47:07]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [18:47:07]line СНО: Общий режим [18:47:07]line Чек 115 24.10.2024 18:47 [18:47:07]line Смена: 529 ФФД: 1.0 [18:47:07]line ЗНМ: 0300000084 [18:47:07]line РНМ: 0000000000091622 [18:47:07]line Версия ККМ: 001 [18:47:07]line ФМ: 0000000000874674 [18:47:07]line ФД: 60040 [18:47:07]line ФПД: 196765556221689 [18:47:08]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184711&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60040&fm=196765556221689&tin=02508201610067®Number=0000000000091622&sum=31800 [18:47:08]line 0 [18:47:08]OFD Sender: Processing packet 60040 [packets to send 30, broken 29] [18:47:08]ProducePacketName [18:47:08]name=ofd_packets/00060040 [18:47:08]OFD Sender: To server: pG, [18:47:08]CommunicateWithHost lk.salyk.kg:30040 [18:47:08]ConnectInit lk.salyk.kg [18:47:08]written 0, free lines is 4095 [18:47:08]Connected sock=10 [18:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 26 01 00 00 41 69 1E 01 6E 91 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 00 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 2F 96 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 88 EA 00 00 35 04 06 00 B2 F5 0D 15 26 F9 61 AD 98 02 D9 64 A4 A2 [18:47:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 FA 0D 47 00 19 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 34 36 37 34 10 04 04 00 88 EA 00 00 F4 03 04 00 1F 3C 1A 67 B6 04 01 00 00 7F 67 44 A6 F8 CC 0D CD [18:47:08]CommunicateWithHost err = 0 [18:47:08]CheckOFDResponse [18:47:08]1017 (14) - 77093643461234 [18:47:08]1041 (16) - 0000000000874674 [18:47:08]1040 (4) - 60040 [18:47:08]1012 (4) - 24.10.2024 12:22 [18:47:08]1206 (1) - 0 [18:47:08]OFD Sender: Remove packet 60040 [18:47:08]ProducePacketName [18:47:08]name=ofd_packets/00060040 [18:47:08]NVStorageDeleteData [18:47:08]Write to MH i2c: 01 00 00 F9 26 1F [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: 01 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: 01 07 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: 01 07 00 F9 26 00 00 00 00 00 00 0D 33 [18:47:08]RasterBufferAndPrint [18:47:08]line [18:47:08]line [18:47:08]line [18:47:08]line [18:47:08]line [18:47:08]written 0, free lines is 3333 [18:47:08]MH_Cut [18:47:08]Write to MH i2c: D1 01 00 00 27 01 F9 [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: D1 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: D1 01 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: D1 01 00 00 27 00 F8 [18:47:08]Write to MH i2c: 01 00 00 01 27 28 [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]int [18:47:08]*** FLAG_PRN_PAP2 set [18:47:08]*** Cut start [18:47:08]*** Partial cut [18:47:08]*** CUTSNS_PIN = 1 [18:47:08]*** CUTSNS_PIN = 0 [18:47:09]OFD Sender: No OFD packet to send [18:47:09]*** 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]Read from MH i2c: *** Cut end [18:47:09]01 07 00 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: 01 07 00 01 27 00 02 00 00 00 FF 0F 3F [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 02 27 80 11 00 00 00 00 00 00 A3 [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 02 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 FA [18:47:09]RAPDU: Write to MH i2c: 11 01 04 00 10 00 00 03 30 27 30 2A 30 [18:47:09]30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:47:09]Write i2c OK [18:47:09]wFMCommunicate OK [18:47:09]MH_I2C_Read... [18:47:09]requested_item fd.num is exist - process it [18:47:09]Read from MH i2c: SAM_PROTO_GetFieldsCounters [18:47:09]01 wFMCommunicate request_size=4 [18:47:09] [18:47:09]MH_SAM_APDU [18:47:09]MH_I2C_Read... [18:47:09]CAPDU: 80 Read from MH i2c: 13 01 00 07 00 00 [18:47:09] [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: 01 07 00 03 27 00 02 00 00 00 FF 0F 41 [18:47:09]Write to MH i2c: state=0 [18:47:09]E2 Cover opened [18:47:09]08 00 04 27 80 13 00 00 00 00 00 00 A7 [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 04 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 88 EA 00 00 0E 04 04 00 11 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 A5 [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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 88 EA 00 00 0E 04 04 00 11 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 [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 05 27 80 13 01 00 00 00 00 00 A9 [18:47:09]Write i2c OK [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 [18:47:09]MH_I2C_Read... [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 05 27 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 DC [18:47:09]RAPDU: 09 00 01 0F 98 19 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":"0000000000874674","fd.num":60040,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [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":"0000000000874674","fd.num":60040,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [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:14]OFD Sender: No OFD packet to send [18:47:14]Write to MH i2c: 01 00 00 06 27 2D [18:47:14]Write i2c OK [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: 01 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: 01 07 00 [18:47:14]MH_I2C_Read... [18:47:14]Read from MH i2c: 01 07 00 06 27 00 02 00 00 00 FF 0F 44 [18:47:14]state=3 [18:47:14]Cover opened [18:47:19]OFD Sender: No OFD packet to send [18:47:19]Write to MH i2c: 01 00 00 07 27 2E [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 07 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 07 00 07 27 00 02 00 00 00 FF 0F 45 [18:47:19]state=3 [18:47:19]Cover opened [18:47:21]int [18:47:21]Write to MH i2c: 01 00 00 08 27 2F [18:47:21]*** FLAG_PRN_PAP1 set [18:47:21]Write i2c OK [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 07 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 07 00 08 27 00 03 00 00 00 FF 0F 47 [18:47:21]state=3 [18:47:21]No paper [18:47:21]Cover opened [18:47:21]int [18:47:21]Write to MH i2c: 01 00 00 09 27 30 [18:47:21]*** FLAG_PRN_PAP2 reset [18:47:21]Write i2c OK [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 07 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 07 00 09 27 00 01 00 00 00 FF 0F 46 [18:47:21]state=3 [18:47:21]No paper [18:47:21]Cover closed [18:47:21]int [18:47:21]Write to MH i2c: 01 00 00 0A 27 31 [18:47:21]*** FLAG_PRN_PAP2 set [18:47:21]Write i2c OK [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 07 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 07 00 0A 27 00 03 00 00 00 FF 0F 49 [18:47:21]state=0 [18:47:21]No paper [18:47:21]Cover opened [18:47:21]int [18:47:21]Write to MH i2c: 01 00 00 0B 27 32 [18:47:21]*** FLAG_PRN_PAP2 reset [18:47:21]Write i2c OK [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 07 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 07 00 0B 27 00 01 00 00 00 FF 0F 48 [18:47:21]state=3 [18:47:21]No paper [18:47:21]Cover closed [18:47:21]int [18:47:21]Write to MH i2c: 01 00 00 0C 27 33 [18:47:21]*** FLAG_PRN_PAP2 set [18:47:21]Write i2c OK [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 07 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 07 00 0C 27 00 03 00 00 00 FF 0F 4B [18:47:21]state=0 [18:47:21]No paper [18:47:21]Cover opened [18:47:24]OFD Sender: No OFD packet to send [18:47:26]int [18:47:26]Write to MH i2c: 01 00 00 0D 27 34 [18:47:26]*** FLAG_PRN_PAP2 reset [18:47:26]Write i2c OK [18:47:26]MH_I2C_Read... [18:47:26]Read from MH i2c: 01 [18:47:26]MH_I2C_Read... [18:47:26]Read from MH i2c: 01 07 00 [18:47:26]MH_I2C_Read... [18:47:26]Read from MH i2c: 01 07 00 0D 27 00 01 00 00 00 FF 0F 4A [18:47:26]state=3 [18:47:26]No paper [18:47:26]Cover closed [18:47:26]int [18:47:26]Write to MH i2c: 01 00 00 0E 27 35 [18:47:26]*** FLAG_PRN_PAP1 reset [18:47:26]Write i2c OK [18:47:26]MH_I2C_Read... [18:47:26]Read from MH i2c: 01 [18:47:26]MH_I2C_Read... [18:47:26]Read from MH i2c: 01 07 00 [18:47:26]MH_I2C_Read... [18:47:26]Read from MH i2c: 01 07 00 0E 27 00 00 00 00 00 FF 0F 4A [18:47:26]state=0 [18:47:28]int [18:47:28]Write to MH i2c: 01 00 00 0F 27 36 [18:47:28]*** FLAG_PRN_KEY set [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 07 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 07 00 0F 27 00 08 00 00 00 FF 0F 53 [18:47:28]state=0 [18:47:28]Key pressed [18:47:28]Feed [18:47:28]Write to MH i2c: D8 00 00 10 27 0E [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: D8 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: D8 01 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: D8 01 00 10 27 00 0F [18:47:28]int [18:47:28]Write to MH i2c: 01 00 00 11 27 38 [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 07 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 07 00 11 27 00 48 00 00 00 3C 00 C3 [18:47:28]state=2 [18:47:28]Key pressed [18:47:28]int [18:47:28]Write to MH i2c: 01 00 00 12 27 39 [18:47:28]*** FLAG_PRN_KEY reset [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 07 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 07 00 12 27 00 00 00 00 00 F6 0F 45 [18:47:28]state=2 [18:47:28]Stop feed [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:41]accept exits with 7 [18:47:41]New connection [18:47:41]New thread 3067252068 created [18:47:41]Thread 3067108708 joined [18:47:41]Waiting for new connection... [18:47:41] Sock 7.Parse request [18:47:41]Sock 7.Check first char [18:47:41]Sock 7.First char is OK [18:47:41]request: POST /json_proto HTTP/1.0 [18:47:41]Method: POST [18:47:41]URL: /json_proto [18:47:41]Method is POST - this is cgi request [18:47:41]url: /json_proto [18:47:41]query_string will be loaded in cgi processing [18:47:41]execute_cgi json_proto POST (null) [18:47:41]execute_cgi path=json_proto method=POST [18:47:41]POST find Content-Length [18:47:41]Host: 172.17.42.196:8080 [18:47:41]Content-Length: 215 [18:47:41]Content-Type: application/json [18:47:41] [18:47:41]POST finish read [18:47:41]Found Content-Length = 215 [18:47:41]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" ] } } [18:47:41]execute_script... [18:47:41]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" ] } } [18:47:41]POST & json_proto [18:47:41]process_json_proto [18:47:41]json parsed OK: [18:47:41]protocol is kg_v1.0 [18:47:41]action value=get_value [18:47:41]process_action get_value [18:47:41]cmd_get_value [18:47:41]process_action get_value done [18:47:41]requested_data is exist [18:47:41]produce_requested_data [18:47:41]requested_item kkm.sn is exist - process it [18:47:41]requested_item kkm.ver is exist - process it [18:47:41]requested_item fm.sn is exist - process it [18:47:41]wFMCommunicate request_size=4 [18:47:41]MH_SAM_APDU [18:47:41]CAPDU: 80 11 00 00 [18:47:41]Write to MH i2c: E2 08 00 13 27 80 11 00 00 00 00 00 00 B4 [18:47:41]Write i2c OK [18:47:41]MH_I2C_Read... [18:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:41]Read from MH i2c: E2 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: E2 17 00 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: E2 17 00 13 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 0B [18:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:47:41]wFMCommunicate OK [18:47:41]requested_item fd.num is exist - process it [18:47:41]SAM_PROTO_GetFieldsCounters [18:47:41]wFMCommunicate request_size=4 [18:47:41]MH_SAM_APDU [18:47:41]CAPDU: 80 13 00 00 [18:47:41]Write to MH i2c: E2 08 00 14 27 80 13 00 00 00 00 00 00 B7 [18:47:41]Write i2c OK [18:47:41]MH_I2C_Read... [18:47:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:41]Read from MH i2c: E2 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: E2 62 00 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: E2 62 00 14 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 88 EA 00 00 0E 04 04 00 11 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 B5 [18:47:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 88 EA 00 00 0E 04 04 00 11 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 [18:47:41]wFMCommunicate OK [18:47:41]SAM_PROTO_GetFieldsCounters done [18:47:41]requested_item shift.num is exist - process it [18:47:41]requested_item shift.opened is exist - process it [18:47:41]req_shift_opened [18:47:41]FM_GetShiftState [18:47:41]SAM_PROTO_GetShiftState [18:47:41]wFMCommunicate request_size=4 [18:47:41]MH_SAM_APDU [18:47:41]CAPDU: 80 13 01 00 [18:47:41]Write to MH i2c: E2 08 00 15 27 80 13 01 00 00 00 00 00 B9 [18:47:41]Write i2c OK [18:47:41]MH_I2C_Read... [18:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:41]Read from MH i2c: E2 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: E2 0E 00 [18:47:41]MH_I2C_Read... [18:47:41]Read from MH i2c: E2 0E 00 15 27 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 EC [18:47:41]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:47:41]wFMCommunicate OK [18:47:41]SAM_PROTO_GetShiftState done [18:47:41]FM_GetShiftState done [18:47:41]req_shift_opened done [18:47:41]requested_item shift.open_date is exist - process it [18:47:41]req_shift_open_date [18:47:41]req_shift_open_date done [18:47:41]produce_requested_data done [18:47:41]produce_requested_data return {"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60040,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [18:47:41]process_action_free get_value [18:47:41]json_value_free [18:47:41]json_value_free done [18:47:41]process_json_proto returns [18:47:41]Send response to host [18:47:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60040,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [18:47:41]free response buf [18:47:41]execute_script done [18:47:41]execute_script returns [18:47:41]free content buf [18:47:41]Sock 7.Close socket [18:47:41]Sock 7.Thread stoped [18:47:41]accept exits with 9 [18:47:41]New connection [18:47:41]New thread 3067108708 created [18:47:41]Thread 3067252068 joined [18:47:41]Waiting for new connection... [18:47:41] Sock 9.Parse request [18:47:41]Sock 9.Check first char [18:47:41]Sock 9.First char is OK [18:47:41]request: POST /json_proto HTTP/1.0 [18:47:41]Method: POST [18:47:41]URL: /json_proto [18:47:41]Method is POST - this is cgi request [18:47:41]url: /json_proto [18:47:41]query_string will be loaded in cgi processing [18:47:41]execute_cgi json_proto POST (null) [18:47:41]execute_cgi path=json_proto method=POST [18:47:41]POST find Content-Length [18:47:41]Host: 172.17.42.196:8080 [18:47:41]Content-Length: 331 [18:47:41]Content-Type: application/json [18:47:41] [18:47:41]POST finish read [18:47:41]Found Content-Length = 331 [18:47:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:47:41]execute_script... [18:47:42]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" ] } } [18:47:42]POST & json_proto [18:47:42]process_json_proto [18:47:42]json parsed OK: [18:47:42]protocol is kg_v1.0 [18:47:42]action value=get_value [18:47:42]process_action get_value [18:47:42]cmd_get_value [18:47:42]process_action get_value done [18:47:42]requested_data is exist [18:47:42]produce_requested_data [18:47:42]requested_item fm.sale.total is exist - process it [18:47:42]SAM_PROTO_GetFMData [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 13 03 00 [18:47:42]Write to MH i2c: E2 08 00 16 27 80 13 03 00 00 00 00 00 BC [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 FD 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 FD 00 16 27 00 C2 04 85 04 BE 04 6E 04 04 00 65 E6 00 00 69 04 A0 00 6F 04 04 00 D5 E5 00 00 B1 04 04 00 7D E6 8E 6C 70 04 04 00 38 60 EB 58 72 04 04 00 45 86 A3 13 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 36 A1 87 0B 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 41 E0 F5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 C4 [18:47:42]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 65 E6 00 00 69 04 A0 00 6F 04 04 00 D5 E5 00 00 B1 04 04 00 7D E6 8E 6C 70 04 04 00 38 60 EB 58 72 04 04 00 45 86 A3 13 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 36 A1 87 0B 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 41 E0 F5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 [18:47:42]wFMCommunicate OK [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 17 00 00 [18:47:42]Write to MH i2c: E2 08 00 17 27 80 17 00 00 00 00 00 00 BE [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:47:42]Read from MH i2c: E2 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 FD 00 [18:47:42]MH_I2C_Read... [18:47:42]Read from MH i2c: E2 FD 00 17 27 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2B [18:47:42]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [18:47:42]wFMCommunicate OK [18:47:42]wFMCommunicate request_size=4 [18:47:42]MH_SAM_APDU [18:47:42]CAPDU: 80 17 00 00 [18:47:42]Write to MH i2c: E2 08 00 18 27 80 17 00 00 00 00 00 00 BF [18:47:42]Write i2c OK [18:47:42]MH_I2C_Read... [18:47:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:47:43]Read from MH i2c: E2 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: E2 FD 00 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: E2 FD 00 18 27 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [18:47:43]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:47:43]wFMCommunicate OK [18:47:43]wFMCommunicate request_size=4 [18:47:43]MH_SAM_APDU [18:47:43]CAPDU: 80 17 00 00 [18:47:43]Write to MH i2c: E2 08 00 19 27 80 17 00 00 00 00 00 00 C0 [18:47:43]Write i2c OK [18:47:43]MH_I2C_Read... [18:47:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:47:43]Read from MH i2c: E2 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: E2 FD 00 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: E2 FD 00 19 27 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3B [18:47:43]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:47:43]wFMCommunicate OK [18:47:43]wFMCommunicate request_size=4 [18:47:43]MH_SAM_APDU [18:47:43]CAPDU: 80 17 00 00 [18:47:43]Write to MH i2c: E2 08 00 1A 27 80 17 00 00 00 00 00 00 C1 [18:47:43]Write i2c OK [18:47:43]MH_I2C_Read... [18:47:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [18:47:43]Read from MH i2c: E2 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: E2 DF 00 [18:47:43]MH_I2C_Read... [18:47:43]Read from MH i2c: E2 DF 00 1A 27 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A1 [18:47:43]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [18:47:43]wFMCommunicate OK [18:47:43]SAM_PROTO_GetFMData done [18:47:43]requested_item fm.sale_refund.total is exist - process it [18:47:43]requested_item fm.buy.total is exist - process it [18:47:43]requested_item shift.sale.total is exist - process it [18:47:43]SAM_PROTO_GetShiftData [18:47:43]wFMCommunicate request_size=4 [18:47:43]MH_SAM_APDU [18:47:43]CAPDU: 80 13 02 00 [18:47:43]Write to MH i2c: E2 08 00 1B 27 80 13 02 00 00 00 00 00 C0 [18:47:43]Write i2c OK [18:47:43]MH_I2C_Read... [18:47:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 FD 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 FD 00 1B 27 00 AE 04 AA 04 AA 04 6E 04 04 00 73 00 00 00 69 04 9B 00 6F 04 04 00 73 00 00 00 B1 04 03 00 6B 25 39 70 04 03 00 68 52 27 72 04 03 00 03 D3 11 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 AF 11 06 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 6F 81 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AE [18:47:44]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 73 00 00 00 69 04 9B 00 6F 04 04 00 73 00 00 00 B1 04 03 00 6B 25 39 70 04 03 00 68 52 27 72 04 03 00 03 D3 11 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 AF 11 06 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 6F 81 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [18:47:44]wFMCommunicate OK [18:47:44]wFMCommunicate request_size=4 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 17 00 00 [18:47:44]Write to MH i2c: E2 08 00 1C 27 80 17 00 00 00 00 00 00 C3 [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]OFD Sender: No OFD packet to send [18:47:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 FD 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 FD 00 1C 27 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 E5 [18:47:44]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 [18:47:44]wFMCommunicate OK [18:47:44]wFMCommunicate request_size=4 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 17 00 00 [18:47:44]Write to MH i2c: E2 08 00 1D 27 80 17 00 00 00 00 00 00 C4 [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 FD 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 FD 00 1D 27 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7B [18:47:44]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 [18:47:44]wFMCommunicate OK [18:47:44]wFMCommunicate request_size=4 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 17 00 00 [18:47:44]Write to MH i2c: E2 08 00 1E 27 80 17 00 00 00 00 00 00 C5 [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 FD 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 FD 00 1E 27 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 37 [18:47:44]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 [18:47:44]wFMCommunicate OK [18:47:44]wFMCommunicate request_size=4 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 17 00 00 [18:47:44]Write to MH i2c: E2 08 00 1F 27 80 17 00 00 00 00 00 00 C6 [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [18:47:45]Read from MH i2c: E2 CB 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 CB 00 1F 27 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 AF [18:47:45]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 [18:47:45]wFMCommunicate OK [18:47:45]SAM_PROTO_GetShiftData done [18:47:45]requested_item shift.sale.total_cash is exist - process it [18:47:45]requested_item shift.sale_refund.total is exist - process it [18:47:45]requested_item shift.sale_refund.total_cash is exist - process it [18:47:45]requested_item shift.buy.total is exist - process it [18:47:45]requested_item shift.buy.total_cash is exist - process it [18:47:45]produce_requested_data done [18:47:45]produce_requested_data return {"fm.sale.total":18213044.45,"fm.sale_refund.total":140703.00,"fm.buy.total":0.00,"shift.sale.total":37451.31,"shift.sale.total_cash":25770.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} [18:47:45]process_action_free get_value [18:47:45]json_value_free [18:47:45]json_value_free done [18:47:45]process_json_proto returns [18:47:45]Send response to host [18:47:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18213044.45,"fm.sale_refund.total":140703.00,"fm.buy.total":0.00,"shift.sale.total":37451.31,"shift.sale.total_cash":25770.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}}} [18:47:45]free response buf [18:47:45]execute_script done [18:47:45]execute_script returns [18:47:45]free content buf [18:47:45]Sock 9.Close socket [18:47:45]Sock 9.Thread stoped [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:00]accept exits with 7 [18:49:00]New connection [18:49:00]New thread 3067252068 created [18:49:00]Thread 3067108708 joined [18:49:00]Waiting for new connection... [18:49:00] Sock 7.Parse request [18:49:00]Sock 7.Check first char [18:49:00]Sock 7.First char is OK [18:49:00]request: POST /json_proto HTTP/1.0 [18:49:00]Method: POST [18:49:00]URL: /json_proto [18:49:00]Method is POST - this is cgi request [18:49:00]url: /json_proto [18:49:00]query_string will be loaded in cgi processing [18:49:00]execute_cgi json_proto POST (null) [18:49:00]execute_cgi path=json_proto method=POST [18:49:00]POST find Content-Length [18:49:00]Host: 172.17.42.196:8080 [18:49:00]Content-Length: 667 [18:49:00]Content-Type: application/json [18:49:00] [18:49:00]POST finish read [18:49:00]Found Content-Length = 667 [18:49:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199820", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 4.000, "sum" : 380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 380.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:00]execute_script... [18:49:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199820", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 4.000, "sum" : 380.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 380.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:00]POST & json_proto [18:49:00]process_json_proto [18:49:00]json parsed OK: [18:49:00]protocol is kg_v1.0 [18:49:00]action value=close_receipt [18:49:00]process_action close_receipt [18:49:00]cmd_close_receipt [18:49:00]MH_GetDate [18:49:00]Write to MH i2c: F0 00 00 20 27 36 [18:49:00]Write i2c OK [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: F0 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: F0 09 00 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: F0 09 00 20 27 00 A1 96 1A 67 FF C4 6B 64 89 [18:49:00]GetLastDocTimeStamp 1729795631 [18:49:00]current date 1729795745 [18:49:00]FM_GetShiftState [18:49:00]SAM_PROTO_GetShiftState [18:49:00]wFMCommunicate request_size=4 [18:49:00]MH_SAM_APDU [18:49:00]CAPDU: 80 13 01 00 [18:49:00]Write to MH i2c: E2 08 00 21 27 80 13 01 00 00 00 00 00 C5 [18:49:00]Write i2c OK [18:49:00]MH_I2C_Read... [18:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:00]Read from MH i2c: E2 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 0E 00 [18:49:00]MH_I2C_Read... [18:49:00]Read from MH i2c: E2 0E 00 21 27 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 F8 [18:49:00]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:49:00]wFMCommunicate OK [18:49:00]SAM_PROTO_GetShiftState done [18:49:00]FM_GetShiftState done [18:49:00]opened in 1729730575 [18:49:00]opened+sec_in_day 1729816975 [18:49:00]quantity*price = 38000 [18:49:00]sum+1 = 38001 [18:49:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 380.00 НСП 1% : 3.36 НДС 12% : 40.35 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 116 24.10.2024 18:49 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60041 ФПД: 59712925606618 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184905&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60041&fm=59712925606618&tin=02508201610067®Number=0000000000091622&sum=38000 0 [18:49:01]StoreToDocumentArchive [18:49:01]shift 529 fd 60041 [18:49:01]save to /storage/0529/doc_00060041 [18:49:01]save last doc name /storage/0529/doc_00060041 to /storage/kkm_last_doc_name [18:49:01]save OK [18:49:01]Clear old archive folders... [18:49:01]ProcessDocumentItem done err = 0, tmpTLVsize=296 [18:49:01]tlvbuf is 00D8F710 [18:49:01]SAM_PROTO_ClearQueue [18:49:01]wFMCommunicate request_size=4 [18:49:01]MH_SAM_APDU [18:49:01]CAPDU: 80 09 00 00 [18:49:01]Write to MH i2c: E2 08 00 2E 27 80 09 00 00 00 00 00 00 C7 [18:49:01]Write i2c OK [18:49:01]MH_I2C_Read... [18:49:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:01]Read from MH i2c: E2 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 03 00 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 03 00 2E 27 00 90 00 C9 [18:49:01]RAPDU: 90 00 [18:49:01]wFMCommunicate OK [18:49:01]SAM_PROTO_ClearQueue done [18:49:01]KKMCreateOFDPacket [18:49:01]OFDProtocolAddRootSTLVToBuf [18:49:01]FM_MakeSignedData [18:49:01]FM_MakeSignedData [18:49:01]SAM_PROTO_SignData [18:49:01]wFMCommunicate request_size=4 [18:49:01]MH_SAM_APDU [18:49:01]CAPDU: 80 0D 01 02 [18:49:01]Write to MH i2c: E2 08 00 2F 27 80 0D 01 02 00 00 00 00 CF [18:49:01]Write i2c OK [18:49:01]MH_I2C_Read... [18:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:01]Read from MH i2c: E2 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 03 00 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 03 00 2F 27 00 90 00 CA [18:49:01]RAPDU: 90 00 [18:49:01]wFMCommunicate OK [18:49:01]wFMCommunicate request_size=255 [18:49:01]MH_SAM_APDU [18:49:01]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 70 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 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 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 74 00 00 00 F4 03 04 00 A1 96 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [18:49:01]Write to MH i2c: E2 02 01 30 27 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 70 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 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 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 74 00 00 00 F4 03 04 00 A1 96 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 76 [18:49:01]Write i2c OK [18:49:01]MH_I2C_Read... [18:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:01]Read from MH i2c: E2 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 03 00 [18:49:01]MH_I2C_Read... [18:49:01]Read from MH i2c: E2 03 00 30 27 00 90 00 CB [18:49:01]RAPDU: 90 00 [18:49:01]wFMCommunicate OK [18:49:01]wFMCommunicate request_size=55 [18:49:01]MH_SAM_APDU [18:49:01]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 89 EA 00 00 35 04 06 00 36 4E FF B8 22 DA [18:49:01]Write to MH i2c: E2 3A 00 31 27 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 89 EA 00 00 35 04 06 00 36 4E FF B8 22 DA 00 00 D4 [18:49:01]Write i2c OK [18:49:01]MH_I2C_Read... [18:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:02]Read from MH i2c: E2 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: E2 03 00 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: E2 03 00 31 27 00 90 00 CC [18:49:02]RAPDU: 90 00 [18:49:02]wFMCommunicate OK [18:49:02]wFMCommunicate request_size=4 [18:49:02]MH_SAM_APDU [18:49:02]CAPDU: 80 0D 03 02 [18:49:02]Write to MH i2c: E2 08 00 32 27 80 0D 03 02 00 00 00 00 D4 [18:49:02]Write i2c OK [18:49:02]MH_I2C_Read... [18:49:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:02]Read from MH i2c: E2 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: E2 0B 00 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: E2 0B 00 32 27 00 E4 5E 11 C6 D0 A1 9D 9D 90 00 99 [18:49:02]RAPDU: E4 5E 11 C6 D0 A1 9D 9D 90 00 [18:49:02]wFMCommunicate OK [18:49:02]SAM_PROTO_SignData done [18:49:02]FM_MakeSignedData done [18:49:02]CreateOFDProtocolMessage [18:49:02]wFMCommunicate request_size=4 [18:49:02]MH_SAM_APDU [18:49:02]CAPDU: 80 11 00 00 [18:49:02]Write to MH i2c: E2 08 00 33 27 80 11 00 00 00 00 00 00 D4 [18:49:02]Write i2c OK [18:49:02]MH_I2C_Read... [18:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:02]Read from MH i2c: E2 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: E2 17 00 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: E2 17 00 33 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 2B [18:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:49:02]wFMCommunicate OK [18:49:02]CreateOFDProtocolMessage done [18:49:02]OFDSenderStorePacket 60041 [18:49:02]StoreOFDPacket docnum=60041 [18:49:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 3C 01 00 00 06 6B 34 01 59 87 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 70 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 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 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 74 00 00 00 F4 03 04 00 A1 96 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 89 EA 00 00 35 04 06 00 36 4E FF B8 22 DA E4 5E 11 C6 D0 A1 9D 9D [18:49:02]CheckFolder [18:49:02]dirname=/storage/ofd_packets [18:49:02]CheckFolder done [18:49:02]ProducePacketName [18:49:02]name=ofd_packets/00060041 [18:49:02]NVStorageSaveData ofd_packets/00060041 [18:49:02]File name is /storage/ofd_packets/00060041 [18:49:02]Write 346 bytes [18:49:02]NVStorageSaveData done [18:49:02]OFDSenderStorePacket done [18:49:02]KKMCreateOFDPacket done [18:49:02]NVStorageSaveData kkm_last_timestamp [18:49:02]File name is /storage/kkm_last_timestamp [18:49:02]Write 4 bytes [18:49:02]NVStorageSaveData done [18:49:02]OFD Sender: Processing packet 60041 [packets to send 30, broken 29] [18:49:02]ProducePacketName [18:49:02]name=ofd_packets/00060041 [18:49:02]OFD Sender: To server: pG, [18:49:02]CommunicateWithHost lk.salyk.kg:30040 [18:49:02]ConnectInit lk.salyk.kg [18:49:02]ExternCall_PrintAddStr [18:49:02]wPrintStart [18:49:02]Write to MH i2c: 01 00 00 34 27 5B [18:49:02]Write i2c OK [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: 01 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: 01 07 00 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: 01 07 00 34 27 00 00 00 00 00 FF 0F 70 [18:49:02]RasterBufferAndPrint [18:49:02]line Счет N : (3)199820 [18:49:02]line ИНН: 02508201610067 [18:49:02]line Контрольно-Кассовый Чек [18:49:02]line ПРОДАЖА [18:49:02]line Товар: 4631150682851 [18:49:02]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [18:49:02]line 4.000 * 95.00 [18:49:02]line = 380.00 [18:49:02]line НДС 12% НСП 1% [18:49:02]line > о реализуемом товаре [18:49:02]line ИТОГО: 380.00 [18:49:02]line НСП 1% : 3.36 [18:49:02]line НДС 12% : 40.35 [18:49:02]line Наличными: 380.00 [18:49:02]line Безнал.: 0.00 [18:49:02]line Место: АЗС № 87 "Партнер Нефть" [18:49:02]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [18:49:02]line СНО: Общий режим [18:49:02]line Чек 116 24.10.2024 18:49 [18:49:02]line Смена: 529 ФФД: 1.0 [18:49:02]line ЗНМ: 0300000084 [18:49:02]line РНМ: 0000000000091622 [18:49:02]line Версия ККМ: 001 [18:49:02]line ФМ: 0000000000874674 [18:49:02]line ФД: 60041 [18:49:02]line ФПД: 59712925606618 [18:49:02]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184905&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60041&fm=59712925606618&tin=02508201610067®Number=0000000000091622&sum=38000 [18:49:02]line 0 [18:49:02]Connected sock=11 [18:49:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 3C 01 00 00 06 6B 34 01 59 87 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 70 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 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 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 74 00 00 00 F4 03 04 00 A1 96 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 89 EA 00 00 35 04 06 00 36 4E FF B8 22 DA E4 5E 11 C6 D0 A1 9D 9D [18:49:02]written 0, free lines is 4095 [18:49:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 94 18 47 00 AF E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 89 EA 00 00 F4 03 04 00 91 3C 1A 67 B6 04 01 00 00 CD 40 7B A7 75 BA 85 E9 [18:49:02]CommunicateWithHost err = 0 [18:49:02]CheckOFDResponse [18:49:02]1017 (14) - 77093643461234 [18:49:02]1041 (16) - 0000000000874674 [18:49:02]1040 (4) - 60041 [18:49:02]1012 (4) - 24.10.2024 12:24 [18:49:02]1206 (1) - 0 [18:49:02]OFD Sender: Remove packet 60041 [18:49:02]ProducePacketName [18:49:02]name=ofd_packets/00060041 [18:49:02]NVStorageDeleteData [18:49:02]Write to MH i2c: 01 00 00 5D 27 84 [18:49:02]Write i2c OK [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: 01 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: 01 07 00 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: 01 07 00 5D 27 00 00 00 00 00 F2 0C 89 [18:49:02]RasterBufferAndPrint [18:49:02]line [18:49:02]line [18:49:02]line [18:49:02]line [18:49:02]line [18:49:02]written 0, free lines is 3320 [18:49:02]MH_Cut [18:49:02]Write to MH i2c: D1 01 00 64 27 01 5D [18:49:02]Write i2c OK [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: D1 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: D1 01 00 [18:49:02]MH_I2C_Read... [18:49:02]Read from MH i2c: D1 01 00 64 27 00 5C [18:49:02]Write to MH i2c: 01 00 00 65 27 8C [18:49:02]Write i2c OK [18:49:02]MH_I2C_Read... [18:49:03]OFD Sender: No OFD packet to send [18:49:03]*** Cut start [18:49:03]*** Partial cut [18:49:03]*** CUTSNS_PIN = 1 [18:49:03]*** CUTSNS_PIN = 0 [18:49:03]*** Brake cut motor [18:49:04]Read from MH i2c: 01 [18:49:04]MH_I2C_Read... [18:49:04]*** Stop cut motor [18:49:04]*** Cut end [18:49:04]Read from MH i2c: 01 07 00 [18:49:04]MH_I2C_Read... [18:49:04]Read from MH i2c: 01 07 00 65 27 00 00 00 00 00 FF 0F A1 [18:49:04]process_action close_receipt done [18:49:04]requested_data is exist [18:49:04]produce_requested_data [18:49:04]requested_item fm.sn is exist - process it [18:49:04]wFMCommunicate request_size=4 [18:49:04]MH_SAM_APDU [18:49:04]CAPDU: 80 11 00 00 [18:49:04]Write to MH i2c: E2 08 00 66 27 80 11 00 00 00 00 00 00 07 [18:49:04]Write i2c OK [18:49:04]MH_I2C_Read... [18:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:04]Read from MH i2c: E2 [18:49:04]MH_I2C_Read... [18:49:04]Read from MH i2c: E2 17 00 [18:49:04]MH_I2C_Read... [18:49:04]Read from MH i2c: E2 17 00 66 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 5E [18:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:49:04]wFMCommunicate OK [18:49:04]requested_item fd.num is exist - process it [18:49:04]SAM_PROTO_GetFieldsCounters [18:49:04]wFMCommunicate request_size=4 [18:49:04]MH_SAM_APDU [18:49:04]CAPDU: 80 13 00 00 [18:49:04]Write to MH i2c: E2 08 00 67 27 80 13 00 00 00 00 00 00 0A [18:49:04]Write i2c OK [18:49:04]MH_I2C_Read... [18:49:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:04]Read from MH i2c: E2 [18:49:04]MH_I2C_Read... [18:49:04]Read from MH i2c: E2 62 00 [18:49:04]MH_I2C_Read... [18:49:04]Read from MH i2c: E2 62 00 67 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 89 EA 00 00 0E 04 04 00 11 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 0C [18:49: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 89 EA 00 00 0E 04 04 00 11 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 [18:49:04]wFMCommunicate OK [18:49:04]SAM_PROTO_GetFieldsCounters done [18:49:04]requested_item shift.num is exist - process it [18:49:04]requested_item shift.opened is exist - process it [18:49:04]req_shift_opened [18:49:04]FM_GetShiftState [18:49:04]SAM_PROTO_GetShiftState [18:49:04]wFMCommunicate request_size=4 [18:49:04]MH_SAM_APDU [18:49:04]CAPDU: 80 13 01 00 [18:49:04]Write to MH i2c: E2 08 00 68 27 80 13 01 00 00 00 00 00 0C [18:49:04]Write i2c OK [18:49:04]MH_I2C_Read... [18:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:04]Read from MH i2c: E2 [18:49:04]MH_I2C_Read... [18:49:04]Read from MH i2c: E2 0E 00 [18:49:04]MH_I2C_Read... [18:49:04]Read from MH i2c: E2 0E 00 68 27 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 3F [18:49:04]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:49:04]wFMCommunicate OK [18:49:04]SAM_PROTO_GetShiftState done [18:49:04]FM_GetShiftState done [18:49:04]req_shift_opened done [18:49:04]requested_item shift.open_date is exist - process it [18:49:04]req_shift_open_date [18:49:04]req_shift_open_date done [18:49:04]produce_requested_data done [18:49:04]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60041,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [18:49:04]process_action_free close_receipt [18:49:04]json_value_free [18:49:04]json_value_free done [18:49:04]process_json_proto returns [18:49:04]Send response to host [18:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60041,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [18:49:04]free response buf [18:49:04]execute_script done [18:49:04]execute_script returns [18:49:04]free content buf [18:49:04]Sock 7.Close socket [18:49:04]Sock 7.Thread stoped [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]accept exits with 9 [18:56:28]New connection [18:56:28]New thread 3067108708 created [18:56:28]Thread 3067252068 joined [18:56:28]Waiting for new connection... [18:56:28] Sock 9.Parse request [18:56:28]Sock 9.Check first char [18:56:28]Sock 9.First char is OK [18:56:28]request: POST /json_proto HTTP/1.0 [18:56:28]Method: POST [18:56:28]URL: /json_proto [18:56:28]Method is POST - this is cgi request [18:56:28]url: /json_proto [18:56:28]query_string will be loaded in cgi processing [18:56:28]execute_cgi json_proto POST (null) [18:56:28]execute_cgi path=json_proto method=POST [18:56:28]POST find Content-Length [18:56:28]Host: 172.17.42.196:8080 [18:56:28]Content-Length: 767 [18:56:28]Content-Type: application/json [18:56:28] [18:56:28]POST finish read [18:56:28]Found Content-Length = 767 [18:56:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 320.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:28]execute_script... [18:56: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)3309137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 320.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:28]POST & json_proto [18:56:28]process_json_proto [18:56:28]json parsed OK: [18:56:28]protocol is kg_v1.0 [18:56:28]action value=close_receipt [18:56:28]process_action close_receipt [18:56:28]cmd_close_receipt [18:56:28]MH_GetDate [18:56:28]Write to MH i2c: F0 00 00 69 27 7F [18:56:28]Write i2c OK [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: F0 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: F0 09 00 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: F0 09 00 69 27 00 61 98 1A 67 FF C4 6B 64 94 [18:56:28]GetLastDocTimeStamp 1729795745 [18:56:28]current date 1729796193 [18:56:28]FM_GetShiftState [18:56:28]SAM_PROTO_GetShiftState [18:56:28]wFMCommunicate request_size=4 [18:56:28]MH_SAM_APDU [18:56:28]CAPDU: 80 13 01 00 [18:56:28]Write to MH i2c: E2 08 00 6A 27 80 13 01 00 00 00 00 00 0E [18:56:28]Write i2c OK [18:56:28]MH_I2C_Read... [18:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:28]Read from MH i2c: E2 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 0E 00 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 0E 00 6A 27 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 41 [18:56:28]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:56:28]wFMCommunicate OK [18:56:28]SAM_PROTO_GetShiftState done [18:56:28]FM_GetShiftState done [18:56:28]opened in 1729730575 [18:56:28]opened+sec_in_day 1729816975 [18:56:28]quantity*price = 32045 [18:56:28]sum+1 = 32046 [18:56:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 320.45 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 0.00 Безнал.: 320.45 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 117 24.10.2024 18:56 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60042 ФПД: 122941837740885 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185633&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60042&fm=122941837740885&tin=02508201610067®Number=0000000000091622&sum=32045 [18:56:29]StoreToDocumentArchive [18:56:29]shift 529 fd 60042 [18:56:29]save to /storage/0529/doc_00060042 [18:56:29]save last doc name /storage/0529/doc_00060042 to /storage/kkm_last_doc_name [18:56:29]save OK [18:56:29]Clear old archive folders... [18:56:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:29]tlvbuf is 00E59610 [18:56:29]SAM_PROTO_ClearQueue [18:56:29]wFMCommunicate request_size=4 [18:56:29]MH_SAM_APDU [18:56:29]CAPDU: 80 09 00 00 [18:56:29]Write to MH i2c: E2 08 00 77 27 80 09 00 00 00 00 00 00 10 [18:56:29]Write i2c OK [18:56:29]MH_I2C_Read... [18:56:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:29]Read from MH i2c: E2 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: E2 03 00 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: E2 03 00 77 27 00 90 00 12 [18:56:29]RAPDU: 90 00 [18:56:29]wFMCommunicate OK [18:56:29]SAM_PROTO_ClearQueue done [18:56:29]KKMCreateOFDPacket [18:56:29]OFDProtocolAddRootSTLVToBuf [18:56:29]FM_MakeSignedData [18:56:29]FM_MakeSignedData [18:56:29]SAM_PROTO_SignData [18:56:29]wFMCommunicate request_size=4 [18:56:29]MH_SAM_APDU [18:56:29]CAPDU: 80 0D 01 02 [18:56:29]Write to MH i2c: E2 08 00 78 27 80 0D 01 02 00 00 00 00 18 [18:56:29]Write i2c OK [18:56:29]MH_I2C_Read... [18:56:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:29]Read from MH i2c: E2 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: E2 03 00 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: E2 03 00 78 27 00 90 00 13 [18:56:29]RAPDU: 90 00 [18:56:29]wFMCommunicate OK [18:56:29]wFMCommunicate request_size=255 [18:56:29]MH_SAM_APDU [18:56: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 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 61 98 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8A EA 00 00 35 04 06 00 6F [18:56:29]Write to MH i2c: E2 02 01 79 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 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 61 98 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8A EA 00 00 35 04 06 00 6F 00 00 7C [18:56:29]Write i2c OK [18:56:29]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 03 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 03 00 79 27 00 90 00 14 [18:56:30]RAPDU: 90 00 [18:56:30]wFMCommunicate OK [18:56:30]wFMCommunicate request_size=10 [18:56:30]MH_SAM_APDU [18:56:30]CAPDU: 80 0D 02 02 05 D0 A0 91 0B 55 [18:56:30]Write to MH i2c: E2 0D 00 7A 27 80 0D 02 02 05 00 D0 A0 91 0B 55 00 00 86 [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 03 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 03 00 7A 27 00 90 00 15 [18:56:30]RAPDU: 90 00 [18:56:30]wFMCommunicate OK [18:56:30]wFMCommunicate request_size=4 [18:56:30]MH_SAM_APDU [18:56:30]CAPDU: 80 0D 03 02 [18:56:30]Write to MH i2c: E2 08 00 7B 27 80 0D 03 02 00 00 00 00 1D [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 0B 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 0B 00 7B 27 00 57 6B D2 C3 6D E8 E6 CD 90 00 7D [18:56:30]RAPDU: 57 6B D2 C3 6D E8 E6 CD 90 00 [18:56:30]wFMCommunicate OK [18:56:30]SAM_PROTO_SignData done [18:56:30]FM_MakeSignedData done [18:56:30]CreateOFDProtocolMessage [18:56:30]wFMCommunicate request_size=4 [18:56:30]MH_SAM_APDU [18:56:30]CAPDU: 80 11 00 00 [18:56:30]Write to MH i2c: E2 08 00 7C 27 80 11 00 00 00 00 00 00 1D [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 17 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 17 00 7C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 74 [18:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:56:30]wFMCommunicate OK [18:56:30]CreateOFDProtocolMessage done [18:56:30]OFDSenderStorePacket 60042 [18:56:30]StoreOFDPacket docnum=60042 [18:56:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 91 93 07 01 EB 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 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 61 98 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8A EA 00 00 35 04 06 00 6F D0 A0 91 0B 55 57 6B D2 C3 6D E8 E6 CD [18:56:30]CheckFolder [18:56:30]dirname=/storage/ofd_packets [18:56:30]CheckFolder done [18:56:30]ProducePacketName [18:56:30]name=ofd_packets/00060042 [18:56:30]NVStorageSaveData ofd_packets/00060042 [18:56:30]File name is /storage/ofd_packets/00060042 [18:56:30]Write 301 bytes [18:56:30]NVStorageSaveData done [18:56:30]OFDSenderStorePacket done [18:56:30]KKMCreateOFDPacket done [18:56:30]NVStorageSaveData kkm_last_timestamp [18:56:30]File name is /storage/kkm_last_timestamp [18:56:30]Write 4 bytes [18:56:30]NVStorageSaveData done [18:56:30]ExternCall_PrintAddStr [18:56:30]wPrintStart [18:56:30]Write to MH i2c: 01 00 00 7D 27 A4 [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: 01 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: 01 07 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: 01 07 00 7D 27 00 00 00 00 00 FF 0F B9 [18:56:30]RasterBufferAndPrint [18:56:30]line Счет N : (1)3309137 [18:56:30]line ИНН: 02508201610067 [18:56:30]line Контрольно-Кассовый Чек [18:56:30]line ПРОДАЖА [18:56:30]line ТРК (МРК, ГНК) : 22 [18:56:30]line Товар: 2710124130 [18:56:30]line Аи-92-К-4 [18:56:30]line 4.790 * 66.90 [18:56:30]line = 320.45 [18:56:30]line НДС 12% НСП 1% [18:56:30]line > о реализуемом товаре [18:56:30]line ИТОГО: 320.45 [18:56:30]line НСП 1% : 2.84 [18:56:30]line НДС 12% : 34.03 [18:56:30]line Наличными: 0.00 [18:56:30]line Безнал.: 320.45 [18:56:30]line Место: АЗС № 87 "Партнер Нефть" [18:56:30]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [18:56:30]line СНО: Общий режим [18:56:30]line Чек 117 24.10.2024 18:56 [18:56:30]line Смена: 529 ФФД: 1.0 [18:56:30]line ЗНМ: 0300000084 [18:56:30]line РНМ: 0000000000091622 [18:56:30]line Версия ККМ: 001 [18:56:30]line Платежная система: Mbank [18:56:30]line ФМ: 0000000000874674 [18:56:30]line ФД: 60042 [18:56:30]line ФПД: 122941837740885 [18:56:30]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185633&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60042&fm=122941837740885&tin=02508201610067®Number=0000000000091622&sum=32045 [18:56:30]written 0, free lines is 4095 [18:56:30]OFD Sender: Processing packet 60042 [packets to send 30, broken 29] [18:56:30]ProducePacketName [18:56:30]name=ofd_packets/00060042 [18:56:30]OFD Sender: To server: pG, [18:56:30]CommunicateWithHost lk.salyk.kg:30040 [18:56:30]ConnectInit lk.salyk.kg [18:56:30]Connected sock=10 [18:56:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 91 93 07 01 EB 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 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 61 98 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8A EA 00 00 35 04 06 00 6F D0 A0 91 0B 55 57 6B D2 C3 6D E8 E6 CD [18:56:30]Write to MH i2c: 01 00 00 A6 27 CD [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: 01 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: 01 07 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: 01 07 00 A6 27 00 00 00 00 00 05 0D E6 [18:56:30]RasterBufferAndPrint [18:56:30]line [18:56:30]line [18:56:30]line [18:56:30]line [18:56:30]line [18:56:30]written 0, free lines is 3340 [18:56:30]MH_Cut [18:56:30]Write to MH i2c: D1 01 00 AD 27 01 A6 [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: D1 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: D1 01 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: D1 01 00 AD 27 00 A5 [18:56:30]Write to MH i2c: 01 00 00 AE 27 D5 [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 E1 C7 47 00 72 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 34 36 37 34 10 04 04 00 8A EA 00 00 F4 03 04 00 51 3E 1A 67 B6 04 01 00 00 93 07 A1 BB E9 78 1C 33 [18:56:30]CommunicateWithHost err = 0 [18:56:30]CheckOFDResponse [18:56:30]1017 (14) - 77093643461234 [18:56:30]1041 (16) - 0000000000874674 [18:56:30]1040 (4) - 60042 [18:56:30]1012 (4) - 24.10.2024 12:32 [18:56:30]1206 (1) - 0 [18:56:30]OFD Sender: Remove packet 60042 [18:56:30]ProducePacketName [18:56:30]name=ofd_packets/00060042 [18:56:30]NVStorageDeleteData [18:56:31]OFD Sender: No OFD packet to send [18:56:31]*** Cut start [18:56:31]*** Partial cut [18:56:31]*** CUTSNS_PIN = 1 [18:56:31]*** CUTSNS_PIN = 0 [18:56:31]*** Brake cut motor [18:56:32]Read from MH i2c: 01 [18:56:32]MH_I2C_Read... [18:56:32]*** Stop cut motor [18:56:32]*** Cut end [18:56:32]Read from MH i2c: 01 07 00 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: 01 07 00 AE 27 00 00 00 00 00 FF 0F EA [18:56:32]process_action close_receipt done [18:56:32]requested_data is exist [18:56:32]produce_requested_data [18:56:32]requested_item fm.sn is exist - process it [18:56:32]wFMCommunicate request_size=4 [18:56:32]MH_SAM_APDU [18:56:32]CAPDU: 80 11 00 00 [18:56:32]Write to MH i2c: E2 08 00 AF 27 80 11 00 00 00 00 00 00 50 [18:56:32]Write i2c OK [18:56:32]MH_I2C_Read... [18:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:32]Read from MH i2c: E2 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 17 00 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 17 00 AF 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 A7 [18:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:56:32]wFMCommunicate OK [18:56:32]requested_item fd.num is exist - process it [18:56:32]SAM_PROTO_GetFieldsCounters [18:56:32]wFMCommunicate request_size=4 [18:56:32]MH_SAM_APDU [18:56:32]CAPDU: 80 13 00 00 [18:56:32]Write to MH i2c: E2 08 00 B0 27 80 13 00 00 00 00 00 00 53 [18:56:32]Write i2c OK [18:56:32]MH_I2C_Read... [18:56:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:32]Read from MH i2c: E2 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 62 00 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 62 00 B0 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8A EA 00 00 0E 04 04 00 11 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 59 [18:56: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8A EA 00 00 0E 04 04 00 11 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 [18:56:32]wFMCommunicate OK [18:56:32]SAM_PROTO_GetFieldsCounters done [18:56:32]requested_item shift.num is exist - process it [18:56:32]requested_item shift.opened is exist - process it [18:56:32]req_shift_opened [18:56:32]FM_GetShiftState [18:56:32]SAM_PROTO_GetShiftState [18:56:32]wFMCommunicate request_size=4 [18:56:32]MH_SAM_APDU [18:56:32]CAPDU: 80 13 01 00 [18:56:32]Write to MH i2c: E2 08 00 B1 27 80 13 01 00 00 00 00 00 55 [18:56:32]Write i2c OK [18:56:32]MH_I2C_Read... [18:56:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:32]Read from MH i2c: E2 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 0E 00 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 0E 00 B1 27 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 88 [18:56:32]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:56:32]wFMCommunicate OK [18:56:32]SAM_PROTO_GetShiftState done [18:56:32]FM_GetShiftState done [18:56:32]req_shift_opened done [18:56:32]requested_item shift.open_date is exist - process it [18:56:32]req_shift_open_date [18:56:32]req_shift_open_date done [18:56:32]produce_requested_data done [18:56:32]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60042,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [18:56:32]process_action_free close_receipt [18:56:32]json_value_free [18:56:32]json_value_free done [18:56:32]process_json_proto returns [18:56:32]Send response to host [18:56:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60042,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [18:56:32]free response buf [18:56:32]execute_script done [18:56:32]execute_script returns [18:56:32]free content buf [18:56:32]Sock 9.Close socket [18:56:32]Sock 9.Thread stoped [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:40]accept exits with 7 [18:57:40]New connection [18:57:40]New thread 3067252068 created [18:57:40]Thread 3067108708 joined [18:57:40]Waiting for new connection... [18:57:40] Sock 7.Parse request [18:57:40]Sock 7.Check first char [18:57:40]Sock 7.First char is OK [18:57:40]request: POST /json_proto HTTP/1.0 [18:57:40]Method: POST [18:57:40]URL: /json_proto [18:57:40]Method is POST - this is cgi request [18:57:40]url: /json_proto [18:57:40]query_string will be loaded in cgi processing [18:57:40]execute_cgi json_proto POST (null) [18:57:40]execute_cgi path=json_proto method=POST [18:57:40]POST find Content-Length [18:57:40]Host: 172.17.42.196:8080 [18:57:40]Content-Length: 678 [18:57:40]Content-Type: application/json [18:57:40] [18:57:40]POST finish read [18:57:40]Found Content-Length = 678 [18:57:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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:40]execute_script... [18:57: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)3309140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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:40]POST & json_proto [18:57:40]process_json_proto [18:57:40]json parsed OK: [18:57:40]protocol is kg_v1.0 [18:57:40]action value=close_receipt [18:57:40]process_action close_receipt [18:57:40]cmd_close_receipt [18:57:40]MH_GetDate [18:57:40]Write to MH i2c: F0 00 00 B2 27 C8 [18:57:40]Write i2c OK [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: F0 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: F0 09 00 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: F0 09 00 B2 27 00 A9 98 1A 67 FF C4 6B 64 25 [18:57:40]GetLastDocTimeStamp 1729796193 [18:57:40]current date 1729796265 [18:57:40]FM_GetShiftState [18:57:40]SAM_PROTO_GetShiftState [18:57:40]wFMCommunicate request_size=4 [18:57:40]MH_SAM_APDU [18:57:40]CAPDU: 80 13 01 00 [18:57:40]Write to MH i2c: E2 08 00 B3 27 80 13 01 00 00 00 00 00 57 [18:57:40]Write i2c OK [18:57:40]MH_I2C_Read... [18:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:40]Read from MH i2c: E2 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 0E 00 [18:57:40]MH_I2C_Read... [18:57:40]Read from MH i2c: E2 0E 00 B3 27 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 8A [18:57:40]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:57:40]wFMCommunicate OK [18:57:40]SAM_PROTO_GetShiftState done [18:57:40]FM_GetShiftState done [18:57:40]opened in 1729730575 [18:57:40]opened+sec_in_day 1729816975 [18:57:40]quantity*price = 50041 [18:57:40]sum+1 = 50042 [18:57: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 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 118 24.10.2024 18:57 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60043 ФПД: 50232242861447 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185745&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60043&fm=50232242861447&tin=02508201610067®Number=0000000000091622&sum=50000 [18:57:41]StoreToDocumentArchive [18:57:41]shift 529 fd 60043 [18:57:41]save to /storage/0529/doc_00060043 [18:57:41]save last doc name /storage/0529/doc_00060043 to /storage/kkm_last_doc_name [18:57:41]save OK [18:57:41]Clear old archive folders... [18:57:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:41]tlvbuf is B6F9E6A0 [18:57:41]SAM_PROTO_ClearQueue [18:57:41]wFMCommunicate request_size=4 [18:57:41]MH_SAM_APDU [18:57:41]CAPDU: 80 09 00 00 [18:57:41]Write to MH i2c: E2 08 00 C0 27 80 09 00 00 00 00 00 00 59 [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:41]Read from MH i2c: E2 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 03 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 03 00 C0 27 00 90 00 5B [18:57:41]RAPDU: 90 00 [18:57:41]wFMCommunicate OK [18:57:41]SAM_PROTO_ClearQueue done [18:57:41]KKMCreateOFDPacket [18:57:41]OFDProtocolAddRootSTLVToBuf [18:57:41]FM_MakeSignedData [18:57:41]FM_MakeSignedData [18:57:41]SAM_PROTO_SignData [18:57:41]wFMCommunicate request_size=4 [18:57:41]MH_SAM_APDU [18:57:41]CAPDU: 80 0D 01 02 [18:57:41]Write to MH i2c: E2 08 00 C1 27 80 0D 01 02 00 00 00 00 61 [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]OFD Sender: No OFD packet to send [18:57:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:41]Read from MH i2c: E2 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 03 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 03 00 C1 27 00 90 00 5C [18:57:41]RAPDU: 90 00 [18:57:41]wFMCommunicate OK [18:57:41]wFMCommunicate request_size=255 [18:57:41]MH_SAM_APDU [18:57: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 34 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 76 00 00 00 F4 03 04 00 A9 98 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8B EA 00 00 35 04 06 00 2D [18:57:41]Write to MH i2c: E2 02 01 C2 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 34 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 76 00 00 00 F4 03 04 00 A9 98 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8B EA 00 00 35 04 06 00 2D 00 00 DB [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:41]Read from MH i2c: E2 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 03 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 03 00 C2 27 00 90 00 5D [18:57:41]RAPDU: 90 00 [18:57:41]wFMCommunicate OK [18:57:41]wFMCommunicate request_size=10 [18:57:41]MH_SAM_APDU [18:57:41]CAPDU: 80 0D 02 02 05 AF 9A FD F5 87 [18:57:41]Write to MH i2c: E2 0D 00 C3 27 80 0D 02 02 05 00 AF 9A FD F5 87 00 00 30 [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:41]Read from MH i2c: E2 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 03 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 03 00 C3 27 00 90 00 5E [18:57:41]RAPDU: 90 00 [18:57:41]wFMCommunicate OK [18:57:41]wFMCommunicate request_size=4 [18:57:41]MH_SAM_APDU [18:57:41]CAPDU: 80 0D 03 02 [18:57:41]Write to MH i2c: E2 08 00 C4 27 80 0D 03 02 00 00 00 00 66 [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:41]Read from MH i2c: E2 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 0B 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 0B 00 C4 27 00 14 80 E7 1D F0 C5 33 93 90 00 7A [18:57:41]RAPDU: 14 80 E7 1D F0 C5 33 93 90 00 [18:57:41]wFMCommunicate OK [18:57:41]SAM_PROTO_SignData done [18:57:41]FM_MakeSignedData done [18:57:41]CreateOFDProtocolMessage [18:57:41]wFMCommunicate request_size=4 [18:57:41]MH_SAM_APDU [18:57:41]CAPDU: 80 11 00 00 [18:57:41]Write to MH i2c: E2 08 00 C5 27 80 11 00 00 00 00 00 00 66 [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:41]Read from MH i2c: E2 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 17 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: E2 17 00 C5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 BD [18:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:57:41]wFMCommunicate OK [18:57:41]CreateOFDProtocolMessage done [18:57:41]OFDSenderStorePacket 60043 [18:57:41]StoreOFDPacket docnum=60043 [18:57:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 A3 83 07 01 32 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 34 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 76 00 00 00 F4 03 04 00 A9 98 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8B EA 00 00 35 04 06 00 2D AF 9A FD F5 87 14 80 E7 1D F0 C5 33 93 [18:57:41]CheckFolder [18:57:41]dirname=/storage/ofd_packets [18:57:41]CheckFolder done [18:57:41]ProducePacketName [18:57:41]name=ofd_packets/00060043 [18:57:41]NVStorageSaveData ofd_packets/00060043 [18:57:41]File name is /storage/ofd_packets/00060043 [18:57:41]Write 301 bytes [18:57:41]NVStorageSaveData done [18:57:41]OFDSenderStorePacket done [18:57:41]KKMCreateOFDPacket done [18:57:41]NVStorageSaveData kkm_last_timestamp [18:57:41]File name is /storage/kkm_last_timestamp [18:57:41]Write 4 bytes [18:57:41]NVStorageSaveData done [18:57:41]ExternCall_PrintAddStr [18:57:41]wPrintStart [18:57:41]Write to MH i2c: 01 00 00 C6 27 ED [18:57:41]Write i2c OK [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: 01 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: 01 07 00 [18:57:41]MH_I2C_Read... [18:57:41]Read from MH i2c: 01 07 00 C6 27 00 00 00 00 00 FF 0F 02 [18:57:41]RasterBufferAndPrint [18:57:41]line Счет N : (1)3309140 [18:57:41]line ИНН: 02508201610067 [18:57:41]line Контрольно-Кассовый Чек [18:57:41]line ПРОДАЖА [18:57:41]line ТРК (МРК, ГНК) : 32 [18:57:41]line Товар: 2710124130 [18:57:41]line Аи-92-К-4 [18:57:41]line 7.480 * 66.90 [18:57:41]line = 500.41 [18:57:41]line НДС 12% НСП 1% [18:57:41]line > о реализуемом товаре [18:57:41]line ОКРУГЛЕНИЕ: -0.41 [18:57:41]line ИТОГО: 500.00 [18:57:41]line Внесено: 500.00 [18:57:41]line СДАЧА: 0.00 [18:57:41]line НСП 1% : 4.43 [18:57:41]line НДС 12% : 53.14 [18:57:41]line Наличными: 500.00 [18:57:41]line Безнал.: 0.00 [18:57:41]line Место: АЗС № 87 "Партнер Нефть" [18:57:41]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [18:57:41]line СНО: Общий режим [18:57:41]line Чек 118 24.10.2024 18:57 [18:57:41]line Смена: 529 ФФД: 1.0 [18:57:41]line ЗНМ: 0300000084 [18:57:41]line РНМ: 0000000000091622 [18:57:41]line Версия ККМ: 001 [18:57:41]line ФМ: 0000000000874674 [18:57:41]line ФД: 60043 [18:57:41]line ФПД: 50232242861447 [18:57:41]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185745&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60043&fm=50232242861447&tin=02508201610067®Number=0000000000091622&sum=50000 [18:57:42]OFD Sender: Processing packet 60043 [packets to send 30, broken 29] [18:57:42]ProducePacketName [18:57:42]name=ofd_packets/00060043 [18:57:42]OFD Sender: To server: pG, [18:57:42]CommunicateWithHost lk.salyk.kg:30040 [18:57:42]ConnectInit lk.salyk.kg [18:57:42]written 0, free lines is 4095 [18:57:42]Connected sock=10 [18:57:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 A3 83 07 01 32 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 34 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 76 00 00 00 F4 03 04 00 A9 98 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8B EA 00 00 35 04 06 00 2D AF 9A FD F5 87 14 80 E7 1D F0 C5 33 93 [18:57:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 73 3C 47 00 34 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 34 36 37 34 10 04 04 00 8B EA 00 00 F4 03 04 00 98 3E 1A 67 B6 04 01 00 00 15 13 D6 36 E0 D3 1A 00 [18:57:42]CommunicateWithHost err = 0 [18:57:42]CheckOFDResponse [18:57:42]1017 (14) - 77093643461234 [18:57:42]1041 (16) - 0000000000874674 [18:57:42]1040 (4) - 60043 [18:57:42]1012 (4) - 24.10.2024 12:33 [18:57:42]1206 (1) - 0 [18:57:42]OFD Sender: Remove packet 60043 [18:57:42]ProducePacketName [18:57:42]name=ofd_packets/00060043 [18:57:42]NVStorageDeleteData [18:57:42]Write to MH i2c: 01 00 00 F1 27 18 [18:57:42]Write i2c OK [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: 01 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: 01 07 00 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: 01 07 00 F1 27 00 00 00 00 00 D4 0C FF [18:57:42]RasterBufferAndPrint [18:57:42]line [18:57:42]line [18:57:42]line [18:57:42]line [18:57:42]line [18:57:42]written 0, free lines is 3292 [18:57:42]MH_Cut [18:57:42]Write to MH i2c: D1 01 00 F8 27 01 F1 [18:57:42]Write i2c OK [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: D1 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: D1 01 00 [18:57:42]MH_I2C_Read... [18:57:42]Read from MH i2c: D1 01 00 F8 27 00 F0 [18:57:42]Write to MH i2c: 01 00 00 F9 27 20 [18:57:42]Write i2c OK [18:57:42]MH_I2C_Read... [18:57:43]OFD Sender: No OFD packet to send [18:57:43]*** Cut start [18:57:43]*** Partial cut [18:57:43]*** CUTSNS_PIN = 1 [18:57:43]*** CUTSNS_PIN = 0 [18:57:43]*** Brake cut motor [18:57:44]Read from MH i2c: 01 [18:57:44]MH_I2C_Read... [18:57:44]*** Stop cut motor [18:57:44]*** Cut end [18:57:44]Read from MH i2c: 01 07 00 [18:57:44]MH_I2C_Read... [18:57:44]Read from MH i2c: 01 07 00 F9 27 00 00 00 00 00 FF 0F 35 [18:57:44]process_action close_receipt done [18:57:44]requested_data is exist [18:57:44]produce_requested_data [18:57:44]requested_item fm.sn is exist - process it [18:57:44]wFMCommunicate request_size=4 [18:57:44]MH_SAM_APDU [18:57:44]CAPDU: 80 11 00 00 [18:57:44]Write to MH i2c: E2 08 00 FA 27 80 11 00 00 00 00 00 00 9B [18:57:44]Write i2c OK [18:57:44]MH_I2C_Read... [18:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:44]Read from MH i2c: E2 [18:57:44]MH_I2C_Read... [18:57:44]Read from MH i2c: E2 17 00 [18:57:44]MH_I2C_Read... [18:57:44]Read from MH i2c: E2 17 00 FA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F2 [18:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:57:44]wFMCommunicate OK [18:57:44]requested_item fd.num is exist - process it [18:57:44]SAM_PROTO_GetFieldsCounters [18:57:44]wFMCommunicate request_size=4 [18:57:44]MH_SAM_APDU [18:57:44]CAPDU: 80 13 00 00 [18:57:44]Write to MH i2c: E2 08 00 FB 27 80 13 00 00 00 00 00 00 9E [18:57:44]Write i2c OK [18:57:44]MH_I2C_Read... [18:57:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:44]Read from MH i2c: E2 [18:57:44]MH_I2C_Read... [18:57:44]Read from MH i2c: E2 62 00 [18:57:44]MH_I2C_Read... [18:57:44]Read from MH i2c: E2 62 00 FB 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8B EA 00 00 0E 04 04 00 11 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 A8 [18:57: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8B EA 00 00 0E 04 04 00 11 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 [18:57:44]wFMCommunicate OK [18:57:44]SAM_PROTO_GetFieldsCounters done [18:57:44]requested_item shift.num is exist - process it [18:57:44]requested_item shift.opened is exist - process it [18:57:44]req_shift_opened [18:57:44]FM_GetShiftState [18:57:44]SAM_PROTO_GetShiftState [18:57:44]wFMCommunicate request_size=4 [18:57:44]MH_SAM_APDU [18:57:44]CAPDU: 80 13 01 00 [18:57:44]Write to MH i2c: E2 08 00 FC 27 80 13 01 00 00 00 00 00 A0 [18:57:44]Write i2c OK [18:57:44]MH_I2C_Read... [18:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:44]Read from MH i2c: E2 [18:57:44]MH_I2C_Read... [18:57:44]Read from MH i2c: E2 0E 00 [18:57:44]MH_I2C_Read... [18:57:44]Read from MH i2c: E2 0E 00 FC 27 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 D3 [18:57:44]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:57:44]wFMCommunicate OK [18:57:44]SAM_PROTO_GetShiftState done [18:57:44]FM_GetShiftState done [18:57:44]req_shift_opened done [18:57:44]requested_item shift.open_date is exist - process it [18:57:44]req_shift_open_date [18:57:44]req_shift_open_date done [18:57:44]produce_requested_data done [18:57:44]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60043,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [18:57:44]process_action_free close_receipt [18:57:44]json_value_free [18:57:44]json_value_free done [18:57:44]process_json_proto returns [18:57:44]Send response to host [18:57:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60043,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [18:57:44]free response buf [18:57:44]execute_script done [18:57:44]execute_script returns [18:57:44]free content buf [18:57:44]Sock 7.Close socket [18:57:44]Sock 7.Thread stoped [18:57:48]OFD Sender: No OFD packet to send [18:57:48]accept exits with 9 [18:57:48]New connection [18:57:48]New thread 3067108708 created [18:57:48]Thread 3067252068 joined [18:57:48]Waiting for new connection... [18:57:48] Sock 9.Parse request [18:57:48]Sock 9.Check first char [18:57:48]Sock 9.First char is OK [18:57:48]request: POST /json_proto HTTP/1.0 [18:57:48]Method: POST [18:57:48]URL: /json_proto [18:57:48]Method is POST - this is cgi request [18:57:48]url: /json_proto [18:57:48]query_string will be loaded in cgi processing [18:57:48]execute_cgi json_proto POST (null) [18:57:48]execute_cgi path=json_proto method=POST [18:57:48]POST find Content-Length [18:57:48]Host: 172.17.42.196:8080 [18:57:48]Content-Length: 776 [18:57:48]Content-Type: application/json [18:57:48] [18:57:48]POST finish read [18:57:48]Found Content-Length = 776 [18:57:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:48]execute_script... [18:57: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)3309139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:48]POST & json_proto [18:57:48]process_json_proto [18:57:48]json parsed OK: [18:57:48]protocol is kg_v1.0 [18:57:48]action value=close_receipt [18:57:48]process_action close_receipt [18:57:48]cmd_close_receipt [18:57:48]MH_GetDate [18:57:48]Write to MH i2c: F0 00 00 FD 27 13 [18:57:48]Write i2c OK [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: F0 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: F0 09 00 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: F0 09 00 FD 27 00 B1 98 1A 67 FF C4 6B 64 78 [18:57:48]GetLastDocTimeStamp 1729796265 [18:57:48]current date 1729796273 [18:57:48]FM_GetShiftState [18:57:48]SAM_PROTO_GetShiftState [18:57:48]wFMCommunicate request_size=4 [18:57:48]MH_SAM_APDU [18:57:48]CAPDU: 80 13 01 00 [18:57:48]Write to MH i2c: E2 08 00 FE 27 80 13 01 00 00 00 00 00 A2 [18:57:48]Write i2c OK [18:57:48]MH_I2C_Read... [18:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:48]Read from MH i2c: E2 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: E2 0E 00 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: E2 0E 00 FE 27 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 D5 [18:57:48]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:57:48]wFMCommunicate OK [18:57:48]SAM_PROTO_GetShiftState done [18:57:48]FM_GetShiftState done [18:57:48]opened in 1729730575 [18:57:48]opened+sec_in_day 1729816975 [18:57:48]quantity*price = 150076 [18:57:48]sum+1 = 150078 [18:57:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.77 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.77 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 119 24.10.2024 18:57 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60044 ФПД: 163235778457869 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185753&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60044&fm=163235778457869&tin=02508201610067®Number=0000000000091622&sum=150077 [18:57:49]StoreToDocumentArchive [18:57:49]shift 529 fd 60044 [18:57:49]save to /storage/0529/doc_00060044 [18:57:49]save last doc name /storage/0529/doc_00060044 to /storage/kkm_last_doc_name [18:57:49]save OK [18:57:49]Clear old archive folders... [18:57:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:57:49]tlvbuf is 00DDCAC0 [18:57:49]SAM_PROTO_ClearQueue [18:57:49]wFMCommunicate request_size=4 [18:57:49]MH_SAM_APDU [18:57:49]CAPDU: 80 09 00 00 [18:57:49]Write to MH i2c: E2 08 00 0B 28 80 09 00 00 00 00 00 00 A5 [18:57:49]Write i2c OK [18:57:49]MH_I2C_Read... [18:57:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:50]Read from MH i2c: E2 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 0B 28 00 90 00 A7 [18:57:50]RAPDU: 90 00 [18:57:50]wFMCommunicate OK [18:57:50]SAM_PROTO_ClearQueue done [18:57:50]KKMCreateOFDPacket [18:57:50]OFDProtocolAddRootSTLVToBuf [18:57:50]FM_MakeSignedData [18:57:50]FM_MakeSignedData [18:57:50]SAM_PROTO_SignData [18:57:50]wFMCommunicate request_size=4 [18:57:50]MH_SAM_APDU [18:57:50]CAPDU: 80 0D 01 02 [18:57:50]Write to MH i2c: E2 08 00 0C 28 80 0D 01 02 00 00 00 00 AD [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:50]Read from MH i2c: E2 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 0C 28 00 90 00 A8 [18:57:50]RAPDU: 90 00 [18:57:50]wFMCommunicate OK [18:57:50]wFMCommunicate request_size=255 [18:57:50]MH_SAM_APDU [18:57:50]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 B1 98 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8C EA 00 [18:57:50]Write to MH i2c: E2 02 01 0D 28 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 B1 98 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8C EA 00 00 00 5C [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:50]Read from MH i2c: E2 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 0D 28 00 90 00 A9 [18:57:50]RAPDU: 90 00 [18:57:50]wFMCommunicate OK [18:57:50]wFMCommunicate request_size=16 [18:57:50]MH_SAM_APDU [18:57:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 94 76 4A 96 F1 0D [18:57:50]Write to MH i2c: E2 13 00 0E 28 80 0D 02 02 0B 00 00 35 04 06 00 94 76 4A 96 F1 0D 00 00 ED [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:50]Read from MH i2c: E2 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 03 00 0E 28 00 90 00 AA [18:57:50]RAPDU: 90 00 [18:57:50]wFMCommunicate OK [18:57:50]wFMCommunicate request_size=4 [18:57:50]MH_SAM_APDU [18:57:50]CAPDU: 80 0D 03 02 [18:57:50]Write to MH i2c: E2 08 00 0F 28 80 0D 03 02 00 00 00 00 B2 [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:50]Read from MH i2c: E2 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 0B 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 0B 00 0F 28 00 C8 98 44 7C B2 52 5E F0 90 00 25 [18:57:50]RAPDU: C8 98 44 7C B2 52 5E F0 90 00 [18:57:50]wFMCommunicate OK [18:57:50]SAM_PROTO_SignData done [18:57:50]FM_MakeSignedData done [18:57:50]CreateOFDProtocolMessage [18:57:50]wFMCommunicate request_size=4 [18:57:50]MH_SAM_APDU [18:57:50]CAPDU: 80 11 00 00 [18:57:50]Write to MH i2c: E2 08 00 10 28 80 11 00 00 00 00 00 00 B2 [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:50]Read from MH i2c: E2 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 17 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: E2 17 00 10 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 09 [18:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:57:50]wFMCommunicate OK [18:57:50]CreateOFDProtocolMessage done [18:57:50]OFDSenderStorePacket 60044 [18:57:50]StoreOFDPacket docnum=60044 [18:57:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 15 01 00 00 0C 4E 0D 01 94 DC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 B1 98 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8C EA 00 00 35 04 06 00 94 76 4A 96 F1 0D C8 98 44 7C B2 52 5E F0 [18:57:50]CheckFolder [18:57:50]dirname=/storage/ofd_packets [18:57:50]CheckFolder done [18:57:50]ProducePacketName [18:57:50]name=ofd_packets/00060044 [18:57:50]NVStorageSaveData ofd_packets/00060044 [18:57:50]File name is /storage/ofd_packets/00060044 [18:57:50]Write 307 bytes [18:57:50]NVStorageSaveData done [18:57:50]OFDSenderStorePacket done [18:57:50]KKMCreateOFDPacket done [18:57:50]NVStorageSaveData kkm_last_timestamp [18:57:50]File name is /storage/kkm_last_timestamp [18:57:50]Write 4 bytes [18:57:50]NVStorageSaveData done [18:57:50]ExternCall_PrintAddStr [18:57:50]wPrintStart [18:57:50]Write to MH i2c: 01 00 00 11 28 39 [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: 01 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: 01 07 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: 01 07 00 11 28 00 00 00 00 00 FF 0F 4E [18:57:50]RasterBufferAndPrint [18:57:50]line Счет N : (1)3309139 [18:57:50]line ИНН: 02508201610067 [18:57:50]line Контрольно-Кассовый Чек [18:57:50]line ПРОДАЖА [18:57:50]line ТРК (МРК, ГНК) : 41 [18:57:50]line Товар: 2710194240 [18:57:50]line D-Energy Дт-К-2 [18:57:50]line 19.440 * 77.20 [18:57:50]line = 1500.77 [18:57:50]line НДС 12% НСП 1% [18:57:50]line > о реализуемом товаре [18:57:50]line ИТОГО: 1500.77 [18:57:50]line НСП 1% : 13.28 [18:57:50]line НДС 12% : 159.37 [18:57:50]line Наличными: 0.00 [18:57:50]line Безнал.: 1500.77 [18:57:50]line Место: АЗС № 87 "Партнер Нефть" [18:57:50]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [18:57:50]line СНО: Общий режим [18:57:50]line Чек 119 24.10.2024 18:57 [18:57:50]line Смена: 529 ФФД: 1.0 [18:57:50]line ЗНМ: 0300000084 [18:57:50]line РНМ: 0000000000091622 [18:57:50]line Версия ККМ: 001 [18:57:50]line Платежная система: Mbank [18:57:50]line ФМ: 0000000000874674 [18:57:50]line ФД: 60044 [18:57:50]line ФПД: 163235778457869 [18:57:50]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185753&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60044&fm=163235778457869&tin=02508201610067®Number=0000000000091622&sum=150077 [18:57:50]written 0, free lines is 4095 [18:57:50]OFD Sender: Processing packet 60044 [packets to send 30, broken 29] [18:57:50]ProducePacketName [18:57:50]name=ofd_packets/00060044 [18:57:50]OFD Sender: To server: pG, [18:57:50]CommunicateWithHost lk.salyk.kg:30040 [18:57:50]ConnectInit lk.salyk.kg [18:57:50]Connected sock=10 [18:57:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 15 01 00 00 0C 4E 0D 01 94 DC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 B1 98 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8C EA 00 00 35 04 06 00 94 76 4A 96 F1 0D C8 98 44 7C B2 52 5E F0 [18:57:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 73 33 47 00 DB 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8C EA 00 00 F4 03 04 00 A1 3E 1A 67 B6 04 01 00 00 80 0A 81 35 C3 AC 8C 2C [18:57:50]CommunicateWithHost err = 0 [18:57:50]CheckOFDResponse [18:57:50]1017 (14) - 77093643461234 [18:57:50]1041 (16) - 0000000000874674 [18:57:50]1040 (4) - 60044 [18:57:50]1012 (4) - 24.10.2024 12:33 [18:57:50]1206 (1) - 0 [18:57:50]OFD Sender: Remove packet 60044 [18:57:50]ProducePacketName [18:57:50]name=ofd_packets/00060044 [18:57:50]NVStorageDeleteData [18:57:50]Write to MH i2c: 01 00 00 3A 28 62 [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: 01 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: 01 07 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: 01 07 00 3A 28 00 00 00 00 00 10 0D 86 [18:57:50]RasterBufferAndPrint [18:57:50]line [18:57:50]line [18:57:50]line [18:57:50]line [18:57:50]line [18:57:50]written 0, free lines is 3354 [18:57:50]MH_Cut [18:57:50]Write to MH i2c: D1 01 00 41 28 01 3B [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: D1 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: D1 01 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: D1 01 00 41 28 00 3A [18:57:50]Write to MH i2c: 01 00 00 42 28 6A [18:57:51]Write i2c OK [18:57:51]MH_I2C_Read... [18:57:51]OFD Sender: No OFD packet to send [18:57:51]*** Cut start [18:57:51]*** Partial cut [18:57:51]*** CUTSNS_PIN = 1 [18:57:51]*** CUTSNS_PIN = 0 [18:57:52]*** Brake cut motor [18:57:52]Read from MH i2c: 01 [18:57:52]MH_I2C_Read... [18:57:52]*** Stop cut motor [18:57:52]*** Cut end [18:57:52]Read from MH i2c: 01 07 00 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: 01 07 00 42 28 00 00 00 00 00 FF 0F 7F [18:57:52]process_action close_receipt done [18:57:52]requested_data is exist [18:57:52]produce_requested_data [18:57:52]requested_item fm.sn is exist - process it [18:57:52]wFMCommunicate request_size=4 [18:57:52]MH_SAM_APDU [18:57:52]CAPDU: 80 11 00 00 [18:57:52]Write to MH i2c: E2 08 00 43 28 80 11 00 00 00 00 00 00 E5 [18:57:52]Write i2c OK [18:57:52]MH_I2C_Read... [18:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:52]Read from MH i2c: E2 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 17 00 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 17 00 43 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 3C [18:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [18:57:52]wFMCommunicate OK [18:57:52]requested_item fd.num is exist - process it [18:57:52]SAM_PROTO_GetFieldsCounters [18:57:52]wFMCommunicate request_size=4 [18:57:52]MH_SAM_APDU [18:57:52]CAPDU: 80 13 00 00 [18:57:52]Write to MH i2c: E2 08 00 44 28 80 13 00 00 00 00 00 00 E8 [18:57:52]Write i2c OK [18:57:52]MH_I2C_Read... [18:57:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:52]Read from MH i2c: E2 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 62 00 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 62 00 44 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8C EA 00 00 0E 04 04 00 11 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 F6 [18:57: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8C EA 00 00 0E 04 04 00 11 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 [18:57:52]wFMCommunicate OK [18:57:52]SAM_PROTO_GetFieldsCounters done [18:57:52]requested_item shift.num is exist - process it [18:57:52]requested_item shift.opened is exist - process it [18:57:52]req_shift_opened [18:57:52]FM_GetShiftState [18:57:52]SAM_PROTO_GetShiftState [18:57:52]wFMCommunicate request_size=4 [18:57:52]MH_SAM_APDU [18:57:52]CAPDU: 80 13 01 00 [18:57:52]Write to MH i2c: E2 08 00 45 28 80 13 01 00 00 00 00 00 EA [18:57:52]Write i2c OK [18:57:52]MH_I2C_Read... [18:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:52]Read from MH i2c: E2 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 0E 00 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 0E 00 45 28 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 1D [18:57:52]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [18:57:52]wFMCommunicate OK [18:57:52]SAM_PROTO_GetShiftState done [18:57:52]FM_GetShiftState done [18:57:52]req_shift_opened done [18:57:52]requested_item shift.open_date is exist - process it [18:57:52]req_shift_open_date [18:57:52]req_shift_open_date done [18:57:52]produce_requested_data done [18:57:52]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60044,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [18:57:52]process_action_free close_receipt [18:57:52]json_value_free [18:57:52]json_value_free done [18:57:52]process_json_proto returns [18:57:52]Send response to host [18:57:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60044,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [18:57:52]free response buf [18:57:52]execute_script done [18:57:52]execute_script returns [18:57:52]free content buf [18:57:52]Sock 9.Close socket [18:57:52]Sock 9.Thread stoped [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59: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:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:52]accept exits with 7 [19:06:52]New connection [19:06:52]New thread 3067252068 created [19:06:52]Thread 3067108708 joined [19:06:52]Waiting for new connection... [19:06:52] Sock 7.Parse request [19:06:52]Sock 7.Check first char [19:06:52]Sock 7.First char is OK [19:06:52]request: POST /json_proto HTTP/1.0 [19:06:52]Method: POST [19:06:52]URL: /json_proto [19:06:52]Method is POST - this is cgi request [19:06:52]url: /json_proto [19:06:52]query_string will be loaded in cgi processing [19:06:52]execute_cgi json_proto POST (null) [19:06:52]execute_cgi path=json_proto method=POST [19:06:52]POST find Content-Length [19:06:52]Host: 172.17.42.196:8080 [19:06:52]Content-Length: 619 [19:06:52]Content-Type: application/json [19:06:52] [19:06:52]POST finish read [19:06:52]Found Content-Length = 619 [19:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199821", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:52]execute_script... [19:06:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199821", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:52]POST & json_proto [19:06:52]process_json_proto [19:06:52]json parsed OK: [19:06:52]protocol is kg_v1.0 [19:06:52]action value=close_receipt [19:06:52]process_action close_receipt [19:06:52]cmd_close_receipt [19:06:52]MH_GetDate [19:06:52]Write to MH i2c: F0 00 00 46 28 5D [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: F0 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: F0 09 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: F0 09 00 46 28 00 D1 9A 1A 67 FF C4 6B 64 E4 [19:06:52]GetLastDocTimeStamp 1729796273 [19:06:52]current date 1729796817 [19:06:52]FM_GetShiftState [19:06:52]SAM_PROTO_GetShiftState [19:06:52]wFMCommunicate request_size=4 [19:06:52]MH_SAM_APDU [19:06:52]CAPDU: 80 13 01 00 [19:06:52]Write to MH i2c: E2 08 00 47 28 80 13 01 00 00 00 00 00 EC [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:52]Read from MH i2c: E2 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 0E 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 0E 00 47 28 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 1F [19:06:52]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [19:06:52]wFMCommunicate OK [19:06:52]SAM_PROTO_GetShiftState done [19:06:52]FM_GetShiftState done [19:06:52]opened in 1729730575 [19:06:52]opened+sec_in_day 1729816975 [19:06:52]quantity*price = 28800 [19:06:52]sum+1 = 28801 [19:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 120 24.10.2024 19:06 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60045 ФПД: 153809913478500 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190657&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60045&fm=153809913478500&tin=02508201610067®Number=0000000000091622&sum=28800 0 [19:06:53]StoreToDocumentArchive [19:06:53]shift 529 fd 60045 [19:06:53]save to /storage/0529/doc_00060045 [19:06:53]save last doc name /storage/0529/doc_00060045 to /storage/kkm_last_doc_name [19:06:53]save OK [19:06:53]Clear old archive folders... [19:06:53]ProcessDocumentItem done err = 0, tmpTLVsize=271 [19:06:53]tlvbuf is 00DD1790 [19:06:53]SAM_PROTO_ClearQueue [19:06:53]wFMCommunicate request_size=4 [19:06:53]MH_SAM_APDU [19:06:53]CAPDU: 80 09 00 00 [19:06:53]Write to MH i2c: E2 08 00 54 28 80 09 00 00 00 00 00 00 EE [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 54 28 00 90 00 F0 [19:06:53]RAPDU: 90 00 [19:06:53]wFMCommunicate OK [19:06:53]SAM_PROTO_ClearQueue done [19:06:53]KKMCreateOFDPacket [19:06:53]OFDProtocolAddRootSTLVToBuf [19:06:53]FM_MakeSignedData [19:06:53]FM_MakeSignedData [19:06:53]SAM_PROTO_SignData [19:06:53]wFMCommunicate request_size=4 [19:06:53]MH_SAM_APDU [19:06:53]CAPDU: 80 0D 01 02 [19:06:53]Write to MH i2c: E2 08 00 55 28 80 0D 01 02 00 00 00 00 F6 [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 55 28 00 90 00 F1 [19:06:53]RAPDU: 90 00 [19:06:53]wFMCommunicate OK [19:06:53]wFMCommunicate request_size=255 [19:06:53]MH_SAM_APDU [19:06:53]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 D1 9A 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [19:06:53]Write to MH i2c: E2 02 01 56 28 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 D1 9A 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 34 [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 56 28 00 90 00 F2 [19:06:53]RAPDU: 90 00 [19:06:53]wFMCommunicate OK [19:06:53]wFMCommunicate request_size=30 [19:06:53]MH_SAM_APDU [19:06:53]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 34 10 04 04 00 8D EA 00 00 35 04 06 00 8B E3 A9 41 7D 64 [19:06:53]Write to MH i2c: E2 21 00 57 28 80 0D 02 02 19 00 30 38 37 34 36 37 34 10 04 04 00 8D EA 00 00 35 04 06 00 8B E3 A9 41 7D 64 00 00 A6 [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 57 28 00 90 00 F3 [19:06:53]RAPDU: 90 00 [19:06:53]wFMCommunicate OK [19:06:53]wFMCommunicate request_size=4 [19:06:53]MH_SAM_APDU [19:06:53]CAPDU: 80 0D 03 02 [19:06:53]Write to MH i2c: E2 08 00 58 28 80 0D 03 02 00 00 00 00 FB [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 0B 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 0B 00 58 28 00 DE 67 CE 75 3E F5 65 DE 90 00 FA [19:06:53]RAPDU: DE 67 CE 75 3E F5 65 DE 90 00 [19:06:53]wFMCommunicate OK [19:06:53]SAM_PROTO_SignData done [19:06:53]FM_MakeSignedData done [19:06:53]CreateOFDProtocolMessage [19:06:53]wFMCommunicate request_size=4 [19:06:53]MH_SAM_APDU [19:06:53]CAPDU: 80 11 00 00 [19:06:53]Write to MH i2c: E2 08 00 59 28 80 11 00 00 00 00 00 00 FB [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 17 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 17 00 59 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 52 [19:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [19:06:53]wFMCommunicate OK [19:06:53]CreateOFDProtocolMessage done [19:06:53]OFDSenderStorePacket 60045 [19:06:53]StoreOFDPacket docnum=60045 [19:06:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 23 01 00 00 EE 93 1B 01 39 2C 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 D1 9A 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8D EA 00 00 35 04 06 00 8B E3 A9 41 7D 64 DE 67 CE 75 3E F5 65 DE [19:06:53]CheckFolder [19:06:53]dirname=/storage/ofd_packets [19:06:53]CheckFolder done [19:06:53]ProducePacketName [19:06:53]name=ofd_packets/00060045 [19:06:53]NVStorageSaveData ofd_packets/00060045 [19:06:53]File name is /storage/ofd_packets/00060045 [19:06:53]Write 321 bytes [19:06:53]NVStorageSaveData done [19:06:53]OFDSenderStorePacket done [19:06:53]KKMCreateOFDPacket done [19:06:53]NVStorageSaveData kkm_last_timestamp [19:06:53]File name is /storage/kkm_last_timestamp [19:06:53]Write 4 bytes [19:06:53]NVStorageSaveData done [19:06:53]ExternCall_PrintAddStr [19:06:53]wPrintStart [19:06:53]Write to MH i2c: 01 00 00 5A 28 82 [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: 01 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: 01 07 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: 01 07 00 5A 28 00 00 00 00 00 FF 0F 97 [19:06:53]RasterBufferAndPrint [19:06:53]line Счет N : (3)199821 [19:06:53]line ИНН: 02508201610067 [19:06:53]line Контрольно-Кассовый Чек [19:06:53]line ПРОДАЖА [19:06:53]line Товар: 47802995 [19:06:53]line Сигареты Winston XS Silver [19:06:53]line 2.000 * 144.00 [19:06:53]line = 288.00 [19:06:53]line НДС 12% НСП 1% [19:06:53]line > о реализуемом товаре [19:06:53]line ИТОГО: 288.00 [19:06:53]line НСП 1% : 2.55 [19:06:53]line НДС 12% : 30.58 [19:06:53]line Наличными: 288.00 [19:06:53]line Безнал.: 0.00 [19:06:53]line Место: АЗС № 87 "Партнер Нефть" [19:06:53]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [19:06:53]line СНО: Общий режим [19:06:53]line Чек 120 24.10.2024 19:06 [19:06:53]line Смена: 529 ФФД: 1.0 [19:06:53]line ЗНМ: 0300000084 [19:06:53]line РНМ: 0000000000091622 [19:06:53]line Версия ККМ: 001 [19:06:53]line ФМ: 0000000000874674 [19:06:53]line ФД: 60045 [19:06:53]line ФПД: 153809913478500 [19:06:53]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190657&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60045&fm=153809913478500&tin=02508201610067®Number=0000000000091622&sum=28800 [19:06:54]OFD Sender: Processing packet 60045 [packets to send 30, broken 29] [19:06:54]ProducePacketName [19:06:54]name=ofd_packets/00060045 [19:06:54]OFD Sender: To server: pG, [19:06:54]CommunicateWithHost lk.salyk.kg:30040 [19:06:54]ConnectInit lk.salyk.kg [19:06:54]line 0 [19:06:54]written 0, free lines is 4095 [19:06:54]Connected sock=9 [19:06:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 23 01 00 00 EE 93 1B 01 39 2C 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 D1 9A 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8D EA 00 00 35 04 06 00 8B E3 A9 41 7D 64 DE 67 CE 75 3E F5 65 DE [19:06:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 11 8A 47 00 EA 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 34 36 37 34 10 04 04 00 8D EA 00 00 F4 03 04 00 C1 40 1A 67 B6 04 01 00 00 5B 54 21 E6 A1 C5 E4 83 [19:06:54]CommunicateWithHost err = 0 [19:06:54]CheckOFDResponse [19:06:54]1017 (14) - 77093643461234 [19:06:54]1041 (16) - 0000000000874674 [19:06:54]1040 (4) - 60045 [19:06:54]1012 (4) - 24.10.2024 12:42 [19:06:54]1206 (1) - 0 [19:06:54]OFD Sender: Remove packet 60045 [19:06:54]ProducePacketName [19:06:54]name=ofd_packets/00060045 [19:06:54]NVStorageDeleteData [19:06:54]Write to MH i2c: 01 00 00 82 28 AA [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: 01 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: 01 07 00 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: 01 07 00 82 28 00 00 00 00 00 0C 0D CA [19:06:54]RasterBufferAndPrint [19:06:54]line [19:06:54]line [19:06:54]line [19:06:54]line [19:06:54]line [19:06:54]written 0, free lines is 3347 [19:06:54]MH_Cut [19:06:54]Write to MH i2c: D1 01 00 89 28 01 83 [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: D1 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: D1 01 00 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: D1 01 00 89 28 00 82 [19:06:54]Write to MH i2c: 01 00 00 8A 28 B2 [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:55]OFD Sender: No OFD packet to send [19:06:55]*** Cut start [19:06:55]*** Partial cut [19:06:55]*** CUTSNS_PIN = 1 [19:06:55]*** CUTSNS_PIN = 0 [19:06:55]*** Brake cut motor [19:06:56]Read from MH i2c: 01 [19:06:56]MH_I2C_Read... [19:06:56]*** Stop cut motor [19:06:56]*** Cut end [19:06:56]Read from MH i2c: 01 07 00 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: 01 07 00 8A 28 00 00 00 00 00 FF 0F C7 [19:06:56]process_action close_receipt done [19:06:56]requested_data is exist [19:06:56]produce_requested_data [19:06:56]requested_item fm.sn is exist - process it [19:06:56]wFMCommunicate request_size=4 [19:06:56]MH_SAM_APDU [19:06:56]CAPDU: 80 11 00 00 [19:06:56]Write to MH i2c: E2 08 00 8B 28 80 11 00 00 00 00 00 00 2D [19:06:56]Write i2c OK [19:06:56]MH_I2C_Read... [19:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:56]Read from MH i2c: E2 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: E2 17 00 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: E2 17 00 8B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 84 [19:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [19:06:56]wFMCommunicate OK [19:06:56]requested_item fd.num is exist - process it [19:06:56]SAM_PROTO_GetFieldsCounters [19:06:56]wFMCommunicate request_size=4 [19:06:56]MH_SAM_APDU [19:06:56]CAPDU: 80 13 00 00 [19:06:56]Write to MH i2c: E2 08 00 8C 28 80 13 00 00 00 00 00 00 30 [19:06:56]Write i2c OK [19:06:56]MH_I2C_Read... [19:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:56]Read from MH i2c: E2 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: E2 62 00 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: E2 62 00 8C 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8D EA 00 00 0E 04 04 00 11 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 42 [19:06:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8D EA 00 00 0E 04 04 00 11 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 [19:06:56]wFMCommunicate OK [19:06:56]SAM_PROTO_GetFieldsCounters done [19:06:56]requested_item shift.num is exist - process it [19:06:56]requested_item shift.opened is exist - process it [19:06:56]req_shift_opened [19:06:56]FM_GetShiftState [19:06:56]SAM_PROTO_GetShiftState [19:06:56]wFMCommunicate request_size=4 [19:06:56]MH_SAM_APDU [19:06:56]CAPDU: 80 13 01 00 [19:06:56]Write to MH i2c: E2 08 00 8D 28 80 13 01 00 00 00 00 00 32 [19:06:56]Write i2c OK [19:06:56]MH_I2C_Read... [19:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:56]Read from MH i2c: E2 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: E2 0E 00 [19:06:56]MH_I2C_Read... [19:06:56]Read from MH i2c: E2 0E 00 8D 28 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 65 [19:06:56]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [19:06:56]wFMCommunicate OK [19:06:56]SAM_PROTO_GetShiftState done [19:06:56]FM_GetShiftState done [19:06:56]req_shift_opened done [19:06:56]requested_item shift.open_date is exist - process it [19:06:56]req_shift_open_date [19:06:56]req_shift_open_date done [19:06:56]produce_requested_data done [19:06:56]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60045,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [19:06:56]process_action_free close_receipt [19:06:56]json_value_free [19:06:56]json_value_free done [19:06:56]process_json_proto returns [19:06:56]Send response to host [19:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60045,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [19:06:56]free response buf [19:06:56]execute_script done [19:06:56]execute_script returns [19:06:56]free content buf [19:06:56]Sock 7.Close socket [19:06:56]Sock 7.Thread stoped [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11: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:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]accept exits with 10 [19:19:00]New connection [19:19:00]New thread 3067108708 created [19:19:00]Thread 3067252068 joined [19:19:00]Waiting for new connection... [19:19:00] Sock 10.Parse request [19:19:00]Sock 10.Check first char [19:19:00]Sock 10.First char is OK [19:19:00]request: POST /json_proto HTTP/1.0 [19:19:00]Method: POST [19:19:00]URL: /json_proto [19:19:00]Method is POST - this is cgi request [19:19:00]url: /json_proto [19:19:00]query_string will be loaded in cgi processing [19:19:00]execute_cgi json_proto POST (null) [19:19:00]execute_cgi path=json_proto method=POST [19:19:00]POST find Content-Length [19:19:00]Host: 172.17.42.196:8080 [19:19:00]Content-Length: 621 [19:19:00]Content-Type: application/json [19:19:00] [19:19:00]POST finish read [19:19:00]Found Content-Length = 621 [19:19:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199822", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 3.000, "sum" : 447.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 447.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:00]execute_script... [19:19:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199822", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 3.000, "sum" : 447.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 447.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:00]POST & json_proto [19:19:00]process_json_proto [19:19:00]json parsed OK: [19:19:00]protocol is kg_v1.0 [19:19:00]action value=close_receipt [19:19:00]process_action close_receipt [19:19:00]cmd_close_receipt [19:19:00]MH_GetDate [19:19:00]Write to MH i2c: F0 00 00 8E 28 A5 [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: F0 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: F0 09 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: F0 09 00 8E 28 00 A9 9D 1A 67 FF C4 6B 64 07 [19:19:00]GetLastDocTimeStamp 1729796817 [19:19:00]current date 1729797545 [19:19:00]FM_GetShiftState [19:19:00]SAM_PROTO_GetShiftState [19:19:00]wFMCommunicate request_size=4 [19:19:00]MH_SAM_APDU [19:19:00]CAPDU: 80 13 01 00 [19:19:00]Write to MH i2c: E2 08 00 8F 28 80 13 01 00 00 00 00 00 34 [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:00]Read from MH i2c: E2 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 0E 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 0E 00 8F 28 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 67 [19:19:00]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [19:19:00]wFMCommunicate OK [19:19:00]SAM_PROTO_GetShiftState done [19:19:00]FM_GetShiftState done [19:19:00]opened in 1729730575 [19:19:00]opened+sec_in_day 1729816975 [19:19:00]quantity*price = 44700 [19:19:00]sum+1 = 44701 [19:19:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 447.00 НСП 1% : 3.96 НДС 12% : 47.47 Наличными: 447.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 121 24.10.2024 19:19 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60046 ФПД: 29648907156803 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191905&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60046&fm=29648907156803&tin=02508201610067®Number=0000000000091622&sum=44700 0 [19:19:01]StoreToDocumentArchive [19:19:01]shift 529 fd 60046 [19:19:01]save to /storage/0529/doc_00060046 [19:19:01]save last doc name /storage/0529/doc_00060046 to /storage/kkm_last_doc_name [19:19:01]save OK [19:19:01]Clear old archive folders... [19:19:01]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:19:01]tlvbuf is 00E074B0 [19:19:01]SAM_PROTO_ClearQueue [19:19:01]wFMCommunicate request_size=4 [19:19:01]MH_SAM_APDU [19:19:01]CAPDU: 80 09 00 00 [19:19:01]Write to MH i2c: E2 08 00 9C 28 80 09 00 00 00 00 00 00 36 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:01]Read from MH i2c: E2 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 9C 28 00 90 00 38 [19:19:01]RAPDU: 90 00 [19:19:01]wFMCommunicate OK [19:19:01]SAM_PROTO_ClearQueue done [19:19:01]KKMCreateOFDPacket [19:19:01]OFDProtocolAddRootSTLVToBuf [19:19:01]FM_MakeSignedData [19:19:01]FM_MakeSignedData [19:19:01]SAM_PROTO_SignData [19:19:01]wFMCommunicate request_size=4 [19:19:01]MH_SAM_APDU [19:19:01]CAPDU: 80 0D 01 02 [19:19:01]Write to MH i2c: E2 08 00 9D 28 80 0D 01 02 00 00 00 00 3E [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:01]Read from MH i2c: E2 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 9D 28 00 90 00 39 [19:19:01]RAPDU: 90 00 [19:19:01]wFMCommunicate OK [19:19:01]wFMCommunicate request_size=255 [19:19:01]MH_SAM_APDU [19:19:01]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 9C AE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 12 00 00 00 00 07 04 06 00 9C AE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A9 9D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 [19:19:01]Write to MH i2c: E2 02 01 9E 28 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 9C AE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 12 00 00 00 00 07 04 06 00 9C AE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A9 9D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 05 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:01]Read from MH i2c: E2 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 9E 28 00 90 00 3A [19:19:01]RAPDU: 90 00 [19:19:01]wFMCommunicate OK [19:19:01]wFMCommunicate request_size=32 [19:19:01]MH_SAM_APDU [19:19:01]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 34 10 04 04 00 8E EA 00 00 35 04 06 00 1A F7 2C 94 3D 43 [19:19:01]Write to MH i2c: E2 23 00 9F 28 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 34 10 04 04 00 8E EA 00 00 35 04 06 00 1A F7 2C 94 3D 43 00 00 6B [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:01]Read from MH i2c: E2 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 9F 28 00 90 00 3B [19:19:01]RAPDU: 90 00 [19:19:01]wFMCommunicate OK [19:19:01]wFMCommunicate request_size=4 [19:19:01]MH_SAM_APDU [19:19:01]CAPDU: 80 0D 03 02 [19:19:01]Write to MH i2c: E2 08 00 A0 28 80 0D 03 02 00 00 00 00 43 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0B 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0B 00 A0 28 00 AC C6 5E A2 47 09 12 38 90 00 50 [19:19:02]RAPDU: AC C6 5E A2 47 09 12 38 90 00 [19:19:02]wFMCommunicate OK [19:19:02]SAM_PROTO_SignData done [19:19:02]FM_MakeSignedData done [19:19:02]CreateOFDProtocolMessage [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 11 00 00 [19:19:02]Write to MH i2c: E2 08 00 A1 28 80 11 00 00 00 00 00 00 43 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 17 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 17 00 A1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 9A [19:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [19:19:02]wFMCommunicate OK [19:19:02]CreateOFDProtocolMessage done [19:19:02]OFDSenderStorePacket 60046 [19:19:02]StoreOFDPacket docnum=60046 [19:19:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 A9 CC 1D 01 D2 B4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 9C AE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 12 00 00 00 00 07 04 06 00 9C AE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A9 9D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8E EA 00 00 35 04 06 00 1A F7 2C 94 3D 43 AC C6 5E A2 47 09 12 38 [19:19:02]CheckFolder [19:19:02]dirname=/storage/ofd_packets [19:19:02]CheckFolder done [19:19:02]ProducePacketName [19:19:02]name=ofd_packets/00060046 [19:19:02]NVStorageSaveData ofd_packets/00060046 [19:19:02]File name is /storage/ofd_packets/00060046 [19:19:02]Write 323 bytes [19:19:02]NVStorageSaveData done [19:19:02]OFDSenderStorePacket done [19:19:02]KKMCreateOFDPacket done [19:19:02]NVStorageSaveData kkm_last_timestamp [19:19:02]File name is /storage/kkm_last_timestamp [19:19:02]Write 4 bytes [19:19:02]NVStorageSaveData done [19:19:02]ExternCall_PrintAddStr [19:19:02]wPrintStart [19:19:02]Write to MH i2c: 01 00 00 A2 28 CA [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: 01 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: 01 07 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: 01 07 00 A2 28 00 00 00 00 00 FF 0F DF [19:19:02]RasterBufferAndPrint [19:19:02]line Счет N : (3)199822 [19:19:02]line ИНН: 02508201610067 [19:19:02]line Контрольно-Кассовый Чек [19:19:02]line ПРОДАЖА [19:19:02]line Товар: 48744119 [19:19:02]line Сигареты Winston Xstyle Dual [19:19:02]line 3.000 * 149.00 [19:19:02]line = 447.00 [19:19:02]line НДС 12% НСП 1% [19:19:02]line > о реализуемом товаре [19:19:02]line ИТОГО: 447.00 [19:19:02]line НСП 1% : 3.96 [19:19:02]line НДС 12% : 47.47 [19:19:02]line Наличными: 447.00 [19:19:02]line Безнал.: 0.00 [19:19:02]line Место: АЗС № 87 "Партнер Нефть" [19:19:02]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [19:19:02]line СНО: Общий режим [19:19:02]line Чек 121 24.10.2024 19:19 [19:19:02]line Смена: 529 ФФД: 1.0 [19:19:02]line ЗНМ: 0300000084 [19:19:02]line РНМ: 0000000000091622 [19:19:02]line Версия ККМ: 001 [19:19:02]line ФМ: 0000000000874674 [19:19:02]line ФД: 60046 [19:19:02]line ФПД: 29648907156803 [19:19:02]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191905&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60046&fm=29648907156803&tin=02508201610067®Number=0000000000091622&sum=44700 [19:19:02]OFD Sender: Processing packet 60046 [packets to send 30, broken 29] [19:19:02]ProducePacketName [19:19:02]name=ofd_packets/00060046 [19:19:02]OFD Sender: To server: pG, [19:19:02]CommunicateWithHost lk.salyk.kg:30040 [19:19:02]ConnectInit lk.salyk.kg [19:19:02]line 0 [19:19:02]written 0, free lines is 4095 [19:19:02]Connected sock=9 [19:19:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 A9 CC 1D 01 D2 B4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 9C AE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C AE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 12 00 00 00 00 07 04 06 00 9C AE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A9 9D 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8E EA 00 00 35 04 06 00 1A F7 2C 94 3D 43 AC C6 5E A2 47 09 12 38 [19:19:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 0C 3D 47 00 7D 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 34 36 37 34 10 04 04 00 8E EA 00 00 F4 03 04 00 99 43 1A 67 B6 04 01 00 00 A8 90 8D 20 8C FF 52 64 [19:19:02]CommunicateWithHost err = 0 [19:19:02]CheckOFDResponse [19:19:02]1017 (14) - 77093643461234 [19:19:02]1041 (16) - 0000000000874674 [19:19:02]1040 (4) - 60046 [19:19:02]1012 (4) - 24.10.2024 12:54 [19:19:02]1206 (1) - 0 [19:19:02]OFD Sender: Remove packet 60046 [19:19:02]ProducePacketName [19:19:02]name=ofd_packets/00060046 [19:19:02]NVStorageDeleteData [19:19:02]Write to MH i2c: 01 00 00 CA 28 F2 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: 01 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: 01 07 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: 01 07 00 CA 28 00 00 00 00 00 E8 0C ED [19:19:02]RasterBufferAndPrint [19:19:02]line [19:19:02]line [19:19:02]line [19:19:02]line [19:19:02]line [19:19:02]written 0, free lines is 3310 [19:19:02]MH_Cut [19:19:02]Write to MH i2c: D1 01 00 D1 28 01 CB [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: D1 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: D1 01 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: D1 01 00 D1 28 00 CA [19:19:02]Write to MH i2c: 01 00 00 D2 28 FA [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:03]OFD Sender: No OFD packet to send [19:19:03]*** Cut start [19:19:03]*** Partial cut [19:19:03]*** CUTSNS_PIN = 1 [19:19:03]*** CUTSNS_PIN = 0 [19:19:03]*** Brake cut motor [19:19:04]Read from MH i2c: 01 [19:19:04]MH_I2C_Read... [19:19:04]*** Stop cut motor [19:19:04]*** Cut end [19:19:04]Read from MH i2c: 01 07 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: 01 07 00 D2 28 00 00 00 00 00 FF 0F 0F [19:19:04]process_action close_receipt done [19:19:04]requested_data is exist [19:19:04]produce_requested_data [19:19:04]requested_item fm.sn is exist - process it [19:19:04]wFMCommunicate request_size=4 [19:19:04]MH_SAM_APDU [19:19:04]CAPDU: 80 11 00 00 [19:19:04]Write to MH i2c: E2 08 00 D3 28 80 11 00 00 00 00 00 00 75 [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:04]Read from MH i2c: E2 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 17 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 17 00 D3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 CC [19:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [19:19:04]wFMCommunicate OK [19:19:04]requested_item fd.num is exist - process it [19:19:04]SAM_PROTO_GetFieldsCounters [19:19:04]wFMCommunicate request_size=4 [19:19:04]MH_SAM_APDU [19:19:04]CAPDU: 80 13 00 00 [19:19:04]Write to MH i2c: E2 08 00 D4 28 80 13 00 00 00 00 00 00 78 [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:04]Read from MH i2c: E2 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 62 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 62 00 D4 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8E EA 00 00 0E 04 04 00 11 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 8E [19:19: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8E EA 00 00 0E 04 04 00 11 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 [19:19:04]wFMCommunicate OK [19:19:04]SAM_PROTO_GetFieldsCounters done [19:19:04]requested_item shift.num is exist - process it [19:19:04]requested_item shift.opened is exist - process it [19:19:04]req_shift_opened [19:19:04]FM_GetShiftState [19:19:04]SAM_PROTO_GetShiftState [19:19:04]wFMCommunicate request_size=4 [19:19:04]MH_SAM_APDU [19:19:04]CAPDU: 80 13 01 00 [19:19:04]Write to MH i2c: E2 08 00 D5 28 80 13 01 00 00 00 00 00 7A [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:04]Read from MH i2c: E2 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 0E 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 0E 00 D5 28 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 AD [19:19:04]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [19:19:04]wFMCommunicate OK [19:19:04]SAM_PROTO_GetShiftState done [19:19:04]FM_GetShiftState done [19:19:04]req_shift_opened done [19:19:04]requested_item shift.open_date is exist - process it [19:19:04]req_shift_open_date [19:19:04]req_shift_open_date done [19:19:04]produce_requested_data done [19:19:04]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60046,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [19:19:04]process_action_free close_receipt [19:19:04]json_value_free [19:19:04]json_value_free done [19:19:04]process_json_proto returns [19:19:04]Send response to host [19:19:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60046,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [19:19:04]free response buf [19:19:04]execute_script done [19:19:04]execute_script returns [19:19:04]free content buf [19:19:04]Sock 10.Close socket [19:19:04]Sock 10.Thread stoped [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:55]accept exits with 7 [19:22:55]New connection [19:22:55]New thread 3067252068 created [19:22:55]Thread 3067108708 joined [19:22:55]Waiting for new connection... [19:22:55] Sock 7.Parse request [19:22:55]Sock 7.Check first char [19:22:55]Sock 7.First char is OK [19:22:55]request: POST /json_proto HTTP/1.0 [19:22:55]Method: POST [19:22:55]URL: /json_proto [19:22:55]Method is POST - this is cgi request [19:22:55]url: /json_proto [19:22:55]query_string will be loaded in cgi processing [19:22:55]execute_cgi json_proto POST (null) [19:22:55]execute_cgi path=json_proto method=POST [19:22:55]POST find Content-Length [19:22:55]Host: 172.17.42.196:8080 [19:22:55]Content-Length: 682 [19:22:55]Content-Type: application/json [19:22:55] [19:22:55]POST finish read [19:22:55]Found Content-Length = 682 [19:22:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 4.040, "sum" : 307.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 307.00, "payments": [ { "type": 0, "sum" : 307.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:55]execute_script... [19:22: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)3309158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 4.040, "sum" : 307.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 307.00, "payments": [ { "type": 0, "sum" : 307.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:55]POST & json_proto [19:22:55]process_json_proto [19:22:55]json parsed OK: [19:22:55]protocol is kg_v1.0 [19:22:55]action value=close_receipt [19:22:55]process_action close_receipt [19:22:55]cmd_close_receipt [19:22:55]MH_GetDate [19:22:55]Write to MH i2c: F0 00 00 D6 28 ED [19:22:55]Write i2c OK [19:22:55]MH_I2C_Read... [19:22:55]Read from MH i2c: F0 [19:22:55]MH_I2C_Read... [19:22:55]Read from MH i2c: F0 09 00 [19:22:55]MH_I2C_Read... [19:22:55]Read from MH i2c: F0 09 00 D6 28 00 94 9E 1A 67 FF C4 6B 64 3B [19:22:55]GetLastDocTimeStamp 1729797545 [19:22:55]current date 1729797780 [19:22:55]FM_GetShiftState [19:22:55]SAM_PROTO_GetShiftState [19:22:55]wFMCommunicate request_size=4 [19:22:55]MH_SAM_APDU [19:22:55]CAPDU: 80 13 01 00 [19:22:55]Write to MH i2c: E2 08 00 D7 28 80 13 01 00 00 00 00 00 7C [19:22:55]Write i2c OK [19:22:55]MH_I2C_Read... [19:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:55]Read from MH i2c: E2 [19:22:55]MH_I2C_Read... [19:22:55]Read from MH i2c: E2 0E 00 [19:22:55]MH_I2C_Read... [19:22:55]Read from MH i2c: E2 0E 00 D7 28 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 AF [19:22:55]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [19:22:55]wFMCommunicate OK [19:22:55]SAM_PROTO_GetShiftState done [19:22:55]FM_GetShiftState done [19:22:55]opened in 1729730575 [19:22:55]opened+sec_in_day 1729816975 [19:22:55]quantity*price = 30784 [19:22:55]sum+1 = 30786 [19:22:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.85 ИТОГО: 307.00 Внесено: 390.00 СДАЧА: 83.00 НСП 1% : 2.72 НДС 12% : 32.69 Наличными: 307.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 122 24.10.2024 19:23 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60047 ФПД: 217621339910338 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192300&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60047&fm=217621339910338&tin=02508201610067®Number=0000000000091622&sum=30700 [19:22:56]StoreToDocumentArchive [19:22:56]shift 529 fd 60047 [19:22:56]save to /storage/0529/doc_00060047 [19:22:56]save last doc name /storage/0529/doc_00060047 to /storage/kkm_last_doc_name [19:22:56]save OK [19:22:56]Clear old archive folders... [19:22:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:22:56]tlvbuf is 00E59250 [19:22:56]SAM_PROTO_ClearQueue [19:22:56]wFMCommunicate request_size=4 [19:22:56]MH_SAM_APDU [19:22:56]CAPDU: 80 09 00 00 [19:22:56]Write to MH i2c: E2 08 00 E4 28 80 09 00 00 00 00 00 00 7E [19:22:56]Write i2c OK [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 [19:22:56]MH_I2C_Read... [19:22:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:56]Read from MH i2c: E2 03 00 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 03 00 E4 28 00 90 00 80 [19:22:56]RAPDU: 90 00 [19:22:56]wFMCommunicate OK [19:22:56]SAM_PROTO_ClearQueue done [19:22:56]KKMCreateOFDPacket [19:22:56]OFDProtocolAddRootSTLVToBuf [19:22:56]FM_MakeSignedData [19:22:56]FM_MakeSignedData [19:22:56]SAM_PROTO_SignData [19:22:56]wFMCommunicate request_size=4 [19:22:56]MH_SAM_APDU [19:22:56]CAPDU: 80 0D 01 02 [19:22:56]Write to MH i2c: E2 08 00 E5 28 80 0D 01 02 00 00 00 00 86 [19:22:56]Write i2c OK [19:22:56]MH_I2C_Read... [19:22:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:56]Read from MH i2c: E2 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 03 00 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 03 00 E5 28 00 90 00 81 [19:22:56]RAPDU: 90 00 [19:22:56]wFMCommunicate OK [19:22:56]wFMCommunicate request_size=255 [19:22:56]MH_SAM_APDU [19:22:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 41 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 0C 00 00 00 00 07 04 06 00 EC 77 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 00 00 00 F4 03 04 00 94 9E 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8F EA 00 00 35 04 06 00 [19:22:56]Write to MH i2c: E2 02 01 E6 28 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 41 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 0C 00 00 00 00 07 04 06 00 EC 77 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 00 00 00 F4 03 04 00 94 9E 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8F EA 00 00 35 04 06 00 00 00 9C [19:22:56]Write i2c OK [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 [19:22:56]MH_I2C_Read... [19:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:56]Read from MH i2c: E2 03 00 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 03 00 E6 28 00 90 00 82 [19:22:56]RAPDU: 90 00 [19:22:56]wFMCommunicate OK [19:22:56]wFMCommunicate request_size=11 [19:22:56]MH_SAM_APDU [19:22:56]CAPDU: 80 0D 02 02 06 C5 EC EA A9 30 C2 [19:22:56]Write to MH i2c: E2 0E 00 E7 28 80 0D 02 02 06 00 C5 EC EA A9 30 C2 00 00 CB [19:22:56]Write i2c OK [19:22:56]MH_I2C_Read... [19:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:56]Read from MH i2c: E2 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 03 00 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 03 00 E7 28 00 90 00 83 [19:22:56]RAPDU: 90 00 [19:22:56]wFMCommunicate OK [19:22:56]wFMCommunicate request_size=4 [19:22:56]MH_SAM_APDU [19:22:56]CAPDU: 80 0D 03 02 [19:22:56]Write to MH i2c: E2 08 00 E8 28 80 0D 03 02 00 00 00 00 8B [19:22:56]Write i2c OK [19:22:56]MH_I2C_Read... [19:22:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:56]Read from MH i2c: E2 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 0B 00 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 0B 00 E8 28 00 4C 84 25 A2 BE F3 ED E6 90 00 A7 [19:22:56]RAPDU: 4C 84 25 A2 BE F3 ED E6 90 00 [19:22:56]wFMCommunicate OK [19:22:56]SAM_PROTO_SignData done [19:22:56]FM_MakeSignedData done [19:22:56]CreateOFDProtocolMessage [19:22:56]wFMCommunicate request_size=4 [19:22:56]MH_SAM_APDU [19:22:56]CAPDU: 80 11 00 00 [19:22:56]Write to MH i2c: E2 08 00 E9 28 80 11 00 00 00 00 00 00 8B [19:22:56]Write i2c OK [19:22:56]MH_I2C_Read... [19:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:56]Read from MH i2c: E2 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 17 00 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: E2 17 00 E9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 E2 [19:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [19:22:56]wFMCommunicate OK [19:22:56]CreateOFDProtocolMessage done [19:22:56]OFDSenderStorePacket 60047 [19:22:56]StoreOFDPacket docnum=60047 [19:22:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 01 00 00 A5 E7 08 01 FB C8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 41 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 0C 00 00 00 00 07 04 06 00 EC 77 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 00 00 00 F4 03 04 00 94 9E 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8F EA 00 00 35 04 06 00 C5 EC EA A9 30 C2 4C 84 25 A2 BE F3 ED E6 [19:22:56]CheckFolder [19:22:56]dirname=/storage/ofd_packets [19:22:56]CheckFolder done [19:22:56]ProducePacketName [19:22:56]name=ofd_packets/00060047 [19:22:56]NVStorageSaveData ofd_packets/00060047 [19:22:56]File name is /storage/ofd_packets/00060047 [19:22:56]Write 302 bytes [19:22:56]NVStorageSaveData done [19:22:56]OFDSenderStorePacket done [19:22:56]KKMCreateOFDPacket done [19:22:56]NVStorageSaveData kkm_last_timestamp [19:22:56]File name is /storage/kkm_last_timestamp [19:22:56]Write 4 bytes [19:22:56]NVStorageSaveData done [19:22:56]ExternCall_PrintAddStr [19:22:56]wPrintStart [19:22:56]Write to MH i2c: 01 00 00 EA 28 12 [19:22:56]Write i2c OK [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: 01 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: 01 07 00 [19:22:56]MH_I2C_Read... [19:22:56]Read from MH i2c: 01 07 00 EA 28 00 00 00 00 00 FF 0F 27 [19:22:56]RasterBufferAndPrint [19:22:56]line Счет N : (1)3309158 [19:22:56]line ИНН: 02508201610067 [19:22:56]line Контрольно-Кассовый Чек [19:22:56]line ПРОДАЖА [19:22:56]line ТРК (МРК, ГНК) : 5 [19:22:56]line Товар: 2710194210 [19:22:56]line ДТ(л)-К-5 [19:22:56]line 4.040 * 76.20 [19:22:56]line = 307.85 [19:22:56]line НДС 12% НСП 1% [19:22:56]line > о реализуемом товаре [19:22:56]line ОКРУГЛЕНИЕ: -0.85 [19:22:56]line ИТОГО: 307.00 [19:22:56]line Внесено: 390.00 [19:22:56]line СДАЧА: 83.00 [19:22:56]line НСП 1% : 2.72 [19:22:56]line НДС 12% : 32.69 [19:22:56]line Наличными: 307.00 [19:22:56]line Безнал.: 0.00 [19:22:56]line Место: АЗС № 87 "Партнер Нефть" [19:22:56]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [19:22:56]line СНО: Общий режим [19:22:56]line Чек 122 24.10.2024 19:23 [19:22:56]line Смена: 529 ФФД: 1.0 [19:22:56]line ЗНМ: 0300000084 [19:22:57]line РНМ: 0000000000091622 [19:22:57]line Версия ККМ: 001 [19:22:57]line ФМ: 0000000000874674 [19:22:57]line ФД: 60047 [19:22:57]line ФПД: 217621339910338 [19:22:57]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192300&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60047&fm=217621339910338&tin=02508201610067®Number=0000000000091622&sum=30700 [19:22:57]OFD Sender: Processing packet 60047 [packets to send 30, broken 29] [19:22:57]ProducePacketName [19:22:57]name=ofd_packets/00060047 [19:22:57]OFD Sender: To server: pG, [19:22:57]CommunicateWithHost lk.salyk.kg:30040 [19:22:57]ConnectInit lk.salyk.kg [19:22:57]written 0, free lines is 4095 [19:22:57]Connected sock=10 [19:22:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 01 00 00 A5 E7 08 01 FB C8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 41 78 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 0C 00 00 00 00 07 04 06 00 EC 77 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 00 00 00 F4 03 04 00 94 9E 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8F EA 00 00 35 04 06 00 C5 EC EA A9 30 C2 4C 84 25 A2 BE F3 ED E6 [19:22:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 84 C4 47 00 F4 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 34 36 37 34 10 04 04 00 8F EA 00 00 F4 03 04 00 83 44 1A 67 B6 04 01 00 00 1E A7 A9 EB F2 F8 D7 F9 [19:22:57]CommunicateWithHost err = 0 [19:22:57]CheckOFDResponse [19:22:57]1017 (14) - 77093643461234 [19:22:57]1041 (16) - 0000000000874674 [19:22:57]1040 (4) - 60047 [19:22:57]1012 (4) - 24.10.2024 12:58 [19:22:57]1206 (1) - 0 [19:22:57]OFD Sender: Remove packet 60047 [19:22:57]ProducePacketName [19:22:57]name=ofd_packets/00060047 [19:22:57]NVStorageDeleteData [19:22:57]Write to MH i2c: 01 00 00 15 29 3E [19:22:57]Write i2c OK [19:22:57]MH_I2C_Read... [19:22:57]Read from MH i2c: 01 [19:22:57]MH_I2C_Read... [19:22:57]Read from MH i2c: 01 07 00 [19:22:57]MH_I2C_Read... [19:22:57]Read from MH i2c: 01 07 00 15 29 00 00 00 00 00 D4 0C 25 [19:22:57]RasterBufferAndPrint [19:22:57]line [19:22:57]line [19:22:57]line [19:22:57]line [19:22:57]line [19:22:57]written 0, free lines is 3292 [19:22:57]MH_Cut [19:22:57]Write to MH i2c: D1 01 00 1C 29 01 17 [19:22:57]Write i2c OK [19:22:57]MH_I2C_Read... [19:22:57]Read from MH i2c: D1 [19:22:57]MH_I2C_Read... [19:22:57]Read from MH i2c: D1 01 00 [19:22:57]MH_I2C_Read... [19:22:57]Read from MH i2c: D1 01 00 1C 29 00 16 [19:22:57]Write to MH i2c: 01 00 00 1D 29 46 [19:22:57]Write i2c OK [19:22:57]MH_I2C_Read... [19:22:57]OFD Sender: No OFD packet to send [19:22:58]*** Cut start [19:22:58]*** Partial cut [19:22:58]*** CUTSNS_PIN = 1 [19:22:58]*** CUTSNS_PIN = 0 [19:22:58]*** Brake cut motor [19:22:59]Read from MH i2c: 01 [19:22:59]MH_I2C_Read... [19:22:59]*** Stop cut motor [19:22:59]*** Cut end [19:22:59]Read from MH i2c: 01 07 00 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: 01 07 00 1D 29 00 00 00 00 00 FF 0F 5B [19:22:59]process_action close_receipt done [19:22:59]requested_data is exist [19:22:59]produce_requested_data [19:22:59]requested_item fm.sn is exist - process it [19:22:59]wFMCommunicate request_size=4 [19:22:59]MH_SAM_APDU [19:22:59]CAPDU: 80 11 00 00 [19:22:59]Write to MH i2c: E2 08 00 1E 29 80 11 00 00 00 00 00 00 C1 [19:22:59]Write i2c OK [19:22:59]MH_I2C_Read... [19:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:59]Read from MH i2c: E2 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 17 00 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 17 00 1E 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 18 [19:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [19:22:59]wFMCommunicate OK [19:22:59]requested_item fd.num is exist - process it [19:22:59]SAM_PROTO_GetFieldsCounters [19:22:59]wFMCommunicate request_size=4 [19:22:59]MH_SAM_APDU [19:22:59]CAPDU: 80 13 00 00 [19:22:59]Write to MH i2c: E2 08 00 1F 29 80 13 00 00 00 00 00 00 C4 [19:22:59]Write i2c OK [19:22:59]MH_I2C_Read... [19:22:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:59]Read from MH i2c: E2 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 62 00 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 62 00 1F 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8F EA 00 00 0E 04 04 00 11 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 DE [19:22: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8F EA 00 00 0E 04 04 00 11 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 [19:22:59]wFMCommunicate OK [19:22:59]SAM_PROTO_GetFieldsCounters done [19:22:59]requested_item shift.num is exist - process it [19:22:59]requested_item shift.opened is exist - process it [19:22:59]req_shift_opened [19:22:59]FM_GetShiftState [19:22:59]SAM_PROTO_GetShiftState [19:22:59]wFMCommunicate request_size=4 [19:22:59]MH_SAM_APDU [19:22:59]CAPDU: 80 13 01 00 [19:22:59]Write to MH i2c: E2 08 00 20 29 80 13 01 00 00 00 00 00 C6 [19:22:59]Write i2c OK [19:22:59]MH_I2C_Read... [19:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:59]Read from MH i2c: E2 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 0E 00 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 0E 00 20 29 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 F9 [19:22:59]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [19:22:59]wFMCommunicate OK [19:22:59]SAM_PROTO_GetShiftState done [19:22:59]FM_GetShiftState done [19:22:59]req_shift_opened done [19:22:59]requested_item shift.open_date is exist - process it [19:22:59]req_shift_open_date [19:22:59]req_shift_open_date done [19:22:59]produce_requested_data done [19:22:59]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60047,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [19:22:59]process_action_free close_receipt [19:22:59]json_value_free [19:22:59]json_value_free done [19:22:59]process_json_proto returns [19:22:59]Send response to host [19:22:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60047,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [19:22:59]free response buf [19:22:59]execute_script done [19:22:59]execute_script returns [19:22:59]free content buf [19:22:59]Sock 7.Close socket [19:22:59]Sock 7.Thread stoped [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]accept exits with 9 [19:37:13]New connection [19:37:13]New thread 3067108708 created [19:37:13]Thread 3067252068 joined [19:37:13]Waiting for new connection... [19:37:13] Sock 9.Parse request [19:37:13]Sock 9.Check first char [19:37:13]Sock 9.First char is OK [19:37:13]request: POST /json_proto HTTP/1.0 [19:37:13]Method: POST [19:37:13]URL: /json_proto [19:37:13]Method is POST - this is cgi request [19:37:13]url: /json_proto [19:37:13]query_string will be loaded in cgi processing [19:37:13]execute_cgi json_proto POST (null) [19:37:13]execute_cgi path=json_proto method=POST [19:37:13]POST find Content-Length [19:37:13]Host: 172.17.42.196:8080 [19:37:13]Content-Length: 623 [19:37:13]Content-Type: application/json [19:37:13] [19:37:13]POST finish read [19:37:13]Found Content-Length = 623 [19:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199823", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:13]execute_script... [19:37:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199823", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:13]POST & json_proto [19:37:13]process_json_proto [19:37:13]json parsed OK: [19:37:13]protocol is kg_v1.0 [19:37:13]action value=close_receipt [19:37:13]process_action close_receipt [19:37:13]cmd_close_receipt [19:37:13]MH_GetDate [19:37:13]Write to MH i2c: F0 00 00 21 29 39 [19:37:13]Write i2c OK [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: F0 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: F0 09 00 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: F0 09 00 21 29 00 EE A1 1A 67 FF C4 6B 64 E4 [19:37:13]GetLastDocTimeStamp 1729797780 [19:37:13]current date 1729798638 [19:37:13]FM_GetShiftState [19:37:13]SAM_PROTO_GetShiftState [19:37:13]wFMCommunicate request_size=4 [19:37:13]MH_SAM_APDU [19:37:13]CAPDU: 80 13 01 00 [19:37:13]Write to MH i2c: E2 08 00 22 29 80 13 01 00 00 00 00 00 C8 [19:37:13]Write i2c OK [19:37:13]MH_I2C_Read... [19:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:13]Read from MH i2c: E2 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: E2 0E 00 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: E2 0E 00 22 29 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 FB [19:37:13]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [19:37:13]wFMCommunicate OK [19:37:13]SAM_PROTO_GetShiftState done [19:37:13]FM_GetShiftState done [19:37:13]opened in 1729730575 [19:37:13]opened+sec_in_day 1729816975 [19:37:13]quantity*price = 28800 [19:37:13]sum+1 = 28801 [19:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 123 24.10.2024 19:37 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60048 ФПД: 4191193336593 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193718&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60048&fm=4191193336593&tin=02508201610067®Number=0000000000091622&sum=28800 0 [19:37:14]StoreToDocumentArchive [19:37:14]shift 529 fd 60048 [19:37:14]save to /storage/0529/doc_00060048 [19:37:14]save last doc name /storage/0529/doc_00060048 to /storage/kkm_last_doc_name [19:37:14]save OK [19:37:14]Clear old archive folders... [19:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=275 [19:37:14]tlvbuf is 00DC8B90 [19:37:14]SAM_PROTO_ClearQueue [19:37:14]wFMCommunicate request_size=4 [19:37:14]MH_SAM_APDU [19:37:14]CAPDU: 80 09 00 00 [19:37:14]Write to MH i2c: E2 08 00 2F 29 80 09 00 00 00 00 00 00 CA [19:37:14]Write i2c OK [19:37:14]MH_I2C_Read... [19:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:14]Read from MH i2c: E2 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 2F 29 00 90 00 CC [19:37:14]RAPDU: 90 00 [19:37:14]wFMCommunicate OK [19:37:14]SAM_PROTO_ClearQueue done [19:37:14]KKMCreateOFDPacket [19:37:14]OFDProtocolAddRootSTLVToBuf [19:37:14]FM_MakeSignedData [19:37:14]FM_MakeSignedData [19:37:14]SAM_PROTO_SignData [19:37:14]wFMCommunicate request_size=4 [19:37:14]MH_SAM_APDU [19:37:14]CAPDU: 80 0D 01 02 [19:37:14]Write to MH i2c: E2 08 00 30 29 80 0D 01 02 00 00 00 00 D2 [19:37:14]Write i2c OK [19:37:14]MH_I2C_Read... [19:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:14]Read from MH i2c: E2 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 30 29 00 90 00 CD [19:37:14]RAPDU: 90 00 [19:37:14]wFMCommunicate OK [19:37:14]wFMCommunicate request_size=255 [19:37:14]MH_SAM_APDU [19:37:14]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 EE A1 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [19:37:14]Write to MH i2c: E2 02 01 31 29 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 EE A1 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 43 [19:37:14]Write i2c OK [19:37:14]MH_I2C_Read... [19:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:14]Read from MH i2c: E2 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 31 29 00 90 00 CE [19:37:14]RAPDU: 90 00 [19:37:14]wFMCommunicate OK [19:37:14]wFMCommunicate request_size=34 [19:37:14]MH_SAM_APDU [19:37:14]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 90 EA 00 00 35 04 06 00 03 CF D6 97 0B 11 [19:37:14]Write to MH i2c: E2 25 00 32 29 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 90 EA 00 00 35 04 06 00 03 CF D6 97 0B 11 00 00 6F [19:37:14]Write i2c OK [19:37:14]MH_I2C_Read... [19:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:14]Read from MH i2c: E2 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 32 29 00 90 00 CF [19:37:14]RAPDU: 90 00 [19:37:14]wFMCommunicate OK [19:37:14]wFMCommunicate request_size=4 [19:37:14]MH_SAM_APDU [19:37:14]CAPDU: 80 0D 03 02 [19:37:14]Write to MH i2c: E2 08 00 33 29 80 0D 03 02 00 00 00 00 D7 [19:37:14]Write i2c OK [19:37:14]MH_I2C_Read... [19:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:14]Read from MH i2c: E2 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 0B 00 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 0B 00 33 29 00 51 2F 4C D1 9A 42 B9 DE 90 00 E8 [19:37:14]RAPDU: 51 2F 4C D1 9A 42 B9 DE 90 00 [19:37:14]wFMCommunicate OK [19:37:14]SAM_PROTO_SignData done [19:37:14]FM_MakeSignedData done [19:37:14]CreateOFDProtocolMessage [19:37:14]wFMCommunicate request_size=4 [19:37:14]MH_SAM_APDU [19:37:14]CAPDU: 80 11 00 00 [19:37:14]Write to MH i2c: E2 08 00 34 29 80 11 00 00 00 00 00 00 D7 [19:37:14]Write i2c OK [19:37:14]MH_I2C_Read... [19:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:14]Read from MH i2c: E2 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 17 00 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 17 00 34 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 2E [19:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [19:37:14]wFMCommunicate OK [19:37:14]CreateOFDProtocolMessage done [19:37:14]OFDSenderStorePacket 60048 [19:37:14]StoreOFDPacket docnum=60048 [19:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 15 21 1F 01 B3 FB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 EE A1 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 90 EA 00 00 35 04 06 00 03 CF D6 97 0B 11 51 2F 4C D1 9A 42 B9 DE [19:37:14]CheckFolder [19:37:14]dirname=/storage/ofd_packets [19:37:14]CheckFolder done [19:37:14]ProducePacketName [19:37:14]name=ofd_packets/00060048 [19:37:14]NVStorageSaveData ofd_packets/00060048 [19:37:14]File name is /storage/ofd_packets/00060048 [19:37:14]Write 325 bytes [19:37:14]NVStorageSaveData done [19:37:14]OFDSenderStorePacket done [19:37:14]KKMCreateOFDPacket done [19:37:14]NVStorageSaveData kkm_last_timestamp [19:37:14]File name is /storage/kkm_last_timestamp [19:37:14]Write 4 bytes [19:37:14]NVStorageSaveData done [19:37:14]ExternCall_PrintAddStr [19:37:14]wPrintStart [19:37:14]Write to MH i2c: 01 00 00 35 29 5E [19:37:14]Write i2c OK [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: 01 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: 01 07 00 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: 01 07 00 35 29 00 00 00 00 00 FF 0F 73 [19:37:14]RasterBufferAndPrint [19:37:14]line Счет N : (3)199823 [19:37:14]line ИНН: 02508201610067 [19:37:14]line Контрольно-Кассовый Чек [19:37:14]line ПРОДАЖА [19:37:14]line Товар: 48743587 [19:37:14]line Сигареты Winston XStyle Silver [19:37:14]line 2.000 * 144.00 [19:37:14]line = 288.00 [19:37:14]line НДС 12% НСП 1% [19:37:14]line > о реализуемом товаре [19:37:14]line ИТОГО: 288.00 [19:37:14]line НСП 1% : 2.55 [19:37:14]line НДС 12% : 30.58 [19:37:14]line Наличными: 288.00 [19:37:14]line Безнал.: 0.00 [19:37:14]line Место: АЗС № 87 "Партнер Нефть" [19:37:14]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [19:37:14]line СНО: Общий режим [19:37:14]line Чек 123 24.10.2024 19:37 [19:37:14]line Смена: 529 ФФД: 1.0 [19:37:14]line ЗНМ: 0300000084 [19:37:14]line РНМ: 0000000000091622 [19:37:14]line Версия ККМ: 001 [19:37:14]line ФМ: 0000000000874674 [19:37:14]line ФД: 60048 [19:37:14]line ФПД: 4191193336593 [19:37:14]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193718&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60048&fm=4191193336593&tin=02508201610067®Number=0000000000091622&sum=28800 [19:37:15]OFD Sender: Processing packet 60048 [packets to send 30, broken 29] [19:37:15]ProducePacketName [19:37:15]name=ofd_packets/00060048 [19:37:15]OFD Sender: To server: pG, [19:37:15]CommunicateWithHost lk.salyk.kg:30040 [19:37:15]ConnectInit lk.salyk.kg [19:37:15]line 0 [19:37:15]written 0, free lines is 4095 [19:37:15]Connected sock=10 [19:37:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 15 21 1F 01 B3 FB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 EE A1 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 90 EA 00 00 35 04 06 00 03 CF D6 97 0B 11 51 2F 4C D1 9A 42 B9 DE [19:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 8D 6E 47 00 12 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 90 EA 00 00 F4 03 04 00 DD 47 1A 67 B6 04 01 00 00 06 93 51 B0 DF 29 2C 4A [19:37:15]CommunicateWithHost err = 0 [19:37:15]CheckOFDResponse [19:37:15]1017 (14) - 77093643461234 [19:37:15]1041 (16) - 0000000000874674 [19:37:15]1040 (4) - 60048 [19:37:15]1012 (4) - 24.10.2024 13:13 [19:37:15]1206 (1) - 0 [19:37:15]OFD Sender: Remove packet 60048 [19:37:15]ProducePacketName [19:37:15]name=ofd_packets/00060048 [19:37:15]NVStorageDeleteData [19:37:15]Write to MH i2c: 01 00 00 5E 29 87 [19:37:15]Write i2c OK [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: 01 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: 01 07 00 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: 01 07 00 5E 29 00 00 00 00 00 D7 0C 71 [19:37:15]RasterBufferAndPrint [19:37:15]line [19:37:15]line [19:37:15]line [19:37:15]line [19:37:15]line [19:37:15]written 0, free lines is 3294 [19:37:15]MH_Cut [19:37:15]Write to MH i2c: D1 01 00 65 29 01 60 [19:37:15]Write i2c OK [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: D1 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: D1 01 00 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: D1 01 00 65 29 00 5F [19:37:15]Write to MH i2c: 01 00 00 66 29 8F [19:37:15]Write i2c OK [19:37:15]MH_I2C_Read... [19:37:16]OFD Sender: No OFD packet to send [19:37:16]*** Cut start [19:37:16]*** Partial cut [19:37:16]*** CUTSNS_PIN = 1 [19:37:16]*** CUTSNS_PIN = 0 [19:37:16]*** Brake cut motor [19:37:17]Read from MH i2c: 01 [19:37:17]MH_I2C_Read... [19:37:17]*** Stop cut motor [19:37:17]*** Cut end [19:37:17]Read from MH i2c: 01 07 00 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: 01 07 00 66 29 00 00 00 00 00 FF 0F A4 [19:37:17]process_action close_receipt done [19:37:17]requested_data is exist [19:37:17]produce_requested_data [19:37:17]requested_item fm.sn is exist - process it [19:37:17]wFMCommunicate request_size=4 [19:37:17]MH_SAM_APDU [19:37:17]CAPDU: 80 11 00 00 [19:37:17]Write to MH i2c: E2 08 00 67 29 80 11 00 00 00 00 00 00 0A [19:37:17]Write i2c OK [19:37:17]MH_I2C_Read... [19:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:17]Read from MH i2c: E2 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 17 00 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 17 00 67 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 61 [19:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [19:37:17]wFMCommunicate OK [19:37:17]requested_item fd.num is exist - process it [19:37:17]SAM_PROTO_GetFieldsCounters [19:37:17]wFMCommunicate request_size=4 [19:37:17]MH_SAM_APDU [19:37:17]CAPDU: 80 13 00 00 [19:37:17]Write to MH i2c: E2 08 00 68 29 80 13 00 00 00 00 00 00 0D [19:37:17]Write i2c OK [19:37:17]MH_I2C_Read... [19:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:17]Read from MH i2c: E2 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 62 00 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 62 00 68 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 90 EA 00 00 0E 04 04 00 11 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 2B [19:37: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 90 EA 00 00 0E 04 04 00 11 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 [19:37:17]wFMCommunicate OK [19:37:17]SAM_PROTO_GetFieldsCounters done [19:37:17]requested_item shift.num is exist - process it [19:37:17]requested_item shift.opened is exist - process it [19:37:17]req_shift_opened [19:37:17]FM_GetShiftState [19:37:17]SAM_PROTO_GetShiftState [19:37:17]wFMCommunicate request_size=4 [19:37:17]MH_SAM_APDU [19:37:17]CAPDU: 80 13 01 00 [19:37:17]Write to MH i2c: E2 08 00 69 29 80 13 01 00 00 00 00 00 0F [19:37:17]Write i2c OK [19:37:17]MH_I2C_Read... [19:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:17]Read from MH i2c: E2 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 0E 00 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 0E 00 69 29 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 42 [19:37:17]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [19:37:17]wFMCommunicate OK [19:37:17]SAM_PROTO_GetShiftState done [19:37:17]FM_GetShiftState done [19:37:17]req_shift_opened done [19:37:17]requested_item shift.open_date is exist - process it [19:37:17]req_shift_open_date [19:37:17]req_shift_open_date done [19:37:17]produce_requested_data done [19:37:17]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60048,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [19:37:17]process_action_free close_receipt [19:37:17]json_value_free [19:37:17]json_value_free done [19:37:17]process_json_proto returns [19:37:17]Send response to host [19:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60048,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [19:37:17]free response buf [19:37:17]execute_script done [19:37:17]execute_script returns [19:37:17]free content buf [19:37:17]Sock 9.Close socket [19:37:17]Sock 9.Thread stoped [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:45]accept exits with 7 [19:41:45]New connection [19:41:45]New thread 3067252068 created [19:41:45]Thread 3067108708 joined [19:41:45]Waiting for new connection... [19:41:45] Sock 7.Parse request [19:41:45]Sock 7.Check first char [19:41:45]Sock 7.First char is OK [19:41:45]request: POST /json_proto HTTP/1.0 [19:41:45]Method: POST [19:41:45]URL: /json_proto [19:41:45]Method is POST - this is cgi request [19:41:45]url: /json_proto [19:41:45]query_string will be loaded in cgi processing [19:41:45]execute_cgi json_proto POST (null) [19:41:45]execute_cgi path=json_proto method=POST [19:41:45]POST find Content-Length [19:41:45]Host: 172.17.42.196:8080 [19:41:45]Content-Length: 1012 [19:41:45]Content-Type: application/json [19:41:45] [19:41:45]POST finish read [19:41:45]Found Content-Length = 1012 [19:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199824", "tax_sys" : 0, "items" : [ { "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:45]execute_script... [19:41:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199824", "tax_sys" : 0, "items" : [ { "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:45]POST & json_proto [19:41:45]process_json_proto [19:41:45]json parsed OK: [19:41:45]protocol is kg_v1.0 [19:41:45]action value=close_receipt [19:41:45]process_action close_receipt [19:41:45]cmd_close_receipt [19:41:45]MH_GetDate [19:41:45]Write to MH i2c: F0 00 00 6A 29 82 [19:41:45]Write i2c OK [19:41:45]MH_I2C_Read... [19:41:45]Read from MH i2c: F0 [19:41:45]MH_I2C_Read... [19:41:45]Read from MH i2c: F0 09 00 [19:41:45]MH_I2C_Read... [19:41:45]Read from MH i2c: F0 09 00 6A 29 00 FE A2 1A 67 FF C4 6B 64 3E [19:41:45]GetLastDocTimeStamp 1729798638 [19:41:45]current date 1729798910 [19:41:45]FM_GetShiftState [19:41:45]SAM_PROTO_GetShiftState [19:41:45]wFMCommunicate request_size=4 [19:41:45]MH_SAM_APDU [19:41:45]CAPDU: 80 13 01 00 [19:41:45]Write to MH i2c: E2 08 00 6B 29 80 13 01 00 00 00 00 00 11 [19:41:45]Write i2c OK [19:41:45]MH_I2C_Read... [19:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:45]Read from MH i2c: E2 [19:41:45]MH_I2C_Read... [19:41:45]Read from MH i2c: E2 0E 00 [19:41:45]MH_I2C_Read... [19:41:45]Read from MH i2c: E2 0E 00 6B 29 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 44 [19:41:45]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [19:41:45]wFMCommunicate OK [19:41:45]SAM_PROTO_GetShiftState done [19:41:45]FM_GetShiftState done [19:41:45]opened in 1729730575 [19:41:45]opened+sec_in_day 1729816975 [19:41:45]quantity*price = 7500 [19:41:45]sum+1 = 7501 [19:41:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160044 Вода Ыссык Ата 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.01 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 124 24.10.2024 19:41 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60049 ФПД: 171182850138647 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194150&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60049&fm=171182850138647&tin=02508201610067®Number=0000000000091622&sum=11500 0 [19:41:46]StoreToDocumentArchive [19:41:46]shift 529 fd 60049 [19:41:46]save to /storage/0529/doc_00060049 [19:41:46]save last doc name /storage/0529/doc_00060049 to /storage/kkm_last_doc_name [19:41:46]save OK [19:41:46]Clear old archive folders... [19:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=418 [19:41:46]tlvbuf is 00D8F710 [19:41:46]SAM_PROTO_ClearQueue [19:41:46]wFMCommunicate request_size=4 [19:41:46]MH_SAM_APDU [19:41:46]CAPDU: 80 09 00 00 [19:41:46]Write to MH i2c: E2 08 00 78 29 80 09 00 00 00 00 00 00 13 [19:41:46]Write i2c OK [19:41:46]MH_I2C_Read... [19:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:46]Read from MH i2c: E2 [19:41:46]MH_I2C_Read... [19:41:46]Read from MH i2c: E2 03 00 [19:41:46]MH_I2C_Read... [19:41:46]Read from MH i2c: E2 03 00 78 29 00 90 00 15 [19:41:46]RAPDU: 90 00 [19:41:46]wFMCommunicate OK [19:41:46]SAM_PROTO_ClearQueue done [19:41:46]KKMCreateOFDPacket [19:41:46]OFDProtocolAddRootSTLVToBuf [19:41:46]FM_MakeSignedData [19:41:46]FM_MakeSignedData [19:41:46]SAM_PROTO_SignData [19:41:46]wFMCommunicate request_size=4 [19:41:46]MH_SAM_APDU [19:41:46]CAPDU: 80 0D 01 02 [19:41:46]Write to MH i2c: E2 08 00 79 29 80 0D 01 02 00 00 00 00 1B [19:41:46]Write i2c OK [19:41:46]MH_I2C_Read... [19:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:46]Read from MH i2c: E2 [19:41:46]MH_I2C_Read... [19:41:46]Read from MH i2c: E2 03 00 [19:41:46]MH_I2C_Read... [19:41:46]Read from MH i2c: E2 03 00 79 29 00 90 00 16 [19:41:46]RAPDU: 90 00 [19:41:46]wFMCommunicate OK [19:41:46]wFMCommunicate request_size=255 [19:41:46]MH_SAM_APDU [19:41:46]CAPDU: 80 0D 02 02 FA 03 00 A2 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 [19:41:46]Write to MH i2c: E2 02 01 7A 29 80 0D 02 02 FA 00 03 00 A2 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 9D [19:41:46]Write i2c OK [19:41:46]MH_I2C_Read... [19:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:46]Read from MH i2c: E2 [19:41:46]MH_I2C_Read... [19:41:46]Read from MH i2c: E2 03 00 [19:41:46]MH_I2C_Read... [19:41:46]Read from MH i2c: E2 03 00 7A 29 00 90 00 17 [19:41:46]RAPDU: 90 00 [19:41:46]wFMCommunicate OK [19:41:46]wFMCommunicate request_size=177 [19:41:46]MH_SAM_APDU [19:41:46]CAPDU: 80 0D 02 02 AC 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 FE A2 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 91 EA 00 00 35 04 06 00 9B B0 9C F9 62 17 [19:41:46]Write to MH i2c: E2 B4 00 7B 29 80 0D 02 02 AC 00 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 FE A2 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 91 EA 00 00 35 04 06 00 9B B0 9C F9 62 17 00 00 5C [19:41:46]Write i2c OK [19:41:46]MH_I2C_Read... [19:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:47]Read from MH i2c: E2 [19:41:47]MH_I2C_Read... [19:41:47]Read from MH i2c: E2 03 00 [19:41:47]MH_I2C_Read... [19:41:47]Read from MH i2c: E2 03 00 7B 29 00 90 00 18 [19:41:47]RAPDU: 90 00 [19:41:47]wFMCommunicate OK [19:41:47]wFMCommunicate request_size=4 [19:41:47]MH_SAM_APDU [19:41:47]CAPDU: 80 0D 03 02 [19:41:47]Write to MH i2c: E2 08 00 7C 29 80 0D 03 02 00 00 00 00 20 [19:41:47]Write i2c OK [19:41:47]MH_I2C_Read... [19:41:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:47]Read from MH i2c: E2 [19:41:47]MH_I2C_Read... [19:41:47]Read from MH i2c: E2 0B 00 [19:41:47]MH_I2C_Read... [19:41:47]Read from MH i2c: E2 0B 00 7C 29 00 B8 47 C1 DA 24 7D 84 9F 90 00 7F [19:41:47]RAPDU: B8 47 C1 DA 24 7D 84 9F 90 00 [19:41:47]wFMCommunicate OK [19:41:47]SAM_PROTO_SignData done [19:41:47]FM_MakeSignedData done [19:41:47]CreateOFDProtocolMessage [19:41:47]wFMCommunicate request_size=4 [19:41:47]MH_SAM_APDU [19:41:47]CAPDU: 80 11 00 00 [19:41:47]Write to MH i2c: E2 08 00 7D 29 80 11 00 00 00 00 00 00 20 [19:41:47]Write i2c OK [19:41:47]MH_I2C_Read... [19:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:47]Read from MH i2c: E2 [19:41:47]MH_I2C_Read... [19:41:47]Read from MH i2c: E2 17 00 [19:41:47]MH_I2C_Read... [19:41:47]Read from MH i2c: E2 17 00 7D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 77 [19:41:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [19:41:47]wFMCommunicate OK [19:41:47]CreateOFDProtocolMessage done [19:41:47]OFDSenderStorePacket 60049 [19:41:47]StoreOFDPacket docnum=60049 [19:41:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 B6 01 00 00 3E CE AE 01 1C B1 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 FE A2 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 91 EA 00 00 35 04 06 00 9B B0 9C F9 62 17 B8 47 C1 DA 24 7D 84 9F [19:41:47]CheckFolder [19:41:47]dirname=/storage/ofd_packets [19:41:47]CheckFolder done [19:41:47]ProducePacketName [19:41:47]name=ofd_packets/00060049 [19:41:47]NVStorageSaveData ofd_packets/00060049 [19:41:47]File name is /storage/ofd_packets/00060049 [19:41:47]Write 468 bytes [19:41:47]NVStorageSaveData done [19:41:47]OFDSenderStorePacket done [19:41:47]KKMCreateOFDPacket done [19:41:47]NVStorageSaveData kkm_last_timestamp [19:41:47]File name is /storage/kkm_last_timestamp [19:41:47]Write 4 bytes [19:41:47]NVStorageSaveData done [19:41:47]ExternCall_PrintAddStr [19:41:47]wPrintStart [19:41:47]Write to MH i2c: 01 00 00 7E 29 A7 [19:41:47]OFD Sender: Processing packet 60049 [packets to send 30, broken 29] [19:41:47]ProducePacketName [19:41:47]name=ofd_packets/00060049 [19:41:47]OFD Sender: To server: pG, [19:41:47]Write i2c OK [19:41:47]CommunicateWithHost lk.salyk.kg:30040 [19:41:47]MH_I2C_Read... [19:41:47]ConnectInit lk.salyk.kg [19:41:47]Read from MH i2c: 01 [19:41:47]MH_I2C_Read... [19:41:47]Read from MH i2c: 01 07 00 [19:41:47]MH_I2C_Read... [19:41:47]Read from MH i2c: 01 07 00 7E 29 00 00 00 00 00 FF 0F BC [19:41:47]RasterBufferAndPrint [19:41:47]line Счет N : (3)199824 [19:41:47]line ИНН: 02508201610067 [19:41:47]line Контрольно-Кассовый Чек [19:41:47]line ПРОДАЖА [19:41:47]line Товар: 4630007400976 [19:41:47]line Арахис жарен Караван орехов Стандарт 90 [19:41:47]line 1.000 * 75.00 [19:41:47]line = 75.00 [19:41:47]line НДС 12% НСП 1% [19:41:47]line > о реализуемом товаре [19:41:47]line Товар: 4700000160044 [19:41:47]line Вода Ыссык Ата 0,5л [19:41:47]line 1.000 * 40.00 [19:41:47]line = 40.00 [19:41:47]line НДС 12% НСП 1% [19:41:47]line > о реализуемом товаре [19:41:47]line ИТОГО: 115.00 [19:41:47]line НСП 1% : 1.01 [19:41:47]line НДС 12% : 12.21 [19:41:47]line Наличными: 115.00 [19:41:47]line Безнал.: 0.00 [19:41:47]line Место: АЗС № 87 "Партнер Нефть" [19:41:47]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [19:41:47]line СНО: Общий режим [19:41:47]line Чек 124 24.10.2024 19:41 [19:41:47]line Смена: 529 ФФД: 1.0 [19:41:47]line ЗНМ: 0300000084 [19:41:47]line РНМ: 0000000000091622 [19:41:47]line Версия ККМ: 001 [19:41:47]line ФМ: 0000000000874674 [19:41:47]line ФД: 60049 [19:41:47]line ФПД: 171182850138647 [19:41:47]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194150&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60049&fm=171182850138647&tin=02508201610067®Number=0000000000091622&sum=11500 [19:41:47]line 0 [19:41:47]written 0, free lines is 4095 [19:41:47]Connected sock=10 [19:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 B6 01 00 00 3E CE AE 01 1C B1 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 FE A2 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 91 EA 00 00 35 04 06 00 9B B0 9C F9 62 17 B8 47 C1 DA 24 7D 84 9F [19:41:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 8E 1A 47 00 43 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 34 36 37 34 10 04 04 00 91 EA 00 00 F4 03 04 00 EE 48 1A 67 B6 04 01 00 00 A3 F4 31 FA 6B F9 1A 8C [19:41:47]CommunicateWithHost err = 0 [19:41:47]CheckOFDResponse [19:41:47]1017 (14) - 77093643461234 [19:41:47]1041 (16) - 0000000000874674 [19:41:47]1040 (4) - 60049 [19:41:47]1012 (4) - 24.10.2024 13:17 [19:41:47]1206 (1) - 0 [19:41:47]OFD Sender: Remove packet 60049 [19:41:47]ProducePacketName [19:41:47]name=ofd_packets/00060049 [19:41:47]NVStorageDeleteData [19:41:48]Write to MH i2c: 01 00 00 AD 29 D6 [19:41:48]Write i2c OK [19:41:48]MH_I2C_Read... [19:41:48]Read from MH i2c: 01 [19:41:48]MH_I2C_Read... [19:41:48]Read from MH i2c: 01 07 00 [19:41:48]MH_I2C_Read... [19:41:48]Read from MH i2c: 01 07 00 AD 29 00 00 00 00 00 94 0C 7D [19:41:48]RasterBufferAndPrint [19:41:48]line [19:41:48]line [19:41:48]line [19:41:48]line [19:41:48]line [19:41:48]written 0, free lines is 3228 [19:41:48]MH_Cut [19:41:48]Write to MH i2c: D1 01 00 B4 29 01 AF [19:41:48]Write i2c OK [19:41:48]MH_I2C_Read... [19:41:48]Read from MH i2c: D1 [19:41:48]MH_I2C_Read... [19:41:48]Read from MH i2c: D1 01 00 [19:41:48]MH_I2C_Read... [19:41:48]Read from MH i2c: D1 01 00 B4 29 00 AE [19:41:48]Write to MH i2c: 01 00 00 B5 29 DE [19:41:48]Write i2c OK [19:41:48]MH_I2C_Read... [19:41:48]OFD Sender: No OFD packet to send [19:41:48]*** Cut start [19:41:48]*** Partial cut [19:41:48]*** CUTSNS_PIN = 1 [19:41:48]*** CUTSNS_PIN = 0 [19:41:49]*** Brake cut motor [19:41:49]Read from MH i2c: 01 [19:41:49]MH_I2C_Read... [19:41:49]*** Stop cut motor [19:41:49]*** Cut end [19:41:49]Read from MH i2c: 01 07 00 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: 01 07 00 B5 29 00 00 00 00 00 FF 0F F3 [19:41:49]process_action close_receipt done [19:41:49]requested_data is exist [19:41:49]produce_requested_data [19:41:49]requested_item fm.sn is exist - process it [19:41:49]wFMCommunicate request_size=4 [19:41:49]MH_SAM_APDU [19:41:49]CAPDU: 80 11 00 00 [19:41:49]Write to MH i2c: E2 08 00 B6 29 80 11 00 00 00 00 00 00 59 [19:41:49]Write i2c OK [19:41:49]MH_I2C_Read... [19:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:49]Read from MH i2c: E2 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: E2 17 00 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: E2 17 00 B6 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 B0 [19:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [19:41:49]wFMCommunicate OK [19:41:49]requested_item fd.num is exist - process it [19:41:49]SAM_PROTO_GetFieldsCounters [19:41:49]wFMCommunicate request_size=4 [19:41:49]MH_SAM_APDU [19:41:49]CAPDU: 80 13 00 00 [19:41:49]Write to MH i2c: E2 08 00 B7 29 80 13 00 00 00 00 00 00 5C [19:41:49]Write i2c OK [19:41:49]MH_I2C_Read... [19:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:49]Read from MH i2c: E2 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: E2 62 00 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: E2 62 00 B7 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 91 EA 00 00 0E 04 04 00 11 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 7E [19:41:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 91 EA 00 00 0E 04 04 00 11 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 [19:41:49]wFMCommunicate OK [19:41:49]SAM_PROTO_GetFieldsCounters done [19:41:49]requested_item shift.num is exist - process it [19:41:49]requested_item shift.opened is exist - process it [19:41:49]req_shift_opened [19:41:49]FM_GetShiftState [19:41:49]SAM_PROTO_GetShiftState [19:41:49]wFMCommunicate request_size=4 [19:41:49]MH_SAM_APDU [19:41:49]CAPDU: 80 13 01 00 [19:41:49]Write to MH i2c: E2 08 00 B8 29 80 13 01 00 00 00 00 00 5E [19:41:49]Write i2c OK [19:41:49]MH_I2C_Read... [19:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:49]Read from MH i2c: E2 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: E2 0E 00 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: E2 0E 00 B8 29 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 91 [19:41:49]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [19:41:49]wFMCommunicate OK [19:41:49]SAM_PROTO_GetShiftState done [19:41:49]FM_GetShiftState done [19:41:49]req_shift_opened done [19:41:49]requested_item shift.open_date is exist - process it [19:41:49]req_shift_open_date [19:41:49]req_shift_open_date done [19:41:49]produce_requested_data done [19:41:49]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60049,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [19:41:49]process_action_free close_receipt [19:41:49]json_value_free [19:41:49]json_value_free done [19:41:49]process_json_proto returns [19:41:49]Send response to host [19:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60049,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [19:41:49]free response buf [19:41:49]execute_script done [19:41:49]execute_script returns [19:41:49]free content buf [19:41:49]Sock 7.Close socket [19:41:49]Sock 7.Thread stoped [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:00]accept exits with 9 [20:03:00]New connection [20:03:00]New thread 3067108708 created [20:03:00]Thread 3067252068 joined [20:03:00]Waiting for new connection... [20:03:00] Sock 9.Parse request [20:03:00]Sock 9.Check first char [20:03:00]Sock 9.First char is OK [20:03:00]request: POST /json_proto HTTP/1.0 [20:03:00]Method: POST [20:03:00]URL: /json_proto [20:03:00]Method is POST - this is cgi request [20:03:00]url: /json_proto [20:03:00]query_string will be loaded in cgi processing [20:03:00]execute_cgi json_proto POST (null) [20:03:00]execute_cgi path=json_proto method=POST [20:03:00]POST find Content-Length [20:03:00]Host: 172.17.42.196:8080 [20:03:00]Content-Length: 617 [20:03:00]Content-Type: application/json [20:03:00] [20:03:00]POST finish read [20:03:00]Found Content-Length = 617 [20:03:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199825", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:00]execute_script... [20: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 : (3)199825", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:00]POST & json_proto [20:03:00]process_json_proto [20:03:00]json parsed OK: [20:03:00]protocol is kg_v1.0 [20:03:00]action value=close_receipt [20:03:00]process_action close_receipt [20:03:00]cmd_close_receipt [20:03:00]MH_GetDate [20:03:00]Write to MH i2c: F0 00 00 B9 29 D1 [20:03:00]Write i2c OK [20:03:00]MH_I2C_Read... [20:03:00]Read from MH i2c: F0 [20:03:00]MH_I2C_Read... [20:03:00]Read from MH i2c: F0 09 00 [20:03:00]MH_I2C_Read... [20:03:00]Read from MH i2c: F0 09 00 B9 29 00 F9 A7 1A 67 FF C4 6B 64 8D [20:03:00]GetLastDocTimeStamp 1729798910 [20:03:00]current date 1729800185 [20:03:00]FM_GetShiftState [20:03:00]SAM_PROTO_GetShiftState [20:03:00]wFMCommunicate request_size=4 [20:03:00]MH_SAM_APDU [20:03:00]CAPDU: 80 13 01 00 [20:03:00]Write to MH i2c: E2 08 00 BA 29 80 13 01 00 00 00 00 00 60 [20:03:00]Write i2c OK [20:03:00]MH_I2C_Read... [20:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:00]Read from MH i2c: E2 [20:03:00]MH_I2C_Read... [20:03:00]Read from MH i2c: E2 0E 00 [20:03:00]MH_I2C_Read... [20:03:00]Read from MH i2c: E2 0E 00 BA 29 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 93 [20:03:00]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:03:00]wFMCommunicate OK [20:03:00]SAM_PROTO_GetShiftState done [20:03:00]FM_GetShiftState done [20:03:00]opened in 1729730575 [20:03:00]opened+sec_in_day 1729816975 [20:03:00]quantity*price = 14400 [20:03:00]sum+1 = 14401 [20:03:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 125 24.10.2024 20:03 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60050 ФПД: 73601092377090 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200305&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60050&fm=73601092377090&tin=02508201610067®Number=0000000000091622&sum=14400 0 [20:03:01]StoreToDocumentArchive [20:03:01]shift 529 fd 60050 [20:03:01]save to /storage/0529/doc_00060050 [20:03:01]save last doc name /storage/0529/doc_00060050 to /storage/kkm_last_doc_name [20:03:01]save OK [20:03:01]Clear old archive folders... [20:03:01]ProcessDocumentItem done err = 0, tmpTLVsize=269 [20:03:01]tlvbuf is 00E07940 [20:03:01]SAM_PROTO_ClearQueue [20:03:01]wFMCommunicate request_size=4 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 09 00 00 [20:03:01]Write to MH i2c: E2 08 00 C7 29 80 09 00 00 00 00 00 00 62 [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 C7 29 00 90 00 64 [20:03:01]RAPDU: 90 00 [20:03:01]wFMCommunicate OK [20:03:01]SAM_PROTO_ClearQueue done [20:03:01]KKMCreateOFDPacket [20:03:01]OFDProtocolAddRootSTLVToBuf [20:03:01]FM_MakeSignedData [20:03:01]FM_MakeSignedData [20:03:01]SAM_PROTO_SignData [20:03:01]wFMCommunicate request_size=4 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 0D 01 02 [20:03:01]Write to MH i2c: E2 08 00 C8 29 80 0D 01 02 00 00 00 00 6A [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 C8 29 00 90 00 65 [20:03:01]RAPDU: 90 00 [20:03:01]wFMCommunicate OK [20:03:01]wFMCommunicate request_size=255 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 F9 A7 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [20:03:01]Write to MH i2c: E2 02 01 C9 29 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 F9 A7 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 76 [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 C9 29 00 90 00 66 [20:03:01]RAPDU: 90 00 [20:03:01]wFMCommunicate OK [20:03:01]wFMCommunicate request_size=28 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 0D 02 02 17 37 34 36 37 34 10 04 04 00 92 EA 00 00 35 04 06 00 42 F0 96 F7 5A 02 [20:03:01]Write to MH i2c: E2 1F 00 CA 29 80 0D 02 02 17 00 37 34 36 37 34 10 04 04 00 92 EA 00 00 35 04 06 00 42 F0 96 F7 5A 02 00 00 95 [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 03 00 CA 29 00 90 00 67 [20:03:01]RAPDU: 90 00 [20:03:01]wFMCommunicate OK [20:03:01]wFMCommunicate request_size=4 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 0D 03 02 [20:03:01]Write to MH i2c: E2 08 00 CB 29 80 0D 03 02 00 00 00 00 6F [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 0B 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 0B 00 CB 29 00 CB 76 4C FF 9C D1 19 12 90 00 94 [20:03:01]RAPDU: CB 76 4C FF 9C D1 19 12 90 00 [20:03:01]wFMCommunicate OK [20:03:01]SAM_PROTO_SignData done [20:03:01]FM_MakeSignedData done [20:03:01]CreateOFDProtocolMessage [20:03:01]wFMCommunicate request_size=4 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 11 00 00 [20:03:01]Write to MH i2c: E2 08 00 CC 29 80 11 00 00 00 00 00 00 6F [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 17 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 17 00 CC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C6 [20:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:03:01]wFMCommunicate OK [20:03:01]CreateOFDProtocolMessage done [20:03:01]OFDSenderStorePacket 60050 [20:03:01]StoreOFDPacket docnum=60050 [20:03:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 21 01 00 00 19 C3 19 01 6D 7A 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 F9 A7 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 92 EA 00 00 35 04 06 00 42 F0 96 F7 5A 02 CB 76 4C FF 9C D1 19 12 [20:03:01]CheckFolder [20:03:01]dirname=/storage/ofd_packets [20:03:01]CheckFolder done [20:03:01]ProducePacketName [20:03:01]name=ofd_packets/00060050 [20:03:01]NVStorageSaveData ofd_packets/00060050 [20:03:01]File name is /storage/ofd_packets/00060050 [20:03:01]Write 319 bytes [20:03:01]NVStorageSaveData done [20:03:01]OFDSenderStorePacket done [20:03:01]KKMCreateOFDPacket done [20:03:01]NVStorageSaveData kkm_last_timestamp [20:03:01]File name is /storage/kkm_last_timestamp [20:03:01]Write 4 bytes [20:03:01]NVStorageSaveData done [20:03:01]ExternCall_PrintAddStr [20:03:01]wPrintStart [20:03:01]Write to MH i2c: 01 00 00 CD 29 F6 [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: 01 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: 01 07 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: 01 07 00 CD 29 00 00 00 00 00 FF 0F 0B [20:03:01]RasterBufferAndPrint [20:03:01]line Счет N : (3)199825 [20:03:01]line ИНН: 02508201610067 [20:03:01]line Контрольно-Кассовый Чек [20:03:01]line ПРОДАЖА [20:03:01]line Товар: 47803008 [20:03:01]line Сигареты Winston XS Blue [20:03:01]line 1.000 * 144.00 [20:03:01]line = 144.00 [20:03:01]line НДС 12% НСП 1% [20:03:01]line > о реализуемом товаре [20:03:01]line ИТОГО: 144.00 [20:03:01]line НСП 1% : 1.27 [20:03:01]line НДС 12% : 15.29 [20:03:01]line Наличными: 144.00 [20:03:01]line Безнал.: 0.00 [20:03:01]line Место: АЗС № 87 "Партнер Нефть" [20:03:01]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [20:03:01]line СНО: Общий режим [20:03:01]line Чек 125 24.10.2024 20:03 [20:03:01]line Смена: 529 ФФД: 1.0 [20:03:01]line ЗНМ: 0300000084 [20:03:01]line РНМ: 0000000000091622 [20:03:01]line Версия ККМ: 001 [20:03:01]line ФМ: 0000000000874674 [20:03:01]line ФД: 60050 [20:03:01]line ФПД: 73601092377090 [20:03:01]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200305&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60050&fm=73601092377090&tin=02508201610067®Number=0000000000091622&sum=14400 [20:03:01]line 0 [20:03:01]written 0, free lines is 4095 [20:03:01]OFD Sender: Processing packet 60050 [packets to send 30, broken 29] [20:03:01]ProducePacketName [20:03:01]name=ofd_packets/00060050 [20:03:01]OFD Sender: To server: pG, [20:03:01]CommunicateWithHost lk.salyk.kg:30040 [20:03:01]ConnectInit lk.salyk.kg [20:03:02]Connected sock=10 [20:03:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 21 01 00 00 19 C3 19 01 6D 7A 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 F9 A7 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 92 EA 00 00 35 04 06 00 42 F0 96 F7 5A 02 CB 76 4C FF 9C D1 19 12 [20:03:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 7A C6 47 00 20 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 34 36 37 34 10 04 04 00 92 EA 00 00 F4 03 04 00 E8 4D 1A 67 B6 04 01 00 00 FE 04 DD 9A 16 F8 6B 9C [20:03:02]CommunicateWithHost err = 0 [20:03:02]CheckOFDResponse [20:03:02]1017 (14) - 77093643461234 [20:03:02]1041 (16) - 0000000000874674 [20:03:02]1040 (4) - 60050 [20:03:02]1012 (4) - 24.10.2024 13:38 [20:03:02]1206 (1) - 0 [20:03:02]OFD Sender: Remove packet 60050 [20:03:02]ProducePacketName [20:03:02]name=ofd_packets/00060050 [20:03:02]NVStorageDeleteData [20:03:02]Write to MH i2c: 01 00 00 F5 29 1E [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: 01 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: 01 07 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: 01 07 00 F5 29 00 00 00 00 00 02 0D 34 [20:03:02]RasterBufferAndPrint [20:03:02]line [20:03:02]line [20:03:02]line [20:03:02]line [20:03:02]line [20:03:02]written 0, free lines is 3337 [20:03:02]MH_Cut [20:03:02]Write to MH i2c: D1 01 00 FC 29 01 F7 [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: D1 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: D1 01 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: D1 01 00 FC 29 00 F6 [20:03:02]Write to MH i2c: 01 00 00 FD 29 26 [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]OFD Sender: No OFD packet to send [20:03:03]*** Cut start [20:03:03]*** Partial cut [20:03:03]*** CUTSNS_PIN = 1 [20:03:03]*** CUTSNS_PIN = 0 [20:03:03]*** Brake cut motor [20:03:03]Read from MH i2c: 01 [20:03:03]MH_I2C_Read... [20:03:03]*** Stop cut motor [20:03:03]*** Cut end [20:03:03]Read from MH i2c: 01 07 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: 01 07 00 FD 29 00 00 00 00 00 FF 0F 3B [20:03:03]process_action close_receipt done [20:03:03]requested_data is exist [20:03:03]produce_requested_data [20:03:03]requested_item fm.sn is exist - process it [20:03:03]wFMCommunicate request_size=4 [20:03:03]MH_SAM_APDU [20:03:03]CAPDU: 80 11 00 00 [20:03:03]Write to MH i2c: E2 08 00 FE 29 80 11 00 00 00 00 00 00 A1 [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:03]Read from MH i2c: E2 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 17 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 17 00 FE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F8 [20:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:03:03]wFMCommunicate OK [20:03:03]requested_item fd.num is exist - process it [20:03:03]SAM_PROTO_GetFieldsCounters [20:03:03]wFMCommunicate request_size=4 [20:03:03]MH_SAM_APDU [20:03:03]CAPDU: 80 13 00 00 [20:03:03]Write to MH i2c: E2 08 00 FF 29 80 13 00 00 00 00 00 00 A4 [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:03]Read from MH i2c: E2 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 62 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 62 00 FF 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 92 EA 00 00 0E 04 04 00 11 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 CA [20:03: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 92 EA 00 00 0E 04 04 00 11 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 [20:03:03]wFMCommunicate OK [20:03:03]SAM_PROTO_GetFieldsCounters done [20:03:03]requested_item shift.num is exist - process it [20:03:03]requested_item shift.opened is exist - process it [20:03:03]req_shift_opened [20:03:03]FM_GetShiftState [20:03:03]SAM_PROTO_GetShiftState [20:03:03]wFMCommunicate request_size=4 [20:03:03]MH_SAM_APDU [20:03:03]CAPDU: 80 13 01 00 [20:03:03]Write to MH i2c: E2 08 00 00 2A 80 13 01 00 00 00 00 00 A7 [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:04]Read from MH i2c: E2 [20:03:04]MH_I2C_Read... [20:03:04]Read from MH i2c: E2 0E 00 [20:03:04]MH_I2C_Read... [20:03:04]Read from MH i2c: E2 0E 00 00 2A 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 DA [20:03:04]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:03:04]wFMCommunicate OK [20:03:04]SAM_PROTO_GetShiftState done [20:03:04]FM_GetShiftState done [20:03:04]req_shift_opened done [20:03:04]requested_item shift.open_date is exist - process it [20:03:04]req_shift_open_date [20:03:04]req_shift_open_date done [20:03:04]produce_requested_data done [20:03:04]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60050,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [20:03:04]process_action_free close_receipt [20:03:04]json_value_free [20:03:04]json_value_free done [20:03:04]process_json_proto returns [20:03:04]Send response to host [20:03:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60050,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [20:03:04]free response buf [20:03:04]execute_script done [20:03:04]execute_script returns [20:03:04]free content buf [20:03:04]Sock 9.Close socket [20:03:04]Sock 9.Thread stoped [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:35]accept exits with 7 [20:03:35]New connection [20:03:35]New thread 3067252068 created [20:03:35]Thread 3067108708 joined [20:03:35]Waiting for new connection... [20:03:35] Sock 7.Parse request [20:03:35]Sock 7.Check first char [20:03:35]Sock 7.First char is OK [20:03:35]request: POST /json_proto HTTP/1.0 [20:03:35]Method: POST [20:03:35]URL: /json_proto [20:03:35]Method is POST - this is cgi request [20:03:35]url: /json_proto [20:03:35]query_string will be loaded in cgi processing [20:03:35]execute_cgi json_proto POST (null) [20:03:35]execute_cgi path=json_proto method=POST [20:03:35]POST find Content-Length [20:03:35]Host: 172.17.42.196:8080 [20:03:35]Content-Length: 760 [20:03:35]Content-Type: application/json [20:03:35] [20:03:35]POST finish read [20:03:35]Found Content-Length = 760 [20:03:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199826", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 1.000, "sum" : 139.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" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:35]execute_script... [20:03:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199826", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 139.00, "quantity" : 1.000, "sum" : 139.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" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:35]POST & json_proto [20:03:35]process_json_proto [20:03:35]json parsed OK: [20:03:35]protocol is kg_v1.0 [20:03:35]action value=close_receipt [20:03:35]process_action close_receipt [20:03:35]cmd_close_receipt [20:03:35]MH_GetDate [20:03:35]Write to MH i2c: F0 00 00 01 2A 1A [20:03:35]Write i2c OK [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: F0 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: F0 09 00 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: F0 09 00 01 2A 00 1C A8 1A 67 FF C4 6B 64 FA [20:03:35]GetLastDocTimeStamp 1729800185 [20:03:35]current date 1729800220 [20:03:35]FM_GetShiftState [20:03:35]SAM_PROTO_GetShiftState [20:03:35]wFMCommunicate request_size=4 [20:03:35]MH_SAM_APDU [20:03:35]CAPDU: 80 13 01 00 [20:03:35]Write to MH i2c: E2 08 00 02 2A 80 13 01 00 00 00 00 00 A9 [20:03:35]Write i2c OK [20:03:35]MH_I2C_Read... [20:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:35]Read from MH i2c: E2 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: E2 0E 00 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: E2 0E 00 02 2A 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 DC [20:03:35]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:03:35]wFMCommunicate OK [20:03:35]SAM_PROTO_GetShiftState done [20:03:35]FM_GetShiftState done [20:03:35]opened in 1729730575 [20:03:35]opened+sec_in_day 1729816975 [20:03:35]quantity*price = 13900 [20:03:35]sum+1 = 13901 [20:03:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 0.00 Безнал.: 139.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 126 24.10.2024 20:03 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60051 ФПД: 30819236421329 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200340&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60051&fm=30819236421329&tin=02508201610067®Number=0000000000091622&sum=13900 0 [20:03:36]StoreToDocumentArchive [20:03:36]shift 529 fd 60051 [20:03:36]save to /storage/0529/doc_00060051 [20:03:36]save last doc name /storage/0529/doc_00060051 to /storage/kkm_last_doc_name [20:03:36]save OK [20:03:36]Clear old archive folders... [20:03:36]ProcessDocumentItem done err = 0, tmpTLVsize=285 [20:03:36]tlvbuf is 00E07BA0 [20:03:36]SAM_PROTO_ClearQueue [20:03:36]wFMCommunicate request_size=4 [20:03:36]MH_SAM_APDU [20:03:36]CAPDU: 80 09 00 00 [20:03:36]Write to MH i2c: E2 08 00 0F 2A 80 09 00 00 00 00 00 00 AB [20:03:36]Write i2c OK [20:03:36]MH_I2C_Read... [20:03:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:36]Read from MH i2c: E2 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 03 00 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 03 00 0F 2A 00 90 00 AD [20:03:36]RAPDU: 90 00 [20:03:36]wFMCommunicate OK [20:03:36]SAM_PROTO_ClearQueue done [20:03:36]KKMCreateOFDPacket [20:03:36]OFDProtocolAddRootSTLVToBuf [20:03:36]FM_MakeSignedData [20:03:36]FM_MakeSignedData [20:03:36]SAM_PROTO_SignData [20:03:36]wFMCommunicate request_size=4 [20:03:36]MH_SAM_APDU [20:03:36]CAPDU: 80 0D 01 02 [20:03:36]Write to MH i2c: E2 08 00 10 2A 80 0D 01 02 00 00 00 00 B3 [20:03:36]Write i2c OK [20:03:36]MH_I2C_Read... [20:03:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:36]Read from MH i2c: E2 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 03 00 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 03 00 10 2A 00 90 00 AE [20:03:36]RAPDU: 90 00 [20:03:36]wFMCommunicate OK [20:03:36]wFMCommunicate request_size=255 [20:03:36]MH_SAM_APDU [20:03:36]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 1C A8 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 [20:03:36]Write to MH i2c: E2 02 01 11 2A 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 1C A8 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 00 00 D3 [20:03:36]Write i2c OK [20:03:36]MH_I2C_Read... [20:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:36]Read from MH i2c: E2 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 03 00 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 03 00 11 2A 00 90 00 AF [20:03:36]RAPDU: 90 00 [20:03:36]wFMCommunicate OK [20:03:36]wFMCommunicate request_size=44 [20:03:36]MH_SAM_APDU [20:03:36]CAPDU: 80 0D 02 02 27 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 93 EA 00 00 35 04 06 00 1C 07 A9 A3 9E D1 [20:03:36]Write to MH i2c: E2 2F 00 12 2A 80 0D 02 02 27 00 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 93 EA 00 00 35 04 06 00 1C 07 A9 A3 9E D1 00 00 31 [20:03:36]Write i2c OK [20:03:36]MH_I2C_Read... [20:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:36]Read from MH i2c: E2 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 03 00 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 03 00 12 2A 00 90 00 B0 [20:03:36]RAPDU: 90 00 [20:03:36]wFMCommunicate OK [20:03:36]wFMCommunicate request_size=4 [20:03:36]MH_SAM_APDU [20:03:36]CAPDU: 80 0D 03 02 [20:03:36]Write to MH i2c: E2 08 00 13 2A 80 0D 03 02 00 00 00 00 B8 [20:03:36]Write i2c OK [20:03:36]MH_I2C_Read... [20:03:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:36]Read from MH i2c: E2 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 0B 00 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 0B 00 13 2A 00 D7 C3 1A BA B9 1B E1 3A 90 00 16 [20:03:36]RAPDU: D7 C3 1A BA B9 1B E1 3A 90 00 [20:03:36]wFMCommunicate OK [20:03:36]SAM_PROTO_SignData done [20:03:36]FM_MakeSignedData done [20:03:36]CreateOFDProtocolMessage [20:03:36]wFMCommunicate request_size=4 [20:03:36]MH_SAM_APDU [20:03:36]CAPDU: 80 11 00 00 [20:03:36]Write to MH i2c: E2 08 00 14 2A 80 11 00 00 00 00 00 00 B8 [20:03:36]Write i2c OK [20:03:36]MH_I2C_Read... [20:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:36]Read from MH i2c: E2 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 17 00 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 17 00 14 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 0F [20:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:03:36]wFMCommunicate OK [20:03:36]CreateOFDProtocolMessage done [20:03:36]OFDSenderStorePacket 60051 [20:03:36]StoreOFDPacket docnum=60051 [20:03:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 31 01 00 00 27 36 29 01 20 9B 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 1C A8 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 93 EA 00 00 35 04 06 00 1C 07 A9 A3 9E D1 D7 C3 1A BA B9 1B E1 3A [20:03:36]CheckFolder [20:03:36]dirname=/storage/ofd_packets [20:03:36]CheckFolder done [20:03:36]ProducePacketName [20:03:36]name=ofd_packets/00060051 [20:03:36]NVStorageSaveData ofd_packets/00060051 [20:03:36]File name is /storage/ofd_packets/00060051 [20:03:36]Write 335 bytes [20:03:36]NVStorageSaveData done [20:03:36]OFDSenderStorePacket done [20:03:36]KKMCreateOFDPacket done [20:03:36]NVStorageSaveData kkm_last_timestamp [20:03:36]File name is /storage/kkm_last_timestamp [20:03:36]Write 4 bytes [20:03:36]NVStorageSaveData done [20:03:36]ExternCall_PrintAddStr [20:03:36]wPrintStart [20:03:36]Write to MH i2c: 01 00 00 15 2A 3F [20:03:36]Write i2c OK [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: 01 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: 01 07 00 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: 01 07 00 15 2A 00 00 00 00 00 FF 0F 54 [20:03:36]RasterBufferAndPrint [20:03:36]line Счет N : (3)199826 [20:03:36]line ИНН: 02508201610067 [20:03:36]line Контрольно-Кассовый Чек [20:03:36]line ПРОДАЖА [20:03:36]line Товар: 48745291 [20:03:36]line Сигареты Parliament SOHO NYC COMPACT BLU [20:03:36]line 1.000 * 139.00 [20:03:36]line = 139.00 [20:03:36]line НДС 12% НСП 1% [20:03:36]line > о реализуемом товаре [20:03:36]line ИТОГО: 139.00 [20:03:36]line НСП 1% : 1.23 [20:03:36]line НДС 12% : 14.76 [20:03:36]line Наличными: 0.00 [20:03:36]line Безнал.: 139.00 [20:03:36]line Место: АЗС № 87 "Партнер Нефть" [20:03:36]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [20:03:36]line СНО: Общий режим [20:03:36]line Чек 126 24.10.2024 20:03 [20:03:36]line Смена: 529 ФФД: 1.0 [20:03:36]line ЗНМ: 0300000084 [20:03:36]line РНМ: 0000000000091622 [20:03:36]line Версия ККМ: 001 [20:03:36]line Платежная система: Mbank [20:03:36]line ФМ: 0000000000874674 [20:03:36]line ФД: 60051 [20:03:36]line ФПД: 30819236421329 [20:03:37]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200340&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60051&fm=30819236421329&tin=02508201610067®Number=0000000000091622&sum=13900 [20:03:37]line 0 [20:03:37]OFD Sender: Processing packet 60051 [packets to send 30, broken 29] [20:03:37]ProducePacketName [20:03:37]name=ofd_packets/00060051 [20:03:37]OFD Sender: To server: pG, [20:03:37]CommunicateWithHost lk.salyk.kg:30040 [20:03:37]ConnectInit lk.salyk.kg [20:03:37]written 0, free lines is 4095 [20:03:37]Connected sock=11 [20:03:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 31 01 00 00 27 36 29 01 20 9B 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 1C A8 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 93 EA 00 00 35 04 06 00 1C 07 A9 A3 9E D1 D7 C3 1A BA B9 1B E1 3A [20:03:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 4A 4D 47 00 FE 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 34 36 37 34 10 04 04 00 93 EA 00 00 F4 03 04 00 0B 4E 1A 67 B6 04 01 00 00 E5 D5 30 3D CE 5C C0 58 [20:03:37]CommunicateWithHost err = 0 [20:03:37]CheckOFDResponse [20:03:37]1017 (14) - 77093643461234 [20:03:37]1041 (16) - 0000000000874674 [20:03:37]1040 (4) - 60051 [20:03:37]1012 (4) - 24.10.2024 13:39 [20:03:37]1206 (1) - 0 [20:03:37]OFD Sender: Remove packet 60051 [20:03:37]ProducePacketName [20:03:37]name=ofd_packets/00060051 [20:03:37]NVStorageDeleteData [20:03:37]Write to MH i2c: 01 00 00 3F 2A 69 [20:03:37]Write i2c OK [20:03:37]MH_I2C_Read... [20:03:37]Read from MH i2c: 01 [20:03:37]MH_I2C_Read... [20:03:37]Read from MH i2c: 01 07 00 [20:03:37]MH_I2C_Read... [20:03:37]Read from MH i2c: 01 07 00 3F 2A 00 00 00 00 00 E1 0C 5D [20:03:37]RasterBufferAndPrint [20:03:37]line [20:03:37]line [20:03:37]line [20:03:37]line [20:03:37]line [20:03:37]written 0, free lines is 3302 [20:03:37]MH_Cut [20:03:37]Write to MH i2c: D1 01 00 46 2A 01 42 [20:03:37]Write i2c OK [20:03:37]MH_I2C_Read... [20:03:37]Read from MH i2c: D1 [20:03:37]MH_I2C_Read... [20:03:37]Read from MH i2c: D1 01 00 [20:03:37]MH_I2C_Read... [20:03:37]Read from MH i2c: D1 01 00 46 2A 00 41 [20:03:37]Write to MH i2c: 01 00 00 47 2A 71 [20:03:37]Write i2c OK [20:03:37]MH_I2C_Read... [20:03:37]OFD Sender: No OFD packet to send [20:03:38]*** Cut start [20:03:38]*** Partial cut [20:03:38]*** CUTSNS_PIN = 1 [20:03:38]*** CUTSNS_PIN = 0 [20:03:38]*** Brake cut motor [20:03:39]Read from MH i2c: 01 [20:03:39]MH_I2C_Read... [20:03:39]*** Stop cut motor [20:03:39]*** Cut end [20:03:39]Read from MH i2c: 01 07 00 [20:03:39]MH_I2C_Read... [20:03:39]Read from MH i2c: 01 07 00 47 2A 00 00 00 00 00 FF 0F 86 [20:03:39]process_action close_receipt done [20:03:39]requested_data is exist [20:03:39]produce_requested_data [20:03:39]requested_item fm.sn is exist - process it [20:03:39]wFMCommunicate request_size=4 [20:03:39]MH_SAM_APDU [20:03:39]CAPDU: 80 11 00 00 [20:03:39]Write to MH i2c: E2 08 00 48 2A 80 11 00 00 00 00 00 00 EC [20:03:39]Write i2c OK [20:03:39]MH_I2C_Read... [20:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:39]Read from MH i2c: E2 [20:03:39]MH_I2C_Read... [20:03:39]Read from MH i2c: E2 17 00 [20:03:39]MH_I2C_Read... [20:03:39]Read from MH i2c: E2 17 00 48 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 43 [20:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:03:39]wFMCommunicate OK [20:03:39]requested_item fd.num is exist - process it [20:03:39]SAM_PROTO_GetFieldsCounters [20:03:39]wFMCommunicate request_size=4 [20:03:39]MH_SAM_APDU [20:03:39]CAPDU: 80 13 00 00 [20:03:39]Write to MH i2c: E2 08 00 49 2A 80 13 00 00 00 00 00 00 EF [20:03:39]Write i2c OK [20:03:39]MH_I2C_Read... [20:03:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:39]Read from MH i2c: E2 [20:03:39]MH_I2C_Read... [20:03:39]Read from MH i2c: E2 62 00 [20:03:39]MH_I2C_Read... [20:03:39]Read from MH i2c: E2 62 00 49 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 93 EA 00 00 0E 04 04 00 11 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 19 [20:03: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 93 EA 00 00 0E 04 04 00 11 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 [20:03:39]wFMCommunicate OK [20:03:39]SAM_PROTO_GetFieldsCounters done [20:03:39]requested_item shift.num is exist - process it [20:03:39]requested_item shift.opened is exist - process it [20:03:39]req_shift_opened [20:03:39]FM_GetShiftState [20:03:39]SAM_PROTO_GetShiftState [20:03:39]wFMCommunicate request_size=4 [20:03:39]MH_SAM_APDU [20:03:39]CAPDU: 80 13 01 00 [20:03:39]Write to MH i2c: E2 08 00 4A 2A 80 13 01 00 00 00 00 00 F1 [20:03:39]Write i2c OK [20:03:39]MH_I2C_Read... [20:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:39]Read from MH i2c: E2 [20:03:39]MH_I2C_Read... [20:03:39]Read from MH i2c: E2 0E 00 [20:03:39]MH_I2C_Read... [20:03:39]Read from MH i2c: E2 0E 00 4A 2A 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 24 [20:03:39]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:03:39]wFMCommunicate OK [20:03:39]SAM_PROTO_GetShiftState done [20:03:39]FM_GetShiftState done [20:03:39]req_shift_opened done [20:03:39]requested_item shift.open_date is exist - process it [20:03:39]req_shift_open_date [20:03:39]req_shift_open_date done [20:03:39]produce_requested_data done [20:03:39]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60051,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [20:03:39]process_action_free close_receipt [20:03:39]json_value_free [20:03:39]json_value_free done [20:03:39]process_json_proto returns [20:03:39]Send response to host [20:03:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60051,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [20:03:39]free response buf [20:03:39]execute_script done [20:03:39]execute_script returns [20:03:39]free content buf [20:03:39]Sock 7.Close socket [20:03:39]Sock 7.Thread stoped [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:37]accept exits with 9 [20:05:37]New connection [20:05:37]New thread 3067108708 created [20:05:37]Thread 3067252068 joined [20:05:37]Waiting for new connection... [20:05:37] Sock 9.Parse request [20:05:37]Sock 9.Check first char [20:05:37]Sock 9.First char is OK [20:05:37]request: POST /json_proto HTTP/1.0 [20:05:37]Method: POST [20:05:37]URL: /json_proto [20:05:37]Method is POST - this is cgi request [20:05:37]url: /json_proto [20:05:37]query_string will be loaded in cgi processing [20:05:37]execute_cgi json_proto POST (null) [20:05:37]execute_cgi path=json_proto method=POST [20:05:37]POST find Content-Length [20:05:37]Host: 172.17.42.196:8080 [20:05:37]Content-Length: 621 [20:05:37]Content-Type: application/json [20:05:37] [20:05:37]POST finish read [20:05:37]Found Content-Length = 621 [20:05:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199827", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:37]execute_script... [20:05:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199827", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:37]POST & json_proto [20:05:37]process_json_proto [20:05:37]json parsed OK: [20:05:37]protocol is kg_v1.0 [20:05:37]action value=close_receipt [20:05:37]process_action close_receipt [20:05:37]cmd_close_receipt [20:05:37]MH_GetDate [20:05:37]Write to MH i2c: F0 00 00 4B 2A 64 [20:05:37]Write i2c OK [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: F0 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: F0 09 00 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: F0 09 00 4B 2A 00 96 A8 1A 67 FF C4 6B 64 BE [20:05:37]GetLastDocTimeStamp 1729800220 [20:05:37]current date 1729800342 [20:05:37]FM_GetShiftState [20:05:37]SAM_PROTO_GetShiftState [20:05:37]wFMCommunicate request_size=4 [20:05:37]MH_SAM_APDU [20:05:37]CAPDU: 80 13 01 00 [20:05:37]Write to MH i2c: E2 08 00 4C 2A 80 13 01 00 00 00 00 00 F3 [20:05:37]Write i2c OK [20:05:37]MH_I2C_Read... [20:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:37]Read from MH i2c: E2 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 0E 00 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 0E 00 4C 2A 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 26 [20:05:37]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:05:37]wFMCommunicate OK [20:05:37]SAM_PROTO_GetShiftState done [20:05:37]FM_GetShiftState done [20:05:37]opened in 1729730575 [20:05:37]opened+sec_in_day 1729816975 [20:05:37]quantity*price = 14400 [20:05:37]sum+1 = 14401 [20:05:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 127 24.10.2024 20:05 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60052 ФПД: 33166612023027 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200542&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60052&fm=33166612023027&tin=02508201610067®Number=0000000000091622&sum=14400 0 [20:05:38]StoreToDocumentArchive [20:05:38]shift 529 fd 60052 [20:05:38]save to /storage/0529/doc_00060052 [20:05:38]save last doc name /storage/0529/doc_00060052 to /storage/kkm_last_doc_name [20:05:38]save OK [20:05:38]Clear old archive folders... [20:05:38]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:05:38]tlvbuf is 00D8B6F0 [20:05:38]SAM_PROTO_ClearQueue [20:05:38]wFMCommunicate request_size=4 [20:05:38]MH_SAM_APDU [20:05:38]CAPDU: 80 09 00 00 [20:05:38]Write to MH i2c: E2 08 00 59 2A 80 09 00 00 00 00 00 00 F5 [20:05:38]Write i2c OK [20:05:38]MH_I2C_Read... [20:05:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:38]Read from MH i2c: E2 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 03 00 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 03 00 59 2A 00 90 00 F7 [20:05:38]RAPDU: 90 00 [20:05:38]wFMCommunicate OK [20:05:38]SAM_PROTO_ClearQueue done [20:05:38]KKMCreateOFDPacket [20:05:38]OFDProtocolAddRootSTLVToBuf [20:05:38]FM_MakeSignedData [20:05:38]FM_MakeSignedData [20:05:38]SAM_PROTO_SignData [20:05:38]wFMCommunicate request_size=4 [20:05:38]MH_SAM_APDU [20:05:38]CAPDU: 80 0D 01 02 [20:05:38]Write to MH i2c: E2 08 00 5A 2A 80 0D 01 02 00 00 00 00 FD [20:05:38]Write i2c OK [20:05:38]MH_I2C_Read... [20:05:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:38]Read from MH i2c: E2 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 03 00 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 03 00 5A 2A 00 90 00 F8 [20:05:38]RAPDU: 90 00 [20:05:38]wFMCommunicate OK [20:05:38]wFMCommunicate request_size=255 [20:05:38]MH_SAM_APDU [20:05:38]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 96 A8 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 [20:05:38]Write to MH i2c: E2 02 01 5B 2A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 96 A8 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 9F [20:05:38]Write i2c OK [20:05:38]MH_I2C_Read... [20:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:38]Read from MH i2c: E2 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 03 00 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [20:05:38]RAPDU: 90 00 [20:05:38]wFMCommunicate OK [20:05:38]wFMCommunicate request_size=32 [20:05:38]MH_SAM_APDU [20:05:38]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 34 10 04 04 00 94 EA 00 00 35 04 06 00 1E 2A 34 20 C6 F3 [20:05:38]Write to MH i2c: E2 23 00 5C 2A 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 34 10 04 04 00 94 EA 00 00 35 04 06 00 1E 2A 34 20 C6 F3 00 00 34 [20:05:38]Write i2c OK [20:05:38]MH_I2C_Read... [20:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:38]Read from MH i2c: E2 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 03 00 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 03 00 5C 2A 00 90 00 FA [20:05:38]RAPDU: 90 00 [20:05:38]wFMCommunicate OK [20:05:38]wFMCommunicate request_size=4 [20:05:38]MH_SAM_APDU [20:05:38]CAPDU: 80 0D 03 02 [20:05:38]Write to MH i2c: E2 08 00 5D 2A 80 0D 03 02 00 00 00 00 02 [20:05:38]Write i2c OK [20:05:38]MH_I2C_Read... [20:05:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:38]Read from MH i2c: E2 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 0B 00 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 0B 00 5D 2A 00 CF 0A D1 D0 DE A8 5B 0A 90 00 68 [20:05:38]RAPDU: CF 0A D1 D0 DE A8 5B 0A 90 00 [20:05:38]wFMCommunicate OK [20:05:38]SAM_PROTO_SignData done [20:05:38]FM_MakeSignedData done [20:05:38]CreateOFDProtocolMessage [20:05:38]wFMCommunicate request_size=4 [20:05:38]MH_SAM_APDU [20:05:38]CAPDU: 80 11 00 00 [20:05:38]Write to MH i2c: E2 08 00 5E 2A 80 11 00 00 00 00 00 00 02 [20:05:38]Write i2c OK [20:05:38]MH_I2C_Read... [20:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:38]Read from MH i2c: E2 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 17 00 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: E2 17 00 5E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 59 [20:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:05:38]wFMCommunicate OK [20:05:38]CreateOFDProtocolMessage done [20:05:38]OFDSenderStorePacket 60052 [20:05:38]StoreOFDPacket docnum=60052 [20:05:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 E9 8A 1D 01 91 43 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 96 A8 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 94 EA 00 00 35 04 06 00 1E 2A 34 20 C6 F3 CF 0A D1 D0 DE A8 5B 0A [20:05:38]CheckFolder [20:05:38]dirname=/storage/ofd_packets [20:05:38]CheckFolder done [20:05:38]ProducePacketName [20:05:38]name=ofd_packets/00060052 [20:05:38]NVStorageSaveData ofd_packets/00060052 [20:05:38]File name is /storage/ofd_packets/00060052 [20:05:38]Write 323 bytes [20:05:38]NVStorageSaveData done [20:05:38]OFDSenderStorePacket done [20:05:38]KKMCreateOFDPacket done [20:05:38]NVStorageSaveData kkm_last_timestamp [20:05:38]File name is /storage/kkm_last_timestamp [20:05:38]Write 4 bytes [20:05:38]NVStorageSaveData done [20:05:38]ExternCall_PrintAddStr [20:05:38]wPrintStart [20:05:38]Write to MH i2c: 01 00 00 5F 2A 89 [20:05:38]Write i2c OK [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: 01 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: 01 07 00 [20:05:38]MH_I2C_Read... [20:05:38]Read from MH i2c: 01 07 00 5F 2A 00 00 00 00 00 FF 0F 9E [20:05:38]RasterBufferAndPrint [20:05:38]line Счет N : (3)199827 [20:05:38]line ИНН: 02508201610067 [20:05:38]line Контрольно-Кассовый Чек [20:05:38]line ПРОДАЖА [20:05:38]line Товар: 48747059 [20:05:38]line Сигареты Winston Legend Blue [20:05:38]line 1.000 * 144.00 [20:05:38]line = 144.00 [20:05:38]line НДС 12% НСП 1% [20:05:38]line > о реализуемом товаре [20:05:38]line ИТОГО: 144.00 [20:05:38]line НСП 1% : 1.27 [20:05:38]line НДС 12% : 15.29 [20:05:38]line Наличными: 144.00 [20:05:38]line Безнал.: 0.00 [20:05:38]line Место: АЗС № 87 "Партнер Нефть" [20:05:38]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [20:05:38]line СНО: Общий режим [20:05:38]line Чек 127 24.10.2024 20:05 [20:05:38]line Смена: 529 ФФД: 1.0 [20:05:38]line ЗНМ: 0300000084 [20:05:38]line РНМ: 0000000000091622 [20:05:38]line Версия ККМ: 001 [20:05:38]line ФМ: 0000000000874674 [20:05:38]line ФД: 60052 [20:05:38]line ФПД: 33166612023027 [20:05:38]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200542&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60052&fm=33166612023027&tin=02508201610067®Number=0000000000091622&sum=14400 [20:05:38]line 0 [20:05:39]written 0, free lines is 4095 [20:05:39]OFD Sender: Processing packet 60052 [packets to send 30, broken 29] [20:05:39]ProducePacketName [20:05:39]name=ofd_packets/00060052 [20:05:39]OFD Sender: To server: pG, [20:05:39]CommunicateWithHost lk.salyk.kg:30040 [20:05:39]ConnectInit lk.salyk.kg [20:05:39]Connected sock=10 [20:05:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 E9 8A 1D 01 91 43 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 96 A8 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 94 EA 00 00 35 04 06 00 1E 2A 34 20 C6 F3 CF 0A D1 D0 DE A8 5B 0A [20:05:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 F4 F0 47 00 9D 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 34 36 37 34 10 04 04 00 94 EA 00 00 F4 03 04 00 85 4E 1A 67 B6 04 01 00 00 FB 05 B7 B2 85 26 0D E8 [20:05:39]CommunicateWithHost err = 0 [20:05:39]CheckOFDResponse [20:05:39]1017 (14) - 77093643461234 [20:05:39]1041 (16) - 0000000000874674 [20:05:39]1040 (4) - 60052 [20:05:39]1012 (4) - 24.10.2024 13:41 [20:05:39]1206 (1) - 0 [20:05:39]OFD Sender: Remove packet 60052 [20:05:39]ProducePacketName [20:05:39]name=ofd_packets/00060052 [20:05:39]NVStorageDeleteData [20:05:39]Write to MH i2c: 01 00 00 88 2A B2 [20:05:39]Write i2c OK [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: 01 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: 01 07 00 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: 01 07 00 88 2A 00 00 00 00 00 C9 0C 8E [20:05:39]RasterBufferAndPrint [20:05:39]line [20:05:39]line [20:05:39]line [20:05:39]line [20:05:39]line [20:05:39]written 0, free lines is 3278 [20:05:39]MH_Cut [20:05:39]Write to MH i2c: D1 01 00 8F 2A 01 8B [20:05:39]Write i2c OK [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: D1 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: D1 01 00 [20:05:39]MH_I2C_Read... [20:05:39]Read from MH i2c: D1 01 00 8F 2A 00 8A [20:05:39]Write to MH i2c: 01 00 00 90 2A BA [20:05:39]Write i2c OK [20:05:39]MH_I2C_Read... [20:05:39]OFD Sender: No OFD packet to send [20:05:40]*** Cut start [20:05:40]*** Partial cut [20:05:40]*** CUTSNS_PIN = 1 [20:05:40]*** CUTSNS_PIN = 0 [20:05:40]*** Brake cut motor [20:05:40]Read from MH i2c: 01 [20:05:40]MH_I2C_Read... [20:05:40]*** Stop cut motor [20:05:40]*** Cut end [20:05:40]Read from MH i2c: 01 07 00 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: 01 07 00 90 2A 00 00 00 00 00 FF 0F CF [20:05:40]process_action close_receipt done [20:05:40]requested_data is exist [20:05:40]produce_requested_data [20:05:40]requested_item fm.sn is exist - process it [20:05:40]wFMCommunicate request_size=4 [20:05:40]MH_SAM_APDU [20:05:40]CAPDU: 80 11 00 00 [20:05:40]Write to MH i2c: E2 08 00 91 2A 80 11 00 00 00 00 00 00 35 [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:41]Read from MH i2c: E2 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 17 00 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 17 00 91 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 8C [20:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:05:41]wFMCommunicate OK [20:05:41]requested_item fd.num is exist - process it [20:05:41]SAM_PROTO_GetFieldsCounters [20:05:41]wFMCommunicate request_size=4 [20:05:41]MH_SAM_APDU [20:05:41]CAPDU: 80 13 00 00 [20:05:41]Write to MH i2c: E2 08 00 92 2A 80 13 00 00 00 00 00 00 38 [20:05:41]Write i2c OK [20:05:41]MH_I2C_Read... [20:05:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:41]Read from MH i2c: E2 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 62 00 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 62 00 92 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 94 EA 00 00 0E 04 04 00 11 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 66 [20:05:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 94 EA 00 00 0E 04 04 00 11 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 [20:05:41]wFMCommunicate OK [20:05:41]SAM_PROTO_GetFieldsCounters done [20:05:41]requested_item shift.num is exist - process it [20:05:41]requested_item shift.opened is exist - process it [20:05:41]req_shift_opened [20:05:41]FM_GetShiftState [20:05:41]SAM_PROTO_GetShiftState [20:05:41]wFMCommunicate request_size=4 [20:05:41]MH_SAM_APDU [20:05:41]CAPDU: 80 13 01 00 [20:05:41]Write to MH i2c: E2 08 00 93 2A 80 13 01 00 00 00 00 00 3A [20:05:41]Write i2c OK [20:05:41]MH_I2C_Read... [20:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:41]Read from MH i2c: E2 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 0E 00 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: E2 0E 00 93 2A 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 6D [20:05:41]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:05:41]wFMCommunicate OK [20:05:41]SAM_PROTO_GetShiftState done [20:05:41]FM_GetShiftState done [20:05:41]req_shift_opened done [20:05:41]requested_item shift.open_date is exist - process it [20:05:41]req_shift_open_date [20:05:41]req_shift_open_date done [20:05:41]produce_requested_data done [20:05:41]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60052,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [20:05:41]process_action_free close_receipt [20:05:41]json_value_free [20:05:41]json_value_free done [20:05:41]process_json_proto returns [20:05:41]Send response to host [20:05:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60052,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [20:05:41]free response buf [20:05:41]execute_script done [20:05:41]execute_script returns [20:05:41]free content buf [20:05:41]Sock 9.Close socket [20:05:41]Sock 9.Thread stoped [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:39]accept exits with 7 [20:09:39]New connection [20:09:39]New thread 3067252068 created [20:09:39]Thread 3067108708 joined [20:09:39]Waiting for new connection... [20:09:39] Sock 7.Parse request [20:09:39]Sock 7.Check first char [20:09:39]Sock 7.First char is OK [20:09:39]request: POST /json_proto HTTP/1.0 [20:09:39]Method: POST [20:09:39]URL: /json_proto [20:09:39]Method is POST - this is cgi request [20:09:39]url: /json_proto [20:09:39]query_string will be loaded in cgi processing [20:09:39]execute_cgi json_proto POST (null) [20:09:39]execute_cgi path=json_proto method=POST [20:09:39]POST find Content-Length [20:09:39]Host: 172.17.42.196:8080 [20:09:39]Content-Length: 750 [20:09:39]Content-Type: application/json [20:09:39] [20:09:39]POST finish read [20:09:39]Found Content-Length = 750 [20:09:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199828", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 3.000, "sum" : 432.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" : 432.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:39]execute_script... [20:09:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199828", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 3.000, "sum" : 432.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" : 432.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:39]POST & json_proto [20:09:39]process_json_proto [20:09:39]json parsed OK: [20:09:39]protocol is kg_v1.0 [20:09:39]action value=close_receipt [20:09:39]process_action close_receipt [20:09:39]cmd_close_receipt [20:09:39]MH_GetDate [20:09:39]Write to MH i2c: F0 00 00 94 2A AD [20:09:39]Write i2c OK [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: F0 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: F0 09 00 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: F0 09 00 94 2A 00 88 A9 1A 67 FF C4 6B 64 FA [20:09:39]GetLastDocTimeStamp 1729800342 [20:09:39]current date 1729800584 [20:09:39]FM_GetShiftState [20:09:39]SAM_PROTO_GetShiftState [20:09:39]wFMCommunicate request_size=4 [20:09:39]MH_SAM_APDU [20:09:39]CAPDU: 80 13 01 00 [20:09:39]Write to MH i2c: E2 08 00 95 2A 80 13 01 00 00 00 00 00 3C [20:09:39]Write i2c OK [20:09:39]MH_I2C_Read... [20:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:39]Read from MH i2c: E2 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: E2 0E 00 [20:09:39]MH_I2C_Read... [20:09:39]Read from MH i2c: E2 0E 00 95 2A 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 6F [20:09:39]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:09:39]wFMCommunicate OK [20:09:39]SAM_PROTO_GetShiftState done [20:09:39]FM_GetShiftState done [20:09:39]opened in 1729730575 [20:09:39]opened+sec_in_day 1729816975 [20:09:39]quantity*price = 43200 [20:09:39]sum+1 = 43201 [20:09:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 432.00 НСП 1% : 3.82 НДС 12% : 45.88 Наличными: 0.00 Безнал.: 432.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 128 24.10.2024 20:09 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60053 ФПД: 180395329732914 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200944&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60053&fm=180395329732914&tin=02508201610067®Number=0000000000091622&sum=43200 0 [20:09:40]StoreToDocumentArchive [20:09:40]shift 529 fd 60053 [20:09:40]save to /storage/0529/doc_00060053 [20:09:40]save last doc name /storage/0529/doc_00060053 to /storage/kkm_last_doc_name [20:09:40]save OK [20:09:40]Clear old archive folders... [20:09:40]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:09:40]tlvbuf is 00DD19D0 [20:09:40]SAM_PROTO_ClearQueue [20:09:40]wFMCommunicate request_size=4 [20:09:40]MH_SAM_APDU [20:09:40]CAPDU: 80 09 00 00 [20:09:40]Write to MH i2c: E2 08 00 A2 2A 80 09 00 00 00 00 00 00 3E [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:40]Read from MH i2c: E2 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 03 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 03 00 A2 2A 00 90 00 40 [20:09:40]RAPDU: 90 00 [20:09:40]wFMCommunicate OK [20:09:40]SAM_PROTO_ClearQueue done [20:09:40]KKMCreateOFDPacket [20:09:40]OFDProtocolAddRootSTLVToBuf [20:09:40]FM_MakeSignedData [20:09:40]FM_MakeSignedData [20:09:40]SAM_PROTO_SignData [20:09:40]wFMCommunicate request_size=4 [20:09:40]MH_SAM_APDU [20:09:40]CAPDU: 80 0D 01 02 [20:09:40]Write to MH i2c: E2 08 00 A3 2A 80 0D 01 02 00 00 00 00 46 [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:40]Read from MH i2c: E2 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 03 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 03 00 A3 2A 00 90 00 41 [20:09:40]RAPDU: 90 00 [20:09:40]wFMCommunicate OK [20:09:40]wFMCommunicate request_size=255 [20:09:40]MH_SAM_APDU [20:09:40]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 C0 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 88 A9 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [20:09:40]Write to MH i2c: E2 02 01 A4 2A 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 C0 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 88 A9 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 32 [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:40]Read from MH i2c: E2 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 03 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 03 00 A4 2A 00 90 00 42 [20:09:40]RAPDU: 90 00 [20:09:40]wFMCommunicate OK [20:09:40]wFMCommunicate request_size=34 [20:09:40]MH_SAM_APDU [20:09:40]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 95 EA 00 00 35 04 06 00 A4 11 8F 8C 41 32 [20:09:40]Write to MH i2c: E2 25 00 A5 2A 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 95 EA 00 00 35 04 06 00 A4 11 8F 8C 41 32 00 00 D0 [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:40]Read from MH i2c: E2 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 03 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 03 00 A5 2A 00 90 00 43 [20:09:40]RAPDU: 90 00 [20:09:40]wFMCommunicate OK [20:09:40]wFMCommunicate request_size=4 [20:09:40]MH_SAM_APDU [20:09:40]CAPDU: 80 0D 03 02 [20:09:40]Write to MH i2c: E2 08 00 A6 2A 80 0D 03 02 00 00 00 00 4B [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:40]Read from MH i2c: E2 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 0B 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 0B 00 A6 2A 00 97 B5 C5 C7 9B 12 DB 67 90 00 13 [20:09:40]RAPDU: 97 B5 C5 C7 9B 12 DB 67 90 00 [20:09:40]wFMCommunicate OK [20:09:40]SAM_PROTO_SignData done [20:09:40]FM_MakeSignedData done [20:09:40]CreateOFDProtocolMessage [20:09:40]wFMCommunicate request_size=4 [20:09:40]MH_SAM_APDU [20:09:40]CAPDU: 80 11 00 00 [20:09:40]Write to MH i2c: E2 08 00 A7 2A 80 11 00 00 00 00 00 00 4B [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:40]Read from MH i2c: E2 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 17 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 17 00 A7 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 A2 [20:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:09:40]wFMCommunicate OK [20:09:40]CreateOFDProtocolMessage done [20:09:40]OFDSenderStorePacket 60053 [20:09:40]StoreOFDPacket docnum=60053 [20:09:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 C4 53 1F 01 10 57 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 C0 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 88 A9 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 95 EA 00 00 35 04 06 00 A4 11 8F 8C 41 32 97 B5 C5 C7 9B 12 DB 67 [20:09:40]CheckFolder [20:09:40]dirname=/storage/ofd_packets [20:09:40]CheckFolder done [20:09:40]ProducePacketName [20:09:40]name=ofd_packets/00060053 [20:09:40]NVStorageSaveData ofd_packets/00060053 [20:09:40]File name is /storage/ofd_packets/00060053 [20:09:40]Write 325 bytes [20:09:40]NVStorageSaveData done [20:09:40]OFDSenderStorePacket done [20:09:40]KKMCreateOFDPacket done [20:09:40]NVStorageSaveData kkm_last_timestamp [20:09:40]File name is /storage/kkm_last_timestamp [20:09:40]Write 4 bytes [20:09:40]NVStorageSaveData done [20:09:40]OFD Sender: Processing packet 60053 [packets to send 30, broken 29] [20:09:40]ProducePacketName [20:09:40]name=ofd_packets/00060053 [20:09:40]OFD Sender: To server: pG, [20:09:40]CommunicateWithHost lk.salyk.kg:30040 [20:09:40]ConnectInit lk.salyk.kg [20:09:40]ExternCall_PrintAddStr [20:09:40]wPrintStart [20:09:40]Write to MH i2c: 01 00 00 A8 2A D2 [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: 01 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: 01 07 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: 01 07 00 A8 2A 00 00 00 00 00 FF 0F E7 [20:09:40]RasterBufferAndPrint [20:09:40]line Счет N : (3)199828 [20:09:40]line ИНН: 02508201610067 [20:09:40]line Контрольно-Кассовый Чек [20:09:40]line ПРОДАЖА [20:09:40]line Товар: 48743587 [20:09:40]line Сигареты Winston XStyle Silver [20:09:40]line 3.000 * 144.00 [20:09:40]line = 432.00 [20:09:40]line НДС 12% НСП 1% [20:09:40]line > о реализуемом товаре [20:09:40]line ИТОГО: 432.00 [20:09:40]line НСП 1% : 3.82 [20:09:40]line НДС 12% : 45.88 [20:09:40]line Наличными: 0.00 [20:09:40]line Безнал.: 432.00 [20:09:40]line Место: АЗС № 87 "Партнер Нефть" [20:09:40]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [20:09:40]line СНО: Общий режим [20:09:40]line Чек 128 24.10.2024 20:09 [20:09:40]line Смена: 529 ФФД: 1.0 [20:09:40]line ЗНМ: 0300000084 [20:09:40]line РНМ: 0000000000091622 [20:09:40]line Версия ККМ: 001 [20:09:40]line Платежная система: Mbank [20:09:40]line ФМ: 0000000000874674 [20:09:40]line ФД: 60053 [20:09:40]line ФПД: 180395329732914 [20:09:41]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200944&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60053&fm=180395329732914&tin=02508201610067®Number=0000000000091622&sum=43200 [20:09:41]line 0 [20:09:41]Connected sock=11 [20:09:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 C4 53 1F 01 10 57 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 C0 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 88 A9 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 95 EA 00 00 35 04 06 00 A4 11 8F 8C 41 32 97 B5 C5 C7 9B 12 DB 67 [20:09:41]written 0, free lines is 4095 [20:09:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 CC B0 47 00 0B 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 34 36 37 34 10 04 04 00 95 EA 00 00 F4 03 04 00 78 4F 1A 67 B6 04 01 00 00 77 AC 8B A2 BA 17 3F FF [20:09:41]CommunicateWithHost err = 0 [20:09:41]CheckOFDResponse [20:09:41]1017 (14) - 77093643461234 [20:09:41]1041 (16) - 0000000000874674 [20:09:41]1040 (4) - 60053 [20:09:41]1012 (4) - 24.10.2024 13:45 [20:09:41]1206 (1) - 0 [20:09:41]OFD Sender: Remove packet 60053 [20:09:41]ProducePacketName [20:09:41]name=ofd_packets/00060053 [20:09:41]NVStorageDeleteData [20:09:41]Write to MH i2c: 01 00 00 D2 2A FC [20:09:41]Write i2c OK [20:09:41]MH_I2C_Read... [20:09:41]Read from MH i2c: 01 [20:09:41]MH_I2C_Read... [20:09:41]Read from MH i2c: 01 07 00 [20:09:41]MH_I2C_Read... [20:09:41]Read from MH i2c: 01 07 00 D2 2A 00 00 00 00 00 D8 0C E7 [20:09:41]RasterBufferAndPrint [20:09:41]line [20:09:41]line [20:09:41]line [20:09:41]line [20:09:41]line [20:09:41]written 0, free lines is 3296 [20:09:41]MH_Cut [20:09:41]Write to MH i2c: D1 01 00 D9 2A 01 D5 [20:09:41]Write i2c OK [20:09:41]MH_I2C_Read... [20:09:41]Read from MH i2c: D1 [20:09:41]MH_I2C_Read... [20:09:41]Read from MH i2c: D1 01 00 [20:09:41]MH_I2C_Read... [20:09:41]Read from MH i2c: D1 01 00 D9 2A 00 D4 [20:09:41]Write to MH i2c: 01 00 00 DA 2A 04 [20:09:41]Write i2c OK [20:09:41]MH_I2C_Read... [20:09:42]OFD Sender: No OFD packet to send [20:09:42]*** Cut start [20:09:42]*** Partial cut [20:09:42]*** CUTSNS_PIN = 1 [20:09:42]*** CUTSNS_PIN = 0 [20:09:42]*** Brake cut motor [20:09:43]Read from MH i2c: 01 [20:09:43]MH_I2C_Read... [20:09:43]*** Stop cut motor [20:09:43]*** Cut end [20:09:43]Read from MH i2c: 01 07 00 [20:09:43]MH_I2C_Read... [20:09:43]Read from MH i2c: 01 07 00 DA 2A 00 00 00 00 00 FF 0F 19 [20:09:43]process_action close_receipt done [20:09:43]requested_data is exist [20:09:43]produce_requested_data [20:09:43]requested_item fm.sn is exist - process it [20:09:43]wFMCommunicate request_size=4 [20:09:43]MH_SAM_APDU [20:09:43]CAPDU: 80 11 00 00 [20:09:43]Write to MH i2c: E2 08 00 DB 2A 80 11 00 00 00 00 00 00 7F [20:09:43]Write i2c OK [20:09:43]MH_I2C_Read... [20:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:43]Read from MH i2c: E2 [20:09:43]MH_I2C_Read... [20:09:43]Read from MH i2c: E2 17 00 [20:09:43]MH_I2C_Read... [20:09:43]Read from MH i2c: E2 17 00 DB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 D6 [20:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:09:43]wFMCommunicate OK [20:09:43]requested_item fd.num is exist - process it [20:09:43]SAM_PROTO_GetFieldsCounters [20:09:43]wFMCommunicate request_size=4 [20:09:43]MH_SAM_APDU [20:09:43]CAPDU: 80 13 00 00 [20:09:43]Write to MH i2c: E2 08 00 DC 2A 80 13 00 00 00 00 00 00 82 [20:09:43]Write i2c OK [20:09:43]MH_I2C_Read... [20:09:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:43]Read from MH i2c: E2 [20:09:43]MH_I2C_Read... [20:09:43]Read from MH i2c: E2 62 00 [20:09:43]MH_I2C_Read... [20:09:43]Read from MH i2c: E2 62 00 DC 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 95 EA 00 00 0E 04 04 00 11 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 B4 [20:09: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 95 EA 00 00 0E 04 04 00 11 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 [20:09:43]wFMCommunicate OK [20:09:43]SAM_PROTO_GetFieldsCounters done [20:09:43]requested_item shift.num is exist - process it [20:09:43]requested_item shift.opened is exist - process it [20:09:43]req_shift_opened [20:09:43]FM_GetShiftState [20:09:43]SAM_PROTO_GetShiftState [20:09:43]wFMCommunicate request_size=4 [20:09:43]MH_SAM_APDU [20:09:43]CAPDU: 80 13 01 00 [20:09:43]Write to MH i2c: E2 08 00 DD 2A 80 13 01 00 00 00 00 00 84 [20:09:43]Write i2c OK [20:09:43]MH_I2C_Read... [20:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:43]Read from MH i2c: E2 [20:09:43]MH_I2C_Read... [20:09:43]Read from MH i2c: E2 0E 00 [20:09:43]MH_I2C_Read... [20:09:43]Read from MH i2c: E2 0E 00 DD 2A 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 B7 [20:09:43]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:09:43]wFMCommunicate OK [20:09:43]SAM_PROTO_GetShiftState done [20:09:43]FM_GetShiftState done [20:09:43]req_shift_opened done [20:09:43]requested_item shift.open_date is exist - process it [20:09:43]req_shift_open_date [20:09:43]req_shift_open_date done [20:09:43]produce_requested_data done [20:09:43]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60053,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [20:09:43]process_action_free close_receipt [20:09:43]json_value_free [20:09:43]json_value_free done [20:09:43]process_json_proto returns [20:09:43]Send response to host [20:09:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60053,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [20:09:43]free response buf [20:09:43]execute_script done [20:09:43]execute_script returns [20:09:43]free content buf [20:09:43]Sock 7.Close socket [20:09:43]Sock 7.Thread stoped [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:02]ConnectInit Can't connect to host [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:25]accept exits with 9 [20:36:25]New connection [20:36:25]New thread 3067108708 created [20:36:25]Thread 3067252068 joined [20:36:25]Waiting for new connection... [20:36:25] Sock 9.Parse request [20:36:25]Sock 9.Check first char [20:36:25]Sock 9.First char is OK [20:36:25]request: POST /json_proto HTTP/1.0 [20:36:25]Method: POST [20:36:25]URL: /json_proto [20:36:25]Method is POST - this is cgi request [20:36:25]url: /json_proto [20:36:25]query_string will be loaded in cgi processing [20:36:25]execute_cgi json_proto POST (null) [20:36:25]execute_cgi path=json_proto method=POST [20:36:25]POST find Content-Length [20:36:25]Host: 172.17.42.196:8080 [20:36:25]Content-Length: 623 [20:36:25]Content-Type: application/json [20:36:25] [20:36:25]POST finish read [20:36:25]Found Content-Length = 623 [20:36:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199829", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:25]execute_script... [20:36:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199829", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:25]POST & json_proto [20:36:25]process_json_proto [20:36:25]json parsed OK: [20:36:25]protocol is kg_v1.0 [20:36:25]action value=close_receipt [20:36:25]process_action close_receipt [20:36:25]cmd_close_receipt [20:36:25]MH_GetDate [20:36:25]Write to MH i2c: F0 00 00 DE 2A F7 [20:36:25]Write i2c OK [20:36:25]MH_I2C_Read... [20:36:25]Read from MH i2c: F0 [20:36:25]MH_I2C_Read... [20:36:25]Read from MH i2c: F0 09 00 [20:36:25]MH_I2C_Read... [20:36:25]Read from MH i2c: F0 09 00 DE 2A 00 CE AF 1A 67 FF C4 6B 64 90 [20:36:25]GetLastDocTimeStamp 1729800584 [20:36:25]current date 1729802190 [20:36:25]FM_GetShiftState [20:36:25]SAM_PROTO_GetShiftState [20:36:25]wFMCommunicate request_size=4 [20:36:25]MH_SAM_APDU [20:36:25]CAPDU: 80 13 01 00 [20:36:25]Write to MH i2c: E2 08 00 DF 2A 80 13 01 00 00 00 00 00 86 [20:36:25]Write i2c OK [20:36:25]MH_I2C_Read... [20:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:25]Read from MH i2c: E2 [20:36:25]MH_I2C_Read... [20:36:25]Read from MH i2c: E2 0E 00 [20:36:25]MH_I2C_Read... [20:36:25]Read from MH i2c: E2 0E 00 DF 2A 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 B9 [20:36:25]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:36:25]wFMCommunicate OK [20:36:25]SAM_PROTO_GetShiftState done [20:36:25]FM_GetShiftState done [20:36:25]opened in 1729730575 [20:36:25]opened+sec_in_day 1729816975 [20:36:25]quantity*price = 14400 [20:36:25]sum+1 = 14401 [20:36:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 129 24.10.2024 20:36 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60054 ФПД: 74853579073334 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203630&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60054&fm=74853579073334&tin=02508201610067®Number=0000000000091622&sum=14400 0 [20:36:26]StoreToDocumentArchive [20:36:26]shift 529 fd 60054 [20:36:26]save to /storage/0529/doc_00060054 [20:36:26]save last doc name /storage/0529/doc_00060054 to /storage/kkm_last_doc_name [20:36:26]save OK [20:36:26]Clear old archive folders... [20:36:26]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:36:26]tlvbuf is B6FA1990 [20:36:26]SAM_PROTO_ClearQueue [20:36:26]wFMCommunicate request_size=4 [20:36:26]MH_SAM_APDU [20:36:26]CAPDU: 80 09 00 00 [20:36:26]Write to MH i2c: E2 08 00 EC 2A 80 09 00 00 00 00 00 00 88 [20:36:26]Write i2c OK [20:36:26]MH_I2C_Read... [20:36:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:26]Read from MH i2c: E2 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: E2 03 00 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: E2 03 00 EC 2A 00 90 00 8A [20:36:26]RAPDU: 90 00 [20:36:26]wFMCommunicate OK [20:36:26]SAM_PROTO_ClearQueue done [20:36:26]KKMCreateOFDPacket [20:36:26]OFDProtocolAddRootSTLVToBuf [20:36:26]FM_MakeSignedData [20:36:26]FM_MakeSignedData [20:36:26]SAM_PROTO_SignData [20:36:26]wFMCommunicate request_size=4 [20:36:26]MH_SAM_APDU [20:36:26]CAPDU: 80 0D 01 02 [20:36:26]Write to MH i2c: E2 08 00 ED 2A 80 0D 01 02 00 00 00 00 90 [20:36:26]Write i2c OK [20:36:26]MH_I2C_Read... [20:36:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:26]Read from MH i2c: E2 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: E2 03 00 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: E2 03 00 ED 2A 00 90 00 8B [20:36:26]RAPDU: 90 00 [20:36:26]wFMCommunicate OK [20:36:26]wFMCommunicate request_size=255 [20:36:26]MH_SAM_APDU [20:36:26]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 CE AF 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [20:36:26]Write to MH i2c: E2 02 01 EE 2A 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 CE AF 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 22 [20:36:26]Write i2c OK [20:36:26]MH_I2C_Read... [20:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:26]Read from MH i2c: E2 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: E2 03 00 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: E2 03 00 EE 2A 00 90 00 8C [20:36:26]RAPDU: 90 00 [20:36:26]wFMCommunicate OK [20:36:26]wFMCommunicate request_size=34 [20:36:26]MH_SAM_APDU [20:36:26]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 96 EA 00 00 35 04 06 00 44 14 34 FD A7 36 [20:36:26]Write to MH i2c: E2 25 00 EF 2A 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 96 EA 00 00 35 04 06 00 44 14 34 FD A7 36 00 00 3E [20:36:26]Write i2c OK [20:36:26]MH_I2C_Read... [20:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:26]Read from MH i2c: E2 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: E2 03 00 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: E2 03 00 EF 2A 00 90 00 8D [20:36:26]RAPDU: 90 00 [20:36:26]wFMCommunicate OK [20:36:26]wFMCommunicate request_size=4 [20:36:26]MH_SAM_APDU [20:36:26]CAPDU: 80 0D 03 02 [20:36:26]Write to MH i2c: E2 08 00 F0 2A 80 0D 03 02 00 00 00 00 95 [20:36:26]Write i2c OK [20:36:26]MH_I2C_Read... [20:36:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:26]Read from MH i2c: E2 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: E2 0B 00 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: E2 0B 00 F0 2A 00 D4 97 23 36 F4 73 4B EB 90 00 F7 [20:36:26]RAPDU: D4 97 23 36 F4 73 4B EB 90 00 [20:36:26]wFMCommunicate OK [20:36:26]SAM_PROTO_SignData done [20:36:26]FM_MakeSignedData done [20:36:26]CreateOFDProtocolMessage [20:36:26]wFMCommunicate request_size=4 [20:36:26]MH_SAM_APDU [20:36:26]CAPDU: 80 11 00 00 [20:36:26]Write to MH i2c: E2 08 00 F1 2A 80 11 00 00 00 00 00 00 95 [20:36:26]Write i2c OK [20:36:26]MH_I2C_Read... [20:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:26]Read from MH i2c: E2 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: E2 17 00 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: E2 17 00 F1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 EC [20:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:36:26]wFMCommunicate OK [20:36:26]CreateOFDProtocolMessage done [20:36:26]OFDSenderStorePacket 60054 [20:36:26]StoreOFDPacket docnum=60054 [20:36:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 50 58 1F 01 3A 4F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 CE AF 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 96 EA 00 00 35 04 06 00 44 14 34 FD A7 36 D4 97 23 36 F4 73 4B EB [20:36:26]CheckFolder [20:36:26]dirname=/storage/ofd_packets [20:36:26]CheckFolder done [20:36:26]ProducePacketName [20:36:26]name=ofd_packets/00060054 [20:36:26]NVStorageSaveData ofd_packets/00060054 [20:36:26]File name is /storage/ofd_packets/00060054 [20:36:26]Write 325 bytes [20:36:26]NVStorageSaveData done [20:36:26]OFDSenderStorePacket done [20:36:26]KKMCreateOFDPacket done [20:36:26]NVStorageSaveData kkm_last_timestamp [20:36:26]File name is /storage/kkm_last_timestamp [20:36:26]Write 4 bytes [20:36:26]NVStorageSaveData done [20:36:26]ExternCall_PrintAddStr [20:36:26]wPrintStart [20:36:26]Write to MH i2c: 01 00 00 F2 2A 1C [20:36:26]Write i2c OK [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: 01 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: 01 07 00 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: 01 07 00 F2 2A 00 00 00 00 00 FF 0F 31 [20:36:26]RasterBufferAndPrint [20:36:26]line Счет N : (3)199829 [20:36:26]line ИНН: 02508201610067 [20:36:26]line Контрольно-Кассовый Чек [20:36:26]line ПРОДАЖА [20:36:26]line Товар: 48743587 [20:36:26]line Сигареты Winston XStyle Silver [20:36:26]line 1.000 * 144.00 [20:36:26]line = 144.00 [20:36:26]line НДС 12% НСП 1% [20:36:26]line > о реализуемом товаре [20:36:26]line ИТОГО: 144.00 [20:36:26]line НСП 1% : 1.27 [20:36:26]line НДС 12% : 15.29 [20:36:26]line Наличными: 144.00 [20:36:26]line Безнал.: 0.00 [20:36:26]line Место: АЗС № 87 "Партнер Нефть" [20:36:26]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [20:36:26]line СНО: Общий режим [20:36:26]line Чек 129 24.10.2024 20:36 [20:36:26]line Смена: 529 ФФД: 1.0 [20:36:26]line ЗНМ: 0300000084 [20:36:26]line РНМ: 0000000000091622 [20:36:26]line Версия ККМ: 001 [20:36:26]line ФМ: 0000000000874674 [20:36:26]line ФД: 60054 [20:36:26]line ФПД: 74853579073334 [20:36:26]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203630&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60054&fm=74853579073334&tin=02508201610067®Number=0000000000091622&sum=14400 [20:36:27]OFD Sender: Processing packet 60054 [packets to send 30, broken 29] [20:36:27]ProducePacketName [20:36:27]name=ofd_packets/00060054 [20:36:27]OFD Sender: To server: pG, [20:36:27]CommunicateWithHost lk.salyk.kg:30040 [20:36:27]ConnectInit lk.salyk.kg [20:36:27]line 0 [20:36:27]written 0, free lines is 4095 [20:36:27]Connected sock=10 [20:36:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 50 58 1F 01 3A 4F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 CE AF 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 96 EA 00 00 35 04 06 00 44 14 34 FD A7 36 D4 97 23 36 F4 73 4B EB [20:36:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 0E 8D 47 00 D5 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 34 36 37 34 10 04 04 00 96 EA 00 00 F4 03 04 00 BD 55 1A 67 B6 04 01 00 00 47 44 A3 6C 30 C8 5E 70 [20:36:27]CommunicateWithHost err = 0 [20:36:27]CheckOFDResponse [20:36:27]1017 (14) - 77093643461234 [20:36:27]1041 (16) - 0000000000874674 [20:36:27]1040 (4) - 60054 [20:36:27]1012 (4) - 24.10.2024 14:12 [20:36:27]1206 (1) - 0 [20:36:27]OFD Sender: Remove packet 60054 [20:36:27]ProducePacketName [20:36:27]name=ofd_packets/00060054 [20:36:27]NVStorageDeleteData [20:36:27]Write to MH i2c: 01 00 00 1B 2B 46 [20:36:27]Write i2c OK [20:36:27]MH_I2C_Read... [20:36:27]Read from MH i2c: 01 [20:36:27]MH_I2C_Read... [20:36:27]Read from MH i2c: 01 07 00 [20:36:27]MH_I2C_Read... [20:36:27]Read from MH i2c: 01 07 00 1B 2B 00 00 00 00 00 D7 0C 30 [20:36:27]RasterBufferAndPrint [20:36:27]line [20:36:27]line [20:36:27]line [20:36:27]line [20:36:27]line [20:36:27]written 0, free lines is 3295 [20:36:27]MH_Cut [20:36:27]Write to MH i2c: D1 01 00 22 2B 01 1F [20:36:27]Write i2c OK [20:36:27]MH_I2C_Read... [20:36:27]Read from MH i2c: D1 [20:36:27]MH_I2C_Read... [20:36:27]Read from MH i2c: D1 01 00 [20:36:27]MH_I2C_Read... [20:36:27]Read from MH i2c: D1 01 00 22 2B 00 1E [20:36:27]Write to MH i2c: 01 00 00 23 2B 4E [20:36:27]Write i2c OK [20:36:27]MH_I2C_Read... [20:36:27]OFD Sender: No OFD packet to send [20:36:28]*** Cut start [20:36:28]*** Partial cut [20:36:28]*** CUTSNS_PIN = 1 [20:36:28]*** CUTSNS_PIN = 0 [20:36:28]*** Brake cut motor [20:36:28]Read from MH i2c: 01 [20:36:28]MH_I2C_Read... [20:36:28]*** Stop cut motor [20:36:28]*** Cut end [20:36:28]Read from MH i2c: 01 07 00 [20:36:28]MH_I2C_Read... [20:36:28]Read from MH i2c: 01 07 00 23 2B 00 00 00 00 00 FF 0F 63 [20:36:28]process_action close_receipt done [20:36:28]requested_data is exist [20:36:28]produce_requested_data [20:36:28]requested_item fm.sn is exist - process it [20:36:28]wFMCommunicate request_size=4 [20:36:28]MH_SAM_APDU [20:36:28]CAPDU: 80 11 00 00 [20:36:28]Write to MH i2c: E2 08 00 24 2B 80 11 00 00 00 00 00 00 C9 [20:36:28]Write i2c OK [20:36:28]MH_I2C_Read... [20:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:29]Read from MH i2c: E2 [20:36:29]MH_I2C_Read... [20:36:29]Read from MH i2c: E2 17 00 [20:36:29]MH_I2C_Read... [20:36:29]Read from MH i2c: E2 17 00 24 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 20 [20:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:36:29]wFMCommunicate OK [20:36:29]requested_item fd.num is exist - process it [20:36:29]SAM_PROTO_GetFieldsCounters [20:36:29]wFMCommunicate request_size=4 [20:36:29]MH_SAM_APDU [20:36:29]CAPDU: 80 13 00 00 [20:36:29]Write to MH i2c: E2 08 00 25 2B 80 13 00 00 00 00 00 00 CC [20:36:29]Write i2c OK [20:36:29]MH_I2C_Read... [20:36:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:29]Read from MH i2c: E2 [20:36:29]MH_I2C_Read... [20:36:29]Read from MH i2c: E2 62 00 [20:36:29]MH_I2C_Read... [20:36:29]Read from MH i2c: E2 62 00 25 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 96 EA 00 00 0E 04 04 00 11 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 02 [20:36: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 96 EA 00 00 0E 04 04 00 11 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 [20:36:29]wFMCommunicate OK [20:36:29]SAM_PROTO_GetFieldsCounters done [20:36:29]requested_item shift.num is exist - process it [20:36:29]requested_item shift.opened is exist - process it [20:36:29]req_shift_opened [20:36:29]FM_GetShiftState [20:36:29]SAM_PROTO_GetShiftState [20:36:29]wFMCommunicate request_size=4 [20:36:29]MH_SAM_APDU [20:36:29]CAPDU: 80 13 01 00 [20:36:29]Write to MH i2c: E2 08 00 26 2B 80 13 01 00 00 00 00 00 CE [20:36:29]Write i2c OK [20:36:29]MH_I2C_Read... [20:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:29]Read from MH i2c: E2 [20:36:29]MH_I2C_Read... [20:36:29]Read from MH i2c: E2 0E 00 [20:36:29]MH_I2C_Read... [20:36:29]Read from MH i2c: E2 0E 00 26 2B 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 01 [20:36:29]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:36:29]wFMCommunicate OK [20:36:29]SAM_PROTO_GetShiftState done [20:36:29]FM_GetShiftState done [20:36:29]req_shift_opened done [20:36:29]requested_item shift.open_date is exist - process it [20:36:29]req_shift_open_date [20:36:29]req_shift_open_date done [20:36:29]produce_requested_data done [20:36:29]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60054,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [20:36:29]process_action_free close_receipt [20:36:29]json_value_free [20:36:29]json_value_free done [20:36:29]process_json_proto returns [20:36:29]Send response to host [20:36:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60054,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [20:36:29]free response buf [20:36:29]execute_script done [20:36:29]execute_script returns [20:36:29]free content buf [20:36:29]Sock 9.Close socket [20:36:29]Sock 9.Thread stoped [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:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:20]accept exits with 7 [20:38:20]New connection [20:38:20]New thread 3067252068 created [20:38:20]Thread 3067108708 joined [20:38:20]Waiting for new connection... [20:38:20] Sock 7.Parse request [20:38:20]Sock 7.Check first char [20:38:20]Sock 7.First char is OK [20:38:20]request: POST /json_proto HTTP/1.0 [20:38:20]Method: POST [20:38:20]URL: /json_proto [20:38:20]Method is POST - this is cgi request [20:38:20]url: /json_proto [20:38:20]query_string will be loaded in cgi processing [20:38:20]execute_cgi json_proto POST (null) [20:38:20]execute_cgi path=json_proto method=POST [20:38:20]POST find Content-Length [20:38:20]Host: 172.17.42.196:8080 [20:38:20]Content-Length: 683 [20:38:20]Content-Type: application/json [20:38:20] [20:38:20]POST finish read [20:38:20]Found Content-Length = 683 [20:38:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [20:38:20]execute_script... [20:38: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)3309232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [20:38:20]POST & json_proto [20:38:20]process_json_proto [20:38:20]json parsed OK: [20:38:20]protocol is kg_v1.0 [20:38:20]action value=close_receipt [20:38:20]process_action close_receipt [20:38:20]cmd_close_receipt [20:38:20]MH_GetDate [20:38:20]Write to MH i2c: F0 00 00 27 2B 41 [20:38:20]Write i2c OK [20:38:20]MH_I2C_Read... [20:38:20]Read from MH i2c: F0 [20:38:20]MH_I2C_Read... [20:38:20]Read from MH i2c: F0 09 00 [20:38:20]MH_I2C_Read... [20:38:20]Read from MH i2c: F0 09 00 27 2B 00 41 B0 1A 67 FF C4 6B 64 4E [20:38:20]GetLastDocTimeStamp 1729802190 [20:38:20]current date 1729802305 [20:38:20]FM_GetShiftState [20:38:20]SAM_PROTO_GetShiftState [20:38:20]wFMCommunicate request_size=4 [20:38:20]MH_SAM_APDU [20:38:20]CAPDU: 80 13 01 00 [20:38:20]Write to MH i2c: E2 08 00 28 2B 80 13 01 00 00 00 00 00 D0 [20:38:20]Write i2c OK [20:38:20]MH_I2C_Read... [20:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:20]Read from MH i2c: E2 [20:38:20]MH_I2C_Read... [20:38:20]Read from MH i2c: E2 0E 00 [20:38:20]MH_I2C_Read... [20:38:20]Read from MH i2c: E2 0E 00 28 2B 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 03 [20:38:20]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:38:20]wFMCommunicate OK [20:38:20]SAM_PROTO_GetShiftState done [20:38:20]FM_GetShiftState done [20:38:20]opened in 1729730575 [20:38:20]opened+sec_in_day 1729816975 [20:38:20]quantity*price = 300064 [20:38:20]sum+1 = 300066 [20:38:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 130 24.10.2024 20:38 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60055 ФПД: 168910396698758 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203825&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60055&fm=168910396698758&tin=02508201610067®Number=0000000000091622&sum=300000 [20:38:21]StoreToDocumentArchive [20:38:21]shift 529 fd 60055 [20:38:21]save to /storage/0529/doc_00060055 [20:38:21]save last doc name /storage/0529/doc_00060055 to /storage/kkm_last_doc_name [20:38:21]save OK [20:38:21]Clear old archive folders... [20:38:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:38:21]tlvbuf is 00DDC910 [20:38:21]SAM_PROTO_ClearQueue [20:38:21]wFMCommunicate request_size=4 [20:38:21]MH_SAM_APDU [20:38:21]CAPDU: 80 09 00 00 [20:38:21]Write to MH i2c: E2 08 00 35 2B 80 09 00 00 00 00 00 00 D2 [20:38:21]Write i2c OK [20:38:21]MH_I2C_Read... [20:38:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:21]Read from MH i2c: E2 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: E2 03 00 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: E2 03 00 35 2B 00 90 00 D4 [20:38:21]RAPDU: 90 00 [20:38:21]wFMCommunicate OK [20:38:21]SAM_PROTO_ClearQueue done [20:38:21]KKMCreateOFDPacket [20:38:21]OFDProtocolAddRootSTLVToBuf [20:38:21]FM_MakeSignedData [20:38:21]FM_MakeSignedData [20:38:21]SAM_PROTO_SignData [20:38:21]wFMCommunicate request_size=4 [20:38:21]MH_SAM_APDU [20:38:21]CAPDU: 80 0D 01 02 [20:38:21]Write to MH i2c: E2 08 00 36 2B 80 0D 01 02 00 00 00 00 DA [20:38:21]Write i2c OK [20:38:21]MH_I2C_Read... [20:38:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:21]Read from MH i2c: E2 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: E2 03 00 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: E2 03 00 36 2B 00 90 00 D5 [20:38:21]RAPDU: 90 00 [20:38:21]wFMCommunicate OK [20:38:21]wFMCommunicate request_size=255 [20:38:21]MH_SAM_APDU [20:38:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 82 00 00 00 F4 03 04 00 41 B0 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 97 EA 00 00 35 04 06 00 99 [20:38:21]Write to MH i2c: E2 02 01 37 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 82 00 00 00 F4 03 04 00 41 B0 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 97 EA 00 00 35 04 06 00 99 00 00 B8 [20:38:21]Write i2c OK [20:38:21]MH_I2C_Read... [20:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:21]Read from MH i2c: E2 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: E2 03 00 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: E2 03 00 37 2B 00 90 00 D6 [20:38:21]RAPDU: 90 00 [20:38:21]wFMCommunicate OK [20:38:21]wFMCommunicate request_size=10 [20:38:21]MH_SAM_APDU [20:38:21]CAPDU: 80 0D 02 02 05 9F 84 31 B0 86 [20:38:21]Write to MH i2c: E2 0D 00 38 2B 80 0D 02 02 05 00 9F 84 31 B0 86 00 00 71 [20:38:21]Write i2c OK [20:38:21]MH_I2C_Read... [20:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:21]Read from MH i2c: E2 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: E2 03 00 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: E2 03 00 38 2B 00 90 00 D7 [20:38:21]RAPDU: 90 00 [20:38:21]wFMCommunicate OK [20:38:21]wFMCommunicate request_size=4 [20:38:21]MH_SAM_APDU [20:38:21]CAPDU: 80 0D 03 02 [20:38:21]Write to MH i2c: E2 08 00 39 2B 80 0D 03 02 00 00 00 00 DF [20:38:21]Write i2c OK [20:38:21]MH_I2C_Read... [20:38:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:21]Read from MH i2c: E2 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: E2 0B 00 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: E2 0B 00 39 2B 00 70 5F 44 9B DA 7E 2F 7E 90 00 93 [20:38:21]RAPDU: 70 5F 44 9B DA 7E 2F 7E 90 00 [20:38:21]wFMCommunicate OK [20:38:21]SAM_PROTO_SignData done [20:38:21]FM_MakeSignedData done [20:38:21]CreateOFDProtocolMessage [20:38:21]wFMCommunicate request_size=4 [20:38:21]MH_SAM_APDU [20:38:21]CAPDU: 80 11 00 00 [20:38:21]Write to MH i2c: E2 08 00 3A 2B 80 11 00 00 00 00 00 00 DF [20:38:21]Write i2c OK [20:38:21]MH_I2C_Read... [20:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:21]Read from MH i2c: E2 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: E2 17 00 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: E2 17 00 3A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 36 [20:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:38:21]wFMCommunicate OK [20:38:21]CreateOFDProtocolMessage done [20:38:21]OFDSenderStorePacket 60055 [20:38:21]StoreOFDPacket docnum=60055 [20:38:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 74 80 07 01 89 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 82 00 00 00 F4 03 04 00 41 B0 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 97 EA 00 00 35 04 06 00 99 9F 84 31 B0 86 70 5F 44 9B DA 7E 2F 7E [20:38:21]CheckFolder [20:38:21]dirname=/storage/ofd_packets [20:38:21]CheckFolder done [20:38:21]ProducePacketName [20:38:21]name=ofd_packets/00060055 [20:38:21]NVStorageSaveData ofd_packets/00060055 [20:38:21]File name is /storage/ofd_packets/00060055 [20:38:21]Write 301 bytes [20:38:21]NVStorageSaveData done [20:38:21]OFDSenderStorePacket done [20:38:21]KKMCreateOFDPacket done [20:38:21]NVStorageSaveData kkm_last_timestamp [20:38:21]File name is /storage/kkm_last_timestamp [20:38:21]Write 4 bytes [20:38:21]NVStorageSaveData done [20:38:21]ExternCall_PrintAddStr [20:38:21]wPrintStart [20:38:21]Write to MH i2c: 01 00 00 3B 2B 66 [20:38:21]Write i2c OK [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: 01 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: 01 07 00 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: 01 07 00 3B 2B 00 00 00 00 00 FF 0F 7B [20:38:21]RasterBufferAndPrint [20:38:21]line Счет N : (1)3309232 [20:38:21]line ИНН: 02508201610067 [20:38:21]line Контрольно-Кассовый Чек [20:38:21]line ПРОДАЖА [20:38:21]line ТРК (МРК, ГНК) : 33 [20:38:21]line Товар: 2710124500 [20:38:21]line Аи-95-К-3 [20:38:21]line 40.440 * 74.20 [20:38:21]line = 3000.65 [20:38:21]line НДС 12% НСП 1% [20:38:21]line > о реализуемом товаре [20:38:21]line ОКРУГЛЕНИЕ: -0.65 [20:38:21]line ИТОГО: 3000.00 [20:38:21]line Внесено: 3000.00 [20:38:21]line СДАЧА: 0.00 [20:38:21]line НСП 1% : 26.55 [20:38:21]line НДС 12% : 318.65 [20:38:21]line Наличными: 3000.00 [20:38:21]line Безнал.: 0.00 [20:38:21]line Место: АЗС № 87 "Партнер Нефть" [20:38:21]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [20:38:21]line СНО: Общий режим [20:38:21]line Чек 130 24.10.2024 20:38 [20:38:21]line Смена: 529 ФФД: 1.0 [20:38:21]line ЗНМ: 0300000084 [20:38:21]line РНМ: 0000000000091622 [20:38:21]line Версия ККМ: 001 [20:38:21]line ФМ: 0000000000874674 [20:38:21]line ФД: 60055 [20:38:21]line ФПД: 168910396698758 [20:38:21]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203825&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60055&fm=168910396698758&tin=02508201610067®Number=0000000000091622&sum=300000 [20:38:22]OFD Sender: Processing packet 60055 [packets to send 30, broken 29] [20:38:22]ProducePacketName [20:38:22]name=ofd_packets/00060055 [20:38:22]OFD Sender: To server: pG, [20:38:22]CommunicateWithHost lk.salyk.kg:30040 [20:38:22]ConnectInit lk.salyk.kg [20:38:22]written 0, free lines is 4095 [20:38:22]Connected sock=10 [20:38:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 74 80 07 01 89 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 82 00 00 00 F4 03 04 00 41 B0 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 97 EA 00 00 35 04 06 00 99 9F 84 31 B0 86 70 5F 44 9B DA 7E 2F 7E [20:38:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 AF F1 47 00 97 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 34 36 37 34 10 04 04 00 97 EA 00 00 F4 03 04 00 31 56 1A 67 B6 04 01 00 00 F2 C5 4B 84 67 00 AE B6 [20:38:22]CommunicateWithHost err = 0 [20:38:22]CheckOFDResponse [20:38:22]1017 (14) - 77093643461234 [20:38:22]1041 (16) - 0000000000874674 [20:38:22]1040 (4) - 60055 [20:38:22]1012 (4) - 24.10.2024 14:14 [20:38:22]1206 (1) - 0 [20:38:22]OFD Sender: Remove packet 60055 [20:38:22]ProducePacketName [20:38:22]name=ofd_packets/00060055 [20:38:22]NVStorageDeleteData [20:38:22]Write to MH i2c: 01 00 00 66 2B 91 [20:38:22]Write i2c OK [20:38:22]MH_I2C_Read... [20:38:22]Read from MH i2c: 01 [20:38:22]MH_I2C_Read... [20:38:22]Read from MH i2c: 01 07 00 [20:38:22]MH_I2C_Read... [20:38:22]Read from MH i2c: 01 07 00 66 2B 00 00 00 00 00 D4 0C 78 [20:38:22]RasterBufferAndPrint [20:38:22]line [20:38:22]line [20:38:22]line [20:38:22]line [20:38:22]line [20:38:22]written 0, free lines is 3288 [20:38:22]MH_Cut [20:38:22]Write to MH i2c: D1 01 00 6D 2B 01 6A [20:38:22]Write i2c OK [20:38:22]MH_I2C_Read... [20:38:22]Read from MH i2c: D1 [20:38:22]MH_I2C_Read... [20:38:22]Read from MH i2c: D1 01 00 [20:38:22]MH_I2C_Read... [20:38:22]Read from MH i2c: D1 01 00 6D 2B 00 69 [20:38:22]Write to MH i2c: 01 00 00 6E 2B 99 [20:38:22]Write i2c OK [20:38:22]MH_I2C_Read... [20:38:23]OFD Sender: No OFD packet to send [20:38:23]*** Cut start [20:38:23]*** Partial cut [20:38:23]*** CUTSNS_PIN = 1 [20:38:23]*** CUTSNS_PIN = 0 [20:38:23]*** Brake cut motor [20:38:24]Read from MH i2c: 01 [20:38:24]MH_I2C_Read... [20:38:24]*** Stop cut motor [20:38:24]*** Cut end [20:38:24]Read from MH i2c: 01 07 00 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: 01 07 00 6E 2B 00 00 00 00 00 FF 0F AE [20:38:24]process_action close_receipt done [20:38:24]requested_data is exist [20:38:24]produce_requested_data [20:38:24]requested_item fm.sn is exist - process it [20:38:24]wFMCommunicate request_size=4 [20:38:24]MH_SAM_APDU [20:38:24]CAPDU: 80 11 00 00 [20:38:24]Write to MH i2c: E2 08 00 6F 2B 80 11 00 00 00 00 00 00 14 [20:38:24]Write i2c OK [20:38:24]MH_I2C_Read... [20:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:24]Read from MH i2c: E2 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: E2 17 00 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: E2 17 00 6F 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 6B [20:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:38:24]wFMCommunicate OK [20:38:24]requested_item fd.num is exist - process it [20:38:24]SAM_PROTO_GetFieldsCounters [20:38:24]wFMCommunicate request_size=4 [20:38:24]MH_SAM_APDU [20:38:24]CAPDU: 80 13 00 00 [20:38:24]Write to MH i2c: E2 08 00 70 2B 80 13 00 00 00 00 00 00 17 [20:38:24]Write i2c OK [20:38:24]MH_I2C_Read... [20:38:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:24]Read from MH i2c: E2 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: E2 62 00 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: E2 62 00 70 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 97 EA 00 00 0E 04 04 00 11 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 51 [20:38: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 97 EA 00 00 0E 04 04 00 11 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 [20:38:24]wFMCommunicate OK [20:38:24]SAM_PROTO_GetFieldsCounters done [20:38:24]requested_item shift.num is exist - process it [20:38:24]requested_item shift.opened is exist - process it [20:38:24]req_shift_opened [20:38:24]FM_GetShiftState [20:38:24]SAM_PROTO_GetShiftState [20:38:24]wFMCommunicate request_size=4 [20:38:24]MH_SAM_APDU [20:38:24]CAPDU: 80 13 01 00 [20:38:24]Write to MH i2c: E2 08 00 71 2B 80 13 01 00 00 00 00 00 19 [20:38:24]Write i2c OK [20:38:24]MH_I2C_Read... [20:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:24]Read from MH i2c: E2 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: E2 0E 00 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: E2 0E 00 71 2B 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 4C [20:38:24]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:38:24]wFMCommunicate OK [20:38:24]SAM_PROTO_GetShiftState done [20:38:24]FM_GetShiftState done [20:38:24]req_shift_opened done [20:38:24]requested_item shift.open_date is exist - process it [20:38:24]req_shift_open_date [20:38:24]req_shift_open_date done [20:38:24]produce_requested_data done [20:38:24]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60055,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [20:38:24]process_action_free close_receipt [20:38:24]json_value_free [20:38:24]json_value_free done [20:38:24]process_json_proto returns [20:38:24]Send response to host [20:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60055,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [20:38:24]free response buf [20:38:24]execute_script done [20:38:24]execute_script returns [20:38:24]free content buf [20:38:24]Sock 7.Close socket [20:38:24]Sock 7.Thread stoped [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46: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:43]OFD Sender: No OFD packet to send [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:10]accept exits with 9 [20:50:10]New connection [20:50:10]New thread 3067108708 created [20:50:10]Thread 3067252068 joined [20:50:10]Waiting for new connection... [20:50:10] Sock 9.Parse request [20:50:10]Sock 9.Check first char [20:50:10]Sock 9.First char is OK [20:50:10]request: POST /json_proto HTTP/1.0 [20:50:10]Method: POST [20:50:10]URL: /json_proto [20:50:10]Method is POST - this is cgi request [20:50:10]url: /json_proto [20:50:10]query_string will be loaded in cgi processing [20:50:10]execute_cgi json_proto POST (null) [20:50:10]execute_cgi path=json_proto method=POST [20:50:10]POST find Content-Length [20:50:10]Host: 172.17.42.196:8080 [20:50:10]Content-Length: 623 [20:50:10]Content-Type: application/json [20:50:10] [20:50:10]POST finish read [20:50:10]Found Content-Length = 623 [20:50:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199830", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:10]execute_script... [20:50:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199830", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:10]POST & json_proto [20:50:10]process_json_proto [20:50:10]json parsed OK: [20:50:10]protocol is kg_v1.0 [20:50:10]action value=close_receipt [20:50:10]process_action close_receipt [20:50:10]cmd_close_receipt [20:50:10]MH_GetDate [20:50:10]Write to MH i2c: F0 00 00 72 2B 8C [20:50:10]Write i2c OK [20:50:10]MH_I2C_Read... [20:50:10]Read from MH i2c: F0 [20:50:10]MH_I2C_Read... [20:50:10]Read from MH i2c: F0 09 00 [20:50:10]MH_I2C_Read... [20:50:10]Read from MH i2c: F0 09 00 72 2B 00 07 B3 1A 67 FF C4 6B 64 62 [20:50:10]GetLastDocTimeStamp 1729802305 [20:50:10]current date 1729803015 [20:50:10]FM_GetShiftState [20:50:10]SAM_PROTO_GetShiftState [20:50:10]wFMCommunicate request_size=4 [20:50:10]MH_SAM_APDU [20:50:10]CAPDU: 80 13 01 00 [20:50:10]Write to MH i2c: E2 08 00 73 2B 80 13 01 00 00 00 00 00 1B [20:50:10]Write i2c OK [20:50:10]MH_I2C_Read... [20:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:10]Read from MH i2c: E2 [20:50:10]MH_I2C_Read... [20:50:10]Read from MH i2c: E2 0E 00 [20:50:10]MH_I2C_Read... [20:50:10]Read from MH i2c: E2 0E 00 73 2B 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 4E [20:50:10]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:50:10]wFMCommunicate OK [20:50:10]SAM_PROTO_GetShiftState done [20:50:10]FM_GetShiftState done [20:50:10]opened in 1729730575 [20:50:10]opened+sec_in_day 1729816975 [20:50:10]quantity*price = 14400 [20:50:10]sum+1 = 14401 [20:50:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 131 24.10.2024 20:50 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60056 ФПД: 148869770699851 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205015&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60056&fm=148869770699851&tin=02508201610067®Number=0000000000091622&sum=14400 0 [20:50:11]StoreToDocumentArchive [20:50:11]shift 529 fd 60056 [20:50:11]save to /storage/0529/doc_00060056 [20:50:11]save last doc name /storage/0529/doc_00060056 to /storage/kkm_last_doc_name [20:50:11]save OK [20:50:11]Clear old archive folders... [20:50:11]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:50:11]tlvbuf is 00DAF3B0 [20:50:11]SAM_PROTO_ClearQueue [20:50:11]wFMCommunicate request_size=4 [20:50:11]MH_SAM_APDU [20:50:11]CAPDU: 80 09 00 00 [20:50:11]Write to MH i2c: E2 08 00 80 2B 80 09 00 00 00 00 00 00 1D [20:50:11]Write i2c OK [20:50:11]MH_I2C_Read... [20:50:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:11]Read from MH i2c: E2 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: E2 03 00 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: E2 03 00 80 2B 00 90 00 1F [20:50:11]RAPDU: 90 00 [20:50:11]wFMCommunicate OK [20:50:11]SAM_PROTO_ClearQueue done [20:50:11]KKMCreateOFDPacket [20:50:11]OFDProtocolAddRootSTLVToBuf [20:50:11]FM_MakeSignedData [20:50:11]FM_MakeSignedData [20:50:11]SAM_PROTO_SignData [20:50:11]wFMCommunicate request_size=4 [20:50:11]MH_SAM_APDU [20:50:11]CAPDU: 80 0D 01 02 [20:50:11]Write to MH i2c: E2 08 00 81 2B 80 0D 01 02 00 00 00 00 25 [20:50:11]Write i2c OK [20:50:11]MH_I2C_Read... [20:50:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:11]Read from MH i2c: E2 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: E2 03 00 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: E2 03 00 81 2B 00 90 00 20 [20:50:11]RAPDU: 90 00 [20:50:11]wFMCommunicate OK [20:50:11]wFMCommunicate request_size=255 [20:50:11]MH_SAM_APDU [20:50:11]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 07 B3 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [20:50:11]Write to MH i2c: E2 02 01 82 2B 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 07 B3 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 F6 [20:50:11]Write i2c OK [20:50:11]MH_I2C_Read... [20:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:11]Read from MH i2c: E2 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: E2 03 00 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: E2 03 00 82 2B 00 90 00 21 [20:50:11]RAPDU: 90 00 [20:50:11]wFMCommunicate OK [20:50:11]wFMCommunicate request_size=34 [20:50:11]MH_SAM_APDU [20:50:11]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 98 EA 00 00 35 04 06 00 87 65 71 CC E4 4B [20:50:11]Write to MH i2c: E2 25 00 83 2B 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 98 EA 00 00 35 04 06 00 87 65 71 CC E4 4B 00 00 C7 [20:50:11]Write i2c OK [20:50:11]MH_I2C_Read... [20:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:11]Read from MH i2c: E2 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: E2 03 00 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: E2 03 00 83 2B 00 90 00 22 [20:50:11]RAPDU: 90 00 [20:50:11]wFMCommunicate OK [20:50:11]wFMCommunicate request_size=4 [20:50:11]MH_SAM_APDU [20:50:11]CAPDU: 80 0D 03 02 [20:50:11]Write to MH i2c: E2 08 00 84 2B 80 0D 03 02 00 00 00 00 2A [20:50:11]Write i2c OK [20:50:11]MH_I2C_Read... [20:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:11]Read from MH i2c: E2 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: E2 0B 00 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: E2 0B 00 84 2B 00 D3 05 68 DE 9A 42 01 FC 90 00 22 [20:50:11]RAPDU: D3 05 68 DE 9A 42 01 FC 90 00 [20:50:11]wFMCommunicate OK [20:50:11]SAM_PROTO_SignData done [20:50:11]FM_MakeSignedData done [20:50:11]CreateOFDProtocolMessage [20:50:11]wFMCommunicate request_size=4 [20:50:11]MH_SAM_APDU [20:50:11]CAPDU: 80 11 00 00 [20:50:11]Write to MH i2c: E2 08 00 85 2B 80 11 00 00 00 00 00 00 2A [20:50:11]Write i2c OK [20:50:11]MH_I2C_Read... [20:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:11]Read from MH i2c: E2 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: E2 17 00 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: E2 17 00 85 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 81 [20:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:50:11]wFMCommunicate OK [20:50:11]CreateOFDProtocolMessage done [20:50:11]OFDSenderStorePacket 60056 [20:50:11]StoreOFDPacket docnum=60056 [20:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 DD EF 1F 01 75 EC 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 07 B3 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 98 EA 00 00 35 04 06 00 87 65 71 CC E4 4B D3 05 68 DE 9A 42 01 FC [20:50:11]CheckFolder [20:50:11]dirname=/storage/ofd_packets [20:50:11]CheckFolder done [20:50:11]ProducePacketName [20:50:11]name=ofd_packets/00060056 [20:50:11]NVStorageSaveData ofd_packets/00060056 [20:50:11]File name is /storage/ofd_packets/00060056 [20:50:11]Write 325 bytes [20:50:11]NVStorageSaveData done [20:50:11]OFDSenderStorePacket done [20:50:11]KKMCreateOFDPacket done [20:50:11]NVStorageSaveData kkm_last_timestamp [20:50:11]File name is /storage/kkm_last_timestamp [20:50:11]Write 4 bytes [20:50:11]NVStorageSaveData done [20:50:11]ExternCall_PrintAddStr [20:50:11]wPrintStart [20:50:11]Write to MH i2c: 01 00 00 86 2B B1 [20:50:11]Write i2c OK [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: 01 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: 01 07 00 [20:50:11]MH_I2C_Read... [20:50:11]Read from MH i2c: 01 07 00 86 2B 00 00 00 00 00 FF 0F C6 [20:50:11]RasterBufferAndPrint [20:50:11]line Счет N : (3)199830 [20:50:11]line ИНН: 02508201610067 [20:50:11]line Контрольно-Кассовый Чек [20:50:11]line ПРОДАЖА [20:50:11]line Товар: 48743587 [20:50:11]line Сигареты Winston XStyle Silver [20:50:11]line 1.000 * 144.00 [20:50:11]line = 144.00 [20:50:11]line НДС 12% НСП 1% [20:50:11]line > о реализуемом товаре [20:50:11]line ИТОГО: 144.00 [20:50:11]line НСП 1% : 1.27 [20:50:11]line НДС 12% : 15.29 [20:50:11]line Наличными: 144.00 [20:50:11]line Безнал.: 0.00 [20:50:11]line Место: АЗС № 87 "Партнер Нефть" [20:50:11]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [20:50:11]line СНО: Общий режим [20:50:11]line Чек 131 24.10.2024 20:50 [20:50:11]line Смена: 529 ФФД: 1.0 [20:50:11]line ЗНМ: 0300000084 [20:50:11]line РНМ: 0000000000091622 [20:50:11]line Версия ККМ: 001 [20:50:11]line ФМ: 0000000000874674 [20:50:11]line ФД: 60056 [20:50:11]line ФПД: 148869770699851 [20:50:11]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205015&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60056&fm=148869770699851&tin=02508201610067®Number=0000000000091622&sum=14400 [20:50:12]OFD Sender: Processing packet 60056 [packets to send 30, broken 29] [20:50:12]ProducePacketName [20:50:12]name=ofd_packets/00060056 [20:50:12]OFD Sender: To server: pG, [20:50:12]CommunicateWithHost lk.salyk.kg:30040 [20:50:12]ConnectInit lk.salyk.kg [20:50:12]line 0 [20:50:12]written 0, free lines is 4095 [20:50:12]Connected sock=10 [20:50:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 DD EF 1F 01 75 EC 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 07 B3 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 98 EA 00 00 35 04 06 00 87 65 71 CC E4 4B D3 05 68 DE 9A 42 01 FC [20:50:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 DC 81 47 00 C3 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 34 36 37 34 10 04 04 00 98 EA 00 00 F4 03 04 00 F7 58 1A 67 B6 04 01 00 00 22 7A 81 21 D0 F2 8D B1 [20:50:12]CommunicateWithHost err = 0 [20:50:12]CheckOFDResponse [20:50:12]1017 (14) - 77093643461234 [20:50:12]1041 (16) - 0000000000874674 [20:50:12]1040 (4) - 60056 [20:50:12]1012 (4) - 24.10.2024 14:25 [20:50:12]1206 (1) - 0 [20:50:12]OFD Sender: Remove packet 60056 [20:50:12]ProducePacketName [20:50:12]name=ofd_packets/00060056 [20:50:12]NVStorageDeleteData [20:50:12]Write to MH i2c: 01 00 00 AF 2B DA [20:50:12]Write i2c OK [20:50:12]MH_I2C_Read... [20:50:12]Read from MH i2c: 01 [20:50:12]MH_I2C_Read... [20:50:12]Read from MH i2c: 01 07 00 [20:50:12]MH_I2C_Read... [20:50:12]Read from MH i2c: 01 07 00 AF 2B 00 00 00 00 00 D4 0C C1 [20:50:12]RasterBufferAndPrint [20:50:12]line [20:50:12]line [20:50:12]line [20:50:12]line [20:50:12]line [20:50:12]written 0, free lines is 3291 [20:50:12]MH_Cut [20:50:12]Write to MH i2c: D1 01 00 B6 2B 01 B3 [20:50:12]Write i2c OK [20:50:12]MH_I2C_Read... [20:50:12]Read from MH i2c: D1 [20:50:12]MH_I2C_Read... [20:50:12]Read from MH i2c: D1 01 00 [20:50:12]MH_I2C_Read... [20:50:12]Read from MH i2c: D1 01 00 B6 2B 00 B2 [20:50:12]Write to MH i2c: 01 00 00 B7 2B E2 [20:50:12]Write i2c OK [20:50:12]MH_I2C_Read... [20:50:12]OFD Sender: No OFD packet to send [20:50:13]*** Cut start [20:50:13]*** Partial cut [20:50:13]*** CUTSNS_PIN = 1 [20:50:13]*** CUTSNS_PIN = 0 [20:50:13]*** Brake cut motor [20:50:13]Read from MH i2c: 01 [20:50:13]MH_I2C_Read... [20:50:13]*** Stop cut motor [20:50:13]*** Cut end [20:50:13]Read from MH i2c: 01 07 00 [20:50:13]MH_I2C_Read... [20:50:13]Read from MH i2c: 01 07 00 B7 2B 00 00 00 00 00 FF 0F F7 [20:50:13]process_action close_receipt done [20:50:13]requested_data is exist [20:50:13]produce_requested_data [20:50:13]requested_item fm.sn is exist - process it [20:50:13]wFMCommunicate request_size=4 [20:50:13]MH_SAM_APDU [20:50:13]CAPDU: 80 11 00 00 [20:50:13]Write to MH i2c: E2 08 00 B8 2B 80 11 00 00 00 00 00 00 5D [20:50:13]Write i2c OK [20:50:13]MH_I2C_Read... [20:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:14]Read from MH i2c: E2 [20:50:14]MH_I2C_Read... [20:50:14]Read from MH i2c: E2 17 00 [20:50:14]MH_I2C_Read... [20:50:14]Read from MH i2c: E2 17 00 B8 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 B4 [20:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [20:50:14]wFMCommunicate OK [20:50:14]requested_item fd.num is exist - process it [20:50:14]SAM_PROTO_GetFieldsCounters [20:50:14]wFMCommunicate request_size=4 [20:50:14]MH_SAM_APDU [20:50:14]CAPDU: 80 13 00 00 [20:50:14]Write to MH i2c: E2 08 00 B9 2B 80 13 00 00 00 00 00 00 60 [20:50:14]Write i2c OK [20:50:14]MH_I2C_Read... [20:50:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:14]Read from MH i2c: E2 [20:50:14]MH_I2C_Read... [20:50:14]Read from MH i2c: E2 62 00 [20:50:14]MH_I2C_Read... [20:50:14]Read from MH i2c: E2 62 00 B9 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 98 EA 00 00 0E 04 04 00 11 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 9E [20:50: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 98 EA 00 00 0E 04 04 00 11 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 [20:50:14]wFMCommunicate OK [20:50:14]SAM_PROTO_GetFieldsCounters done [20:50:14]requested_item shift.num is exist - process it [20:50:14]requested_item shift.opened is exist - process it [20:50:14]req_shift_opened [20:50:14]FM_GetShiftState [20:50:14]SAM_PROTO_GetShiftState [20:50:14]wFMCommunicate request_size=4 [20:50:14]MH_SAM_APDU [20:50:14]CAPDU: 80 13 01 00 [20:50:14]Write to MH i2c: E2 08 00 BA 2B 80 13 01 00 00 00 00 00 62 [20:50:14]Write i2c OK [20:50:14]MH_I2C_Read... [20:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:14]Read from MH i2c: E2 [20:50:14]MH_I2C_Read... [20:50:14]Read from MH i2c: E2 0E 00 [20:50:14]MH_I2C_Read... [20:50:14]Read from MH i2c: E2 0E 00 BA 2B 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 95 [20:50:14]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [20:50:14]wFMCommunicate OK [20:50:14]SAM_PROTO_GetShiftState done [20:50:14]FM_GetShiftState done [20:50:14]req_shift_opened done [20:50:14]requested_item shift.open_date is exist - process it [20:50:14]req_shift_open_date [20:50:14]req_shift_open_date done [20:50:14]produce_requested_data done [20:50:14]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60056,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [20:50:14]process_action_free close_receipt [20:50:14]json_value_free [20:50:14]json_value_free done [20:50:14]process_json_proto returns [20:50:14]Send response to host [20:50:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60056,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [20:50:14]free response buf [20:50:14]execute_script done [20:50:14]execute_script returns [20:50:14]free content buf [20:50:14]Sock 9.Close socket [20:50:14]Sock 9.Thread stoped [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:46]accept exits with 7 [21:20:46]New connection [21:20:46]New thread 3067252068 created [21:20:46]Thread 3067108708 joined [21:20:46]Waiting for new connection... [21:20:46] Sock 7.Parse request [21:20:46]Sock 7.Check first char [21:20:46]Sock 7.First char is OK [21:20:46]request: POST /json_proto HTTP/1.0 [21:20:46]Method: POST [21:20:46]URL: /json_proto [21:20:46]Method is POST - this is cgi request [21:20:46]url: /json_proto [21:20:46]query_string will be loaded in cgi processing [21:20:46]execute_cgi json_proto POST (null) [21:20:46]execute_cgi path=json_proto method=POST [21:20:46]POST find Content-Length [21:20:46]Host: 172.17.42.196:8080 [21:20:46]Content-Length: 650 [21:20:46]Content-Type: application/json [21:20:46] [21:20:46]POST finish read [21:20:46]Found Content-Length = 650 [21:20:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199831", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:46]execute_script... [21:20:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199831", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:46]POST & json_proto [21:20:46]process_json_proto [21:20:46]json parsed OK: [21:20:46]protocol is kg_v1.0 [21:20:46]action value=close_receipt [21:20:46]process_action close_receipt [21:20:46]cmd_close_receipt [21:20:46]MH_GetDate [21:20:46]Write to MH i2c: F0 00 00 BB 2B D5 [21:20:46]Write i2c OK [21:20:46]MH_I2C_Read... [21:20:46]Read from MH i2c: F0 [21:20:46]MH_I2C_Read... [21:20:46]Read from MH i2c: F0 09 00 [21:20:46]MH_I2C_Read... [21:20:46]Read from MH i2c: F0 09 00 BB 2B 00 34 BA 1A 67 FF C4 6B 64 DF [21:20:46]GetLastDocTimeStamp 1729803015 [21:20:46]current date 1729804852 [21:20:46]FM_GetShiftState [21:20:46]SAM_PROTO_GetShiftState [21:20:46]wFMCommunicate request_size=4 [21:20:46]MH_SAM_APDU [21:20:46]CAPDU: 80 13 01 00 [21:20:46]Write to MH i2c: E2 08 00 BC 2B 80 13 01 00 00 00 00 00 64 [21:20:46]Write i2c OK [21:20:46]MH_I2C_Read... [21:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:46]Read from MH i2c: E2 [21:20:46]MH_I2C_Read... [21:20:46]Read from MH i2c: E2 0E 00 [21:20:46]MH_I2C_Read... [21:20:46]Read from MH i2c: E2 0E 00 BC 2B 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 97 [21:20:46]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:20:46]wFMCommunicate OK [21:20:46]SAM_PROTO_GetShiftState done [21:20:46]FM_GetShiftState done [21:20:46]opened in 1729730575 [21:20:46]opened+sec_in_day 1729816975 [21:20:46]quantity*price = 10500 [21:20:46]sum+1 = 10501 [21:20:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 132 24.10.2024 21:20 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60057 ФПД: 258993872048334 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212052&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60057&fm=258993872048334&tin=02508201610067®Number=0000000000091622&sum=10500 0 [21:20:48]StoreToDocumentArchive [21:20:48]shift 529 fd 60057 [21:20:48]save to /storage/0529/doc_00060057 [21:20:48]save last doc name /storage/0529/doc_00060057 to /storage/kkm_last_doc_name [21:20:48]save OK [21:20:48]Clear old archive folders... [21:20:48]ProcessDocumentItem done err = 0, tmpTLVsize=282 [21:20:48]tlvbuf is 00D90080 [21:20:48]SAM_PROTO_ClearQueue [21:20:48]wFMCommunicate request_size=4 [21:20:48]MH_SAM_APDU [21:20:48]CAPDU: 80 09 00 00 [21:20:48]Write to MH i2c: E2 08 00 C9 2B 80 09 00 00 00 00 00 00 66 [21:20:48]Write i2c OK [21:20:48]MH_I2C_Read... [21:20:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:48]Read from MH i2c: E2 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: E2 03 00 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: E2 03 00 C9 2B 00 90 00 68 [21:20:48]RAPDU: 90 00 [21:20:48]wFMCommunicate OK [21:20:48]SAM_PROTO_ClearQueue done [21:20:48]KKMCreateOFDPacket [21:20:48]OFDProtocolAddRootSTLVToBuf [21:20:48]FM_MakeSignedData [21:20:48]FM_MakeSignedData [21:20:48]SAM_PROTO_SignData [21:20:48]wFMCommunicate request_size=4 [21:20:48]MH_SAM_APDU [21:20:48]CAPDU: 80 0D 01 02 [21:20:48]Write to MH i2c: E2 08 00 CA 2B 80 0D 01 02 00 00 00 00 6E [21:20:48]Write i2c OK [21:20:48]MH_I2C_Read... [21:20:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:48]Read from MH i2c: E2 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: E2 03 00 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: E2 03 00 CA 2B 00 90 00 69 [21:20:48]RAPDU: 90 00 [21:20:48]wFMCommunicate OK [21:20:48]wFMCommunicate request_size=255 [21:20:48]MH_SAM_APDU [21:20:48]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 34 BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 [21:20:48]Write to MH i2c: E2 02 01 CB 2B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 34 BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 00 00 37 [21:20:48]Write i2c OK [21:20:48]MH_I2C_Read... [21:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:48]Read from MH i2c: E2 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: E2 03 00 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: E2 03 00 CB 2B 00 90 00 6A [21:20:48]RAPDU: 90 00 [21:20:48]wFMCommunicate OK [21:20:48]wFMCommunicate request_size=41 [21:20:48]MH_SAM_APDU [21:20:48]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 99 EA 00 00 35 04 06 00 EB 8D B5 BE 10 CE [21:20:48]Write to MH i2c: E2 2C 00 CC 2B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 99 EA 00 00 35 04 06 00 EB 8D B5 BE 10 CE 00 00 90 [21:20:48]Write i2c OK [21:20:48]MH_I2C_Read... [21:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:48]Read from MH i2c: E2 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: E2 03 00 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: E2 03 00 CC 2B 00 90 00 6B [21:20:48]RAPDU: 90 00 [21:20:48]wFMCommunicate OK [21:20:48]wFMCommunicate request_size=4 [21:20:48]MH_SAM_APDU [21:20:48]CAPDU: 80 0D 03 02 [21:20:48]Write to MH i2c: E2 08 00 CD 2B 80 0D 03 02 00 00 00 00 73 [21:20:48]Write i2c OK [21:20:48]MH_I2C_Read... [21:20:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:48]Read from MH i2c: E2 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: E2 0B 00 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: E2 0B 00 CD 2B 00 17 C6 7B 99 E1 3B 14 DD 90 00 72 [21:20:48]RAPDU: 17 C6 7B 99 E1 3B 14 DD 90 00 [21:20:48]wFMCommunicate OK [21:20:48]SAM_PROTO_SignData done [21:20:48]FM_MakeSignedData done [21:20:48]CreateOFDProtocolMessage [21:20:48]wFMCommunicate request_size=4 [21:20:48]MH_SAM_APDU [21:20:48]CAPDU: 80 11 00 00 [21:20:48]Write to MH i2c: E2 08 00 CE 2B 80 11 00 00 00 00 00 00 73 [21:20:48]Write i2c OK [21:20:48]MH_I2C_Read... [21:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:48]Read from MH i2c: E2 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: E2 17 00 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: E2 17 00 CE 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 CA [21:20:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:20:48]wFMCommunicate OK [21:20:48]CreateOFDProtocolMessage done [21:20:48]OFDSenderStorePacket 60057 [21:20:48]StoreOFDPacket docnum=60057 [21:20:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 59 58 26 01 5A 3E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 34 BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 99 EA 00 00 35 04 06 00 EB 8D B5 BE 10 CE 17 C6 7B 99 E1 3B 14 DD [21:20:48]CheckFolder [21:20:48]dirname=/storage/ofd_packets [21:20:48]CheckFolder done [21:20:48]ProducePacketName [21:20:48]name=ofd_packets/00060057 [21:20:48]NVStorageSaveData ofd_packets/00060057 [21:20:48]File name is /storage/ofd_packets/00060057 [21:20:48]Write 332 bytes [21:20:48]NVStorageSaveData done [21:20:48]OFDSenderStorePacket done [21:20:48]KKMCreateOFDPacket done [21:20:48]NVStorageSaveData kkm_last_timestamp [21:20:48]File name is /storage/kkm_last_timestamp [21:20:48]Write 4 bytes [21:20:48]NVStorageSaveData done [21:20:48]ExternCall_PrintAddStr [21:20:48]wPrintStart [21:20:48]Write to MH i2c: 01 00 00 CF 2B FA [21:20:48]Write i2c OK [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: 01 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: 01 07 00 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: 01 07 00 CF 2B 00 00 00 00 00 FF 0F 0F [21:20:48]RasterBufferAndPrint [21:20:48]line Счет N : (3)199831 [21:20:48]line ИНН: 02508201610067 [21:20:48]line Контрольно-Кассовый Чек [21:20:48]line ПРОДАЖА [21:20:48]line Товар: 2000034730018 [21:20:48]line Кофе Американо (GABB TRADE) [21:20:48]line 1.000 * 105.00 [21:20:48]line = 105.00 [21:20:48]line НДС 12% НСП 1% [21:20:48]line > о реализуемом товаре [21:20:48]line ИТОГО: 105.00 [21:20:48]line НСП 1% : 0.93 [21:20:48]line НДС 12% : 11.15 [21:20:48]line Наличными: 105.00 [21:20:48]line Безнал.: 0.00 [21:20:48]line Место: АЗС № 87 "Партнер Нефть" [21:20:48]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [21:20:48]line СНО: Общий режим [21:20:48]line Чек 132 24.10.2024 21:20 [21:20:48]line Смена: 529 ФФД: 1.0 [21:20:48]line ЗНМ: 0300000084 [21:20:48]line РНМ: 0000000000091622 [21:20:48]line Версия ККМ: 001 [21:20:48]line ФМ: 0000000000874674 [21:20:48]line ФД: 60057 [21:20:48]line ФПД: 258993872048334 [21:20:48]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212052&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60057&fm=258993872048334&tin=02508201610067®Number=0000000000091622&sum=10500 [21:20:48]line 0 [21:20:48]OFD Sender: Processing packet 60057 [packets to send 30, broken 29] [21:20:48]ProducePacketName [21:20:48]name=ofd_packets/00060057 [21:20:48]OFD Sender: To server: pG, [21:20:48]CommunicateWithHost lk.salyk.kg:30040 [21:20:48]ConnectInit lk.salyk.kg [21:20:48]written 0, free lines is 4095 [21:20:49]Connected sock=10 [21:20:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 59 58 26 01 5A 3E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 34 BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 99 EA 00 00 35 04 06 00 EB 8D B5 BE 10 CE 17 C6 7B 99 E1 3B 14 DD [21:20:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 40 DB 47 00 AE 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 34 36 37 34 10 04 04 00 99 EA 00 00 F4 03 04 00 23 60 1A 67 B6 04 01 00 00 36 57 66 90 EA FA 40 41 [21:20:49]CommunicateWithHost err = 0 [21:20:49]CheckOFDResponse [21:20:49]1017 (14) - 77093643461234 [21:20:49]1041 (16) - 0000000000874674 [21:20:49]1040 (4) - 60057 [21:20:49]1012 (4) - 24.10.2024 14:56 [21:20:49]1206 (1) - 0 [21:20:49]OFD Sender: Remove packet 60057 [21:20:49]ProducePacketName [21:20:49]name=ofd_packets/00060057 [21:20:49]NVStorageDeleteData [21:20:49]Write to MH i2c: 01 00 00 F8 2B 23 [21:20:49]Write i2c OK [21:20:49]MH_I2C_Read... [21:20:49]Read from MH i2c: 01 [21:20:49]MH_I2C_Read... [21:20:49]Read from MH i2c: 01 07 00 [21:20:49]MH_I2C_Read... [21:20:49]Read from MH i2c: 01 07 00 F8 2B 00 00 00 00 00 E1 0C 17 [21:20:49]RasterBufferAndPrint [21:20:49]line [21:20:49]line [21:20:49]line [21:20:49]line [21:20:49]line [21:20:49]written 0, free lines is 3303 [21:20:49]MH_Cut [21:20:49]Write to MH i2c: D1 01 00 FF 2B 01 FC [21:20:49]Write i2c OK [21:20:49]MH_I2C_Read... [21:20:49]Read from MH i2c: D1 [21:20:49]MH_I2C_Read... [21:20:49]Read from MH i2c: D1 01 00 [21:20:49]MH_I2C_Read... [21:20:49]Read from MH i2c: D1 01 00 FF 2B 00 FB [21:20:49]Write to MH i2c: 01 00 00 00 2C 2C [21:20:49]Write i2c OK [21:20:49]MH_I2C_Read... [21:20:49]OFD Sender: No OFD packet to send [21:20:50]*** Cut start [21:20:50]*** Partial cut [21:20:50]*** CUTSNS_PIN = 1 [21:20:50]*** CUTSNS_PIN = 0 [21:20:50]*** Brake cut motor [21:20:50]Read from MH i2c: 01 [21:20:50]MH_I2C_Read... [21:20:50]*** Stop cut motor [21:20:50]*** Cut end [21:20:50]Read from MH i2c: 01 07 00 [21:20:50]MH_I2C_Read... [21:20:50]Read from MH i2c: 01 07 00 00 2C 00 00 00 00 00 FF 0F 41 [21:20:50]process_action close_receipt done [21:20:50]requested_data is exist [21:20:50]produce_requested_data [21:20:50]requested_item fm.sn is exist - process it [21:20:50]wFMCommunicate request_size=4 [21:20:50]MH_SAM_APDU [21:20:50]CAPDU: 80 11 00 00 [21:20:50]Write to MH i2c: E2 08 00 01 2C 80 11 00 00 00 00 00 00 A7 [21:20:50]Write i2c OK [21:20:50]MH_I2C_Read... [21:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:50]Read from MH i2c: E2 [21:20:50]MH_I2C_Read... [21:20:50]Read from MH i2c: E2 17 00 [21:20:50]MH_I2C_Read... [21:20:50]Read from MH i2c: E2 17 00 01 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 FE [21:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:20:50]wFMCommunicate OK [21:20:50]requested_item fd.num is exist - process it [21:20:50]SAM_PROTO_GetFieldsCounters [21:20:50]wFMCommunicate request_size=4 [21:20:50]MH_SAM_APDU [21:20:50]CAPDU: 80 13 00 00 [21:20:50]Write to MH i2c: E2 08 00 02 2C 80 13 00 00 00 00 00 00 AA [21:20:50]Write i2c OK [21:20:50]MH_I2C_Read... [21:20:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:50]Read from MH i2c: E2 [21:20:50]MH_I2C_Read... [21:20:50]Read from MH i2c: E2 62 00 [21:20:50]MH_I2C_Read... [21:20:50]Read from MH i2c: E2 62 00 02 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 99 EA 00 00 0E 04 04 00 11 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 EC [21:20: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 99 EA 00 00 0E 04 04 00 11 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 [21:20:51]wFMCommunicate OK [21:20:51]SAM_PROTO_GetFieldsCounters done [21:20:51]requested_item shift.num is exist - process it [21:20:51]requested_item shift.opened is exist - process it [21:20:51]req_shift_opened [21:20:51]FM_GetShiftState [21:20:51]SAM_PROTO_GetShiftState [21:20:51]wFMCommunicate request_size=4 [21:20:51]MH_SAM_APDU [21:20:51]CAPDU: 80 13 01 00 [21:20:51]Write to MH i2c: E2 08 00 03 2C 80 13 01 00 00 00 00 00 AC [21:20:51]Write i2c OK [21:20:51]MH_I2C_Read... [21:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:51]Read from MH i2c: E2 [21:20:51]MH_I2C_Read... [21:20:51]Read from MH i2c: E2 0E 00 [21:20:51]MH_I2C_Read... [21:20:51]Read from MH i2c: E2 0E 00 03 2C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 DF [21:20:51]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:20:51]wFMCommunicate OK [21:20:51]SAM_PROTO_GetShiftState done [21:20:51]FM_GetShiftState done [21:20:51]req_shift_opened done [21:20:51]requested_item shift.open_date is exist - process it [21:20:51]req_shift_open_date [21:20:51]req_shift_open_date done [21:20:51]produce_requested_data done [21:20:51]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60057,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [21:20:51]process_action_free close_receipt [21:20:51]json_value_free [21:20:51]json_value_free done [21:20:51]process_json_proto returns [21:20:51]Send response to host [21:20:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60057,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [21:20:51]free response buf [21:20:51]execute_script done [21:20:51]execute_script returns [21:20:51]free content buf [21:20:51]Sock 7.Close socket [21:20:51]Sock 7.Thread stoped [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:16]accept exits with 9 [21:21:16]New connection [21:21:16]New thread 3067108708 created [21:21:16]Thread 3067252068 joined [21:21:16]Waiting for new connection... [21:21:16] Sock 9.Parse request [21:21:16]Sock 9.Check first char [21:21:16]Sock 9.First char is OK [21:21:16]request: POST /json_proto HTTP/1.0 [21:21:16]Method: POST [21:21:16]URL: /json_proto [21:21:16]Method is POST - this is cgi request [21:21:16]url: /json_proto [21:21:16]query_string will be loaded in cgi processing [21:21:16]execute_cgi json_proto POST (null) [21:21:16]execute_cgi path=json_proto method=POST [21:21:16]POST find Content-Length [21:21:16]Host: 172.17.42.196:8080 [21:21:16]Content-Length: 733 [21:21:16]Content-Type: application/json [21:21:16] [21:21:16]POST finish read [21:21:16]Found Content-Length = 733 [21:21:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199832", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:16]execute_script... [21:21:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199832", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:16]POST & json_proto [21:21:16]process_json_proto [21:21:16]json parsed OK: [21:21:16]protocol is kg_v1.0 [21:21:16]action value=close_receipt [21:21:16]process_action close_receipt [21:21:16]cmd_close_receipt [21:21:16]MH_GetDate [21:21:16]Write to MH i2c: F0 00 00 04 2C 1F [21:21:16]Write i2c OK [21:21:16]MH_I2C_Read... [21:21:16]Read from MH i2c: F0 [21:21:16]MH_I2C_Read... [21:21:16]Read from MH i2c: F0 09 00 [21:21:16]MH_I2C_Read... [21:21:16]Read from MH i2c: F0 09 00 04 2C 00 52 BA 1A 67 FF C4 6B 64 47 [21:21:16]GetLastDocTimeStamp 1729804852 [21:21:16]current date 1729804882 [21:21:16]FM_GetShiftState [21:21:16]SAM_PROTO_GetShiftState [21:21:16]wFMCommunicate request_size=4 [21:21:16]MH_SAM_APDU [21:21:16]CAPDU: 80 13 01 00 [21:21:16]Write to MH i2c: E2 08 00 05 2C 80 13 01 00 00 00 00 00 AE [21:21:16]Write i2c OK [21:21:16]MH_I2C_Read... [21:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:16]Read from MH i2c: E2 [21:21:16]MH_I2C_Read... [21:21:16]Read from MH i2c: E2 0E 00 [21:21:16]MH_I2C_Read... [21:21:16]Read from MH i2c: E2 0E 00 05 2C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 E1 [21:21:16]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:21:16]wFMCommunicate OK [21:21:16]SAM_PROTO_GetShiftState done [21:21:16]FM_GetShiftState done [21:21:16]opened in 1729730575 [21:21:16]opened+sec_in_day 1729816975 [21:21:16]quantity*price = 24000 [21:21:16]sum+1 = 24001 [21:21:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 133 24.10.2024 21:21 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60058 ФПД: 34443929966951 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212122&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60058&fm=34443929966951&tin=02508201610067®Number=0000000000091622&sum=24000 0 [21:21:18]StoreToDocumentArchive [21:21:18]shift 529 fd 60058 [21:21:18]save to /storage/0529/doc_00060058 [21:21:18]save last doc name /storage/0529/doc_00060058 to /storage/kkm_last_doc_name [21:21:18]save OK [21:21:18]Clear old archive folders... [21:21:18]ProcessDocumentItem done err = 0, tmpTLVsize=305 [21:21:18]tlvbuf is 00DAF5F0 [21:21:18]SAM_PROTO_ClearQueue [21:21:18]wFMCommunicate request_size=4 [21:21:18]MH_SAM_APDU [21:21:18]CAPDU: 80 09 00 00 [21:21:18]Write to MH i2c: E2 08 00 12 2C 80 09 00 00 00 00 00 00 B0 [21:21:18]Write i2c OK [21:21:18]MH_I2C_Read... [21:21:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:18]Read from MH i2c: E2 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 03 00 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 03 00 12 2C 00 90 00 B2 [21:21:18]RAPDU: 90 00 [21:21:18]wFMCommunicate OK [21:21:18]SAM_PROTO_ClearQueue done [21:21:18]KKMCreateOFDPacket [21:21:18]OFDProtocolAddRootSTLVToBuf [21:21:18]FM_MakeSignedData [21:21:18]FM_MakeSignedData [21:21:18]SAM_PROTO_SignData [21:21:18]wFMCommunicate request_size=4 [21:21:18]MH_SAM_APDU [21:21:18]CAPDU: 80 0D 01 02 [21:21:18]Write to MH i2c: E2 08 00 13 2C 80 0D 01 02 00 00 00 00 B8 [21:21:18]Write i2c OK [21:21:18]MH_I2C_Read... [21:21:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:18]Read from MH i2c: E2 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 03 00 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 03 00 13 2C 00 90 00 B3 [21:21:18]RAPDU: 90 00 [21:21:18]wFMCommunicate OK [21:21:18]wFMCommunicate request_size=255 [21:21:18]MH_SAM_APDU [21:21:18]CAPDU: 80 0D 02 02 FA 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 52 BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 [21:21:18]Write to MH i2c: E2 02 01 14 2C 80 0D 02 02 FA 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 52 BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 00 00 30 [21:21:18]Write i2c OK [21:21:18]MH_I2C_Read... [21:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:18]Read from MH i2c: E2 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 03 00 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 03 00 14 2C 00 90 00 B4 [21:21:18]RAPDU: 90 00 [21:21:18]wFMCommunicate OK [21:21:18]wFMCommunicate request_size=64 [21:21:18]MH_SAM_APDU [21:21:18]CAPDU: 80 0D 02 02 3B 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9A EA 00 00 35 04 06 00 1F 53 9A 35 D9 67 [21:21:18]Write to MH i2c: E2 43 00 15 2C 80 0D 02 02 3B 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9A EA 00 00 35 04 06 00 1F 53 9A 35 D9 67 00 00 0C [21:21:18]Write i2c OK [21:21:18]MH_I2C_Read... [21:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:18]Read from MH i2c: E2 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 03 00 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 03 00 15 2C 00 90 00 B5 [21:21:18]RAPDU: 90 00 [21:21:18]wFMCommunicate OK [21:21:18]wFMCommunicate request_size=4 [21:21:18]MH_SAM_APDU [21:21:18]CAPDU: 80 0D 03 02 [21:21:18]Write to MH i2c: E2 08 00 16 2C 80 0D 03 02 00 00 00 00 BD [21:21:18]Write i2c OK [21:21:18]MH_I2C_Read... [21:21:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:18]Read from MH i2c: E2 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 0B 00 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 0B 00 16 2C 00 48 D7 4B 2E 80 44 E0 1C 90 00 16 [21:21:18]RAPDU: 48 D7 4B 2E 80 44 E0 1C 90 00 [21:21:18]wFMCommunicate OK [21:21:18]SAM_PROTO_SignData done [21:21:18]FM_MakeSignedData done [21:21:18]CreateOFDProtocolMessage [21:21:18]wFMCommunicate request_size=4 [21:21:18]MH_SAM_APDU [21:21:18]CAPDU: 80 11 00 00 [21:21:18]Write to MH i2c: E2 08 00 17 2C 80 11 00 00 00 00 00 00 BD [21:21:18]Write i2c OK [21:21:18]MH_I2C_Read... [21:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:18]Read from MH i2c: E2 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 17 00 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: E2 17 00 17 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 14 [21:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:21:18]wFMCommunicate OK [21:21:18]CreateOFDProtocolMessage done [21:21:18]OFDSenderStorePacket 60058 [21:21:18]StoreOFDPacket docnum=60058 [21:21:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 45 01 00 00 5F F9 3D 01 AA 68 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 52 BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9A EA 00 00 35 04 06 00 1F 53 9A 35 D9 67 48 D7 4B 2E 80 44 E0 1C [21:21:18]CheckFolder [21:21:18]dirname=/storage/ofd_packets [21:21:18]CheckFolder done [21:21:18]ProducePacketName [21:21:18]name=ofd_packets/00060058 [21:21:18]NVStorageSaveData ofd_packets/00060058 [21:21:18]File name is /storage/ofd_packets/00060058 [21:21:18]Write 355 bytes [21:21:18]NVStorageSaveData done [21:21:18]OFDSenderStorePacket done [21:21:18]KKMCreateOFDPacket done [21:21:18]NVStorageSaveData kkm_last_timestamp [21:21:18]File name is /storage/kkm_last_timestamp [21:21:18]Write 4 bytes [21:21:18]NVStorageSaveData done [21:21:18]ExternCall_PrintAddStr [21:21:18]wPrintStart [21:21:18]Write to MH i2c: 01 00 00 18 2C 44 [21:21:18]Write i2c OK [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: 01 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: 01 07 00 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: 01 07 00 18 2C 00 00 00 00 00 FF 0F 59 [21:21:18]RasterBufferAndPrint [21:21:18]line Счет N : (3)199832 [21:21:18]line ИНН: 02508201610067 [21:21:18]line Контрольно-Кассовый Чек [21:21:18]line ПРОДАЖА [21:21:18]line Товар: 4630007401201 [21:21:18]line Семечки соленые ДЖИНН Великан 100гр [21:21:18]line 2.000 * 120.00 [21:21:18]line = 240.00 [21:21:18]line НДС 12% НСП 1% [21:21:18]line > о реализуемом товаре [21:21:18]line ИТОГО: 240.00 [21:21:18]line НСП 1% : 2.12 [21:21:18]line НДС 12% : 25.49 [21:21:18]line Наличными: 240.00 [21:21:18]line Безнал.: 0.00 [21:21:18]line Место: АЗС № 87 "Партнер Нефть" [21:21:18]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [21:21:18]line СНО: Общий режим [21:21:18]line Чек 133 24.10.2024 21:21 [21:21:18]line Смена: 529 ФФД: 1.0 [21:21:18]line ЗНМ: 0300000084 [21:21:18]line РНМ: 0000000000091622 [21:21:18]line Версия ККМ: 001 [21:21:18]line ФМ: 0000000000874674 [21:21:18]line ФД: 60058 [21:21:18]line ФПД: 34443929966951 [21:21:18]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212122&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60058&fm=34443929966951&tin=02508201610067®Number=0000000000091622&sum=24000 [21:21:19]OFD Sender: Processing packet 60058 [packets to send 30, broken 29] [21:21:19]ProducePacketName [21:21:19]name=ofd_packets/00060058 [21:21:19]OFD Sender: To server: pG, [21:21:19]CommunicateWithHost lk.salyk.kg:30040 [21:21:19]ConnectInit lk.salyk.kg [21:21:19]line 0 [21:21:19]written 0, free lines is 4095 [21:21:19]Connected sock=10 [21:21:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 45 01 00 00 5F F9 3D 01 AA 68 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 52 BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9A EA 00 00 35 04 06 00 1F 53 9A 35 D9 67 48 D7 4B 2E 80 44 E0 1C [21:21:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 DB 38 47 00 C6 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 34 36 37 34 10 04 04 00 9A EA 00 00 F4 03 04 00 42 60 1A 67 B6 04 01 00 00 1C B5 CD CE CB 94 E6 D4 [21:21:19]CommunicateWithHost err = 0 [21:21:19]CheckOFDResponse [21:21:19]1017 (14) - 77093643461234 [21:21:19]1041 (16) - 0000000000874674 [21:21:19]1040 (4) - 60058 [21:21:19]1012 (4) - 24.10.2024 14:57 [21:21:19]1206 (1) - 0 [21:21:19]OFD Sender: Remove packet 60058 [21:21:19]ProducePacketName [21:21:19]name=ofd_packets/00060058 [21:21:19]NVStorageDeleteData [21:21:19]Write to MH i2c: 01 00 00 41 2C 6D [21:21:19]Write i2c OK [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: 01 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: 01 07 00 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: 01 07 00 41 2C 00 00 00 00 00 F7 0C 77 [21:21:19]RasterBufferAndPrint [21:21:19]line [21:21:19]line [21:21:19]line [21:21:19]line [21:21:19]line [21:21:19]written 0, free lines is 3326 [21:21:19]MH_Cut [21:21:19]Write to MH i2c: D1 01 00 48 2C 01 46 [21:21:19]Write i2c OK [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: D1 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: D1 01 00 [21:21:19]MH_I2C_Read... [21:21:19]Read from MH i2c: D1 01 00 48 2C 00 45 [21:21:19]Write to MH i2c: 01 00 00 49 2C 75 [21:21:19]Write i2c OK [21:21:19]MH_I2C_Read... [21:21:19]OFD Sender: No OFD packet to send [21:21:20]*** Cut start [21:21:20]*** Partial cut [21:21:20]*** CUTSNS_PIN = 1 [21:21:20]*** CUTSNS_PIN = 0 [21:21:20]*** Brake cut motor [21:21:20]Read from MH i2c: 01 [21:21:20]MH_I2C_Read... [21:21:20]*** Stop cut motor [21:21:20]*** Cut end [21:21:20]Read from MH i2c: 01 07 00 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: 01 07 00 49 2C 00 00 00 00 00 FF 0F 8A [21:21:20]process_action close_receipt done [21:21:20]requested_data is exist [21:21:20]produce_requested_data [21:21:20]requested_item fm.sn is exist - process it [21:21:20]wFMCommunicate request_size=4 [21:21:20]MH_SAM_APDU [21:21:20]CAPDU: 80 11 00 00 [21:21:20]Write to MH i2c: E2 08 00 4A 2C 80 11 00 00 00 00 00 00 F0 [21:21:20]Write i2c OK [21:21:20]MH_I2C_Read... [21:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:20]Read from MH i2c: E2 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: E2 17 00 [21:21:20]MH_I2C_Read... [21:21:20]Read from MH i2c: E2 17 00 4A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 47 [21:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:21:20]wFMCommunicate OK [21:21:20]requested_item fd.num is exist - process it [21:21:20]SAM_PROTO_GetFieldsCounters [21:21:20]wFMCommunicate request_size=4 [21:21:20]MH_SAM_APDU [21:21:20]CAPDU: 80 13 00 00 [21:21:20]Write to MH i2c: E2 08 00 4B 2C 80 13 00 00 00 00 00 00 F3 [21:21:20]Write i2c OK [21:21:20]MH_I2C_Read... [21:21:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:21]Read from MH i2c: E2 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 62 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 62 00 4B 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 9A EA 00 00 0E 04 04 00 11 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 39 [21:21: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 9A EA 00 00 0E 04 04 00 11 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 [21:21:21]wFMCommunicate OK [21:21:21]SAM_PROTO_GetFieldsCounters done [21:21:21]requested_item shift.num is exist - process it [21:21:21]requested_item shift.opened is exist - process it [21:21:21]req_shift_opened [21:21:21]FM_GetShiftState [21:21:21]SAM_PROTO_GetShiftState [21:21:21]wFMCommunicate request_size=4 [21:21:21]MH_SAM_APDU [21:21:21]CAPDU: 80 13 01 00 [21:21:21]Write to MH i2c: E2 08 00 4C 2C 80 13 01 00 00 00 00 00 F5 [21:21:21]Write i2c OK [21:21:21]MH_I2C_Read... [21:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:21]Read from MH i2c: E2 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 0E 00 [21:21:21]MH_I2C_Read... [21:21:21]Read from MH i2c: E2 0E 00 4C 2C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 28 [21:21:21]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:21:21]wFMCommunicate OK [21:21:21]SAM_PROTO_GetShiftState done [21:21:21]FM_GetShiftState done [21:21:21]req_shift_opened done [21:21:21]requested_item shift.open_date is exist - process it [21:21:21]req_shift_open_date [21:21:21]req_shift_open_date done [21:21:21]produce_requested_data done [21:21:21]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60058,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [21:21:21]process_action_free close_receipt [21:21:21]json_value_free [21:21:21]json_value_free done [21:21:21]process_json_proto returns [21:21:21]Send response to host [21:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60058,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [21:21:21]free response buf [21:21:21]execute_script done [21:21:21]execute_script returns [21:21:21]free content buf [21:21:21]Sock 9.Close socket [21:21:21]Sock 9.Thread stoped [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:00]accept exits with 7 [21:22:00]New connection [21:22:00]New thread 3067252068 created [21:22:00]Thread 3067108708 joined [21:22:00]Waiting for new connection... [21:22:00] Sock 7.Parse request [21:22:00]Sock 7.Check first char [21:22:00]Sock 7.First char is OK [21:22:00]request: POST /json_proto HTTP/1.0 [21:22:00]Method: POST [21:22:00]URL: /json_proto [21:22:00]Method is POST - this is cgi request [21:22:00]url: /json_proto [21:22:00]query_string will be loaded in cgi processing [21:22:00]execute_cgi json_proto POST (null) [21:22:00]execute_cgi path=json_proto method=POST [21:22:00]POST find Content-Length [21:22:00]Host: 172.17.42.196:8080 [21:22:00]Content-Length: 885 [21:22:00]Content-Type: application/json [21:22:00] [21:22:00]POST finish read [21:22:00]Found Content-Length = 885 [21:22:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199833", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:00]execute_script... [21:22:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199833", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:00]POST & json_proto [21:22:00]process_json_proto [21:22:00]json parsed OK: [21:22:00]protocol is kg_v1.0 [21:22:00]action value=close_receipt [21:22:00]process_action close_receipt [21:22:00]cmd_close_receipt [21:22:00]MH_GetDate [21:22:00]Write to MH i2c: F0 00 00 4D 2C 68 [21:22:00]Write i2c OK [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: F0 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: F0 09 00 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: F0 09 00 4D 2C 00 7D BA 1A 67 FF C4 6B 64 BB [21:22:00]GetLastDocTimeStamp 1729804882 [21:22:00]current date 1729804925 [21:22:00]FM_GetShiftState [21:22:00]SAM_PROTO_GetShiftState [21:22:00]wFMCommunicate request_size=4 [21:22:00]MH_SAM_APDU [21:22:00]CAPDU: 80 13 01 00 [21:22:00]Write to MH i2c: E2 08 00 4E 2C 80 13 01 00 00 00 00 00 F7 [21:22:00]Write i2c OK [21:22:00]MH_I2C_Read... [21:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:00]Read from MH i2c: E2 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: E2 0E 00 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: E2 0E 00 4E 2C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 2A [21:22:00]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:22:00]wFMCommunicate OK [21:22:00]SAM_PROTO_GetShiftState done [21:22:00]FM_GetShiftState done [21:22:00]opened in 1729730575 [21:22:00]opened+sec_in_day 1729816975 [21:22:00]quantity*price = 5000 [21:22:00]sum+1 = 5001 [21:22:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400358 Семечки ДЖИНН 70г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 134 24.10.2024 21:22 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60059 ФПД: 93963610322118 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212205&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60059&fm=93963610322118&tin=02508201610067®Number=0000000000091622&sum=12000 0 [21:22:01]StoreToDocumentArchive [21:22:01]shift 529 fd 60059 [21:22:01]save to /storage/0529/doc_00060059 [21:22:01]save last doc name /storage/0529/doc_00060059 to /storage/kkm_last_doc_name [21:22:01]save OK [21:22:01]Clear old archive folders... [21:22:01]ProcessDocumentItem done err = 0, tmpTLVsize=371 [21:22:01]tlvbuf is B6DF11F0 [21:22:01]SAM_PROTO_ClearQueue [21:22:01]wFMCommunicate request_size=4 [21:22:01]MH_SAM_APDU [21:22:01]CAPDU: 80 09 00 00 [21:22:01]Write to MH i2c: E2 08 00 5B 2C 80 09 00 00 00 00 00 00 F9 [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:01]Read from MH i2c: E2 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 5B 2C 00 90 00 FB [21:22:01]RAPDU: 90 00 [21:22:01]wFMCommunicate OK [21:22:01]SAM_PROTO_ClearQueue done [21:22:01]KKMCreateOFDPacket [21:22:01]OFDProtocolAddRootSTLVToBuf [21:22:01]FM_MakeSignedData [21:22:01]FM_MakeSignedData [21:22:01]SAM_PROTO_SignData [21:22:01]wFMCommunicate request_size=4 [21:22:01]MH_SAM_APDU [21:22:01]CAPDU: 80 0D 01 02 [21:22:01]Write to MH i2c: E2 08 00 5C 2C 80 0D 01 02 00 00 00 00 01 [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:01]Read from MH i2c: E2 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 5C 2C 00 90 00 FC [21:22:01]RAPDU: 90 00 [21:22:01]wFMCommunicate OK [21:22:01]wFMCommunicate request_size=255 [21:22:01]MH_SAM_APDU [21:22:01]CAPDU: 80 0D 02 02 FA 03 00 73 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 [21:22:01]Write to MH i2c: E2 02 01 5D 2C 80 0D 02 02 FA 00 03 00 73 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 22 [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:01]Read from MH i2c: E2 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 5D 2C 00 90 00 FD [21:22:01]RAPDU: 90 00 [21:22:01]wFMCommunicate OK [21:22:01]wFMCommunicate request_size=130 [21:22:01]MH_SAM_APDU [21:22:01]CAPDU: 80 0D 02 02 7D 00 01 F3 03 06 00 FA 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 86 00 00 00 F4 03 04 00 7D BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9B EA 00 00 35 04 06 00 55 75 9B 9D 74 C6 [21:22:01]Write to MH i2c: E2 85 00 5E 2C 80 0D 02 02 7D 00 00 01 F3 03 06 00 FA 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 86 00 00 00 F4 03 04 00 7D BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9B EA 00 00 35 04 06 00 55 75 9B 9D 74 C6 00 00 52 [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:01]Read from MH i2c: E2 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 5E 2C 00 90 00 FE [21:22:01]RAPDU: 90 00 [21:22:01]wFMCommunicate OK [21:22:01]wFMCommunicate request_size=4 [21:22:01]MH_SAM_APDU [21:22:01]CAPDU: 80 0D 03 02 [21:22:01]Write to MH i2c: E2 08 00 5F 2C 80 0D 03 02 00 00 00 00 06 [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:01]Read from MH i2c: E2 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 0B 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 0B 00 5F 2C 00 4A F0 9D EE 45 6C 5B 5C 90 00 34 [21:22:01]RAPDU: 4A F0 9D EE 45 6C 5B 5C 90 00 [21:22:01]wFMCommunicate OK [21:22:01]SAM_PROTO_SignData done [21:22:01]FM_MakeSignedData done [21:22:01]CreateOFDProtocolMessage [21:22:01]wFMCommunicate request_size=4 [21:22:01]MH_SAM_APDU [21:22:01]CAPDU: 80 11 00 00 [21:22:01]Write to MH i2c: E2 08 00 60 2C 80 11 00 00 00 00 00 00 06 [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:01]Read from MH i2c: E2 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 17 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 17 00 60 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 5D [21:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:22:01]wFMCommunicate OK [21:22:01]CreateOFDProtocolMessage done [21:22:01]OFDSenderStorePacket 60059 [21:22:01]StoreOFDPacket docnum=60059 [21:22:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 87 01 00 00 8F 14 7F 01 68 46 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FA 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 86 00 00 00 F4 03 04 00 7D BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9B EA 00 00 35 04 06 00 55 75 9B 9D 74 C6 4A F0 9D EE 45 6C 5B 5C [21:22:01]CheckFolder [21:22:01]dirname=/storage/ofd_packets [21:22:01]CheckFolder done [21:22:01]ProducePacketName [21:22:01]name=ofd_packets/00060059 [21:22:01]NVStorageSaveData ofd_packets/00060059 [21:22:01]File name is /storage/ofd_packets/00060059 [21:22:01]Write 421 bytes [21:22:01]NVStorageSaveData done [21:22:01]OFDSenderStorePacket done [21:22:01]KKMCreateOFDPacket done [21:22:01]NVStorageSaveData kkm_last_timestamp [21:22:01]File name is /storage/kkm_last_timestamp [21:22:01]Write 4 bytes [21:22:01]NVStorageSaveData done [21:22:01]ExternCall_PrintAddStr [21:22:01]wPrintStart [21:22:01]Write to MH i2c: 01 00 00 61 2C 8D [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: 01 [21:22:01]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 07 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 07 00 61 2C 00 00 00 00 00 FF 0F A2 [21:22:02]RasterBufferAndPrint [21:22:02]line Счет N : (3)199833 [21:22:02]line ИНН: 02508201610067 [21:22:02]line Контрольно-Кассовый Чек [21:22:02]line ПРОДАЖА [21:22:02]line Товар: 4700000160358 [21:22:02]line Вода Легенда 1л [21:22:02]line 1.000 * 50.00 [21:22:02]line = 50.00 [21:22:02]line НДС 12% НСП 1% [21:22:02]line > о реализуемом товаре [21:22:02]line Товар: 4630007400358 [21:22:02]line Семечки ДЖИНН 70г [21:22:02]line 1.000 * 70.00 [21:22:02]line = 70.00 [21:22:02]line НДС 12% НСП 1% [21:22:02]line > о реализуемом товаре [21:22:02]line ИТОГО: 120.00 [21:22:02]line НСП 1% : 1.06 [21:22:02]line НДС 12% : 12.74 [21:22:02]line Наличными: 120.00 [21:22:02]line Безнал.: 0.00 [21:22:02]line Место: АЗС № 87 "Партнер Нефть" [21:22:02]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [21:22:02]line СНО: Общий режим [21:22:02]line Чек 134 24.10.2024 21:22 [21:22:02]line Смена: 529 ФФД: 1.0 [21:22:02]line ЗНМ: 0300000084 [21:22:02]line РНМ: 0000000000091622 [21:22:02]line Версия ККМ: 001 [21:22:02]line ФМ: 0000000000874674 [21:22:02]line ФД: 60059 [21:22:02]line ФПД: 93963610322118 [21:22:02]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212205&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60059&fm=93963610322118&tin=02508201610067®Number=0000000000091622&sum=12000 [21:22:02]OFD Sender: Processing packet 60059 [packets to send 30, broken 29] [21:22:02]ProducePacketName [21:22:02]name=ofd_packets/00060059 [21:22:02]OFD Sender: To server: pG, [21:22:02]CommunicateWithHost lk.salyk.kg:30040 [21:22:02]ConnectInit lk.salyk.kg [21:22:02]line 0 [21:22:02]written 0, free lines is 4095 [21:22:02]Connected sock=10 [21:22:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 87 01 00 00 8F 14 7F 01 68 46 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 FA 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 86 00 00 00 F4 03 04 00 7D BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9B EA 00 00 35 04 06 00 55 75 9B 9D 74 C6 4A F0 9D EE 45 6C 5B 5C [21:22:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 44 29 47 00 3F 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 34 36 37 34 10 04 04 00 9B EA 00 00 F4 03 04 00 6D 60 1A 67 B6 04 01 00 00 6A A1 47 54 1F 72 9A 47 [21:22:02]CommunicateWithHost err = 0 [21:22:02]CheckOFDResponse [21:22:02]1017 (14) - 77093643461234 [21:22:02]1041 (16) - 0000000000874674 [21:22:02]1040 (4) - 60059 [21:22:02]1012 (4) - 24.10.2024 14:57 [21:22:02]1206 (1) - 0 [21:22:02]OFD Sender: Remove packet 60059 [21:22:02]ProducePacketName [21:22:02]name=ofd_packets/00060059 [21:22:02]NVStorageDeleteData [21:22:02]Write to MH i2c: 01 00 00 8F 2C BB [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 07 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 07 00 8F 2C 00 00 00 00 00 BA 0C 88 [21:22:02]RasterBufferAndPrint [21:22:02]line [21:22:02]line [21:22:02]line [21:22:02]line [21:22:02]line [21:22:02]written 0, free lines is 3266 [21:22:02]MH_Cut [21:22:02]Write to MH i2c: D1 01 00 96 2C 01 94 [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: D1 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: D1 01 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: D1 01 00 96 2C 00 93 [21:22:02]Write to MH i2c: 01 00 00 97 2C C3 [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:03]OFD Sender: No OFD packet to send [21:22:03]*** Cut start [21:22:03]*** Partial cut [21:22:03]*** CUTSNS_PIN = 1 [21:22:03]*** CUTSNS_PIN = 0 [21:22:03]*** Brake cut motor [21:22:04]Read from MH i2c: 01 [21:22:04]MH_I2C_Read... [21:22:04]*** Stop cut motor [21:22:04]*** Cut end [21:22:04]Read from MH i2c: 01 07 00 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: 01 07 00 97 2C 00 00 00 00 00 FF 0F D8 [21:22:04]process_action close_receipt done [21:22:04]requested_data is exist [21:22:04]produce_requested_data [21:22:04]requested_item fm.sn is exist - process it [21:22:04]wFMCommunicate request_size=4 [21:22:04]MH_SAM_APDU [21:22:04]CAPDU: 80 11 00 00 [21:22:04]Write to MH i2c: E2 08 00 98 2C 80 11 00 00 00 00 00 00 3E [21:22:04]Write i2c OK [21:22:04]MH_I2C_Read... [21:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:04]Read from MH i2c: E2 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 17 00 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 17 00 98 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 95 [21:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:22:04]wFMCommunicate OK [21:22:04]requested_item fd.num is exist - process it [21:22:04]SAM_PROTO_GetFieldsCounters [21:22:04]wFMCommunicate request_size=4 [21:22:04]MH_SAM_APDU [21:22:04]CAPDU: 80 13 00 00 [21:22:04]Write to MH i2c: E2 08 00 99 2C 80 13 00 00 00 00 00 00 41 [21:22:04]Write i2c OK [21:22:04]MH_I2C_Read... [21:22:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:04]Read from MH i2c: E2 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 62 00 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 62 00 99 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 9B EA 00 00 0E 04 04 00 11 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 8B [21:22: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 9B EA 00 00 0E 04 04 00 11 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 [21:22:04]wFMCommunicate OK [21:22:04]SAM_PROTO_GetFieldsCounters done [21:22:04]requested_item shift.num is exist - process it [21:22:04]requested_item shift.opened is exist - process it [21:22:04]req_shift_opened [21:22:04]FM_GetShiftState [21:22:04]SAM_PROTO_GetShiftState [21:22:04]wFMCommunicate request_size=4 [21:22:04]MH_SAM_APDU [21:22:04]CAPDU: 80 13 01 00 [21:22:04]Write to MH i2c: E2 08 00 9A 2C 80 13 01 00 00 00 00 00 43 [21:22:04]Write i2c OK [21:22:04]MH_I2C_Read... [21:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:04]Read from MH i2c: E2 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 0E 00 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 0E 00 9A 2C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 76 [21:22:04]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:22:04]wFMCommunicate OK [21:22:04]SAM_PROTO_GetShiftState done [21:22:04]FM_GetShiftState done [21:22:04]req_shift_opened done [21:22:04]requested_item shift.open_date is exist - process it [21:22:04]req_shift_open_date [21:22:04]req_shift_open_date done [21:22:04]produce_requested_data done [21:22:04]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60059,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [21:22:04]process_action_free close_receipt [21:22:04]json_value_free [21:22:04]json_value_free done [21:22:04]process_json_proto returns [21:22:04]Send response to host [21:22:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60059,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [21:22:04]free response buf [21:22:04]execute_script done [21:22:04]execute_script returns [21:22:04]free content buf [21:22:04]Sock 7.Close socket [21:22:04]Sock 7.Thread stoped [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:31]accept exits with 9 [21:23:31]New connection [21:23:31]New thread 3067108708 created [21:23:31]Thread 3067252068 joined [21:23:31]Waiting for new connection... [21:23:31] Sock 9.Parse request [21:23:31]Sock 9.Check first char [21:23:31]Sock 9.First char is OK [21:23:31]request: POST /json_proto HTTP/1.0 [21:23:31]Method: POST [21:23:31]URL: /json_proto [21:23:31]Method is POST - this is cgi request [21:23:31]url: /json_proto [21:23:31]query_string will be loaded in cgi processing [21:23:31]execute_cgi json_proto POST (null) [21:23:31]execute_cgi path=json_proto method=POST [21:23:31]POST find Content-Length [21:23:31]Host: 172.17.42.196:8080 [21:23:31]Content-Length: 768 [21:23:31]Content-Type: application/json [21:23:31] [21:23:31]POST finish read [21:23:31]Found Content-Length = 768 [21:23:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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" ] } } [21:23:31]execute_script... [21:23: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)3309271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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" ] } } [21:23:31]POST & json_proto [21:23:31]process_json_proto [21:23:31]json parsed OK: [21:23:31]protocol is kg_v1.0 [21:23:31]action value=close_receipt [21:23:31]process_action close_receipt [21:23:31]cmd_close_receipt [21:23:31]MH_GetDate [21:23:31]Write to MH i2c: F0 00 00 9B 2C B6 [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: F0 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: F0 09 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: F0 09 00 9B 2C 00 D9 BA 1A 67 FF C4 6B 64 65 [21:23:31]GetLastDocTimeStamp 1729804925 [21:23:31]current date 1729805017 [21:23:31]FM_GetShiftState [21:23:31]SAM_PROTO_GetShiftState [21:23:31]wFMCommunicate request_size=4 [21:23:31]MH_SAM_APDU [21:23:31]CAPDU: 80 13 01 00 [21:23:31]Write to MH i2c: E2 08 00 9C 2C 80 13 01 00 00 00 00 00 45 [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:31]Read from MH i2c: E2 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 0E 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: E2 0E 00 9C 2C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 78 [21:23:31]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:23:31]wFMCommunicate OK [21:23:31]SAM_PROTO_GetShiftState done [21:23:31]FM_GetShiftState done [21:23:31]opened in 1729730575 [21:23:31]opened+sec_in_day 1729816975 [21:23:31]quantity*price = 70044 [21:23:31]sum+1 = 70045 [21:23:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 135 24.10.2024 21:23 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60060 ФПД: 21812057404951 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212337&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60060&fm=21812057404951&tin=02508201610067®Number=0000000000091622&sum=70044 [21:23:32]StoreToDocumentArchive [21:23:32]shift 529 fd 60060 [21:23:32]save to /storage/0529/doc_00060060 [21:23:32]save last doc name /storage/0529/doc_00060060 to /storage/kkm_last_doc_name [21:23:32]save OK [21:23:32]Clear old archive folders... [21:23:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:32]tlvbuf is 00E09AF0 [21:23:32]SAM_PROTO_ClearQueue [21:23:32]wFMCommunicate request_size=4 [21:23:32]MH_SAM_APDU [21:23:32]CAPDU: 80 09 00 00 [21:23:32]Write to MH i2c: E2 08 00 A9 2C 80 09 00 00 00 00 00 00 47 [21:23:32]Write i2c OK [21:23:32]MH_I2C_Read... [21:23:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:32]Read from MH i2c: E2 [21:23:32]MH_I2C_Read... [21:23:32]Read from MH i2c: E2 03 00 [21:23:32]MH_I2C_Read... [21:23:32]Read from MH i2c: E2 03 00 A9 2C 00 90 00 49 [21:23:32]RAPDU: 90 00 [21:23:32]wFMCommunicate OK [21:23:32]SAM_PROTO_ClearQueue done [21:23:32]KKMCreateOFDPacket [21:23:32]OFDProtocolAddRootSTLVToBuf [21:23:32]FM_MakeSignedData [21:23:32]FM_MakeSignedData [21:23:32]SAM_PROTO_SignData [21:23:32]wFMCommunicate request_size=4 [21:23:32]MH_SAM_APDU [21:23:32]CAPDU: 80 0D 01 02 [21:23:32]Write to MH i2c: E2 08 00 AA 2C 80 0D 01 02 00 00 00 00 4F [21:23:32]Write i2c OK [21:23:32]MH_I2C_Read... [21:23:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:33]Read from MH i2c: E2 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 AA 2C 00 90 00 4A [21:23:33]RAPDU: 90 00 [21:23:33]wFMCommunicate OK [21:23:33]wFMCommunicate request_size=255 [21:23:33]MH_SAM_APDU [21:23: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 34 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 87 00 00 00 F4 03 04 00 D9 BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9C EA 00 00 35 04 06 00 13 [21:23:33]Write to MH i2c: E2 02 01 AB 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 34 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 87 00 00 00 F4 03 04 00 D9 BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9C EA 00 00 35 04 06 00 13 00 00 8B [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]OFD Sender: No OFD packet to send [21:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:33]Read from MH i2c: E2 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 AB 2C 00 90 00 4B [21:23:33]RAPDU: 90 00 [21:23:33]wFMCommunicate OK [21:23:33]wFMCommunicate request_size=10 [21:23:33]MH_SAM_APDU [21:23:33]CAPDU: 80 0D 02 02 05 D6 83 EE F6 17 [21:23:33]Write to MH i2c: E2 0D 00 AC 2C 80 0D 02 02 05 00 D6 83 EE F6 17 00 00 B0 [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:33]Read from MH i2c: E2 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 03 00 AC 2C 00 90 00 4C [21:23:33]RAPDU: 90 00 [21:23:33]wFMCommunicate OK [21:23:33]wFMCommunicate request_size=4 [21:23:33]MH_SAM_APDU [21:23:33]CAPDU: 80 0D 03 02 [21:23:33]Write to MH i2c: E2 08 00 AD 2C 80 0D 03 02 00 00 00 00 54 [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:33]Read from MH i2c: E2 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 0B 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 0B 00 AD 2C 00 B5 9A 9A 27 3B 47 09 EC 90 00 DC [21:23:33]RAPDU: B5 9A 9A 27 3B 47 09 EC 90 00 [21:23:33]wFMCommunicate OK [21:23:33]SAM_PROTO_SignData done [21:23:33]FM_MakeSignedData done [21:23:33]CreateOFDProtocolMessage [21:23:33]wFMCommunicate request_size=4 [21:23:33]MH_SAM_APDU [21:23:33]CAPDU: 80 11 00 00 [21:23:33]Write to MH i2c: E2 08 00 AE 2C 80 11 00 00 00 00 00 00 54 [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:33]Read from MH i2c: E2 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 17 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: E2 17 00 AE 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 AB [21:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:23:33]wFMCommunicate OK [21:23:33]CreateOFDProtocolMessage done [21:23:33]OFDSenderStorePacket 60060 [21:23:33]StoreOFDPacket docnum=60060 [21:23:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 90 7F 07 01 9B D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 87 00 00 00 F4 03 04 00 D9 BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9C EA 00 00 35 04 06 00 13 D6 83 EE F6 17 B5 9A 9A 27 3B 47 09 EC [21:23:33]CheckFolder [21:23:33]dirname=/storage/ofd_packets [21:23:33]CheckFolder done [21:23:33]ProducePacketName [21:23:33]name=ofd_packets/00060060 [21:23:33]NVStorageSaveData ofd_packets/00060060 [21:23:33]File name is /storage/ofd_packets/00060060 [21:23:33]Write 301 bytes [21:23:33]NVStorageSaveData done [21:23:33]OFDSenderStorePacket done [21:23:33]KKMCreateOFDPacket done [21:23:33]NVStorageSaveData kkm_last_timestamp [21:23:33]File name is /storage/kkm_last_timestamp [21:23:33]Write 4 bytes [21:23:33]NVStorageSaveData done [21:23:33]ExternCall_PrintAddStr [21:23:33]wPrintStart [21:23:33]Write to MH i2c: 01 00 00 AF 2C DB [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: 01 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: 01 07 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: 01 07 00 AF 2C 00 00 00 00 00 FF 0F F0 [21:23:33]RasterBufferAndPrint [21:23:33]line Счет N : (1)3309271 [21:23:33]line ИНН: 02508201610067 [21:23:33]line Контрольно-Кассовый Чек [21:23:33]line ПРОДАЖА [21:23:33]line ТРК (МРК, ГНК) : 32 [21:23:33]line Товар: 2710124130 [21:23:33]line Аи-92-К-4 [21:23:33]line 10.470 * 66.90 [21:23:33]line = 700.44 [21:23:33]line НДС 12% НСП 1% [21:23:33]line > о реализуемом товаре [21:23:33]line ИТОГО: 700.44 [21:23:33]line НСП 1% : 6.20 [21:23:33]line НДС 12% : 74.38 [21:23:33]line Наличными: 0.00 [21:23:33]line Безнал.: 700.44 [21:23:33]line Место: АЗС № 87 "Партнер Нефть" [21:23:33]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [21:23:33]line СНО: Общий режим [21:23:33]line Чек 135 24.10.2024 21:23 [21:23:33]line Смена: 529 ФФД: 1.0 [21:23:33]line ЗНМ: 0300000084 [21:23:33]line РНМ: 0000000000091622 [21:23:33]line Версия ККМ: 001 [21:23:33]line Платежная система: Mbank [21:23:33]line ФМ: 0000000000874674 [21:23:33]line ФД: 60060 [21:23:33]line ФПД: 21812057404951 [21:23:33]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212337&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60060&fm=21812057404951&tin=02508201610067®Number=0000000000091622&sum=70044 [21:23:33]written 0, free lines is 4095 [21:23:33]OFD Sender: Processing packet 60060 [packets to send 30, broken 29] [21:23:33]ProducePacketName [21:23:33]name=ofd_packets/00060060 [21:23:33]OFD Sender: To server: pG, [21:23:33]CommunicateWithHost lk.salyk.kg:30040 [21:23:33]ConnectInit lk.salyk.kg [21:23:33]Connected sock=11 [21:23:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 90 7F 07 01 9B D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 87 00 00 00 F4 03 04 00 D9 BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9C EA 00 00 35 04 06 00 13 D6 83 EE F6 17 B5 9A 9A 27 3B 47 09 EC [21:23:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 30 8C 47 00 C8 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 34 36 37 34 10 04 04 00 9C EA 00 00 F4 03 04 00 C8 60 1A 67 B6 04 01 00 00 BC 40 9C 48 61 A9 68 D6 [21:23:33]CommunicateWithHost err = 0 [21:23:33]CheckOFDResponse [21:23:33]1017 (14) - 77093643461234 [21:23:33]1041 (16) - 0000000000874674 [21:23:33]1040 (4) - 60060 [21:23:33]1012 (4) - 24.10.2024 14:59 [21:23:33]1206 (1) - 0 [21:23:33]OFD Sender: Remove packet 60060 [21:23:33]ProducePacketName [21:23:33]name=ofd_packets/00060060 [21:23:33]NVStorageDeleteData [21:23:33]Write to MH i2c: 01 00 00 D8 2C 04 [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: 01 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: 01 07 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: 01 07 00 D8 2C 00 00 00 00 00 05 0D 1D [21:23:33]RasterBufferAndPrint [21:23:33]line [21:23:33]line [21:23:33]line [21:23:33]line [21:23:33]line [21:23:33]written 0, free lines is 3340 [21:23:33]MH_Cut [21:23:33]Write to MH i2c: D1 01 00 DF 2C 01 DD [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: D1 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: D1 01 00 [21:23:33]MH_I2C_Read... [21:23:33]Read from MH i2c: D1 01 00 DF 2C 00 DC [21:23:33]Write to MH i2c: 01 00 00 E0 2C 0C [21:23:33]Write i2c OK [21:23:33]MH_I2C_Read... [21:23:34]OFD Sender: No OFD packet to send [21:23:34]*** Cut start [21:23:34]*** Partial cut [21:23:34]*** CUTSNS_PIN = 1 [21:23:34]*** CUTSNS_PIN = 0 [21:23:34]*** Brake cut motor [21:23:35]Read from MH i2c: 01 [21:23:35]MH_I2C_Read... [21:23:35]*** Stop cut motor [21:23:35]*** Cut end [21:23:35]Read from MH i2c: 01 07 00 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: 01 07 00 E0 2C 00 00 00 00 00 FF 0F 21 [21:23:35]process_action close_receipt done [21:23:35]requested_data is exist [21:23:35]produce_requested_data [21:23:35]requested_item fm.sn is exist - process it [21:23:35]wFMCommunicate request_size=4 [21:23:35]MH_SAM_APDU [21:23:35]CAPDU: 80 11 00 00 [21:23:35]Write to MH i2c: E2 08 00 E1 2C 80 11 00 00 00 00 00 00 87 [21:23:35]Write i2c OK [21:23:35]MH_I2C_Read... [21:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:35]Read from MH i2c: E2 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 17 00 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 17 00 E1 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 DE [21:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:23:35]wFMCommunicate OK [21:23:35]requested_item fd.num is exist - process it [21:23:35]SAM_PROTO_GetFieldsCounters [21:23:35]wFMCommunicate request_size=4 [21:23:35]MH_SAM_APDU [21:23:35]CAPDU: 80 13 00 00 [21:23:35]Write to MH i2c: E2 08 00 E2 2C 80 13 00 00 00 00 00 00 8A [21:23:35]Write i2c OK [21:23:35]MH_I2C_Read... [21:23:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:35]Read from MH i2c: E2 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 62 00 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 62 00 E2 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 9C EA 00 00 0E 04 04 00 11 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 D8 [21:23: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 9C EA 00 00 0E 04 04 00 11 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 [21:23:35]wFMCommunicate OK [21:23:35]SAM_PROTO_GetFieldsCounters done [21:23:35]requested_item shift.num is exist - process it [21:23:35]requested_item shift.opened is exist - process it [21:23:35]req_shift_opened [21:23:35]FM_GetShiftState [21:23:35]SAM_PROTO_GetShiftState [21:23:35]wFMCommunicate request_size=4 [21:23:35]MH_SAM_APDU [21:23:35]CAPDU: 80 13 01 00 [21:23:35]Write to MH i2c: E2 08 00 E3 2C 80 13 01 00 00 00 00 00 8C [21:23:35]Write i2c OK [21:23:35]MH_I2C_Read... [21:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:35]Read from MH i2c: E2 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 0E 00 [21:23:35]MH_I2C_Read... [21:23:35]Read from MH i2c: E2 0E 00 E3 2C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 BF [21:23:35]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:23:35]wFMCommunicate OK [21:23:35]SAM_PROTO_GetShiftState done [21:23:35]FM_GetShiftState done [21:23:35]req_shift_opened done [21:23:35]requested_item shift.open_date is exist - process it [21:23:35]req_shift_open_date [21:23:35]req_shift_open_date done [21:23:35]produce_requested_data done [21:23:35]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60060,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [21:23:35]process_action_free close_receipt [21:23:35]json_value_free [21:23:35]json_value_free done [21:23:35]process_json_proto returns [21:23:35]Send response to host [21:23:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60060,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [21:23:35]free response buf [21:23:35]execute_script done [21:23:35]execute_script returns [21:23:35]free content buf [21:23:35]Sock 9.Close socket [21:23:35]Sock 9.Thread stoped [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:08]accept exits with 7 [21:24:08]New connection [21:24:08]New thread 3067252068 created [21:24:08]Thread 3067108708 joined [21:24:08]Waiting for new connection... [21:24:08] Sock 7.Parse request [21:24:08]Sock 7.Check first char [21:24:08]Sock 7.First char is OK [21:24:08]request: POST /json_proto HTTP/1.0 [21:24:08]Method: POST [21:24:08]URL: /json_proto [21:24:08]Method is POST - this is cgi request [21:24:08]url: /json_proto [21:24:08]query_string will be loaded in cgi processing [21:24:08]execute_cgi json_proto POST (null) [21:24:08]execute_cgi path=json_proto method=POST [21:24:08]POST find Content-Length [21:24:08]Host: 172.17.42.196:8080 [21:24:08]Content-Length: 687 [21:24:08]Content-Type: application/json [21:24:08] [21:24:08]POST finish read [21:24:08]Found Content-Length = 687 [21:24:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 37.800, "sum" : 2880.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2880.00, "total" : 2880.00, "payments": [ { "type": 0, "sum" : 2880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:08]execute_script... [21:24: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)3309270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 37.800, "sum" : 2880.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2880.00, "total" : 2880.00, "payments": [ { "type": 0, "sum" : 2880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:08]POST & json_proto [21:24:08]process_json_proto [21:24:08]json parsed OK: [21:24:08]protocol is kg_v1.0 [21:24:08]action value=close_receipt [21:24:08]process_action close_receipt [21:24:08]cmd_close_receipt [21:24:08]MH_GetDate [21:24:08]Write to MH i2c: F0 00 00 E4 2C FF [21:24:08]Write i2c OK [21:24:08]MH_I2C_Read... [21:24:08]Read from MH i2c: F0 [21:24:08]MH_I2C_Read... [21:24:08]Read from MH i2c: F0 09 00 [21:24:08]MH_I2C_Read... [21:24:08]Read from MH i2c: F0 09 00 E4 2C 00 FE BA 1A 67 FF C4 6B 64 D3 [21:24:08]GetLastDocTimeStamp 1729805017 [21:24:08]current date 1729805054 [21:24:08]FM_GetShiftState [21:24:08]SAM_PROTO_GetShiftState [21:24:08]wFMCommunicate request_size=4 [21:24:08]MH_SAM_APDU [21:24:08]CAPDU: 80 13 01 00 [21:24:08]Write to MH i2c: E2 08 00 E5 2C 80 13 01 00 00 00 00 00 8E [21:24:08]Write i2c OK [21:24:08]MH_I2C_Read... [21:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:08]Read from MH i2c: E2 [21:24:08]MH_I2C_Read... [21:24:08]Read from MH i2c: E2 0E 00 [21:24:08]MH_I2C_Read... [21:24:08]Read from MH i2c: E2 0E 00 E5 2C 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 C1 [21:24:08]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:24:08]wFMCommunicate OK [21:24:08]SAM_PROTO_GetShiftState done [21:24:08]FM_GetShiftState done [21:24:08]opened in 1729730575 [21:24:08]opened+sec_in_day 1729816975 [21:24:08]quantity*price = 288036 [21:24:08]sum+1 = 288037 [21:24:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 2880.00 Внесено: 2880.00 СДАЧА: 0.00 НСП 1% : 25.49 НДС 12% : 305.88 Наличными: 2880.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 136 24.10.2024 21:24 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60061 ФПД: 42880892787493 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212414&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60061&fm=42880892787493&tin=02508201610067®Number=0000000000091622&sum=288000 [21:24:10]StoreToDocumentArchive [21:24:10]shift 529 fd 60061 [21:24:10]save to /storage/0529/doc_00060061 [21:24:10]save last doc name /storage/0529/doc_00060061 to /storage/kkm_last_doc_name [21:24:10]save OK [21:24:10]Clear old archive folders... [21:24:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:24:10]tlvbuf is 00E09800 [21:24:10]SAM_PROTO_ClearQueue [21:24:10]wFMCommunicate request_size=4 [21:24:10]MH_SAM_APDU [21:24:10]CAPDU: 80 09 00 00 [21:24:10]Write to MH i2c: E2 08 00 F2 2C 80 09 00 00 00 00 00 00 90 [21:24:10]Write i2c OK [21:24:10]MH_I2C_Read... [21:24:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:10]Read from MH i2c: E2 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 03 00 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 03 00 F2 2C 00 90 00 92 [21:24:10]RAPDU: 90 00 [21:24:10]wFMCommunicate OK [21:24:10]SAM_PROTO_ClearQueue done [21:24:10]KKMCreateOFDPacket [21:24:10]OFDProtocolAddRootSTLVToBuf [21:24:10]FM_MakeSignedData [21:24:10]FM_MakeSignedData [21:24:10]SAM_PROTO_SignData [21:24:10]wFMCommunicate request_size=4 [21:24:10]MH_SAM_APDU [21:24:10]CAPDU: 80 0D 01 02 [21:24:10]Write to MH i2c: E2 08 00 F3 2C 80 0D 01 02 00 00 00 00 98 [21:24:10]Write i2c OK [21:24:10]MH_I2C_Read... [21:24:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:10]Read from MH i2c: E2 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 03 00 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 03 00 F3 2C 00 90 00 93 [21:24:10]RAPDU: 90 00 [21:24:10]wFMCommunicate OK [21:24:10]wFMCommunicate request_size=255 [21:24:10]MH_SAM_APDU [21:24:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 93 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 65 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 65 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 77 00 00 00 00 07 04 06 00 00 65 04 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 FE BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9D EA 00 00 35 04 06 00 [21:24:10]Write to MH i2c: E2 02 01 F4 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 93 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 65 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 65 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 77 00 00 00 00 07 04 06 00 00 65 04 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 FE BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9D EA 00 00 35 04 06 00 00 00 A3 [21:24:10]Write i2c OK [21:24:10]MH_I2C_Read... [21:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:10]Read from MH i2c: E2 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 03 00 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 03 00 F4 2C 00 90 00 94 [21:24:10]RAPDU: 90 00 [21:24:10]wFMCommunicate OK [21:24:10]wFMCommunicate request_size=11 [21:24:10]MH_SAM_APDU [21:24:10]CAPDU: 80 0D 02 02 06 26 FF FC 61 DB 25 [21:24:10]Write to MH i2c: E2 0E 00 F5 2C 80 0D 02 02 06 00 26 FF FC 61 DB 25 00 00 29 [21:24:10]Write i2c OK [21:24:10]MH_I2C_Read... [21:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:10]Read from MH i2c: E2 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 03 00 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 03 00 F5 2C 00 90 00 95 [21:24:10]RAPDU: 90 00 [21:24:10]wFMCommunicate OK [21:24:10]wFMCommunicate request_size=4 [21:24:10]MH_SAM_APDU [21:24:10]CAPDU: 80 0D 03 02 [21:24:10]Write to MH i2c: E2 08 00 F6 2C 80 0D 03 02 00 00 00 00 9D [21:24:10]Write i2c OK [21:24:10]MH_I2C_Read... [21:24:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:10]Read from MH i2c: E2 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 0B 00 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 0B 00 F6 2C 00 D8 79 6A 9C AB 83 88 3B 90 00 E6 [21:24:10]RAPDU: D8 79 6A 9C AB 83 88 3B 90 00 [21:24:10]wFMCommunicate OK [21:24:10]SAM_PROTO_SignData done [21:24:10]FM_MakeSignedData done [21:24:10]CreateOFDProtocolMessage [21:24:10]wFMCommunicate request_size=4 [21:24:10]MH_SAM_APDU [21:24:10]CAPDU: 80 11 00 00 [21:24:10]Write to MH i2c: E2 08 00 F7 2C 80 11 00 00 00 00 00 00 9D [21:24:10]Write i2c OK [21:24:10]MH_I2C_Read... [21:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:10]Read from MH i2c: E2 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 17 00 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 17 00 F7 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F4 [21:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:24:10]wFMCommunicate OK [21:24:10]CreateOFDProtocolMessage done [21:24:10]OFDSenderStorePacket 60061 [21:24:10]StoreOFDPacket docnum=60061 [21:24:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 01 00 00 98 A8 08 01 5B 0F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 93 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 65 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 65 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 77 00 00 00 00 07 04 06 00 00 65 04 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 FE BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9D EA 00 00 35 04 06 00 26 FF FC 61 DB 25 D8 79 6A 9C AB 83 88 3B [21:24:10]CheckFolder [21:24:10]dirname=/storage/ofd_packets [21:24:10]CheckFolder done [21:24:10]ProducePacketName [21:24:10]name=ofd_packets/00060061 [21:24:10]NVStorageSaveData ofd_packets/00060061 [21:24:10]File name is /storage/ofd_packets/00060061 [21:24:10]Write 302 bytes [21:24:10]NVStorageSaveData done [21:24:10]OFDSenderStorePacket done [21:24:10]KKMCreateOFDPacket done [21:24:10]NVStorageSaveData kkm_last_timestamp [21:24:10]File name is /storage/kkm_last_timestamp [21:24:10]Write 4 bytes [21:24:10]NVStorageSaveData done [21:24:10]ExternCall_PrintAddStr [21:24:10]wPrintStart [21:24:10]Write to MH i2c: 01 00 00 F8 2C 24 [21:24:10]Write i2c OK [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: 01 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: 01 07 00 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: 01 07 00 F8 2C 00 00 00 00 00 FF 0F 39 [21:24:10]RasterBufferAndPrint [21:24:10]line Счет N : (1)3309270 [21:24:10]line ИНН: 02508201610067 [21:24:10]line Контрольно-Кассовый Чек [21:24:10]line ПРОДАЖА [21:24:10]line ТРК (МРК, ГНК) : 5 [21:24:10]line Товар: 2710194210 [21:24:10]line ДТ(л)-К-5 [21:24:10]line 37.800 * 76.20 [21:24:10]line = 2880.36 [21:24:10]line НДС 12% НСП 1% [21:24:10]line > о реализуемом товаре [21:24:10]line ОКРУГЛЕНИЕ: -0.36 [21:24:10]line ИТОГО: 2880.00 [21:24:10]line Внесено: 2880.00 [21:24:10]line СДАЧА: 0.00 [21:24:10]line НСП 1% : 25.49 [21:24:10]line НДС 12% : 305.88 [21:24:10]line Наличными: 2880.00 [21:24:10]line Безнал.: 0.00 [21:24:10]line Место: АЗС № 87 "Партнер Нефть" [21:24:10]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [21:24:10]line СНО: Общий режим [21:24:10]line Чек 136 24.10.2024 21:24 [21:24:10]line Смена: 529 ФФД: 1.0 [21:24:10]line ЗНМ: 0300000084 [21:24:10]line РНМ: 0000000000091622 [21:24:10]line Версия ККМ: 001 [21:24:10]line ФМ: 0000000000874674 [21:24:10]line ФД: 60061 [21:24:10]line ФПД: 42880892787493 [21:24:10]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212414&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60061&fm=42880892787493&tin=02508201610067®Number=0000000000091622&sum=288000 [21:24:10]OFD Sender: Processing packet 60061 [packets to send 30, broken 29] [21:24:10]ProducePacketName [21:24:10]name=ofd_packets/00060061 [21:24:10]OFD Sender: To server: pG, [21:24:10]CommunicateWithHost lk.salyk.kg:30040 [21:24:10]ConnectInit lk.salyk.kg [21:24:10]written 0, free lines is 4095 [21:24:11]Connected sock=10 [21:24:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 01 00 00 98 A8 08 01 5B 0F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 93 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 65 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 65 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 77 00 00 00 00 07 04 06 00 00 65 04 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 FE BA 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9D EA 00 00 35 04 06 00 26 FF FC 61 DB 25 D8 79 6A 9C AB 83 88 3B [21:24:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 51 2D 47 00 0E A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9D EA 00 00 F4 03 04 00 ED 60 1A 67 B6 04 01 00 00 42 34 A7 D4 71 B7 9A 12 [21:24:11]CommunicateWithHost err = 0 [21:24:11]CheckOFDResponse [21:24:11]1017 (14) - 77093643461234 [21:24:11]1041 (16) - 0000000000874674 [21:24:11]1040 (4) - 60061 [21:24:11]1012 (4) - 24.10.2024 14:59 [21:24:11]1206 (1) - 0 [21:24:11]OFD Sender: Remove packet 60061 [21:24:11]ProducePacketName [21:24:11]name=ofd_packets/00060061 [21:24:11]NVStorageDeleteData [21:24:11]Write to MH i2c: 01 00 00 23 2D 50 [21:24:11]Write i2c OK [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: 01 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: 01 07 00 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: 01 07 00 23 2D 00 00 00 00 00 E8 0C 4B [21:24:11]RasterBufferAndPrint [21:24:11]line [21:24:11]line [21:24:11]line [21:24:11]line [21:24:11]line [21:24:11]written 0, free lines is 3310 [21:24:11]MH_Cut [21:24:11]Write to MH i2c: D1 01 00 2A 2D 01 29 [21:24:11]Write i2c OK [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: D1 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: D1 01 00 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: D1 01 00 2A 2D 00 28 [21:24:11]Write to MH i2c: 01 00 00 2B 2D 58 [21:24:11]Write i2c OK [21:24:11]MH_I2C_Read... [21:24:11]OFD Sender: No OFD packet to send [21:24:12]*** Cut start [21:24:12]*** Partial cut [21:24:12]*** CUTSNS_PIN = 1 [21:24:12]*** CUTSNS_PIN = 0 [21:24:12]*** Brake cut motor [21:24:12]Read from MH i2c: 01 [21:24:12]MH_I2C_Read... [21:24:12]*** Stop cut motor [21:24:12]*** Cut end [21:24:12]Read from MH i2c: 01 07 00 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: 01 07 00 2B 2D 00 00 00 00 00 FF 0F 6D [21:24:12]process_action close_receipt done [21:24:12]requested_data is exist [21:24:12]produce_requested_data [21:24:12]requested_item fm.sn is exist - process it [21:24:12]wFMCommunicate request_size=4 [21:24:12]MH_SAM_APDU [21:24:12]CAPDU: 80 11 00 00 [21:24:12]Write to MH i2c: E2 08 00 2C 2D 80 11 00 00 00 00 00 00 D3 [21:24:12]Write i2c OK [21:24:12]MH_I2C_Read... [21:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:12]Read from MH i2c: E2 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 17 00 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 17 00 2C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 2A [21:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:24:12]wFMCommunicate OK [21:24:12]requested_item fd.num is exist - process it [21:24:12]SAM_PROTO_GetFieldsCounters [21:24:12]wFMCommunicate request_size=4 [21:24:12]MH_SAM_APDU [21:24:12]CAPDU: 80 13 00 00 [21:24:12]Write to MH i2c: E2 08 00 2D 2D 80 13 00 00 00 00 00 00 D6 [21:24:12]Write i2c OK [21:24:12]MH_I2C_Read... [21:24:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:13]Read from MH i2c: E2 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 62 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 62 00 2D 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 9D EA 00 00 0E 04 04 00 11 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 28 [21:24:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 9D EA 00 00 0E 04 04 00 11 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 [21:24:13]wFMCommunicate OK [21:24:13]SAM_PROTO_GetFieldsCounters done [21:24:13]requested_item shift.num is exist - process it [21:24:13]requested_item shift.opened is exist - process it [21:24:13]req_shift_opened [21:24:13]FM_GetShiftState [21:24:13]SAM_PROTO_GetShiftState [21:24:13]wFMCommunicate request_size=4 [21:24:13]MH_SAM_APDU [21:24:13]CAPDU: 80 13 01 00 [21:24:13]Write to MH i2c: E2 08 00 2E 2D 80 13 01 00 00 00 00 00 D8 [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:13]Read from MH i2c: E2 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 0E 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 0E 00 2E 2D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 0B [21:24:13]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:24:13]wFMCommunicate OK [21:24:13]SAM_PROTO_GetShiftState done [21:24:13]FM_GetShiftState done [21:24:13]req_shift_opened done [21:24:13]requested_item shift.open_date is exist - process it [21:24:13]req_shift_open_date [21:24:13]req_shift_open_date done [21:24:13]produce_requested_data done [21:24:13]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60061,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [21:24:13]process_action_free close_receipt [21:24:13]json_value_free [21:24:13]json_value_free done [21:24:13]process_json_proto returns [21:24:13]Send response to host [21:24:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60061,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [21:24:13]free response buf [21:24:13]execute_script done [21:24:13]execute_script returns [21:24:13]free content buf [21:24:13]Sock 7.Close socket [21:24:13]Sock 7.Thread stoped [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]accept exits with 9 [21:26:46]New connection [21:26:46]New thread 3067108708 created [21:26:46]Thread 3067252068 joined [21:26:46]Waiting for new connection... [21:26:46] Sock 9.Parse request [21:26:46]Sock 9.Check first char [21:26:46]Sock 9.First char is OK [21:26:46]request: POST /json_proto HTTP/1.0 [21:26:46]Method: POST [21:26:46]URL: /json_proto [21:26:46]Method is POST - this is cgi request [21:26:46]url: /json_proto [21:26:46]query_string will be loaded in cgi processing [21:26:46]execute_cgi json_proto POST (null) [21:26:46]execute_cgi path=json_proto method=POST [21:26:46]POST find Content-Length [21:26:46]Host: 172.17.42.196:8080 [21:26:46]Content-Length: 1066 [21:26:46]Content-Type: application/json [21:26:46] [21:26:46]POST finish read [21:26:46]Found Content-Length = 1066 [21:26:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199834", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 229.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:46]execute_script... [21:26:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199834", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 229.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:46]POST & json_proto [21:26:46]process_json_proto [21:26:46]json parsed OK: [21:26:46]protocol is kg_v1.0 [21:26:46]action value=close_receipt [21:26:46]process_action close_receipt [21:26:46]cmd_close_receipt [21:26:46]MH_GetDate [21:26:46]Write to MH i2c: F0 00 00 2F 2D 4B [21:26:46]Write i2c OK [21:26:46]MH_I2C_Read... [21:26:46]Read from MH i2c: F0 [21:26:46]MH_I2C_Read... [21:26:46]Read from MH i2c: F0 09 00 [21:26:46]MH_I2C_Read... [21:26:46]Read from MH i2c: F0 09 00 2F 2D 00 9B BB 1A 67 FF C4 6B 64 BD [21:26:46]GetLastDocTimeStamp 1729805054 [21:26:46]current date 1729805211 [21:26:46]FM_GetShiftState [21:26:46]SAM_PROTO_GetShiftState [21:26:46]wFMCommunicate request_size=4 [21:26:46]MH_SAM_APDU [21:26:46]CAPDU: 80 13 01 00 [21:26:46]Write to MH i2c: E2 08 00 30 2D 80 13 01 00 00 00 00 00 DA [21:26:46]Write i2c OK [21:26:46]MH_I2C_Read... [21:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:46]Read from MH i2c: E2 [21:26:46]MH_I2C_Read... [21:26:46]Read from MH i2c: E2 0E 00 [21:26:46]MH_I2C_Read... [21:26:46]Read from MH i2c: E2 0E 00 30 2D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 0D [21:26:46]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:26:46]wFMCommunicate OK [21:26:46]SAM_PROTO_GetShiftState done [21:26:46]FM_GetShiftState done [21:26:46]opened in 1729730575 [21:26:46]opened+sec_in_day 1729816975 [21:26:46]quantity*price = 12500 [21:26:46]sum+1 = 12501 [21:26:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521254 Чай холодный MAXI черный со вкусом клубн 1.000 * 104.00 = 104.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 229.00 НСП 1% : 2.03 НДС 12% : 24.31 Наличными: 229.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 137 24.10.2024 21:26 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60062 ФПД: 68655970118719 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212651&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60062&fm=68655970118719&tin=02508201610067®Number=0000000000091622&sum=22900 0 [21:26:47]StoreToDocumentArchive [21:26:47]shift 529 fd 60062 [21:26:47]save to /storage/0529/doc_00060062 [21:26:47]save last doc name /storage/0529/doc_00060062 to /storage/kkm_last_doc_name [21:26:47]save OK [21:26:47]Clear old archive folders... [21:26:47]ProcessDocumentItem done err = 0, tmpTLVsize=440 [21:26:47]tlvbuf is B6FA1670 [21:26:47]SAM_PROTO_ClearQueue [21:26:47]wFMCommunicate request_size=4 [21:26:47]MH_SAM_APDU [21:26:47]CAPDU: 80 09 00 00 [21:26:47]Write to MH i2c: E2 08 00 3D 2D 80 09 00 00 00 00 00 00 DC [21:26:47]Write i2c OK [21:26:47]MH_I2C_Read... [21:26:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:47]Read from MH i2c: E2 [21:26:47]MH_I2C_Read... [21:26:47]Read from MH i2c: E2 03 00 [21:26:47]MH_I2C_Read... [21:26:47]Read from MH i2c: E2 03 00 3D 2D 00 90 00 DE [21:26:47]RAPDU: 90 00 [21:26:47]wFMCommunicate OK [21:26:47]SAM_PROTO_ClearQueue done [21:26:47]KKMCreateOFDPacket [21:26:47]OFDProtocolAddRootSTLVToBuf [21:26:47]FM_MakeSignedData [21:26:47]FM_MakeSignedData [21:26:47]SAM_PROTO_SignData [21:26:47]wFMCommunicate request_size=4 [21:26:47]MH_SAM_APDU [21:26:47]CAPDU: 80 0D 01 02 [21:26:47]Write to MH i2c: E2 08 00 3E 2D 80 0D 01 02 00 00 00 00 E4 [21:26:47]Write i2c OK [21:26:47]MH_I2C_Read... [21:26:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:47]Read from MH i2c: E2 [21:26:47]MH_I2C_Read... [21:26:47]Read from MH i2c: E2 03 00 [21:26:47]MH_I2C_Read... [21:26:47]Read from MH i2c: E2 03 00 3E 2D 00 90 00 DF [21:26:47]RAPDU: 90 00 [21:26:47]wFMCommunicate OK [21:26:47]wFMCommunicate request_size=255 [21:26:47]MH_SAM_APDU [21:26:47]CAPDU: 80 0D 02 02 FA 03 00 B8 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 [21:26:47]Write to MH i2c: E2 02 01 3F 2D 80 0D 02 02 FA 00 03 00 B8 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 9A [21:26:47]Write i2c OK [21:26:47]MH_I2C_Read... [21:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:47]Read from MH i2c: E2 [21:26:47]MH_I2C_Read... [21:26:47]Read from MH i2c: E2 03 00 [21:26:47]MH_I2C_Read... [21:26:47]Read from MH i2c: E2 03 00 3F 2D 00 90 00 E0 [21:26:47]RAPDU: 90 00 [21:26:47]wFMCommunicate OK [21:26:47]wFMCommunicate request_size=199 [21:26:47]MH_SAM_APDU [21:26:47]CAPDU: 80 0D 02 02 C2 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 09 00 00 00 00 07 04 06 00 74 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 9B BB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9E EA 00 00 35 04 06 00 3E 71 36 B5 EC 3F [21:26:47]Write to MH i2c: E2 CA 00 40 2D 80 0D 02 02 C2 00 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 09 00 00 00 00 07 04 06 00 74 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 9B BB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9E EA 00 00 35 04 06 00 3E 71 36 B5 EC 3F 00 00 F2 [21:26:47]Write i2c OK [21:26:47]MH_I2C_Read... [21:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:47]Read from MH i2c: E2 [21:26:47]MH_I2C_Read... [21:26:47]Read from MH i2c: E2 03 00 [21:26:47]MH_I2C_Read... [21:26:47]Read from MH i2c: E2 03 00 40 2D 00 90 00 E1 [21:26:47]RAPDU: 90 00 [21:26:47]wFMCommunicate OK [21:26:47]wFMCommunicate request_size=4 [21:26:47]MH_SAM_APDU [21:26:47]CAPDU: 80 0D 03 02 [21:26:47]Write to MH i2c: E2 08 00 41 2D 80 0D 03 02 00 00 00 00 E9 [21:26:47]Write i2c OK [21:26:47]MH_I2C_Read... [21:26:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:48]Read from MH i2c: E2 [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: E2 0B 00 [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: E2 0B 00 41 2D 00 E9 BD A4 93 C1 B3 56 56 90 00 E7 [21:26:48]RAPDU: E9 BD A4 93 C1 B3 56 56 90 00 [21:26:48]wFMCommunicate OK [21:26:48]SAM_PROTO_SignData done [21:26:48]FM_MakeSignedData done [21:26:48]CreateOFDProtocolMessage [21:26:48]wFMCommunicate request_size=4 [21:26:48]MH_SAM_APDU [21:26:48]CAPDU: 80 11 00 00 [21:26:48]Write to MH i2c: E2 08 00 42 2D 80 11 00 00 00 00 00 00 E9 [21:26:48]Write i2c OK [21:26:48]MH_I2C_Read... [21:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:48]Read from MH i2c: E2 [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: E2 17 00 [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: E2 17 00 42 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 40 [21:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:26:48]wFMCommunicate OK [21:26:48]CreateOFDProtocolMessage done [21:26:48]OFDSenderStorePacket 60062 [21:26:48]StoreOFDPacket docnum=60062 [21:26:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 CC 01 00 00 42 98 C4 01 59 C4 5A 03 01 00 03 00 B8 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 09 00 00 00 00 07 04 06 00 74 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 9B BB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9E EA 00 00 35 04 06 00 3E 71 36 B5 EC 3F E9 BD A4 93 C1 B3 56 56 [21:26:48]CheckFolder [21:26:48]dirname=/storage/ofd_packets [21:26:48]CheckFolder done [21:26:48]ProducePacketName [21:26:48]name=ofd_packets/00060062 [21:26:48]NVStorageSaveData ofd_packets/00060062 [21:26:48]File name is /storage/ofd_packets/00060062 [21:26:48]Write 490 bytes [21:26:48]NVStorageSaveData done [21:26:48]OFDSenderStorePacket done [21:26:48]KKMCreateOFDPacket done [21:26:48]NVStorageSaveData kkm_last_timestamp [21:26:48]File name is /storage/kkm_last_timestamp [21:26:48]Write 4 bytes [21:26:48]NVStorageSaveData done [21:26:48]ExternCall_PrintAddStr [21:26:48]wPrintStart [21:26:48]Write to MH i2c: 01 00 00 43 2D 70 [21:26:48]OFD Sender: Processing packet 60062 [packets to send 30, broken 29] [21:26:48]ProducePacketName [21:26:48]name=ofd_packets/00060062 [21:26:48]Write i2c OK [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: 01 [21:26:48]MH_I2C_Read... [21:26:48]OFD Sender: To server: pG, [21:26:48]CommunicateWithHost lk.salyk.kg:30040 [21:26:48]ConnectInit lk.salyk.kg [21:26:48]Read from MH i2c: 01 07 00 [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: 01 07 00 43 2D 00 00 00 00 00 FF 0F 85 [21:26:48]RasterBufferAndPrint [21:26:48]line Счет N : (3)199834 [21:26:48]line ИНН: 02508201610067 [21:26:48]line Контрольно-Кассовый Чек [21:26:48]line ПРОДАЖА [21:26:48]line Товар: 4870202522701 [21:26:48]line Напиток Maxi Чай черный Малина 1,2 [21:26:48]line 1.000 * 125.00 [21:26:48]line = 125.00 [21:26:48]line НДС 12% НСП 1% [21:26:48]line > о реализуемом товаре [21:26:48]line Товар: 4870202521254 [21:26:48]line Чай холодный MAXI черный со вкусом клубн [21:26:48]line 1.000 * 104.00 [21:26:48]line = 104.00 [21:26:48]line НДС 12% НСП 1% [21:26:48]line > о реализуемом товаре [21:26:48]line ИТОГО: 229.00 [21:26:48]line НСП 1% : 2.03 [21:26:48]line НДС 12% : 24.31 [21:26:48]line Наличными: 229.00 [21:26:48]line Безнал.: 0.00 [21:26:48]line Место: АЗС № 87 "Партнер Нефть" [21:26:48]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [21:26:48]line СНО: Общий режим [21:26:48]line Чек 137 24.10.2024 21:26 [21:26:48]line Смена: 529 ФФД: 1.0 [21:26:48]line ЗНМ: 0300000084 [21:26:48]line РНМ: 0000000000091622 [21:26:48]line Версия ККМ: 001 [21:26:48]line ФМ: 0000000000874674 [21:26:48]line ФД: 60062 [21:26:48]line ФПД: 68655970118719 [21:26:48]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212651&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60062&fm=68655970118719&tin=02508201610067®Number=0000000000091622&sum=22900 [21:26:48]line 0 [21:26:48]written 0, free lines is 4095 [21:26:48]Connected sock=10 [21: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 34 36 37 34 CC 01 00 00 42 98 C4 01 59 C4 5A 03 01 00 03 00 B8 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 09 00 00 00 00 07 04 06 00 74 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 9B BB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9E EA 00 00 35 04 06 00 3E 71 36 B5 EC 3F E9 BD A4 93 C1 B3 56 56 [21:26:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 60 45 47 00 BF C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9E EA 00 00 F4 03 04 00 8B 61 1A 67 B6 04 01 00 00 F9 C9 A0 5D 51 BA A5 6F [21:26:48]CommunicateWithHost err = 0 [21:26:48]CheckOFDResponse [21:26:48]1017 (14) - 77093643461234 [21:26:48]1041 (16) - 0000000000874674 [21:26:48]1040 (4) - 60062 [21:26:48]1012 (4) - 24.10.2024 15:02 [21:26:48]1206 (1) - 0 [21:26:48]OFD Sender: Remove packet 60062 [21:26:48]ProducePacketName [21:26:48]name=ofd_packets/00060062 [21:26:48]NVStorageDeleteData [21:26:48]Write to MH i2c: 01 00 00 73 2D A0 [21:26:48]Write i2c OK [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: 01 [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: 01 07 00 [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: 01 07 00 73 2D 00 00 00 00 00 8C 0C 3F [21:26:48]RasterBufferAndPrint [21:26:48]line [21:26:48]line [21:26:48]line [21:26:48]line [21:26:48]line [21:26:48]written 0, free lines is 3220 [21:26:48]MH_Cut [21:26:48]Write to MH i2c: D1 01 00 7A 2D 01 79 [21:26:48]Write i2c OK [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: D1 [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: D1 01 00 [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: D1 01 00 7A 2D 00 78 [21:26:48]Write to MH i2c: 01 00 00 7B 2D A8 [21:26:48]Write i2c OK [21:26:48]MH_I2C_Read... [21:26:49]OFD Sender: No OFD packet to send [21:26:49]*** Cut start [21:26:49]*** Partial cut [21:26:49]*** CUTSNS_PIN = 1 [21:26:49]*** CUTSNS_PIN = 0 [21:26:50]*** Brake cut motor [21:26:50]Read from MH i2c: 01 [21:26:50]MH_I2C_Read... [21:26:50]*** Stop cut motor [21:26:50]*** Cut end [21:26:50]Read from MH i2c: 01 07 00 [21:26:50]MH_I2C_Read... [21:26:50]Read from MH i2c: 01 07 00 7B 2D 00 00 00 00 00 FF 0F BD [21:26:50]process_action close_receipt done [21:26:50]requested_data is exist [21:26:50]produce_requested_data [21:26:50]requested_item fm.sn is exist - process it [21:26:50]wFMCommunicate request_size=4 [21:26:50]MH_SAM_APDU [21:26:50]CAPDU: 80 11 00 00 [21:26:50]Write to MH i2c: E2 08 00 7C 2D 80 11 00 00 00 00 00 00 23 [21:26:50]Write i2c OK [21:26:50]MH_I2C_Read... [21:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:50]Read from MH i2c: E2 [21:26:50]MH_I2C_Read... [21:26:50]Read from MH i2c: E2 17 00 [21:26:50]MH_I2C_Read... [21:26:50]Read from MH i2c: E2 17 00 7C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 7A [21:26:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:26:50]wFMCommunicate OK [21:26:50]requested_item fd.num is exist - process it [21:26:50]SAM_PROTO_GetFieldsCounters [21:26:50]wFMCommunicate request_size=4 [21:26:50]MH_SAM_APDU [21:26:50]CAPDU: 80 13 00 00 [21:26:50]Write to MH i2c: E2 08 00 7D 2D 80 13 00 00 00 00 00 00 26 [21:26:50]Write i2c OK [21:26:50]MH_I2C_Read... [21:26:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:50]Read from MH i2c: E2 [21:26:50]MH_I2C_Read... [21:26:50]Read from MH i2c: E2 62 00 [21:26:50]MH_I2C_Read... [21:26:50]Read from MH i2c: E2 62 00 7D 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 9E EA 00 00 0E 04 04 00 11 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 7C [21: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 9E EA 00 00 0E 04 04 00 11 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 [21:26:50]wFMCommunicate OK [21:26:50]SAM_PROTO_GetFieldsCounters done [21:26:50]requested_item shift.num is exist - process it [21:26:50]requested_item shift.opened is exist - process it [21:26:50]req_shift_opened [21:26:50]FM_GetShiftState [21:26:50]SAM_PROTO_GetShiftState [21:26:50]wFMCommunicate request_size=4 [21:26:50]MH_SAM_APDU [21:26:50]CAPDU: 80 13 01 00 [21:26:50]Write to MH i2c: E2 08 00 7E 2D 80 13 01 00 00 00 00 00 28 [21:26:50]Write i2c OK [21:26:50]MH_I2C_Read... [21:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:50]Read from MH i2c: E2 [21:26:50]MH_I2C_Read... [21:26:50]Read from MH i2c: E2 0E 00 [21:26:50]MH_I2C_Read... [21:26:50]Read from MH i2c: E2 0E 00 7E 2D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 5B [21:26:50]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:26:50]wFMCommunicate OK [21:26:50]SAM_PROTO_GetShiftState done [21:26:50]FM_GetShiftState done [21:26:50]req_shift_opened done [21:26:50]requested_item shift.open_date is exist - process it [21:26:50]req_shift_open_date [21:26:50]req_shift_open_date done [21:26:50]produce_requested_data done [21:26:50]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60062,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [21:26:50]process_action_free close_receipt [21:26:50]json_value_free [21:26:50]json_value_free done [21:26:50]process_json_proto returns [21:26:50]Send response to host [21:26:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60062,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [21:26:50]free response buf [21:26:50]execute_script done [21:26:50]execute_script returns [21:26:50]free content buf [21:26:50]Sock 9.Close socket [21:26:50]Sock 9.Thread stoped [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:37]accept exits with 7 [21:27:37]New connection [21:27:37]New thread 3067252068 created [21:27:37]Thread 3067108708 joined [21:27:37]Waiting for new connection... [21:27:37] Sock 7.Parse request [21:27:37]Sock 7.Check first char [21:27:37]Sock 7.First char is OK [21:27:37]request: POST /json_proto HTTP/1.0 [21:27:37]Method: POST [21:27:37]URL: /json_proto [21:27:37]Method is POST - this is cgi request [21:27:37]url: /json_proto [21:27:37]query_string will be loaded in cgi processing [21:27:37]execute_cgi json_proto POST (null) [21:27:37]execute_cgi path=json_proto method=POST [21:27:37]POST find Content-Length [21:27:37]Host: 172.17.42.196:8080 [21:27:37]Content-Length: 644 [21:27:37]Content-Type: application/json [21:27:37] [21:27:37]POST finish read [21:27:37]Found Content-Length = 644 [21:27:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199835", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:37]execute_script... [21:27:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199835", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:37]POST & json_proto [21:27:37]process_json_proto [21:27:37]json parsed OK: [21:27:37]protocol is kg_v1.0 [21:27:37]action value=close_receipt [21:27:37]process_action close_receipt [21:27:37]cmd_close_receipt [21:27:37]MH_GetDate [21:27:37]Write to MH i2c: F0 00 00 7F 2D 9B [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: F0 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: F0 09 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: F0 09 00 7F 2D 00 CE BB 1A 67 FF C4 6B 64 40 [21:27:37]GetLastDocTimeStamp 1729805211 [21:27:37]current date 1729805262 [21:27:37]FM_GetShiftState [21:27:37]SAM_PROTO_GetShiftState [21:27:37]wFMCommunicate request_size=4 [21:27:37]MH_SAM_APDU [21:27:37]CAPDU: 80 13 01 00 [21:27:37]Write to MH i2c: E2 08 00 80 2D 80 13 01 00 00 00 00 00 2A [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:37]Read from MH i2c: E2 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 0E 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 0E 00 80 2D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 5D [21:27:37]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:27:37]wFMCommunicate OK [21:27:37]SAM_PROTO_GetShiftState done [21:27:37]FM_GetShiftState done [21:27:37]opened in 1729730575 [21:27:37]opened+sec_in_day 1729816975 [21:27:37]quantity*price = 23000 [21:27:37]sum+1 = 23001 [21:27:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 138 24.10.2024 21:27 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60063 ФПД: 189672874385314 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212742&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60063&fm=189672874385314&tin=02508201610067®Number=0000000000091622&sum=23000 0 [21:27:38]StoreToDocumentArchive [21:27:38]shift 529 fd 60063 [21:27:38]save to /storage/0529/doc_00060063 [21:27:38]save last doc name /storage/0529/doc_00060063 to /storage/kkm_last_doc_name [21:27:38]save OK [21:27:38]Clear old archive folders... [21:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=280 [21:27:38]tlvbuf is 00DF0420 [21:27:38]SAM_PROTO_ClearQueue [21:27:38]wFMCommunicate request_size=4 [21:27:38]MH_SAM_APDU [21:27:38]CAPDU: 80 09 00 00 [21:27:38]Write to MH i2c: E2 08 00 8D 2D 80 09 00 00 00 00 00 00 2C [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:38]Read from MH i2c: E2 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 03 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 03 00 8D 2D 00 90 00 2E [21:27:38]RAPDU: 90 00 [21:27:38]wFMCommunicate OK [21:27:38]SAM_PROTO_ClearQueue done [21:27:38]KKMCreateOFDPacket [21:27:38]OFDProtocolAddRootSTLVToBuf [21:27:38]FM_MakeSignedData [21:27:38]FM_MakeSignedData [21:27:38]SAM_PROTO_SignData [21:27:38]wFMCommunicate request_size=4 [21:27:38]MH_SAM_APDU [21:27:38]CAPDU: 80 0D 01 02 [21:27:38]Write to MH i2c: E2 08 00 8E 2D 80 0D 01 02 00 00 00 00 34 [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:38]Read from MH i2c: E2 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 03 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 03 00 8E 2D 00 90 00 2F [21:27:38]RAPDU: 90 00 [21:27:38]wFMCommunicate OK [21:27:38]wFMCommunicate request_size=255 [21:27:38]MH_SAM_APDU [21:27:38]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 CE BB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 [21:27:38]Write to MH i2c: E2 02 01 8F 2D 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 CE BB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 00 00 7C [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:38]Read from MH i2c: E2 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 03 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 03 00 8F 2D 00 90 00 30 [21:27:38]RAPDU: 90 00 [21:27:38]wFMCommunicate OK [21:27:38]wFMCommunicate request_size=39 [21:27:38]MH_SAM_APDU [21:27:38]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9F EA 00 00 35 04 06 00 AC 81 A8 4D 1F A2 [21:27:38]Write to MH i2c: E2 2A 00 90 2D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9F EA 00 00 35 04 06 00 AC 81 A8 4D 1F A2 00 00 62 [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:38]Read from MH i2c: E2 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 03 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 03 00 90 2D 00 90 00 31 [21:27:38]RAPDU: 90 00 [21:27:38]wFMCommunicate OK [21:27:38]wFMCommunicate request_size=4 [21:27:38]MH_SAM_APDU [21:27:38]CAPDU: 80 0D 03 02 [21:27:38]Write to MH i2c: E2 08 00 91 2D 80 0D 03 02 00 00 00 00 39 [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:38]Read from MH i2c: E2 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 0B 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 0B 00 91 2D 00 CC 98 FA 1F 2D 1D 7E 30 90 00 AF [21:27:38]RAPDU: CC 98 FA 1F 2D 1D 7E 30 90 00 [21:27:38]wFMCommunicate OK [21:27:38]SAM_PROTO_SignData done [21:27:38]FM_MakeSignedData done [21:27:38]CreateOFDProtocolMessage [21:27:38]wFMCommunicate request_size=4 [21:27:38]MH_SAM_APDU [21:27:38]CAPDU: 80 11 00 00 [21:27:38]Write to MH i2c: E2 08 00 92 2D 80 11 00 00 00 00 00 00 39 [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:38]Read from MH i2c: E2 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 17 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 17 00 92 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 90 [21:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:27:38]wFMCommunicate OK [21:27:38]CreateOFDProtocolMessage done [21:27:38]OFDSenderStorePacket 60063 [21:27:38]StoreOFDPacket docnum=60063 [21:27:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2C 01 00 00 BD 12 24 01 67 F6 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 CE BB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9F EA 00 00 35 04 06 00 AC 81 A8 4D 1F A2 CC 98 FA 1F 2D 1D 7E 30 [21:27:38]CheckFolder [21:27:38]dirname=/storage/ofd_packets [21:27:38]CheckFolder done [21:27:38]ProducePacketName [21:27:38]name=ofd_packets/00060063 [21:27:38]NVStorageSaveData ofd_packets/00060063 [21:27:38]File name is /storage/ofd_packets/00060063 [21:27:38]Write 330 bytes [21:27:38]NVStorageSaveData done [21:27:38]OFDSenderStorePacket done [21:27:38]KKMCreateOFDPacket done [21:27:38]NVStorageSaveData kkm_last_timestamp [21:27:38]File name is /storage/kkm_last_timestamp [21:27:38]Write 4 bytes [21:27:38]NVStorageSaveData done [21:27:38]ExternCall_PrintAddStr [21:27:38]wPrintStart [21:27:38]Write to MH i2c: 01 00 00 93 2D C0 [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: 01 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: 01 07 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: 01 07 00 93 2D 00 00 00 00 00 FF 0F D5 [21:27:38]RasterBufferAndPrint [21:27:38]line Счет N : (3)199835 [21:27:38]line ИНН: 02508201610067 [21:27:38]line Контрольно-Кассовый Чек [21:27:38]line ПРОДАЖА [21:27:38]line Товар: 2000036210013 [21:27:38]line Кофе Капучино (GABB TRADE) [21:27:38]line 2.000 * 115.00 [21:27:38]line = 230.00 [21:27:38]line НДС 12% НСП 1% [21:27:38]line > о реализуемом товаре [21:27:38]line ИТОГО: 230.00 [21:27:38]line НСП 1% : 2.03 [21:27:38]line НДС 12% : 24.42 [21:27:38]line Наличными: 230.00 [21:27:38]line Безнал.: 0.00 [21:27:38]line Место: АЗС № 87 "Партнер Нефть" [21:27:38]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [21:27:38]line СНО: Общий режим [21:27:38]line Чек 138 24.10.2024 21:27 [21:27:38]line Смена: 529 ФФД: 1.0 [21:27:38]line ЗНМ: 0300000084 [21:27:38]line РНМ: 0000000000091622 [21:27:38]line Версия ККМ: 001 [21:27:38]line ФМ: 0000000000874674 [21:27:38]line ФД: 60063 [21:27:38]line ФПД: 189672874385314 [21:27:39]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212742&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60063&fm=189672874385314&tin=02508201610067®Number=0000000000091622&sum=23000 [21:27:39]line 0 [21:27:39]OFD Sender: Processing packet 60063 [packets to send 30, broken 29] [21:27:39]ProducePacketName [21:27:39]name=ofd_packets/00060063 [21:27:39]OFD Sender: To server: pG, [21:27:39]CommunicateWithHost lk.salyk.kg:30040 [21:27:39]ConnectInit lk.salyk.kg [21:27:39]written 0, free lines is 4095 [21:27:39]Connected sock=9 [21:27:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2C 01 00 00 BD 12 24 01 67 F6 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 CE BB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 9F EA 00 00 35 04 06 00 AC 81 A8 4D 1F A2 CC 98 FA 1F 2D 1D 7E 30 [21:27:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 06 52 47 00 B0 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 34 36 37 34 10 04 04 00 9F EA 00 00 F4 03 04 00 BE 61 1A 67 B6 04 01 00 00 E0 44 4C 8F 85 82 04 17 [21:27:39]CommunicateWithHost err = 0 [21:27:39]CheckOFDResponse [21:27:39]1017 (14) - 77093643461234 [21:27:39]1041 (16) - 0000000000874674 [21:27:39]1040 (4) - 60063 [21:27:39]1012 (4) - 24.10.2024 15:03 [21:27:39]1206 (1) - 0 [21:27:39]OFD Sender: Remove packet 60063 [21:27:39]ProducePacketName [21:27:39]name=ofd_packets/00060063 [21:27:39]NVStorageDeleteData [21:27:39]Write to MH i2c: 01 00 00 BB 2D E8 [21:27:39]Write i2c OK [21:27:39]MH_I2C_Read... [21:27:39]Read from MH i2c: 01 [21:27:39]MH_I2C_Read... [21:27:39]Read from MH i2c: 01 07 00 [21:27:39]MH_I2C_Read... [21:27:39]Read from MH i2c: 01 07 00 BB 2D 00 00 00 00 00 21 0D 1D [21:27:39]RasterBufferAndPrint [21:27:39]line [21:27:39]line [21:27:39]line [21:27:39]line [21:27:39]line [21:27:39]written 0, free lines is 3367 [21:27:39]MH_Cut [21:27:39]Write to MH i2c: D1 01 00 C2 2D 01 C1 [21:27:39]Write i2c OK [21:27:39]MH_I2C_Read... [21:27:39]Read from MH i2c: D1 [21:27:39]MH_I2C_Read... [21:27:39]Read from MH i2c: D1 01 00 [21:27:39]MH_I2C_Read... [21:27:39]Read from MH i2c: D1 01 00 C2 2D 00 C0 [21:27:39]Write to MH i2c: 01 00 00 C3 2D F0 [21:27:39]Write i2c OK [21:27:39]MH_I2C_Read... [21:27:39]OFD Sender: No OFD packet to send [21:27:40]*** Cut start [21:27:40]*** Partial cut [21:27:40]*** CUTSNS_PIN = 1 [21:27:40]*** CUTSNS_PIN = 0 [21:27:40]*** Brake cut motor [21:27:40]Read from MH i2c: 01 [21:27:40]MH_I2C_Read... [21:27:40]*** Stop cut motor [21:27:40]*** Cut end [21:27:40]Read from MH i2c: 01 07 00 [21:27:40]MH_I2C_Read... [21:27:40]Read from MH i2c: 01 07 00 C3 2D 00 00 00 00 00 FF 0F 05 [21:27:40]process_action close_receipt done [21:27:40]requested_data is exist [21:27:40]produce_requested_data [21:27:40]requested_item fm.sn is exist - process it [21:27:40]wFMCommunicate request_size=4 [21:27:40]MH_SAM_APDU [21:27:40]CAPDU: 80 11 00 00 [21:27:40]Write to MH i2c: E2 08 00 C4 2D 80 11 00 00 00 00 00 00 6B [21:27:40]Write i2c OK [21:27:40]MH_I2C_Read... [21:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:41]Read from MH i2c: E2 [21:27:41]MH_I2C_Read... [21:27:41]Read from MH i2c: E2 17 00 [21:27:41]MH_I2C_Read... [21:27:41]Read from MH i2c: E2 17 00 C4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C2 [21:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:27:41]wFMCommunicate OK [21:27:41]requested_item fd.num is exist - process it [21:27:41]SAM_PROTO_GetFieldsCounters [21:27:41]wFMCommunicate request_size=4 [21:27:41]MH_SAM_APDU [21:27:41]CAPDU: 80 13 00 00 [21:27:41]Write to MH i2c: E2 08 00 C5 2D 80 13 00 00 00 00 00 00 6E [21:27:41]Write i2c OK [21:27:41]MH_I2C_Read... [21:27:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:41]Read from MH i2c: E2 [21:27:41]MH_I2C_Read... [21:27:41]Read from MH i2c: E2 62 00 [21:27:41]MH_I2C_Read... [21:27:41]Read from MH i2c: E2 62 00 C5 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 9F EA 00 00 0E 04 04 00 11 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 C8 [21:27:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 9F EA 00 00 0E 04 04 00 11 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 [21:27:41]wFMCommunicate OK [21:27:41]SAM_PROTO_GetFieldsCounters done [21:27:41]requested_item shift.num is exist - process it [21:27:41]requested_item shift.opened is exist - process it [21:27:41]req_shift_opened [21:27:41]FM_GetShiftState [21:27:41]SAM_PROTO_GetShiftState [21:27:41]wFMCommunicate request_size=4 [21:27:41]MH_SAM_APDU [21:27:41]CAPDU: 80 13 01 00 [21:27:41]Write to MH i2c: E2 08 00 C6 2D 80 13 01 00 00 00 00 00 70 [21:27:41]Write i2c OK [21:27:41]MH_I2C_Read... [21:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:41]Read from MH i2c: E2 [21:27:41]MH_I2C_Read... [21:27:41]Read from MH i2c: E2 0E 00 [21:27:41]MH_I2C_Read... [21:27:41]Read from MH i2c: E2 0E 00 C6 2D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 A3 [21:27:41]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:27:41]wFMCommunicate OK [21:27:41]SAM_PROTO_GetShiftState done [21:27:41]FM_GetShiftState done [21:27:41]req_shift_opened done [21:27:41]requested_item shift.open_date is exist - process it [21:27:41]req_shift_open_date [21:27:41]req_shift_open_date done [21:27:41]produce_requested_data done [21:27:41]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60063,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [21:27:41]process_action_free close_receipt [21:27:41]json_value_free [21:27:41]json_value_free done [21:27:41]process_json_proto returns [21:27:41]Send response to host [21:27:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60063,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [21:27:41]free response buf [21:27:41]execute_script done [21:27:41]execute_script returns [21:27:41]free content buf [21:27:41]Sock 7.Close socket [21:27:41]Sock 7.Thread stoped [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:20]accept exits with 10 [21:28:20]New connection [21:28:20]New thread 3067108708 created [21:28:20]Thread 3067252068 joined [21:28:20]Waiting for new connection... [21:28:20] Sock 10.Parse request [21:28:20]Sock 10.Check first char [21:28:20]Sock 10.First char is OK [21:28:20]request: POST /json_proto HTTP/1.0 [21:28:20]Method: POST [21:28:20]URL: /json_proto [21:28:20]Method is POST - this is cgi request [21:28:20]url: /json_proto [21:28:20]query_string will be loaded in cgi processing [21:28:20]execute_cgi json_proto POST (null) [21:28:20]execute_cgi path=json_proto method=POST [21:28:20]POST find Content-Length [21:28:20]Host: 172.17.42.196:8080 [21:28:20]Content-Length: 622 [21:28:20]Content-Type: application/json [21:28:20] [21:28:20]POST finish read [21:28:20]Found Content-Length = 622 [21:28:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199836", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:20]execute_script... [21:28:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199836", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:20]POST & json_proto [21:28:20]process_json_proto [21:28:20]json parsed OK: [21:28:20]protocol is kg_v1.0 [21:28:20]action value=close_receipt [21:28:20]process_action close_receipt [21:28:20]cmd_close_receipt [21:28:20]MH_GetDate [21:28:20]Write to MH i2c: F0 00 00 C7 2D E3 [21:28:20]Write i2c OK [21:28:20]MH_I2C_Read... [21:28:20]Read from MH i2c: F0 [21:28:20]MH_I2C_Read... [21:28:20]Read from MH i2c: F0 09 00 [21:28:20]MH_I2C_Read... [21:28:20]Read from MH i2c: F0 09 00 C7 2D 00 FA BB 1A 67 FF C4 6B 64 B4 [21:28:20]GetLastDocTimeStamp 1729805262 [21:28:20]current date 1729805306 [21:28:20]FM_GetShiftState [21:28:20]SAM_PROTO_GetShiftState [21:28:20]wFMCommunicate request_size=4 [21:28:20]MH_SAM_APDU [21:28:20]CAPDU: 80 13 01 00 [21:28:20]Write to MH i2c: E2 08 00 C8 2D 80 13 01 00 00 00 00 00 72 [21:28:20]Write i2c OK [21:28:20]MH_I2C_Read... [21:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:20]Read from MH i2c: E2 [21:28:20]MH_I2C_Read... [21:28:20]Read from MH i2c: E2 0E 00 [21:28:20]MH_I2C_Read... [21:28:20]Read from MH i2c: E2 0E 00 C8 2D 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 A5 [21:28:20]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:28:20]wFMCommunicate OK [21:28:20]SAM_PROTO_GetShiftState done [21:28:20]FM_GetShiftState done [21:28:20]opened in 1729730575 [21:28:20]opened+sec_in_day 1729816975 [21:28:20]quantity*price = 15900 [21:28:20]sum+1 = 15901 [21:28:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 139 24.10.2024 21:28 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60064 ФПД: 94815106045493 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212826&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60064&fm=94815106045493&tin=02508201610067®Number=0000000000091622&sum=15900 0 [21:28:22]StoreToDocumentArchive [21:28:22]shift 529 fd 60064 [21:28:22]save to /storage/0529/doc_00060064 [21:28:22]save last doc name /storage/0529/doc_00060064 to /storage/kkm_last_doc_name [21:28:22]save OK [21:28:22]Clear old archive folders... [21:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:28:22]tlvbuf is 00E90B50 [21:28:22]SAM_PROTO_ClearQueue [21:28:22]wFMCommunicate request_size=4 [21:28:22]MH_SAM_APDU [21:28:22]CAPDU: 80 09 00 00 [21:28:22]Write to MH i2c: E2 08 00 D5 2D 80 09 00 00 00 00 00 00 74 [21:28:22]Write i2c OK [21:28:22]MH_I2C_Read... [21:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:22]Read from MH i2c: E2 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: E2 03 00 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: E2 03 00 D5 2D 00 90 00 76 [21:28:22]RAPDU: 90 00 [21:28:22]wFMCommunicate OK [21:28:22]SAM_PROTO_ClearQueue done [21:28:22]KKMCreateOFDPacket [21:28:22]OFDProtocolAddRootSTLVToBuf [21:28:22]FM_MakeSignedData [21:28:22]FM_MakeSignedData [21:28:22]SAM_PROTO_SignData [21:28:22]wFMCommunicate request_size=4 [21:28:22]MH_SAM_APDU [21:28:22]CAPDU: 80 0D 01 02 [21:28:22]Write to MH i2c: E2 08 00 D6 2D 80 0D 01 02 00 00 00 00 7C [21:28:22]Write i2c OK [21:28:22]MH_I2C_Read... [21:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:22]Read from MH i2c: E2 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: E2 03 00 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: E2 03 00 D6 2D 00 90 00 77 [21:28:22]RAPDU: 90 00 [21:28:22]wFMCommunicate OK [21:28:22]wFMCommunicate request_size=255 [21:28:22]MH_SAM_APDU [21:28:22]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FA BB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 [21:28:22]Write to MH i2c: E2 02 01 D7 2D 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FA BB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 00 00 6F [21:28:22]Write i2c OK [21:28:22]MH_I2C_Read... [21:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:22]Read from MH i2c: E2 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: E2 03 00 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: E2 03 00 D7 2D 00 90 00 78 [21:28:22]RAPDU: 90 00 [21:28:22]wFMCommunicate OK [21:28:22]wFMCommunicate request_size=33 [21:28:22]MH_SAM_APDU [21:28:22]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A0 EA 00 00 35 04 06 00 56 3B DC B7 16 35 [21:28:22]Write to MH i2c: E2 24 00 D8 2D 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A0 EA 00 00 35 04 06 00 56 3B DC B7 16 35 00 00 0B [21:28:22]Write i2c OK [21:28:22]MH_I2C_Read... [21:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:22]Read from MH i2c: E2 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: E2 03 00 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: E2 03 00 D8 2D 00 90 00 79 [21:28:22]RAPDU: 90 00 [21:28:22]wFMCommunicate OK [21:28:22]wFMCommunicate request_size=4 [21:28:22]MH_SAM_APDU [21:28:22]CAPDU: 80 0D 03 02 [21:28:22]Write to MH i2c: E2 08 00 D9 2D 80 0D 03 02 00 00 00 00 81 [21:28:22]Write i2c OK [21:28:22]MH_I2C_Read... [21:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:22]Read from MH i2c: E2 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: E2 0B 00 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: E2 0B 00 D9 2D 00 4E 11 7F 07 E3 67 51 06 90 00 08 [21:28:22]RAPDU: 4E 11 7F 07 E3 67 51 06 90 00 [21:28:22]wFMCommunicate OK [21:28:22]SAM_PROTO_SignData done [21:28:22]FM_MakeSignedData done [21:28:22]CreateOFDProtocolMessage [21:28:22]wFMCommunicate request_size=4 [21:28:22]MH_SAM_APDU [21:28:22]CAPDU: 80 11 00 00 [21:28:22]Write to MH i2c: E2 08 00 DA 2D 80 11 00 00 00 00 00 00 81 [21:28:22]Write i2c OK [21:28:22]MH_I2C_Read... [21:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:22]Read from MH i2c: E2 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: E2 17 00 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: E2 17 00 DA 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 D8 [21:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:28:22]wFMCommunicate OK [21:28:22]CreateOFDProtocolMessage done [21:28:22]OFDSenderStorePacket 60064 [21:28:22]StoreOFDPacket docnum=60064 [21:28:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 26 01 00 00 F6 06 1E 01 F0 05 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FA BB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A0 EA 00 00 35 04 06 00 56 3B DC B7 16 35 4E 11 7F 07 E3 67 51 06 [21:28:22]CheckFolder [21:28:22]dirname=/storage/ofd_packets [21:28:22]CheckFolder done [21:28:22]ProducePacketName [21:28:22]name=ofd_packets/00060064 [21:28:22]NVStorageSaveData ofd_packets/00060064 [21:28:22]File name is /storage/ofd_packets/00060064 [21:28:22]Write 324 bytes [21:28:22]NVStorageSaveData done [21:28:22]OFDSenderStorePacket done [21:28:22]KKMCreateOFDPacket done [21:28:22]NVStorageSaveData kkm_last_timestamp [21:28:22]File name is /storage/kkm_last_timestamp [21:28:22]Write 4 bytes [21:28:22]NVStorageSaveData done [21:28:22]ExternCall_PrintAddStr [21:28:22]wPrintStart [21:28:22]Write to MH i2c: 01 00 00 DB 2D 08 [21:28:22]Write i2c OK [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: 01 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: 01 07 00 [21:28:22]MH_I2C_Read... [21:28:22]Read from MH i2c: 01 07 00 DB 2D 00 00 00 00 00 FF 0F 1D [21:28:22]RasterBufferAndPrint [21:28:22]line Счет N : (3)199836 [21:28:22]line ИНН: 02508201610067 [21:28:22]line Контрольно-Кассовый Чек [21:28:22]line ПРОДАЖА [21:28:22]line Товар: 4640030091645 [21:28:22]line Сигареты ESSE Exchange M [21:28:22]line 1.000 * 159.00 [21:28:22]line = 159.00 [21:28:22]line НДС 12% НСП 1% [21:28:22]line > о реализуемом товаре [21:28:22]line ИТОГО: 159.00 [21:28:22]line НСП 1% : 1.41 [21:28:22]line НДС 12% : 16.88 [21:28:22]line Наличными: 159.00 [21:28:22]line Безнал.: 0.00 [21:28:22]line Место: АЗС № 87 "Партнер Нефть" [21:28:22]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [21:28:22]line СНО: Общий режим [21:28:22]line Чек 139 24.10.2024 21:28 [21:28:22]line Смена: 529 ФФД: 1.0 [21:28:22]line ЗНМ: 0300000084 [21:28:22]line РНМ: 0000000000091622 [21:28:22]line Версия ККМ: 001 [21:28:22]line ФМ: 0000000000874674 [21:28:22]line ФД: 60064 [21:28:22]line ФПД: 94815106045493 [21:28:22]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212826&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60064&fm=94815106045493&tin=02508201610067®Number=0000000000091622&sum=15900 [21:28:23]OFD Sender: Processing packet 60064 [packets to send 30, broken 29] [21:28:23]ProducePacketName [21:28:23]name=ofd_packets/00060064 [21:28:23]OFD Sender: To server: pG, [21:28:23]CommunicateWithHost lk.salyk.kg:30040 [21:28:23]ConnectInit lk.salyk.kg [21:28:23]line 0 [21:28:23]written 0, free lines is 4095 [21:28:23]Connected sock=9 [21: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 34 36 37 34 26 01 00 00 F6 06 1E 01 F0 05 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FA BB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A0 EA 00 00 35 04 06 00 56 3B DC B7 16 35 4E 11 7F 07 E3 67 51 06 [21:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 0C 25 47 00 68 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A0 EA 00 00 F4 03 04 00 E9 61 1A 67 B6 04 01 00 00 BF CD FE 68 E8 E3 15 48 [21:28:23]CommunicateWithHost err = 0 [21:28:23]CheckOFDResponse [21:28:23]1017 (14) - 77093643461234 [21:28:23]1041 (16) - 0000000000874674 [21:28:23]1040 (4) - 60064 [21:28:23]1012 (4) - 24.10.2024 15:04 [21:28:23]1206 (1) - 0 [21:28:23]OFD Sender: Remove packet 60064 [21:28:23]ProducePacketName [21:28:23]name=ofd_packets/00060064 [21:28:23]NVStorageDeleteData [21:28:23]Write to MH i2c: 01 00 00 03 2E 31 [21:28:23]Write i2c OK [21:28:23]MH_I2C_Read... [21:28:23]Read from MH i2c: 01 [21:28:23]MH_I2C_Read... [21:28:23]Read from MH i2c: 01 07 00 [21:28:23]MH_I2C_Read... [21:28:23]Read from MH i2c: 01 07 00 03 2E 00 00 00 00 00 02 0D 47 [21:28:23]RasterBufferAndPrint [21:28:23]line [21:28:23]line [21:28:23]line [21:28:23]line [21:28:23]line [21:28:23]written 0, free lines is 3336 [21:28:23]MH_Cut [21:28:23]Write to MH i2c: D1 01 00 0A 2E 01 0A [21:28:23]Write i2c OK [21:28:23]MH_I2C_Read... [21:28:23]Read from MH i2c: D1 [21:28:23]MH_I2C_Read... [21:28:23]Read from MH i2c: D1 01 00 [21:28:23]MH_I2C_Read... [21:28:23]Read from MH i2c: D1 01 00 0A 2E 00 09 [21:28:23]Write to MH i2c: 01 00 00 0B 2E 39 [21:28:23]Write i2c OK [21:28:23]MH_I2C_Read... [21:28:23]OFD Sender: No OFD packet to send [21:28:24]*** Cut start [21:28:24]*** Partial cut [21:28:24]*** CUTSNS_PIN = 1 [21:28:24]*** CUTSNS_PIN = 0 [21:28:24]*** Brake cut motor [21:28:24]Read from MH i2c: 01 [21:28:24]MH_I2C_Read... [21:28:24]*** Stop cut motor [21:28:24]*** Cut end [21:28:24]Read from MH i2c: 01 07 00 [21:28:24]MH_I2C_Read... [21:28:24]Read from MH i2c: 01 07 00 0B 2E 00 00 00 00 00 FF 0F 4E [21:28:24]process_action close_receipt done [21:28:24]requested_data is exist [21:28:24]produce_requested_data [21:28:24]requested_item fm.sn is exist - process it [21:28:24]wFMCommunicate request_size=4 [21:28:24]MH_SAM_APDU [21:28:24]CAPDU: 80 11 00 00 [21:28:24]Write to MH i2c: E2 08 00 0C 2E 80 11 00 00 00 00 00 00 B4 [21:28:24]Write i2c OK [21:28:24]MH_I2C_Read... [21:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:24]Read from MH i2c: E2 [21:28:24]MH_I2C_Read... [21:28:24]Read from MH i2c: E2 17 00 [21:28:24]MH_I2C_Read... [21:28:24]Read from MH i2c: E2 17 00 0C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 0B [21:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:28:24]wFMCommunicate OK [21:28:24]requested_item fd.num is exist - process it [21:28:24]SAM_PROTO_GetFieldsCounters [21:28:24]wFMCommunicate request_size=4 [21:28:24]MH_SAM_APDU [21:28:24]CAPDU: 80 13 00 00 [21:28:24]Write to MH i2c: E2 08 00 0D 2E 80 13 00 00 00 00 00 00 B7 [21:28:24]Write i2c OK [21:28:24]MH_I2C_Read... [21:28:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:25]Read from MH i2c: E2 [21:28:25]MH_I2C_Read... [21:28:25]Read from MH i2c: E2 62 00 [21:28:25]MH_I2C_Read... [21:28:25]Read from MH i2c: E2 62 00 0D 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A0 EA 00 00 0E 04 04 00 11 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 15 [21: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A0 EA 00 00 0E 04 04 00 11 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 [21:28:25]wFMCommunicate OK [21:28:25]SAM_PROTO_GetFieldsCounters done [21:28:25]requested_item shift.num is exist - process it [21:28:25]requested_item shift.opened is exist - process it [21:28:25]req_shift_opened [21:28:25]FM_GetShiftState [21:28:25]SAM_PROTO_GetShiftState [21:28:25]wFMCommunicate request_size=4 [21:28:25]MH_SAM_APDU [21:28:25]CAPDU: 80 13 01 00 [21:28:25]Write to MH i2c: E2 08 00 0E 2E 80 13 01 00 00 00 00 00 B9 [21:28:25]Write i2c OK [21:28:25]MH_I2C_Read... [21:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:25]Read from MH i2c: E2 [21:28:25]MH_I2C_Read... [21:28:25]Read from MH i2c: E2 0E 00 [21:28:25]MH_I2C_Read... [21:28:25]Read from MH i2c: E2 0E 00 0E 2E 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 EC [21:28:25]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:28:25]wFMCommunicate OK [21:28:25]SAM_PROTO_GetShiftState done [21:28:25]FM_GetShiftState done [21:28:25]req_shift_opened done [21:28:25]requested_item shift.open_date is exist - process it [21:28:25]req_shift_open_date [21:28:25]req_shift_open_date done [21:28:25]produce_requested_data done [21:28:25]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60064,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [21:28:25]process_action_free close_receipt [21:28:25]json_value_free [21:28:25]json_value_free done [21:28:25]process_json_proto returns [21:28:25]Send response to host [21:28:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60064,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [21:28:25]free response buf [21:28:25]execute_script done [21:28:25]execute_script returns [21:28:25]free content buf [21:28:25]Sock 10.Close socket [21:28:25]Sock 10.Thread stoped [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:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:19]accept exits with 7 [21:32:19]New connection [21:32:19]New thread 3067252068 created [21:32:19]Thread 3067108708 joined [21:32:19]Waiting for new connection... [21:32:19] Sock 7.Parse request [21:32:19]Sock 7.Check first char [21:32:19]Sock 7.First char is OK [21:32:19]request: POST /json_proto HTTP/1.0 [21:32:19]Method: POST [21:32:19]URL: /json_proto [21:32:19]Method is POST - this is cgi request [21:32:19]url: /json_proto [21:32:19]query_string will be loaded in cgi processing [21:32:19]execute_cgi json_proto POST (null) [21:32:19]execute_cgi path=json_proto method=POST [21:32:19]POST find Content-Length [21:32:19]Host: 172.17.42.196:8080 [21:32:19]Content-Length: 1961 [21:32:19]Content-Type: application/json [21:32:19] [21:32:19]POST finish read [21:32:19]Found Content-Length = 1961 [21:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199837", "tax_sys" : 0, "items" : [ { "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 524.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:19]execute_script... [21:32:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199837", "tax_sys" : 0, "items" : [ { "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 524.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:20]POST & json_proto [21:32:20]process_json_proto [21:32:20]json parsed OK: [21:32:20]protocol is kg_v1.0 [21:32:20]action value=close_receipt [21:32:20]process_action close_receipt [21:32:20]cmd_close_receipt [21:32:20]MH_GetDate [21:32:20]Write to MH i2c: F0 00 00 0F 2E 2C [21:32:20]Write i2c OK [21:32:20]MH_I2C_Read... [21:32:20]Read from MH i2c: F0 [21:32:20]MH_I2C_Read... [21:32:20]Read from MH i2c: F0 09 00 [21:32:20]MH_I2C_Read... [21:32:20]Read from MH i2c: F0 09 00 0F 2E 00 E9 BC 1A 67 FF C4 6B 64 ED [21:32:20]GetLastDocTimeStamp 1729805306 [21:32:20]current date 1729805545 [21:32:20]FM_GetShiftState [21:32:20]SAM_PROTO_GetShiftState [21:32:20]wFMCommunicate request_size=4 [21:32:20]MH_SAM_APDU [21:32:20]CAPDU: 80 13 01 00 [21:32:20]Write to MH i2c: E2 08 00 10 2E 80 13 01 00 00 00 00 00 BB [21:32:20]Write i2c OK [21:32:20]MH_I2C_Read... [21:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:20]Read from MH i2c: E2 [21:32:20]MH_I2C_Read... [21:32:20]Read from MH i2c: E2 0E 00 [21:32:20]MH_I2C_Read... [21:32:20]Read from MH i2c: E2 0E 00 10 2E 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 EE [21:32:20]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:32:20]wFMCommunicate OK [21:32:20]SAM_PROTO_GetShiftState done [21:32:20]FM_GetShiftState done [21:32:20]opened in 1729730575 [21:32:20]opened+sec_in_day 1729816975 [21:32:20]quantity*price = 8600 [21:32:20]sum+1 = 8601 [21:32:20]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112002782 Печенье Ulker Biskrem какао-крем 180г 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681062 Grizzly волнистые Колбаски с горчицей 55 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015235333 Пряники Яшкино с вареной сгущенкой 350г 1.000 * 149.00 = 149.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 524.00 НСП 1% : 4.64 НДС 12% : 55.64 Наличными: 524.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 140 24.10.2024 21:32 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60065 ФПД: 165152275650616 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213225&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60065&fm=165152275650616&tin=02508201610067®Number=0000000000091622&sum=52400 0 [21:32:21]StoreToDocumentArchive [21:32:21]shift 529 fd 60065 [21:32:21]save to /storage/0529/doc_00060065 [21:32:21]save last doc name /storage/0529/doc_00060065 to /storage/kkm_last_doc_name [21:32:21]save OK [21:32:21]Clear old archive folders... [21:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=807 [21:32:21]tlvbuf is 00E074D0 [21:32:21]SAM_PROTO_ClearQueue [21:32:21]wFMCommunicate request_size=4 [21:32:21]MH_SAM_APDU [21:32:21]CAPDU: 80 09 00 00 [21:32:21]Write to MH i2c: E2 08 00 1D 2E 80 09 00 00 00 00 00 00 BD [21:32:21]Write i2c OK [21:32:21]MH_I2C_Read... [21:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:21]Read from MH i2c: E2 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: E2 03 00 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: E2 03 00 1D 2E 00 90 00 BF [21:32:21]RAPDU: 90 00 [21:32:21]wFMCommunicate OK [21:32:21]SAM_PROTO_ClearQueue done [21:32:21]KKMCreateOFDPacket [21:32:21]OFDProtocolAddRootSTLVToBuf [21:32:21]FM_MakeSignedData [21:32:21]FM_MakeSignedData [21:32:21]SAM_PROTO_SignData [21:32:21]wFMCommunicate request_size=4 [21:32:21]MH_SAM_APDU [21:32:21]CAPDU: 80 0D 01 02 [21:32:21]Write to MH i2c: E2 08 00 1E 2E 80 0D 01 02 00 00 00 00 C5 [21:32:21]Write i2c OK [21:32:21]MH_I2C_Read... [21:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:21]Read from MH i2c: E2 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: E2 03 00 [21:32:21]MH_I2C_Read... [21:32:21]Read from MH i2c: E2 03 00 1E 2E 00 90 00 C0 [21:32:21]RAPDU: 90 00 [21:32:21]wFMCommunicate OK [21:32:21]wFMCommunicate request_size=255 [21:32:21]MH_SAM_APDU [21:32:21]CAPDU: 80 0D 02 02 FA 03 00 27 03 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [21:32:21]Write to MH i2c: E2 02 01 1F 2E 80 0D 02 02 FA 00 03 00 27 03 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 C0 [21:32:21]Write i2c OK [21:32:21]MH_I2C_Read... [21:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:22]Read from MH i2c: E2 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 03 00 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 03 00 1F 2E 00 90 00 C1 [21:32:22]RAPDU: 90 00 [21:32:22]wFMCommunicate OK [21:32:22]wFMCommunicate request_size=255 [21:32:22]MH_SAM_APDU [21:32:22]CAPDU: 80 0D 02 02 FA 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 [21:32:22]Write to MH i2c: E2 02 01 20 2E 80 0D 02 02 FA 00 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 2C [21:32:22]Write i2c OK [21:32:22]MH_I2C_Read... [21:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:22]Read from MH i2c: E2 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 03 00 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 03 00 20 2E 00 90 00 C2 [21:32:22]RAPDU: 90 00 [21:32:22]wFMCommunicate OK [21:32:22]wFMCommunicate request_size=255 [21:32:22]MH_SAM_APDU [21:32:22]CAPDU: 80 0D 02 02 FA 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 CC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 15 00 00 00 00 07 04 06 00 B0 CC 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 E9 BC 1A 67 0E 04 04 00 11 02 00 00 B9 04 [21:32:22]Write to MH i2c: E2 02 01 21 2E 80 0D 02 02 FA 00 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 CC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 15 00 00 00 00 07 04 06 00 B0 CC 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 E9 BC 1A 67 0E 04 04 00 11 02 00 00 B9 04 00 00 CA [21:32:22]Write i2c OK [21:32:22]MH_I2C_Read... [21:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:22]Read from MH i2c: E2 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 03 00 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 03 00 21 2E 00 90 00 C3 [21:32:22]RAPDU: 90 00 [21:32:22]wFMCommunicate OK [21:32:22]wFMCommunicate request_size=66 [21:32:22]MH_SAM_APDU [21:32:22]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A1 EA 00 00 35 04 06 00 96 34 82 B9 58 38 [21:32:22]Write to MH i2c: E2 45 00 22 2E 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A1 EA 00 00 35 04 06 00 96 34 82 B9 58 38 00 00 3B [21:32:22]Write i2c OK [21:32:22]MH_I2C_Read... [21:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:22]Read from MH i2c: E2 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 03 00 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 03 00 22 2E 00 90 00 C4 [21:32:22]RAPDU: 90 00 [21:32:22]wFMCommunicate OK [21:32:22]wFMCommunicate request_size=4 [21:32:22]MH_SAM_APDU [21:32:22]CAPDU: 80 0D 03 02 [21:32:22]Write to MH i2c: E2 08 00 23 2E 80 0D 03 02 00 00 00 00 CC [21:32:22]Write i2c OK [21:32:22]MH_I2C_Read... [21:32:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:22]Read from MH i2c: E2 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 0B 00 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 0B 00 23 2E 00 5F 66 24 AE A1 AA 08 51 90 00 08 [21:32:22]RAPDU: 5F 66 24 AE A1 AA 08 51 90 00 [21:32:22]wFMCommunicate OK [21:32:22]SAM_PROTO_SignData done [21:32:22]FM_MakeSignedData done [21:32:22]CreateOFDProtocolMessage [21:32:22]wFMCommunicate request_size=4 [21:32:22]MH_SAM_APDU [21:32:22]CAPDU: 80 11 00 00 [21:32:22]Write to MH i2c: E2 08 00 24 2E 80 11 00 00 00 00 00 00 CC [21:32:22]Write i2c OK [21:32:22]MH_I2C_Read... [21:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:22]Read from MH i2c: E2 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 17 00 [21:32:22]MH_I2C_Read... [21:32:22]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 34 36 37 34 90 00 23 [21:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:32:22]wFMCommunicate OK [21:32:22]CreateOFDProtocolMessage done [21:32:22]OFDSenderStorePacket 60065 [21:32:22]StoreOFDPacket docnum=60065 [21:32:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 3B 03 00 00 74 20 33 03 D4 0C 5A 03 01 00 03 00 27 03 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 CC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 15 00 00 00 00 07 04 06 00 B0 CC 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 E9 BC 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A1 EA 00 00 35 04 06 00 96 34 82 B9 58 38 5F 66 24 AE A1 AA 08 51 [21:32:22]CheckFolder [21:32:22]dirname=/storage/ofd_packets [21:32:22]CheckFolder done [21:32:22]ProducePacketName [21:32:22]name=ofd_packets/00060065 [21:32:22]NVStorageSaveData ofd_packets/00060065 [21:32:22]File name is /storage/ofd_packets/00060065 [21:32:22]Write 857 bytes [21:32:22]NVStorageSaveData done [21:32:22]OFDSenderStorePacket done [21:32:22]KKMCreateOFDPacket done [21:32:22]NVStorageSaveData kkm_last_timestamp [21:32:22]File name is /storage/kkm_last_timestamp [21:32:22]Write 4 bytes [21:32:22]NVStorageSaveData done [21:32:22]ExternCall_PrintAddStr [21:32:22]wPrintStart [21:32:22]Write to MH i2c: 01 00 00 25 2E 53 [21:32:22]Write i2c OK [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: 01 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: 01 07 00 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: 01 07 00 25 2E 00 00 00 00 00 FF 0F 68 [21:32:22]RasterBufferAndPrint [21:32:22]line Счет N : (3)199837 [21:32:22]line ИНН: 02508201610067 [21:32:22]line Контрольно-Кассовый Чек [21:32:22]line ПРОДАЖА [21:32:22]line Товар: 4603290004848 [21:32:22]line Печ.зат.TONDI Сэнд.шок-сл.вк [21:32:22]line 1.000 * 86.00 [21:32:22]line = 86.00 [21:32:22]line НДС 12% НСП 1% [21:32:22]line > о реализуемом товаре [21:32:22]line Товар: 4870112002782 [21:32:22]line Печенье Ulker Biskrem какао-крем 180г [21:32:22]line 1.000 * 110.00 [21:32:22]line = 110.00 [21:32:22]line НДС 12% НСП 1% [21:32:22]line > о реализуемом товаре [21:32:22]line Товар: 4870235681062 [21:32:22]line Grizzly волнистые Колбаски с горчицей 55 [21:32:23]line 1.000 * 90.00 [21:32:23]line = 90.00 [21:32:23]line НДС 12% НСП 1% [21:32:23]line > о реализуемом товаре [21:32:23]line Товар: 4607015235333 [21:32:23]line Пряники Яшкино с вареной сгущенкой 350г [21:32:23]line 1.000 * 149.00 [21:32:23]line = 149.00 [21:32:23]line НДС 12% НСП 1% [21:32:23]line > о реализуемом товаре [21:32:23]line Товар: 4700040114137 [21:32:23]line Султан чай 1л. зел лимон [21:32:23]line 1.000 * 89.00 [21:32:23]line = 89.00 [21:32:23]line НДС 12% НСП 1% [21:32:23]line > о реализуемом товаре [21:32:23]line ИТОГО: 524.00 [21:32:23]line НСП 1% : 4.64 [21:32:23]line НДС 12% : 55.64 [21:32:23]line Наличными: 524.00 [21:32:23]line Безнал.: 0.00 [21:32:23]line Место: АЗС № 87 "Партнер Нефть" [21:32:23]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [21:32:23]line СНО: Общий режим [21:32:23]line Чек 140 24.10.2024 21:32 [21:32:23]line Смена: 529 ФФД: 1.0 [21:32:23]line ЗНМ: 0300000084 [21:32:23]line РНМ: 0000000000091622 [21:32:23]line Версия ККМ: 001 [21:32:23]line ФМ: 0000000000874674 [21:32:23]line ФД: 60065 [21:32:23]line ФПД: 165152275650616 [21:32:23]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213225&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60065&fm=165152275650616&tin=02508201610067®Number=0000000000091622&sum=52400 [21:32:23]line 0 [21:32:23]OFD Sender: Processing packet 60065 [packets to send 30, broken 29] [21:32:23]ProducePacketName [21:32:23]name=ofd_packets/00060065 [21:32:23]OFD Sender: To server: pG, [21:32:23]CommunicateWithHost lk.salyk.kg:30040 [21:32:23]ConnectInit lk.salyk.kg [21:32:23]written 0, free lines is 4095 [21:32:23]Connected sock=10 [21:32:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 3B 03 00 00 74 20 33 03 D4 0C 5A 03 01 00 03 00 27 03 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 CC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 15 00 00 00 00 07 04 06 00 B0 CC 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 E9 BC 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A1 EA 00 00 35 04 06 00 96 34 82 B9 58 38 5F 66 24 AE A1 AA 08 51 [21:32:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 34 84 47 00 30 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 34 36 37 34 10 04 04 00 A1 EA 00 00 F4 03 04 00 DA 62 1A 67 B6 04 01 00 00 7B 24 12 40 D6 86 41 0A [21:32:23]CommunicateWithHost err = 0 [21:32:23]CheckOFDResponse [21:32:23]1017 (14) - 77093643461234 [21:32:23]1041 (16) - 0000000000874674 [21:32:23]1040 (4) - 60065 [21:32:23]1012 (4) - 24.10.2024 15:08 [21:32:23]1206 (1) - 0 [21:32:23]OFD Sender: Remove packet 60065 [21:32:23]ProducePacketName [21:32:23]name=ofd_packets/00060065 [21:32:23]NVStorageDeleteData [21:32:23]Write to MH i2c: 01 00 00 68 2E 96 [21:32:23]Write i2c OK [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: 01 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: 01 07 00 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: 01 07 00 68 2E 00 00 00 00 00 4D 0B F5 [21:32:23]RasterBufferAndPrint [21:32:23]line [21:32:23]line [21:32:23]line [21:32:23]line [21:32:23]line [21:32:23]written 0, free lines is 2904 [21:32:24]MH_Cut [21:32:24]Write to MH i2c: D1 01 00 6F 2E 01 6F [21:32:24]Write i2c OK [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: D1 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: D1 01 00 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: D1 01 00 6F 2E 00 6E [21:32:24]Write to MH i2c: 01 00 00 70 2E 9E [21:32:24]Write i2c OK [21:32:24]MH_I2C_Read... [21:32:24]OFD Sender: No OFD packet to send [21:32:25]*** Cut start [21:32:25]*** Partial cut [21:32:25]*** CUTSNS_PIN = 1 [21:32:25]*** CUTSNS_PIN = 0 [21:32:25]*** Brake cut motor [21:32:25]Read from MH i2c: 01 [21:32:25]MH_I2C_Read... [21:32:25]*** Stop cut motor [21:32:25]*** Cut end [21:32:25]Read from MH i2c: 01 07 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: 01 07 00 70 2E 00 00 00 00 00 FF 0F B3 [21:32:25]process_action close_receipt done [21:32:25]requested_data is exist [21:32:25]produce_requested_data [21:32:25]requested_item fm.sn is exist - process it [21:32:25]wFMCommunicate request_size=4 [21:32:25]MH_SAM_APDU [21:32:25]CAPDU: 80 11 00 00 [21:32:25]Write to MH i2c: E2 08 00 71 2E 80 11 00 00 00 00 00 00 19 [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:25]Read from MH i2c: E2 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 17 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 17 00 71 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 70 [21:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:32:25]wFMCommunicate OK [21:32:25]requested_item fd.num is exist - process it [21:32:25]SAM_PROTO_GetFieldsCounters [21:32:25]wFMCommunicate request_size=4 [21:32:25]MH_SAM_APDU [21:32:25]CAPDU: 80 13 00 00 [21:32:25]Write to MH i2c: E2 08 00 72 2E 80 13 00 00 00 00 00 00 1C [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:25]Read from MH i2c: E2 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 62 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: E2 62 00 72 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A1 EA 00 00 0E 04 04 00 11 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 7E [21:32: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A1 EA 00 00 0E 04 04 00 11 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 [21:32:25]wFMCommunicate OK [21:32:25]SAM_PROTO_GetFieldsCounters done [21:32:25]requested_item shift.num is exist - process it [21:32:25]requested_item shift.opened is exist - process it [21:32:25]req_shift_opened [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 73 2E 80 13 01 00 00 00 00 00 1E [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 73 2E 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 51 [21:32:25]RAPDU: 09 00 01 0F 98 19 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:26]req_shift_opened done [21:32:26]requested_item shift.open_date is exist - process it [21:32:26]req_shift_open_date [21:32:26]req_shift_open_date done [21:32:26]produce_requested_data done [21:32:26]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60065,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [21:32:26]process_action_free close_receipt [21:32:26]json_value_free [21:32:26]json_value_free done [21:32:26]process_json_proto returns [21:32:26]Send response to host [21:32:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60065,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [21:32:26]free response buf [21:32:26]execute_script done [21:32:26]execute_script returns [21:32:26]free content buf [21:32:26]Sock 7.Close socket [21:32:26]Sock 7.Thread stoped [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53: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:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:19]accept exits with 9 [21:54:19]New connection [21:54:19]New thread 3067108708 created [21:54:19]Thread 3067252068 joined [21:54:19]Waiting for new connection... [21:54:19] Sock 9.Parse request [21:54:19]Sock 9.Check first char [21:54:19]Sock 9.First char is OK [21:54:19]request: POST /json_proto HTTP/1.0 [21:54:19]Method: POST [21:54:19]URL: /json_proto [21:54:19]Method is POST - this is cgi request [21:54:19]url: /json_proto [21:54:19]query_string will be loaded in cgi processing [21:54:19]execute_cgi json_proto POST (null) [21:54:19]execute_cgi path=json_proto method=POST [21:54:19]POST find Content-Length [21:54:19]Host: 172.17.42.196:8080 [21:54:19]Content-Length: 655 [21:54:19]Content-Type: application/json [21:54:19] [21:54:19]POST finish read [21:54:19]Found Content-Length = 655 [21:54:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199838", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:19]execute_script... [21:54:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199838", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:19]POST & json_proto [21:54:19]process_json_proto [21:54:19]json parsed OK: [21:54:19]protocol is kg_v1.0 [21:54:19]action value=close_receipt [21:54:19]process_action close_receipt [21:54:19]cmd_close_receipt [21:54:19]MH_GetDate [21:54:19]Write to MH i2c: F0 00 00 74 2E 91 [21:54:19]Write i2c OK [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: F0 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: F0 09 00 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: F0 09 00 74 2E 00 11 C2 1A 67 FF C4 6B 64 80 [21:54:19]GetLastDocTimeStamp 1729805545 [21:54:19]current date 1729806865 [21:54:19]FM_GetShiftState [21:54:19]SAM_PROTO_GetShiftState [21:54:19]wFMCommunicate request_size=4 [21:54:19]MH_SAM_APDU [21:54:19]CAPDU: 80 13 01 00 [21:54:19]Write to MH i2c: E2 08 00 75 2E 80 13 01 00 00 00 00 00 20 [21:54:19]Write i2c OK [21:54:19]MH_I2C_Read... [21:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:19]Read from MH i2c: E2 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: E2 0E 00 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: E2 0E 00 75 2E 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 53 [21:54:19]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:54:19]wFMCommunicate OK [21:54:19]SAM_PROTO_GetShiftState done [21:54:19]FM_GetShiftState done [21:54:19]opened in 1729730575 [21:54:19]opened+sec_in_day 1729816975 [21:54:19]quantity*price = 6900 [21:54:19]sum+1 = 6901 [21:54:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 69.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 141 24.10.2024 21:54 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60066 ФПД: 248392900669674 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T215425&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60066&fm=248392900669674&tin=02508201610067®Number=0000000000091622&sum=6900 0 [21:54:21]StoreToDocumentArchive [21:54:21]shift 529 fd 60066 [21:54:21]save to /storage/0529/doc_00060066 [21:54:21]save last doc name /storage/0529/doc_00060066 to /storage/kkm_last_doc_name [21:54:21]save OK [21:54:21]Clear old archive folders... [21:54:21]ProcessDocumentItem done err = 0, tmpTLVsize=294 [21:54:21]tlvbuf is B6F23950 [21:54:21]SAM_PROTO_ClearQueue [21:54:21]wFMCommunicate request_size=4 [21:54:21]MH_SAM_APDU [21:54:21]CAPDU: 80 09 00 00 [21:54:21]Write to MH i2c: E2 08 00 82 2E 80 09 00 00 00 00 00 00 22 [21:54:21]Write i2c OK [21:54:21]MH_I2C_Read... [21:54:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:21]Read from MH i2c: E2 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 03 00 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 03 00 82 2E 00 90 00 24 [21:54:21]RAPDU: 90 00 [21:54:21]wFMCommunicate OK [21:54:21]SAM_PROTO_ClearQueue done [21:54:21]KKMCreateOFDPacket [21:54:21]OFDProtocolAddRootSTLVToBuf [21:54:21]FM_MakeSignedData [21:54:21]FM_MakeSignedData [21:54:21]SAM_PROTO_SignData [21:54:21]wFMCommunicate request_size=4 [21:54:21]MH_SAM_APDU [21:54:21]CAPDU: 80 0D 01 02 [21:54:21]Write to MH i2c: E2 08 00 83 2E 80 0D 01 02 00 00 00 00 2A [21:54:21]Write i2c OK [21:54:21]MH_I2C_Read... [21:54:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:21]Read from MH i2c: E2 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 03 00 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 03 00 83 2E 00 90 00 25 [21:54:21]RAPDU: 90 00 [21:54:21]wFMCommunicate OK [21:54:21]wFMCommunicate request_size=255 [21:54:21]MH_SAM_APDU [21:54:21]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 11 C2 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [21:54:21]Write to MH i2c: E2 02 01 84 2E 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 11 C2 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 2D [21:54:21]Write i2c OK [21:54:21]MH_I2C_Read... [21:54:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:21]Read from MH i2c: E2 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 03 00 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 03 00 84 2E 00 90 00 26 [21:54:21]RAPDU: 90 00 [21:54:21]wFMCommunicate OK [21:54:21]wFMCommunicate request_size=53 [21:54:21]MH_SAM_APDU [21:54:21]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A2 EA 00 00 35 04 06 00 E1 E9 7A 9B F0 EA [21:54:21]Write to MH i2c: E2 38 00 85 2E 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A2 EA 00 00 35 04 06 00 E1 E9 7A 9B F0 EA 00 00 66 [21:54:21]Write i2c OK [21:54:21]MH_I2C_Read... [21:54:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:21]Read from MH i2c: E2 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 03 00 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 03 00 85 2E 00 90 00 27 [21:54:21]RAPDU: 90 00 [21:54:21]wFMCommunicate OK [21:54:21]wFMCommunicate request_size=4 [21:54:21]MH_SAM_APDU [21:54:21]CAPDU: 80 0D 03 02 [21:54:21]Write to MH i2c: E2 08 00 86 2E 80 0D 03 02 00 00 00 00 2F [21:54:21]Write i2c OK [21:54:21]MH_I2C_Read... [21:54:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:21]Read from MH i2c: E2 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 0B 00 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 0B 00 86 2E 00 EF 09 28 0E 09 55 2D 2E 90 00 17 [21:54:21]RAPDU: EF 09 28 0E 09 55 2D 2E 90 00 [21:54:21]wFMCommunicate OK [21:54:21]SAM_PROTO_SignData done [21:54:21]FM_MakeSignedData done [21:54:21]CreateOFDProtocolMessage [21:54:21]wFMCommunicate request_size=4 [21:54:21]MH_SAM_APDU [21:54:21]CAPDU: 80 11 00 00 [21:54:21]Write to MH i2c: E2 08 00 87 2E 80 11 00 00 00 00 00 00 2F [21:54:21]Write i2c OK [21:54:21]MH_I2C_Read... [21:54:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:21]Read from MH i2c: E2 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 17 00 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 17 00 87 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 86 [21:54:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:54:21]wFMCommunicate OK [21:54:21]CreateOFDProtocolMessage done [21:54:21]OFDSenderStorePacket 60066 [21:54:21]StoreOFDPacket docnum=60066 [21:54:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 3A 01 00 00 95 C4 32 01 06 2A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 11 C2 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A2 EA 00 00 35 04 06 00 E1 E9 7A 9B F0 EA EF 09 28 0E 09 55 2D 2E [21:54:21]CheckFolder [21:54:21]dirname=/storage/ofd_packets [21:54:21]CheckFolder done [21:54:21]ProducePacketName [21:54:21]name=ofd_packets/00060066 [21:54:21]NVStorageSaveData ofd_packets/00060066 [21:54:21]File name is /storage/ofd_packets/00060066 [21:54:21]Write 344 bytes [21:54:21]NVStorageSaveData done [21:54:21]OFDSenderStorePacket done [21:54:21]KKMCreateOFDPacket done [21:54:21]NVStorageSaveData kkm_last_timestamp [21:54:21]File name is /storage/kkm_last_timestamp [21:54:21]Write 4 bytes [21:54:21]NVStorageSaveData done [21:54:21]OFD Sender: Processing packet 60066 [packets to send 30, broken 29] [21:54:21]ProducePacketName [21:54:21]name=ofd_packets/00060066 [21:54:21]OFD Sender: To server: pG, [21:54:21]CommunicateWithHost lk.salyk.kg:30040 [21:54:21]ConnectInit lk.salyk.kg [21:54:21]ExternCall_PrintAddStr [21:54:21]wPrintStart [21:54:21]Write to MH i2c: 01 00 00 88 2E B6 [21:54:21]Write i2c OK [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: 01 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: 01 07 00 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: 01 07 00 88 2E 00 00 00 00 00 FF 0F CB [21:54:21]RasterBufferAndPrint [21:54:21]line Счет N : (3)199838 [21:54:21]line ИНН: 02508201610067 [21:54:21]line Контрольно-Кассовый Чек [21:54:21]line ПРОДАЖА [21:54:21]line Товар: 4600682557456 [21:54:21]line Напиток FLash up energy эн ж/б 0,5/0,45л [21:54:21]line 1.000 * 69.00 [21:54:21]line = 69.00 [21:54:21]line НДС 12% НСП 1% [21:54:21]line > о реализуемом товаре [21:54:21]line ИТОГО: 69.00 [21:54:21]line НСП 1% : 0.61 [21:54:21]line НДС 12% : 7.33 [21:54:21]line Наличными: 69.00 [21:54:21]line Безнал.: 0.00 [21:54:21]line Место: АЗС № 87 "Партнер Нефть" [21:54:21]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [21:54:21]line СНО: Общий режим [21:54:21]line Чек 141 24.10.2024 21:54 [21:54:21]line Смена: 529 ФФД: 1.0 [21:54:21]line ЗНМ: 0300000084 [21:54:21]line РНМ: 0000000000091622 [21:54:21]line Версия ККМ: 001 [21:54:21]line ФМ: 0000000000874674 [21:54:21]line ФД: 60066 [21:54:22]line ФПД: 248392900669674 [21:54:22]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T215425&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60066&fm=248392900669674&tin=02508201610067®Number=0000000000091622&sum=6900 [21:54:22]line 0 [21:54:22]Connected sock=11 [21:54:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 3A 01 00 00 95 C4 32 01 06 2A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 11 C2 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A2 EA 00 00 35 04 06 00 E1 E9 7A 9B F0 EA EF 09 28 0E 09 55 2D 2E [21:54:22]written 0, free lines is 4095 [21:54:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 CF AB 47 00 08 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A2 EA 00 00 F4 03 04 00 00 68 1A 67 B6 04 01 00 00 A5 E6 3B E0 B4 BF 12 D8 [21:54:22]CommunicateWithHost err = 0 [21:54:22]CheckOFDResponse [21:54:22]1017 (14) - 77093643461234 [21:54:22]1041 (16) - 0000000000874674 [21:54:22]1040 (4) - 60066 [21:54:22]1012 (4) - 24.10.2024 15:30 [21:54:22]1206 (1) - 0 [21:54:22]OFD Sender: Remove packet 60066 [21:54:22]ProducePacketName [21:54:22]name=ofd_packets/00060066 [21:54:22]NVStorageDeleteData [21:54:22]Write to MH i2c: 01 00 00 B1 2E DF [21:54:22]Write i2c OK [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: 01 [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: 01 07 00 [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: 01 07 00 B1 2E 00 00 00 00 00 D5 0C C7 [21:54:22]RasterBufferAndPrint [21:54:22]line [21:54:22]line [21:54:22]line [21:54:22]line [21:54:22]line [21:54:22]written 0, free lines is 3294 [21:54:22]MH_Cut [21:54:22]Write to MH i2c: D1 01 00 B8 2E 01 B8 [21:54:22]Write i2c OK [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: D1 [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: D1 01 00 [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: D1 01 00 B8 2E 00 B7 [21:54:22]Write to MH i2c: 01 00 00 B9 2E E7 [21:54:22]Write i2c OK [21:54:22]MH_I2C_Read... [21:54:22]OFD Sender: No OFD packet to send [21:54:23]*** Cut start [21:54:23]*** Partial cut [21:54:23]*** CUTSNS_PIN = 1 [21:54:23]*** CUTSNS_PIN = 0 [21:54:23]*** Brake cut motor [21:54:23]Read from MH i2c: 01 [21:54:23]MH_I2C_Read... [21:54:23]*** Stop cut motor [21:54:23]*** Cut end [21:54:23]Read from MH i2c: 01 07 00 [21:54:23]MH_I2C_Read... [21:54:23]Read from MH i2c: 01 07 00 B9 2E 00 00 00 00 00 FF 0F FC [21:54:23]process_action close_receipt done [21:54:23]requested_data is exist [21:54:23]produce_requested_data [21:54:23]requested_item fm.sn is exist - process it [21:54:23]wFMCommunicate request_size=4 [21:54:23]MH_SAM_APDU [21:54:23]CAPDU: 80 11 00 00 [21:54:23]Write to MH i2c: E2 08 00 BA 2E 80 11 00 00 00 00 00 00 62 [21:54:23]Write i2c OK [21:54:23]MH_I2C_Read... [21:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:23]Read from MH i2c: E2 [21:54:23]MH_I2C_Read... [21:54:23]Read from MH i2c: E2 17 00 [21:54:23]MH_I2C_Read... [21:54:23]Read from MH i2c: E2 17 00 BA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 B9 [21:54:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [21:54:23]wFMCommunicate OK [21:54:23]requested_item fd.num is exist - process it [21:54:23]SAM_PROTO_GetFieldsCounters [21:54:23]wFMCommunicate request_size=4 [21:54:23]MH_SAM_APDU [21:54:23]CAPDU: 80 13 00 00 [21:54:23]Write to MH i2c: E2 08 00 BB 2E 80 13 00 00 00 00 00 00 65 [21:54:23]Write i2c OK [21:54:23]MH_I2C_Read... [21:54:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:24]Read from MH i2c: E2 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: E2 62 00 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: E2 62 00 BB 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A2 EA 00 00 0E 04 04 00 11 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 CB [21:54:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A2 EA 00 00 0E 04 04 00 11 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 [21:54:24]wFMCommunicate OK [21:54:24]SAM_PROTO_GetFieldsCounters done [21:54:24]requested_item shift.num is exist - process it [21:54:24]requested_item shift.opened is exist - process it [21:54:24]req_shift_opened [21:54:24]FM_GetShiftState [21:54:24]SAM_PROTO_GetShiftState [21:54:24]wFMCommunicate request_size=4 [21:54:24]MH_SAM_APDU [21:54:24]CAPDU: 80 13 01 00 [21:54:24]Write to MH i2c: E2 08 00 BC 2E 80 13 01 00 00 00 00 00 67 [21:54:24]Write i2c OK [21:54:24]MH_I2C_Read... [21:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:24]Read from MH i2c: E2 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: E2 0E 00 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: E2 0E 00 BC 2E 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 9A [21:54:24]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [21:54:24]wFMCommunicate OK [21:54:24]SAM_PROTO_GetShiftState done [21:54:24]FM_GetShiftState done [21:54:24]req_shift_opened done [21:54:24]requested_item shift.open_date is exist - process it [21:54:24]req_shift_open_date [21:54:24]req_shift_open_date done [21:54:24]produce_requested_data done [21:54:24]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60066,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [21:54:24]process_action_free close_receipt [21:54:24]json_value_free [21:54:24]json_value_free done [21:54:24]process_json_proto returns [21:54:24]Send response to host [21:54:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60066,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [21:54:24]free response buf [21:54:24]execute_script done [21:54:24]execute_script returns [21:54:24]free content buf [21:54:24]Sock 9.Close socket [21:54:24]Sock 9.Thread stoped [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [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:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [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]accept exits with 7 [22:18:13]New connection [22:18:13]New thread 3067252068 created [22:18:13]Thread 3067108708 joined [22:18:13]Waiting for new connection... [22:18:13] Sock 7.Parse request [22:18:13]Sock 7.Check first char [22:18:13]Sock 7.First char is OK [22:18:13]request: POST /json_proto HTTP/1.0 [22:18:13]Method: POST [22:18:13]URL: /json_proto [22:18:13]Method is POST - this is cgi request [22:18:13]url: /json_proto [22:18:13]query_string will be loaded in cgi processing [22:18:13]execute_cgi json_proto POST (null) [22:18:13]execute_cgi path=json_proto method=POST [22:18:13]POST find Content-Length [22:18:13]Host: 172.17.42.196:8080 [22:18:13]Content-Length: 863 [22:18:13]Content-Type: application/json [22:18:13] [22:18:13]POST finish read [22:18:13]Found Content-Length = 863 [22:18:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199839", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 404.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:13]execute_script... [22:18:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199839", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 404.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:13]POST & json_proto [22:18:13]process_json_proto [22:18:13]json parsed OK: [22:18:13]protocol is kg_v1.0 [22:18:13]action value=close_receipt [22:18:13]process_action close_receipt [22:18:13]cmd_close_receipt [22:18:13]MH_GetDate [22:18:13]Write to MH i2c: F0 00 00 BD 2E DA [22:18:13]Write i2c OK [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: F0 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: F0 09 00 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: F0 09 00 BD 2E 00 AA C7 1A 67 FF C4 6B 64 67 [22:18:13]GetLastDocTimeStamp 1729806865 [22:18:13]current date 1729808298 [22:18:13]FM_GetShiftState [22:18:13]SAM_PROTO_GetShiftState [22:18:13]wFMCommunicate request_size=4 [22:18:13]MH_SAM_APDU [22:18:13]CAPDU: 80 13 01 00 [22:18:13]Write to MH i2c: E2 08 00 BE 2E 80 13 01 00 00 00 00 00 69 [22:18:13]Write i2c OK [22:18:13]MH_I2C_Read... [22:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:13]Read from MH i2c: E2 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: E2 0E 00 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: E2 0E 00 BE 2E 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 9C [22:18:13]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:18:13]wFMCommunicate OK [22:18:13]SAM_PROTO_GetShiftState done [22:18:13]FM_GetShiftState done [22:18:13]opened in 1729730575 [22:18:13]opened+sec_in_day 1729816975 [22:18:13]quantity*price = 14400 [22:18:13]sum+1 = 14401 [22:18:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 404.00 НСП 1% : 3.57 НДС 12% : 42.90 Наличными: 404.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 142 24.10.2024 22:18 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60067 ФПД: 140587695075984 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221819&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60067&fm=140587695075984&tin=02508201610067®Number=0000000000091622&sum=40400 0 [22:18:14]StoreToDocumentArchive [22:18:14]shift 529 fd 60067 [22:18:14]save to /storage/0529/doc_00060067 [22:18:14]save last doc name /storage/0529/doc_00060067 to /storage/kkm_last_doc_name [22:18:14]save OK [22:18:14]Clear old archive folders... [22:18:14]ProcessDocumentItem done err = 0, tmpTLVsize=377 [22:18:14]tlvbuf is 00D8FAA0 [22:18:14]SAM_PROTO_ClearQueue [22:18:14]wFMCommunicate request_size=4 [22:18:14]MH_SAM_APDU [22:18:14]CAPDU: 80 09 00 00 [22:18:14]Write to MH i2c: E2 08 00 CB 2E 80 09 00 00 00 00 00 00 6B [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 CB 2E 00 90 00 6D [22:18:14]RAPDU: 90 00 [22:18:14]wFMCommunicate OK [22:18:14]SAM_PROTO_ClearQueue done [22:18:14]KKMCreateOFDPacket [22:18:14]OFDProtocolAddRootSTLVToBuf [22:18:14]FM_MakeSignedData [22:18:14]FM_MakeSignedData [22:18:14]SAM_PROTO_SignData [22:18:14]wFMCommunicate request_size=4 [22:18:14]MH_SAM_APDU [22:18:14]CAPDU: 80 0D 01 02 [22:18:14]Write to MH i2c: E2 08 00 CC 2E 80 0D 01 02 00 00 00 00 73 [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 CC 2E 00 90 00 6E [22:18:14]RAPDU: 90 00 [22:18:14]wFMCommunicate OK [22:18:14]wFMCommunicate request_size=255 [22:18:14]MH_SAM_APDU [22:18:14]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 01 00 00 00 00 EE [22:18:14]Write to MH i2c: E2 02 01 CD 2E 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 01 00 00 00 00 EE 00 00 38 [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 CD 2E 00 90 00 6F [22:18:14]RAPDU: 90 00 [22:18:14]wFMCommunicate OK [22:18:14]wFMCommunicate request_size=136 [22:18:14]MH_SAM_APDU [22:18:14]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 10 00 00 00 00 07 04 06 00 D0 9D 00 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 AB C7 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A3 EA 00 00 35 04 06 00 7F DD 1F 9F F2 90 [22:18:14]Write to MH i2c: E2 8B 00 CE 2E 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 10 00 00 00 00 07 04 06 00 D0 9D 00 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 AB C7 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A3 EA 00 00 35 04 06 00 7F DD 1F 9F F2 90 00 00 B6 [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 CE 2E 00 90 00 70 [22:18:14]RAPDU: 90 00 [22:18:14]wFMCommunicate OK [22:18:14]wFMCommunicate request_size=4 [22:18:14]MH_SAM_APDU [22:18:14]CAPDU: 80 0D 03 02 [22:18:14]Write to MH i2c: E2 08 00 CF 2E 80 0D 03 02 00 00 00 00 78 [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 0B 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 0B 00 CF 2E 00 35 49 38 41 0D 3E E2 61 90 00 FE [22:18:14]RAPDU: 35 49 38 41 0D 3E E2 61 90 00 [22:18:14]wFMCommunicate OK [22:18:14]SAM_PROTO_SignData done [22:18:14]FM_MakeSignedData done [22:18:14]CreateOFDProtocolMessage [22:18:14]wFMCommunicate request_size=4 [22:18:14]MH_SAM_APDU [22:18:14]CAPDU: 80 11 00 00 [22:18:14]Write to MH i2c: E2 08 00 D0 2E 80 11 00 00 00 00 00 00 78 [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 17 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 17 00 D0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 CF [22:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:18:14]wFMCommunicate OK [22:18:14]CreateOFDProtocolMessage done [22:18:14]OFDSenderStorePacket 60067 [22:18:14]StoreOFDPacket docnum=60067 [22:18:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 8D 01 00 00 5F 34 85 01 31 27 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 10 00 00 00 00 07 04 06 00 D0 9D 00 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 AB C7 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A3 EA 00 00 35 04 06 00 7F DD 1F 9F F2 90 35 49 38 41 0D 3E E2 61 [22:18:14]CheckFolder [22:18:14]dirname=/storage/ofd_packets [22:18:14]CheckFolder done [22:18:14]ProducePacketName [22:18:14]name=ofd_packets/00060067 [22:18:14]NVStorageSaveData ofd_packets/00060067 [22:18:14]File name is /storage/ofd_packets/00060067 [22:18:14]Write 427 bytes [22:18:14]NVStorageSaveData done [22:18:14]OFDSenderStorePacket done [22:18:14]KKMCreateOFDPacket done [22:18:15]NVStorageSaveData kkm_last_timestamp [22:18:15]File name is /storage/kkm_last_timestamp [22:18:15]Write 4 bytes [22:18:15]NVStorageSaveData done [22:18:15]ExternCall_PrintAddStr [22:18:15]wPrintStart [22:18:15]Write to MH i2c: 01 00 00 D1 2E FF [22:18:15]OFD Sender: Processing packet 60067 [packets to send 30, broken 29] [22:18:15]ProducePacketName [22:18:15]name=ofd_packets/00060067 [22:18:15]OFD Sender: To server: pG, [22:18:15]CommunicateWithHost lk.salyk.kg:30040 [22:18:15]ConnectInit lk.salyk.kg [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 07 00 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 07 00 D1 2E 00 00 00 00 00 FF 0F 14 [22:18:15]RasterBufferAndPrint [22:18:15]line Счет N : (3)199839 [22:18:15]line ИНН: 02508201610067 [22:18:15]line Контрольно-Кассовый Чек [22:18:15]line ПРОДАЖА [22:18:15]line Товар: 47802995 [22:18:15]line Сигареты Winston XS Silver [22:18:15]line 1.000 * 144.00 [22:18:15]line = 144.00 [22:18:15]line НДС 12% НСП 1% [22:18:15]line > о реализуемом товаре [22:18:15]line Товар: 2000036230011 [22:18:15]line Кофе Латте XL(GABB TRADE) [22:18:15]line 2.000 * 130.00 [22:18:15]line = 260.00 [22:18:15]line НДС 12% НСП 1% [22:18:15]line > о реализуемом товаре [22:18:15]line ИТОГО: 404.00 [22:18:15]line НСП 1% : 3.57 [22:18:15]line НДС 12% : 42.90 [22:18:15]line Наличными: 404.00 [22:18:15]line Безнал.: 0.00 [22:18:15]line Место: АЗС № 87 "Партнер Нефть" [22:18:15]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [22:18:15]line СНО: Общий режим [22:18:15]line Чек 142 24.10.2024 22:18 [22:18:15]line Смена: 529 ФФД: 1.0 [22:18:15]line ЗНМ: 0300000084 [22:18:15]line РНМ: 0000000000091622 [22:18:15]line Версия ККМ: 001 [22:18:15]line ФМ: 0000000000874674 [22:18:15]line ФД: 60067 [22:18:15]line ФПД: 140587695075984 [22:18:15]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221819&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60067&fm=140587695075984&tin=02508201610067®Number=0000000000091622&sum=40400 [22:18:15]line 0 [22:18:15]written 0, free lines is 4095 [22:18:15]Connected sock=10 [22:18:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 8D 01 00 00 5F 34 85 01 31 27 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 10 00 00 00 00 07 04 06 00 D0 9D 00 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 AB C7 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A3 EA 00 00 35 04 06 00 7F DD 1F 9F F2 90 35 49 38 41 0D 3E E2 61 [22:18:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 D1 D9 47 00 D1 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 34 36 37 34 10 04 04 00 A3 EA 00 00 F4 03 04 00 9A 6D 1A 67 B6 04 01 00 00 16 8E DA 3E E9 A3 39 7A [22:18:15]CommunicateWithHost err = 0 [22:18:15]CheckOFDResponse [22:18:15]1017 (14) - 77093643461234 [22:18:15]1041 (16) - 0000000000874674 [22:18:15]1040 (4) - 60067 [22:18:15]1012 (4) - 24.10.2024 15:54 [22:18:15]1206 (1) - 0 [22:18:15]OFD Sender: Remove packet 60067 [22:18:15]ProducePacketName [22:18:15]name=ofd_packets/00060067 [22:18:15]NVStorageDeleteData [22:18:15]Write to MH i2c: 01 00 00 FF 2E 2D [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 07 00 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 07 00 FF 2E 00 00 00 00 00 AE 0C EE [22:18:15]RasterBufferAndPrint [22:18:15]line [22:18:15]line [22:18:15]line [22:18:15]line [22:18:15]line [22:18:15]written 0, free lines is 3252 [22:18:15]MH_Cut [22:18:15]Write to MH i2c: D1 01 00 06 2F 01 07 [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: D1 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: D1 01 00 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: D1 01 00 06 2F 00 06 [22:18:15]Write to MH i2c: 01 00 00 07 2F 36 [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:16]OFD Sender: No OFD packet to send [22:18:16]*** Cut start [22:18:16]*** Partial cut [22:18:16]*** CUTSNS_PIN = 1 [22:18:16]*** CUTSNS_PIN = 0 [22:18:16]*** Brake cut motor [22:18:17]Read from MH i2c: 01 [22:18:17]MH_I2C_Read... [22:18:17]*** Stop cut motor [22:18:17]*** Cut end [22:18:17]Read from MH i2c: 01 07 00 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: 01 07 00 07 2F 00 00 00 00 00 FF 0F 4B [22:18:17]process_action close_receipt done [22:18:17]requested_data is exist [22:18:17]produce_requested_data [22:18:17]requested_item fm.sn is exist - process it [22:18:17]wFMCommunicate request_size=4 [22:18:17]MH_SAM_APDU [22:18:17]CAPDU: 80 11 00 00 [22:18:17]Write to MH i2c: E2 08 00 08 2F 80 11 00 00 00 00 00 00 B1 [22:18:17]Write i2c OK [22:18:17]MH_I2C_Read... [22:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:17]Read from MH i2c: E2 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 17 00 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 17 00 08 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 08 [22:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:18:17]wFMCommunicate OK [22:18:17]requested_item fd.num is exist - process it [22:18:17]SAM_PROTO_GetFieldsCounters [22:18:17]wFMCommunicate request_size=4 [22:18:17]MH_SAM_APDU [22:18:17]CAPDU: 80 13 00 00 [22:18:17]Write to MH i2c: E2 08 00 09 2F 80 13 00 00 00 00 00 00 B4 [22:18:17]Write i2c OK [22:18:17]MH_I2C_Read... [22:18:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:17]Read from MH i2c: E2 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 62 00 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 62 00 09 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A3 EA 00 00 0E 04 04 00 11 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 1E [22:18: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A3 EA 00 00 0E 04 04 00 11 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 [22:18:17]wFMCommunicate OK [22:18:17]SAM_PROTO_GetFieldsCounters done [22:18:17]requested_item shift.num is exist - process it [22:18:17]requested_item shift.opened is exist - process it [22:18:17]req_shift_opened [22:18:17]FM_GetShiftState [22:18:17]SAM_PROTO_GetShiftState [22:18:17]wFMCommunicate request_size=4 [22:18:17]MH_SAM_APDU [22:18:17]CAPDU: 80 13 01 00 [22:18:17]Write to MH i2c: E2 08 00 0A 2F 80 13 01 00 00 00 00 00 B6 [22:18:17]Write i2c OK [22:18:17]MH_I2C_Read... [22:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:17]Read from MH i2c: E2 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 0E 00 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 0E 00 0A 2F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 E9 [22:18:17]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:18:17]wFMCommunicate OK [22:18:17]SAM_PROTO_GetShiftState done [22:18:17]FM_GetShiftState done [22:18:17]req_shift_opened done [22:18:17]requested_item shift.open_date is exist - process it [22:18:17]req_shift_open_date [22:18:17]req_shift_open_date done [22:18:17]produce_requested_data done [22:18:17]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60067,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [22:18:17]process_action_free close_receipt [22:18:17]json_value_free [22:18:17]json_value_free done [22:18:17]process_json_proto returns [22:18:17]Send response to host [22:18:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60067,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [22:18:17]free response buf [22:18:17]execute_script done [22:18:17]execute_script returns [22:18:17]free content buf [22:18:17]Sock 7.Close socket [22:18:17]Sock 7.Thread stoped [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:25]accept exits with 9 [22:19:25]New connection [22:19:25]New thread 3067108708 created [22:19:25]Thread 3067252068 joined [22:19:25]Waiting for new connection... [22:19:25] Sock 9.Parse request [22:19:25]Sock 9.Check first char [22:19:25]Sock 9.First char is OK [22:19:25]request: POST /json_proto HTTP/1.0 [22:19:25]Method: POST [22:19:25]URL: /json_proto [22:19:25]Method is POST - this is cgi request [22:19:25]url: /json_proto [22:19:25]query_string will be loaded in cgi processing [22:19:25]execute_cgi json_proto POST (null) [22:19:25]execute_cgi path=json_proto method=POST [22:19:25]POST find Content-Length [22:19:25]Host: 172.17.42.196:8080 [22:19:25]Content-Length: 1366 [22:19:25]Content-Type: application/json [22:19:25] [22:19:25]POST finish read [22:19:25]Found Content-Length = 1366 [22:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199840", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:25]execute_script... [22:19:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199840", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:25]POST & json_proto [22:19:25]process_json_proto [22:19:25]json parsed OK: [22:19:25]protocol is kg_v1.0 [22:19:25]action value=close_receipt [22:19:25]process_action close_receipt [22:19:25]cmd_close_receipt [22:19:25]MH_GetDate [22:19:25]Write to MH i2c: F0 00 00 0B 2F 29 [22:19:25]Write i2c OK [22:19:25]MH_I2C_Read... [22:19:25]Read from MH i2c: F0 [22:19:25]MH_I2C_Read... [22:19:25]Read from MH i2c: F0 09 00 [22:19:25]MH_I2C_Read... [22:19:25]Read from MH i2c: F0 09 00 0B 2F 00 F3 C7 1A 67 FF C4 6B 64 FF [22:19:25]GetLastDocTimeStamp 1729808299 [22:19:25]current date 1729808371 [22:19:25]FM_GetShiftState [22:19:25]SAM_PROTO_GetShiftState [22:19:25]wFMCommunicate request_size=4 [22:19:25]MH_SAM_APDU [22:19:25]CAPDU: 80 13 01 00 [22:19:25]Write to MH i2c: E2 08 00 0C 2F 80 13 01 00 00 00 00 00 B8 [22:19:25]Write i2c OK [22:19:25]MH_I2C_Read... [22:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:25]Read from MH i2c: E2 [22:19:25]MH_I2C_Read... [22:19:25]Read from MH i2c: E2 0E 00 [22:19:25]MH_I2C_Read... [22:19:25]Read from MH i2c: E2 0E 00 0C 2F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 EB [22:19:25]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:19:25]wFMCommunicate OK [22:19:25]SAM_PROTO_GetShiftState done [22:19:25]FM_GetShiftState done [22:19:25]opened in 1729730575 [22:19:25]opened+sec_in_day 1729816975 [22:19:25]quantity*price = 9900 [22:19:25]sum+1 = 9901 [22:19:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 239.00 НСП 1% : 2.12 НДС 12% : 25.38 Наличными: 0.00 Безнал.: 239.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 143 24.10.2024 22:19 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60068 ФПД: 243116905315214 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221931&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60068&fm=243116905315214&tin=02508201610067®Number=0000000000091622&sum=23900 0 [22:19:26]StoreToDocumentArchive [22:19:26]shift 529 fd 60068 [22:19:26]save to /storage/0529/doc_00060068 [22:19:26]save last doc name /storage/0529/doc_00060068 to /storage/kkm_last_doc_name [22:19:26]save OK [22:19:26]Clear old archive folders... [22:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=521 [22:19:26]tlvbuf is 00DC84D0 [22:19:26]SAM_PROTO_ClearQueue [22:19:26]wFMCommunicate request_size=4 [22:19:26]MH_SAM_APDU [22:19:26]CAPDU: 80 09 00 00 [22:19:26]Write to MH i2c: E2 08 00 19 2F 80 09 00 00 00 00 00 00 BA [22:19:26]Write i2c OK [22:19:26]MH_I2C_Read... [22:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:26]Read from MH i2c: E2 [22:19:26]MH_I2C_Read... [22:19:26]Read from MH i2c: E2 03 00 [22:19:26]MH_I2C_Read... [22:19:26]Read from MH i2c: E2 03 00 19 2F 00 90 00 BC [22:19:26]RAPDU: 90 00 [22:19:26]wFMCommunicate OK [22:19:26]SAM_PROTO_ClearQueue done [22:19:26]KKMCreateOFDPacket [22:19:26]OFDProtocolAddRootSTLVToBuf [22:19:26]FM_MakeSignedData [22:19:26]FM_MakeSignedData [22:19:26]SAM_PROTO_SignData [22:19:26]wFMCommunicate request_size=4 [22:19:26]MH_SAM_APDU [22:19:26]CAPDU: 80 0D 01 02 [22:19:26]Write to MH i2c: E2 08 00 1A 2F 80 0D 01 02 00 00 00 00 C2 [22:19:26]Write i2c OK [22:19:26]MH_I2C_Read... [22:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:26]Read from MH i2c: E2 [22:19:26]MH_I2C_Read... [22:19:26]Read from MH i2c: E2 03 00 [22:19:26]MH_I2C_Read... [22:19:26]Read from MH i2c: E2 03 00 1A 2F 00 90 00 BD [22:19:26]RAPDU: 90 00 [22:19:26]wFMCommunicate OK [22:19:26]wFMCommunicate request_size=255 [22:19:26]MH_SAM_APDU [22:19:26]CAPDU: 80 0D 02 02 FA 03 00 09 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 [22:19:27]Write to MH i2c: E2 02 01 1B 2F 80 0D 02 02 FA 00 03 00 09 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 00 00 14 [22:19:27]Write i2c OK [22:19:27]MH_I2C_Read... [22:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:27]Read from MH i2c: E2 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 03 00 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 03 00 1B 2F 00 90 00 BE [22:19:27]RAPDU: 90 00 [22:19:27]wFMCommunicate OK [22:19:27]wFMCommunicate request_size=255 [22:19:27]MH_SAM_APDU [22:19:27]CAPDU: 80 0D 02 02 FA 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 EA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F3 C7 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [22:19:27]Write to MH i2c: E2 02 01 1C 2F 80 0D 02 02 FA 00 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 EA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F3 C7 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 26 [22:19:27]Write i2c OK [22:19:27]MH_I2C_Read... [22:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:27]Read from MH i2c: E2 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 03 00 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 03 00 1C 2F 00 90 00 BF [22:19:27]RAPDU: 90 00 [22:19:27]wFMCommunicate OK [22:19:27]wFMCommunicate request_size=30 [22:19:27]MH_SAM_APDU [22:19:27]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 34 10 04 04 00 A4 EA 00 00 35 04 06 00 DD 1D 10 C7 BB 8E [22:19:27]Write to MH i2c: E2 21 00 1D 2F 80 0D 02 02 19 00 30 38 37 34 36 37 34 10 04 04 00 A4 EA 00 00 35 04 06 00 DD 1D 10 C7 BB 8E 00 00 6B [22:19:27]Write i2c OK [22:19:27]MH_I2C_Read... [22:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:27]Read from MH i2c: E2 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 03 00 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 03 00 1D 2F 00 90 00 C0 [22:19:27]RAPDU: 90 00 [22:19:27]wFMCommunicate OK [22:19:27]wFMCommunicate request_size=4 [22:19:27]MH_SAM_APDU [22:19:27]CAPDU: 80 0D 03 02 [22:19:27]Write to MH i2c: E2 08 00 1E 2F 80 0D 03 02 00 00 00 00 C8 [22:19:27]Write i2c OK [22:19:27]MH_I2C_Read... [22:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:27]Read from MH i2c: E2 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 0B 00 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 0B 00 1E 2F 00 45 B7 35 4C 69 8F 3E 01 90 00 7D [22:19:27]RAPDU: 45 B7 35 4C 69 8F 3E 01 90 00 [22:19:27]wFMCommunicate OK [22:19:27]SAM_PROTO_SignData done [22:19:27]FM_MakeSignedData done [22:19:27]CreateOFDProtocolMessage [22:19:27]wFMCommunicate request_size=4 [22:19:27]MH_SAM_APDU [22:19:27]CAPDU: 80 11 00 00 [22:19:27]Write to MH i2c: E2 08 00 1F 2F 80 11 00 00 00 00 00 00 C8 [22:19:27]Write i2c OK [22:19:27]MH_I2C_Read... [22:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:27]Read from MH i2c: E2 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 17 00 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 17 00 1F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 1F [22:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:19:27]wFMCommunicate OK [22:19:27]CreateOFDProtocolMessage done [22:19:27]OFDSenderStorePacket 60068 [22:19:27]StoreOFDPacket docnum=60068 [22:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 1D 02 00 00 4F 59 15 02 C4 61 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 EA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F3 C7 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A4 EA 00 00 35 04 06 00 DD 1D 10 C7 BB 8E 45 B7 35 4C 69 8F 3E 01 [22:19:27]CheckFolder [22:19:27]dirname=/storage/ofd_packets [22:19:27]CheckFolder done [22:19:27]ProducePacketName [22:19:27]name=ofd_packets/00060068 [22:19:27]NVStorageSaveData ofd_packets/00060068 [22:19:27]File name is /storage/ofd_packets/00060068 [22:19:27]Write 571 bytes [22:19:27]NVStorageSaveData done [22:19:27]OFDSenderStorePacket done [22:19:27]KKMCreateOFDPacket done [22:19:27]NVStorageSaveData kkm_last_timestamp [22:19:27]File name is /storage/kkm_last_timestamp [22:19:27]Write 4 bytes [22:19:27]NVStorageSaveData done [22:19:27]ExternCall_PrintAddStr [22:19:27]wPrintStart [22:19:27]Write to MH i2c: 01 00 00 20 2F 4F [22:19:27]OFD Sender: Processing packet 60068 [packets to send 30, broken 29] [22:19:27]ProducePacketName [22:19:27]name=ofd_packets/00060068 [22:19:27]OFD Sender: To server: pG, [22:19:27]CommunicateWithHost lk.salyk.kg:30040 [22:19:27]ConnectInit lk.salyk.kg [22:19:27]Write i2c OK [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: 01 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: 01 07 00 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: 01 07 00 20 2F 00 00 00 00 00 FF 0F 64 [22:19:27]RasterBufferAndPrint [22:19:27]line Счет N : (3)199840 [22:19:27]line ИНН: 02508201610067 [22:19:27]line Контрольно-Кассовый Чек [22:19:27]line ПРОДАЖА [22:19:27]line Товар: 4870022003305 [22:19:27]line Напиток Gorilla эн нат ж/б 0,5/0,45л [22:19:27]line 1.000 * 99.00 [22:19:27]line = 99.00 [22:19:27]line НДС 12% НСП 1% [22:19:27]line > о реализуемом товаре [22:19:27]line Товар: 4700000160358 [22:19:27]line Вода Легенда 1л [22:19:27]line 1.000 * 50.00 [22:19:27]line = 50.00 [22:19:27]line НДС 12% НСП 1% [22:19:27]line > о реализуемом товаре [22:19:27]line Товар: 4660085515163 [22:19:27]line Шок Батончик Сникерс супер 95/80г [22:19:27]line 1.000 * 90.00 [22:19:27]line = 90.00 [22:19:27]line НДС 12% НСП 1% [22:19:27]line > о реализуемом товаре [22:19:27]line ИТОГО: 239.00 [22:19:27]line НСП 1% : 2.12 [22:19:27]line НДС 12% : 25.38 [22:19:27]line Наличными: 0.00 [22:19:27]line Безнал.: 239.00 [22:19:27]line Место: АЗС № 87 "Партнер Нефть" [22:19:27]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [22:19:27]line СНО: Общий режим [22:19:27]line Чек 143 24.10.2024 22:19 [22:19:27]line Смена: 529 ФФД: 1.0 [22:19:27]line ЗНМ: 0300000084 [22:19:27]line РНМ: 0000000000091622 [22:19:27]line Версия ККМ: 001 [22:19:27]line Платежная система: Mbank [22:19:27]line ФМ: 0000000000874674 [22:19:27]line ФД: 60068 [22:19:27]line ФПД: 243116905315214 [22:19:27]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221931&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60068&fm=243116905315214&tin=02508201610067®Number=0000000000091622&sum=23900 [22:19:27]line 0 [22:19:27]written 0, free lines is 4095 [22:19:27]Connected sock=10 [22:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 1D 02 00 00 4F 59 15 02 C4 61 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 EA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F3 C7 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A4 EA 00 00 35 04 06 00 DD 1D 10 C7 BB 8E 45 B7 35 4C 69 8F 3E 01 [22:19:28]Write to MH i2c: 01 00 00 57 2F 86 [22:19:28]Write i2c OK [22:19:28]MH_I2C_Read... [22:19:28]Read from MH i2c: 01 [22:19:28]MH_I2C_Read... [22:19:28]Read from MH i2c: 01 07 00 [22:19:28]MH_I2C_Read... [22:19:28]Read from MH i2c: 01 07 00 57 2F 00 00 00 00 00 22 0C BB [22:19:28]RasterBufferAndPrint [22:19:28]line [22:19:28]line [22:19:28]line [22:19:28]line [22:19:28]line [22:19:28]written 0, free lines is 3112 [22:19:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 58 93 47 00 83 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 34 36 37 34 10 04 04 00 A4 EA 00 00 F4 03 04 00 E3 6D 1A 67 B6 04 01 00 00 0F 4F 03 8F 9B 4A C6 41 [22:19:28]CommunicateWithHost err = 0 [22:19:28]CheckOFDResponse [22:19:28]1017 (14) - 77093643461234 [22:19:28]1041 (16) - 0000000000874674 [22:19:28]1040 (4) - 60068 [22:19:28]1012 (4) - 24.10.2024 15:55 [22:19:28]1206 (1) - 0 [22:19:28]OFD Sender: Remove packet 60068 [22:19:28]ProducePacketName [22:19:28]name=ofd_packets/00060068 [22:19:28]NVStorageDeleteData [22:19:28]MH_Cut [22:19:28]Write to MH i2c: D1 01 00 5E 2F 01 5F [22:19:28]Write i2c OK [22:19:28]MH_I2C_Read... [22:19:28]Read from MH i2c: D1 [22:19:28]MH_I2C_Read... [22:19:28]Read from MH i2c: D1 01 00 [22:19:28]MH_I2C_Read... [22:19:28]Read from MH i2c: D1 01 00 5E 2F 00 5E [22:19:28]Write to MH i2c: 01 00 00 5F 2F 8E [22:19:28]Write i2c OK [22:19:28]MH_I2C_Read... [22:19:28]OFD Sender: No OFD packet to send [22:19:29]*** Cut start [22:19:29]*** Partial cut [22:19:29]*** CUTSNS_PIN = 1 [22:19:29]*** CUTSNS_PIN = 0 [22:19:29]*** Brake cut motor [22:19:29]Read from MH i2c: 01 [22:19:29]MH_I2C_Read... [22:19:29]*** Stop cut motor [22:19:29]*** Cut end [22:19:29]Read from MH i2c: 01 07 00 [22:19:29]MH_I2C_Read... [22:19:29]Read from MH i2c: 01 07 00 5F 2F 00 00 00 00 00 FF 0F A3 [22:19:29]process_action close_receipt done [22:19:29]requested_data is exist [22:19:29]produce_requested_data [22:19:29]requested_item fm.sn is exist - process it [22:19:29]wFMCommunicate request_size=4 [22:19:29]MH_SAM_APDU [22:19:29]CAPDU: 80 11 00 00 [22:19:29]Write to MH i2c: E2 08 00 60 2F 80 11 00 00 00 00 00 00 09 [22:19:29]Write i2c OK [22:19:29]MH_I2C_Read... [22:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:29]Read from MH i2c: E2 [22:19:29]MH_I2C_Read... [22:19:29]Read from MH i2c: E2 17 00 [22:19:29]MH_I2C_Read... [22:19:29]Read from MH i2c: E2 17 00 60 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 60 [22:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:19:29]wFMCommunicate OK [22:19:29]requested_item fd.num is exist - process it [22:19:29]SAM_PROTO_GetFieldsCounters [22:19:29]wFMCommunicate request_size=4 [22:19:29]MH_SAM_APDU [22:19:29]CAPDU: 80 13 00 00 [22:19:29]Write to MH i2c: E2 08 00 61 2F 80 13 00 00 00 00 00 00 0C [22:19:29]Write i2c OK [22:19:29]MH_I2C_Read... [22:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:30]Read from MH i2c: E2 [22:19:30]MH_I2C_Read... [22:19:30]Read from MH i2c: E2 62 00 [22:19:30]MH_I2C_Read... [22:19:30]Read from MH i2c: E2 62 00 61 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A4 EA 00 00 0E 04 04 00 11 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 7A [22:19: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A4 EA 00 00 0E 04 04 00 11 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 [22:19:30]wFMCommunicate OK [22:19:30]SAM_PROTO_GetFieldsCounters done [22:19:30]requested_item shift.num is exist - process it [22:19:30]requested_item shift.opened is exist - process it [22:19:30]req_shift_opened [22:19:30]FM_GetShiftState [22:19:30]SAM_PROTO_GetShiftState [22:19:30]wFMCommunicate request_size=4 [22:19:30]MH_SAM_APDU [22:19:30]CAPDU: 80 13 01 00 [22:19:30]Write to MH i2c: E2 08 00 62 2F 80 13 01 00 00 00 00 00 0E [22:19:30]Write i2c OK [22:19:30]MH_I2C_Read... [22:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:30]Read from MH i2c: E2 [22:19:30]MH_I2C_Read... [22:19:30]Read from MH i2c: E2 0E 00 [22:19:30]MH_I2C_Read... [22:19:30]Read from MH i2c: E2 0E 00 62 2F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 41 [22:19:30]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:19:30]wFMCommunicate OK [22:19:30]SAM_PROTO_GetShiftState done [22:19:30]FM_GetShiftState done [22:19:30]req_shift_opened done [22:19:30]requested_item shift.open_date is exist - process it [22:19:30]req_shift_open_date [22:19:30]req_shift_open_date done [22:19:30]produce_requested_data done [22:19:30]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60068,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [22:19:30]process_action_free close_receipt [22:19:30]json_value_free [22:19:30]json_value_free done [22:19:30]process_json_proto returns [22:19:30]Send response to host [22:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60068,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [22:19:30]free response buf [22:19:30]execute_script done [22:19:30]execute_script returns [22:19:30]free content buf [22:19:30]Sock 9.Close socket [22:19:30]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:42]accept exits with 7 [22:24:42]New connection [22:24:42]New thread 3067252068 created [22:24:42]Thread 3067108708 joined [22:24:42]Waiting for new connection... [22:24:42] Sock 7.Parse request [22:24:42]Sock 7.Check first char [22:24:42]Sock 7.First char is OK [22:24:42]request: POST /json_proto HTTP/1.0 [22:24:42]Method: POST [22:24:42]URL: /json_proto [22:24:42]Method is POST - this is cgi request [22:24:42]url: /json_proto [22:24:42]query_string will be loaded in cgi processing [22:24:42]execute_cgi json_proto POST (null) [22:24:42]execute_cgi path=json_proto method=POST [22:24:42]POST find Content-Length [22:24:42]Host: 172.17.42.196:8080 [22:24:42]Content-Length: 894 [22:24:42]Content-Type: application/json [22:24:42] [22:24:42]POST finish read [22:24:42]Found Content-Length = 894 [22:24:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199841", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039450010", "name": "\u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:42]execute_script... [22:24:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199841", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039450010", "name": "\u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:42]POST & json_proto [22:24:42]process_json_proto [22:24:42]json parsed OK: [22:24:42]protocol is kg_v1.0 [22:24:42]action value=close_receipt [22:24:42]process_action close_receipt [22:24:42]cmd_close_receipt [22:24:42]MH_GetDate [22:24:42]Write to MH i2c: F0 00 00 63 2F 81 [22:24:42]Write i2c OK [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: F0 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: F0 09 00 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: F0 09 00 63 2F 00 2F C9 1A 67 FF C4 6B 64 95 [22:24:42]GetLastDocTimeStamp 1729808371 [22:24:42]current date 1729808687 [22:24:42]FM_GetShiftState [22:24:42]SAM_PROTO_GetShiftState [22:24:42]wFMCommunicate request_size=4 [22:24:42]MH_SAM_APDU [22:24:42]CAPDU: 80 13 01 00 [22:24:42]Write to MH i2c: E2 08 00 64 2F 80 13 01 00 00 00 00 00 10 [22:24:42]Write i2c OK [22:24:42]MH_I2C_Read... [22:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:42]Read from MH i2c: E2 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: E2 0E 00 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: E2 0E 00 64 2F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 43 [22:24:42]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:24:42]wFMCommunicate OK [22:24:42]SAM_PROTO_GetShiftState done [22:24:42]FM_GetShiftState done [22:24:42]opened in 1729730575 [22:24:42]opened+sec_in_day 1729816975 [22:24:42]quantity*price = 11500 [22:24:42]sum+1 = 11501 [22:24:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000039450010 Чай зеленый 200 мл 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 144 24.10.2024 22:24 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60069 ФПД: 2654901252854 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222447&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60069&fm=2654901252854&tin=02508201610067®Number=0000000000091622&sum=19500 0 [22:24:43]StoreToDocumentArchive [22:24:43]shift 529 fd 60069 [22:24:43]save to /storage/0529/doc_00060069 [22:24:43]save last doc name /storage/0529/doc_00060069 to /storage/kkm_last_doc_name [22:24:43]save OK [22:24:43]Clear old archive folders... [22:24:43]ProcessDocumentItem done err = 0, tmpTLVsize=382 [22:24:43]tlvbuf is 00DEC230 [22:24:43]SAM_PROTO_ClearQueue [22:24:43]wFMCommunicate request_size=4 [22:24:43]MH_SAM_APDU [22:24:43]CAPDU: 80 09 00 00 [22:24:43]Write to MH i2c: E2 08 00 71 2F 80 09 00 00 00 00 00 00 12 [22:24:43]Write i2c OK [22:24:43]MH_I2C_Read... [22:24:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:43]Read from MH i2c: E2 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: E2 03 00 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: E2 03 00 71 2F 00 90 00 14 [22:24:43]RAPDU: 90 00 [22:24:43]wFMCommunicate OK [22:24:43]SAM_PROTO_ClearQueue done [22:24:43]KKMCreateOFDPacket [22:24:43]OFDProtocolAddRootSTLVToBuf [22:24:43]FM_MakeSignedData [22:24:43]FM_MakeSignedData [22:24:43]SAM_PROTO_SignData [22:24:43]wFMCommunicate request_size=4 [22:24:43]MH_SAM_APDU [22:24:43]CAPDU: 80 0D 01 02 [22:24:43]Write to MH i2c: E2 08 00 72 2F 80 0D 01 02 00 00 00 00 1A [22:24:43]Write i2c OK [22:24:43]MH_I2C_Read... [22:24:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:43]Read from MH i2c: E2 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: E2 03 00 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: E2 03 00 72 2F 00 90 00 15 [22:24:43]RAPDU: 90 00 [22:24:43]wFMCommunicate OK [22:24:43]wFMCommunicate request_size=255 [22:24:43]MH_SAM_APDU [22:24:43]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 32 30 30 30 30 33 39 34 35 30 30 31 30 06 04 1E 00 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 [22:24:43]Write to MH i2c: E2 02 01 73 2F 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 32 30 30 30 30 33 39 34 35 30 30 31 30 06 04 1E 00 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 BF [22:24:43]Write i2c OK [22:24:43]MH_I2C_Read... [22:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:43]Read from MH i2c: E2 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: E2 03 00 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: E2 03 00 73 2F 00 90 00 16 [22:24:43]RAPDU: 90 00 [22:24:43]wFMCommunicate OK [22:24:43]wFMCommunicate request_size=141 [22:24:43]MH_SAM_APDU [22:24:43]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 2F C9 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A5 EA 00 00 35 04 06 00 02 6A 24 72 32 F6 [22:24:43]Write to MH i2c: E2 90 00 74 2F 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 2F C9 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A5 EA 00 00 35 04 06 00 02 6A 24 72 32 F6 00 00 C5 [22:24:43]Write i2c OK [22:24:43]MH_I2C_Read... [22:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:43]Read from MH i2c: E2 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: E2 03 00 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: E2 03 00 74 2F 00 90 00 17 [22:24:43]RAPDU: 90 00 [22:24:43]wFMCommunicate OK [22:24:43]wFMCommunicate request_size=4 [22:24:43]MH_SAM_APDU [22:24:43]CAPDU: 80 0D 03 02 [22:24:43]Write to MH i2c: E2 08 00 75 2F 80 0D 03 02 00 00 00 00 1F [22:24:43]Write i2c OK [22:24:43]MH_I2C_Read... [22:24:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:43]Read from MH i2c: E2 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: E2 0B 00 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: E2 0B 00 75 2F 00 B9 9D 59 A1 B3 2E 2A 91 90 00 0C [22:24:43]RAPDU: B9 9D 59 A1 B3 2E 2A 91 90 00 [22:24:43]wFMCommunicate OK [22:24:43]SAM_PROTO_SignData done [22:24:43]FM_MakeSignedData done [22:24:43]CreateOFDProtocolMessage [22:24:43]wFMCommunicate request_size=4 [22:24:43]MH_SAM_APDU [22:24:43]CAPDU: 80 11 00 00 [22:24:43]Write to MH i2c: E2 08 00 76 2F 80 11 00 00 00 00 00 00 1F [22:24:43]Write i2c OK [22:24:43]MH_I2C_Read... [22:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:43]Read from MH i2c: E2 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: E2 17 00 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: E2 17 00 76 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 76 [22:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:24:43]wFMCommunicate OK [22:24:43]CreateOFDProtocolMessage done [22:24:43]OFDSenderStorePacket 60069 [22:24:43]StoreOFDPacket docnum=60069 [22:24:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 92 01 00 00 39 99 8A 01 6C 5F 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 32 30 30 30 30 33 39 34 35 30 30 31 30 06 04 1E 00 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 2F C9 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A5 EA 00 00 35 04 06 00 02 6A 24 72 32 F6 B9 9D 59 A1 B3 2E 2A 91 [22:24:43]CheckFolder [22:24:43]dirname=/storage/ofd_packets [22:24:43]CheckFolder done [22:24:43]ProducePacketName [22:24:43]name=ofd_packets/00060069 [22:24:43]NVStorageSaveData ofd_packets/00060069 [22:24:43]File name is /storage/ofd_packets/00060069 [22:24:43]Write 432 bytes [22:24:43]NVStorageSaveData done [22:24:43]OFDSenderStorePacket done [22:24:43]KKMCreateOFDPacket done [22:24:43]NVStorageSaveData kkm_last_timestamp [22:24:43]File name is /storage/kkm_last_timestamp [22:24:43]Write 4 bytes [22:24:43]NVStorageSaveData done [22:24:43]ExternCall_PrintAddStr [22:24:43]wPrintStart [22:24:43]Write to MH i2c: 01 00 00 77 2F A6 [22:24:43]Write i2c OK [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: 01 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: 01 07 00 [22:24:43]MH_I2C_Read... [22:24:43]Read from MH i2c: 01 07 00 77 2F 00 00 00 00 00 FF 0F BB [22:24:43]RasterBufferAndPrint [22:24:43]line Счет N : (3)199841 [22:24:43]line ИНН: 02508201610067 [22:24:43]line Контрольно-Кассовый Чек [22:24:43]line ПРОДАЖА [22:24:43]line Товар: 2000036210013 [22:24:43]line Кофе Капучино (GABB TRADE) [22:24:43]line 1.000 * 115.00 [22:24:43]line = 115.00 [22:24:43]line НДС 12% НСП 1% [22:24:43]line > о реализуемом товаре [22:24:44]line Товар: 2000039450010 [22:24:44]line Чай зеленый 200 мл [22:24:44]line 2.000 * 40.00 [22:24:44]line = 80.00 [22:24:44]line НДС 12% НСП 1% [22:24:44]line > о реализуемом товаре [22:24:44]line ИТОГО: 195.00 [22:24:44]line НСП 1% : 1.73 [22:24:44]line НДС 12% : 20.71 [22:24:44]line Наличными: 195.00 [22:24:44]line Безнал.: 0.00 [22:24:44]line Место: АЗС № 87 "Партнер Нефть" [22:24:44]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [22:24:44]line СНО: Общий режим [22:24:44]line Чек 144 24.10.2024 22:24 [22:24:44]line Смена: 529 ФФД: 1.0 [22:24:44]line ЗНМ: 0300000084 [22:24:44]line РНМ: 0000000000091622 [22:24:44]line Версия ККМ: 001 [22:24:44]line ФМ: 0000000000874674 [22:24:44]line ФД: 60069 [22:24:44]line ФПД: 2654901252854 [22:24:44]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222447&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60069&fm=2654901252854&tin=02508201610067®Number=0000000000091622&sum=19500 [22:24:44]line 0 [22:24:44]OFD Sender: Processing packet 60069 [packets to send 30, broken 29] [22:24:44]ProducePacketName [22:24:44]name=ofd_packets/00060069 [22:24:44]OFD Sender: To server: pG, [22:24:44]CommunicateWithHost lk.salyk.kg:30040 [22:24:44]ConnectInit lk.salyk.kg [22:24:44]written 0, free lines is 4095 [22:24:44]Connected sock=10 [22:24:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 92 01 00 00 39 99 8A 01 6C 5F 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 32 30 30 30 30 33 39 34 35 30 30 31 30 06 04 1E 00 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 2F C9 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A5 EA 00 00 35 04 06 00 02 6A 24 72 32 F6 B9 9D 59 A1 B3 2E 2A 91 [22:24:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 6C 23 47 00 7B F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A5 EA 00 00 F4 03 04 00 1F 6F 1A 67 B6 04 01 00 00 94 78 61 7F 32 F8 7D 03 [22:24:44]CommunicateWithHost err = 0 [22:24:44]CheckOFDResponse [22:24:44]1017 (14) - 77093643461234 [22:24:44]1041 (16) - 0000000000874674 [22:24:44]1040 (4) - 60069 [22:24:44]1012 (4) - 24.10.2024 16:00 [22:24:44]1206 (1) - 0 [22:24:44]OFD Sender: Remove packet 60069 [22:24:44]ProducePacketName [22:24:44]name=ofd_packets/00060069 [22:24:44]NVStorageDeleteData [22:24:44]Write to MH i2c: 01 00 00 A5 2F D4 [22:24:44]Write i2c OK [22:24:44]MH_I2C_Read... [22:24:44]Read from MH i2c: 01 [22:24:44]MH_I2C_Read... [22:24:44]Read from MH i2c: 01 07 00 [22:24:44]MH_I2C_Read... [22:24:44]Read from MH i2c: 01 07 00 A5 2F 00 00 00 00 00 9E 0C 85 [22:24:44]RasterBufferAndPrint [22:24:44]line [22:24:44]line [22:24:44]line [22:24:44]line [22:24:44]line [22:24:44]written 0, free lines is 3236 [22:24:44]MH_Cut [22:24:44]Write to MH i2c: D1 01 00 AC 2F 01 AD [22:24:44]Write i2c OK [22:24:44]MH_I2C_Read... [22:24:44]Read from MH i2c: D1 [22:24:44]MH_I2C_Read... [22:24:44]Read from MH i2c: D1 01 00 [22:24:44]MH_I2C_Read... [22:24:44]Read from MH i2c: D1 01 00 AC 2F 00 AC [22:24:44]Write to MH i2c: 01 00 00 AD 2F DC [22:24:44]Write i2c OK [22:24:44]MH_I2C_Read... [22:24:45]OFD Sender: No OFD packet to send [22:24:45]*** Cut start [22:24:45]*** Partial cut [22:24:45]*** CUTSNS_PIN = 1 [22:24:45]*** CUTSNS_PIN = 0 [22:24:45]*** Brake cut motor [22:24:46]Read from MH i2c: 01 [22:24:46]MH_I2C_Read... [22:24:46]*** Stop cut motor [22:24:46]*** Cut end [22:24:46]Read from MH i2c: 01 07 00 [22:24:46]MH_I2C_Read... [22:24:46]Read from MH i2c: 01 07 00 AD 2F 00 00 00 00 00 FF 0F F1 [22:24:46]process_action close_receipt done [22:24:46]requested_data is exist [22:24:46]produce_requested_data [22:24:46]requested_item fm.sn is exist - process it [22:24:46]wFMCommunicate request_size=4 [22:24:46]MH_SAM_APDU [22:24:46]CAPDU: 80 11 00 00 [22:24:46]Write to MH i2c: E2 08 00 AE 2F 80 11 00 00 00 00 00 00 57 [22:24:46]Write i2c OK [22:24:46]MH_I2C_Read... [22:24:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:46]Read from MH i2c: E2 [22:24:46]MH_I2C_Read... [22:24:46]Read from MH i2c: E2 17 00 [22:24:46]MH_I2C_Read... [22:24:46]Read from MH i2c: E2 17 00 AE 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 AE [22:24:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:24:46]wFMCommunicate OK [22:24:46]requested_item fd.num is exist - process it [22:24:46]SAM_PROTO_GetFieldsCounters [22:24:46]wFMCommunicate request_size=4 [22:24:46]MH_SAM_APDU [22:24:46]CAPDU: 80 13 00 00 [22:24:46]Write to MH i2c: E2 08 00 AF 2F 80 13 00 00 00 00 00 00 5A [22:24:46]Write i2c OK [22:24:46]MH_I2C_Read... [22:24:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:46]Read from MH i2c: E2 [22:24:46]MH_I2C_Read... [22:24:46]Read from MH i2c: E2 62 00 [22:24:46]MH_I2C_Read... [22:24:46]Read from MH i2c: E2 62 00 AF 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A5 EA 00 00 0E 04 04 00 11 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 CC [22:24: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A5 EA 00 00 0E 04 04 00 11 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 [22:24:46]wFMCommunicate OK [22:24:46]SAM_PROTO_GetFieldsCounters done [22:24:46]requested_item shift.num is exist - process it [22:24:46]requested_item shift.opened is exist - process it [22:24:46]req_shift_opened [22:24:46]FM_GetShiftState [22:24:46]SAM_PROTO_GetShiftState [22:24:46]wFMCommunicate request_size=4 [22:24:46]MH_SAM_APDU [22:24:46]CAPDU: 80 13 01 00 [22:24:46]Write to MH i2c: E2 08 00 B0 2F 80 13 01 00 00 00 00 00 5C [22:24:46]Write i2c OK [22:24:46]MH_I2C_Read... [22:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:46]Read from MH i2c: E2 [22:24:46]MH_I2C_Read... [22:24:46]Read from MH i2c: E2 0E 00 [22:24:46]MH_I2C_Read... [22:24:46]Read from MH i2c: E2 0E 00 B0 2F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 8F [22:24:46]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:24:46]wFMCommunicate OK [22:24:46]SAM_PROTO_GetShiftState done [22:24:46]FM_GetShiftState done [22:24:46]req_shift_opened done [22:24:46]requested_item shift.open_date is exist - process it [22:24:46]req_shift_open_date [22:24:46]req_shift_open_date done [22:24:46]produce_requested_data done [22:24:46]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60069,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [22:24:46]process_action_free close_receipt [22:24:46]json_value_free [22:24:46]json_value_free done [22:24:46]process_json_proto returns [22:24:46]Send response to host [22:24:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60069,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [22:24:46]free response buf [22:24:46]execute_script done [22:24:46]execute_script returns [22:24:46]free content buf [22:24:46]Sock 7.Close socket [22:24:46]Sock 7.Thread stoped [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:24]accept exits with 9 [22:26:24]New connection [22:26:24]New thread 3067108708 created [22:26:24]Thread 3067252068 joined [22:26:24]Waiting for new connection... [22:26:24] Sock 9.Parse request [22:26:24]Sock 9.Check first char [22:26:24]Sock 9.First char is OK [22:26:24]request: POST /json_proto HTTP/1.0 [22:26:24]Method: POST [22:26:24]URL: /json_proto [22:26:24]Method is POST - this is cgi request [22:26:24]url: /json_proto [22:26:24]query_string will be loaded in cgi processing [22:26:24]execute_cgi json_proto POST (null) [22:26:24]execute_cgi path=json_proto method=POST [22:26:24]POST find Content-Length [22:26:24]Host: 172.17.42.196:8080 [22:26:24]Content-Length: 994 [22:26:24]Content-Type: application/json [22:26:24] [22:26:24]POST finish read [22:26:24]Found Content-Length = 994 [22:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199842", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 1.000, "sum" : 44.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" : 174.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:24]execute_script... [22:26:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199842", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 1.000, "sum" : 44.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" : 174.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:24]POST & json_proto [22:26:24]process_json_proto [22:26:24]json parsed OK: [22:26:24]protocol is kg_v1.0 [22:26:24]action value=close_receipt [22:26:24]process_action close_receipt [22:26:24]cmd_close_receipt [22:26:24]MH_GetDate [22:26:24]Write to MH i2c: F0 00 00 B1 2F CF [22:26:24]Write i2c OK [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: F0 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: F0 09 00 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: F0 09 00 B1 2F 00 95 C9 1A 67 FF C4 6B 64 49 [22:26:24]GetLastDocTimeStamp 1729808687 [22:26:24]current date 1729808789 [22:26:24]FM_GetShiftState [22:26:24]SAM_PROTO_GetShiftState [22:26:24]wFMCommunicate request_size=4 [22:26:24]MH_SAM_APDU [22:26:24]CAPDU: 80 13 01 00 [22:26:24]Write to MH i2c: E2 08 00 B2 2F 80 13 01 00 00 00 00 00 5E [22:26:24]Write i2c OK [22:26:24]MH_I2C_Read... [22:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:24]Read from MH i2c: E2 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: E2 0E 00 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: E2 0E 00 B2 2F 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 91 [22:26:24]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:26:24]wFMCommunicate OK [22:26:24]SAM_PROTO_GetShiftState done [22:26:24]FM_GetShiftState done [22:26:24]opened in 1729730575 [22:26:24]opened+sec_in_day 1729816975 [22:26:24]quantity*price = 13000 [22:26:24]sum+1 = 13001 [22:26:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 1.000 * 44.00 = 44.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 174.00 НСП 1% : 1.54 НДС 12% : 18.47 Наличными: 0.00 Безнал.: 174.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 145 24.10.2024 22:26 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60070 ФПД: 60356343602281 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222629&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60070&fm=60356343602281&tin=02508201610067®Number=0000000000091622&sum=17400 0 [22:26:25]StoreToDocumentArchive [22:26:25]shift 529 fd 60070 [22:26:25]save to /storage/0529/doc_00060070 [22:26:25]save last doc name /storage/0529/doc_00060070 to /storage/kkm_last_doc_name [22:26:25]save OK [22:26:25]Clear old archive folders... [22:26:25]ProcessDocumentItem done err = 0, tmpTLVsize=387 [22:26:25]tlvbuf is 00EB36E0 [22:26:25]SAM_PROTO_ClearQueue [22:26:25]wFMCommunicate request_size=4 [22:26:25]MH_SAM_APDU [22:26:25]CAPDU: 80 09 00 00 [22:26:25]Write to MH i2c: E2 08 00 BF 2F 80 09 00 00 00 00 00 00 60 [22:26:25]Write i2c OK [22:26:25]MH_I2C_Read... [22:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:25]Read from MH i2c: E2 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 03 00 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 03 00 BF 2F 00 90 00 62 [22:26:25]RAPDU: 90 00 [22:26:25]wFMCommunicate OK [22:26:25]SAM_PROTO_ClearQueue done [22:26:25]KKMCreateOFDPacket [22:26:25]OFDProtocolAddRootSTLVToBuf [22:26:25]FM_MakeSignedData [22:26:25]FM_MakeSignedData [22:26:25]SAM_PROTO_SignData [22:26:25]wFMCommunicate request_size=4 [22:26:25]MH_SAM_APDU [22:26:25]CAPDU: 80 0D 01 02 [22:26:25]Write to MH i2c: E2 08 00 C0 2F 80 0D 01 02 00 00 00 00 68 [22:26:25]Write i2c OK [22:26:25]MH_I2C_Read... [22:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:25]Read from MH i2c: E2 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 03 00 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 03 00 C0 2F 00 90 00 63 [22:26:25]RAPDU: 90 00 [22:26:25]wFMCommunicate OK [22:26:25]wFMCommunicate request_size=255 [22:26:25]MH_SAM_APDU [22:26:25]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [22:26:25]Write to MH i2c: E2 02 01 C1 2F 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 CC [22:26:25]Write i2c OK [22:26:25]MH_I2C_Read... [22:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:25]Read from MH i2c: E2 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 03 00 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 03 00 C1 2F 00 90 00 64 [22:26:25]RAPDU: 90 00 [22:26:25]wFMCommunicate OK [22:26:25]wFMCommunicate request_size=146 [22:26:25]MH_SAM_APDU [22:26:25]CAPDU: 80 0D 02 02 8D 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 43 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 95 C9 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A6 EA 00 00 35 04 06 00 36 E4 CE 6B 9C 69 [22:26:25]Write to MH i2c: E2 95 00 C2 2F 80 0D 02 02 8D 00 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 43 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 95 C9 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A6 EA 00 00 35 04 06 00 36 E4 CE 6B 9C 69 00 00 38 [22:26:25]Write i2c OK [22:26:25]MH_I2C_Read... [22:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:25]Read from MH i2c: E2 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 03 00 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 03 00 C2 2F 00 90 00 65 [22:26:25]RAPDU: 90 00 [22:26:25]wFMCommunicate OK [22:26:25]wFMCommunicate request_size=4 [22:26:25]MH_SAM_APDU [22:26:25]CAPDU: 80 0D 03 02 [22:26:25]Write to MH i2c: E2 08 00 C3 2F 80 0D 03 02 00 00 00 00 6D [22:26:25]Write i2c OK [22:26:25]MH_I2C_Read... [22:26:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:25]Read from MH i2c: E2 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 0B 00 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 0B 00 C3 2F 00 A4 43 E1 F6 14 C4 7F 25 90 00 A8 [22:26:25]RAPDU: A4 43 E1 F6 14 C4 7F 25 90 00 [22:26:25]wFMCommunicate OK [22:26:25]SAM_PROTO_SignData done [22:26:25]FM_MakeSignedData done [22:26:25]CreateOFDProtocolMessage [22:26:25]wFMCommunicate request_size=4 [22:26:25]MH_SAM_APDU [22:26:25]CAPDU: 80 11 00 00 [22:26:25]Write to MH i2c: E2 08 00 C4 2F 80 11 00 00 00 00 00 00 6D [22:26:25]Write i2c OK [22:26:25]MH_I2C_Read... [22:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:25]Read from MH i2c: E2 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 17 00 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 17 00 C4 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C4 [22:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:26:25]wFMCommunicate OK [22:26:25]CreateOFDProtocolMessage done [22:26:25]OFDSenderStorePacket 60070 [22:26:25]StoreOFDPacket docnum=60070 [22:26:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 97 01 00 00 C7 C4 8F 01 A7 48 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 43 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 95 C9 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A6 EA 00 00 35 04 06 00 36 E4 CE 6B 9C 69 A4 43 E1 F6 14 C4 7F 25 [22:26:25]CheckFolder [22:26:25]dirname=/storage/ofd_packets [22:26:25]CheckFolder done [22:26:25]ProducePacketName [22:26:25]name=ofd_packets/00060070 [22:26:25]NVStorageSaveData ofd_packets/00060070 [22:26:25]File name is /storage/ofd_packets/00060070 [22:26:25]Write 437 bytes [22:26:25]NVStorageSaveData done [22:26:25]OFDSenderStorePacket done [22:26:25]KKMCreateOFDPacket done [22:26:25]NVStorageSaveData kkm_last_timestamp [22:26:25]File name is /storage/kkm_last_timestamp [22:26:25]Write 4 bytes [22:26:25]NVStorageSaveData done [22:26:25]ExternCall_PrintAddStr [22:26:25]wPrintStart [22:26:25]Write to MH i2c: 01 00 00 C5 2F F4 [22:26:25]Write i2c OK [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: 01 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: 01 07 00 [22:26:26]MH_I2C_Read... [22:26:26]OFD Sender: Processing packet 60070 [packets to send 30, broken 29] [22:26:26]ProducePacketName [22:26:26]name=ofd_packets/00060070 [22:26:26]Read from MH i2c: 01 OFD Sender: To server: pG, [22:26:26]07 CommunicateWithHost lk.salyk.kg:30040 [22:26:26]00 C5 2F 00 ConnectInit lk.salyk.kg [22:26:26]00 00 00 00 FF 0F 09 [22:26:26]RasterBufferAndPrint [22:26:26]line Счет N : (3)199842 [22:26:26]line ИНН: 02508201610067 [22:26:26]line Контрольно-Кассовый Чек [22:26:26]line ПРОДАЖА [22:26:26]line Товар: 2000036220012 [22:26:26]line Кофе Капучино XL(GABB TRADE) [22:26:26]line 1.000 * 130.00 [22:26:26]line = 130.00 [22:26:26]line НДС 12% НСП 1% [22:26:26]line > о реализуемом товаре [22:26:26]line Товар: 4870112003925 [22:26:26]line Конд ULKER-Albeni 40gr (6*24) [22:26:26]line 1.000 * 44.00 [22:26:26]line = 44.00 [22:26:26]line НДС 12% НСП 1% [22:26:26]line > о реализуемом товаре [22:26:26]line ИТОГО: 174.00 [22:26:26]line НСП 1% : 1.54 [22:26:26]line НДС 12% : 18.47 [22:26:26]line Наличными: 0.00 [22:26:26]line Безнал.: 174.00 [22:26:26]line Место: АЗС № 87 "Партнер Нефть" [22:26:26]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [22:26:26]line СНО: Общий режим [22:26:26]line Чек 145 24.10.2024 22:26 [22:26:26]line Смена: 529 ФФД: 1.0 [22:26:26]line ЗНМ: 0300000084 [22:26:26]line РНМ: 0000000000091622 [22:26:26]line Версия ККМ: 001 [22:26:26]line Платежная система: Mbank [22:26:26]line ФМ: 0000000000874674 [22:26:26]line ФД: 60070 [22:26:26]line ФПД: 60356343602281 [22:26:26]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222629&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60070&fm=60356343602281&tin=02508201610067®Number=0000000000091622&sum=17400 [22:26:26]line 0 [22:26:26]written 0, free lines is 4095 [22:26:26]Connected sock=11 [22:26:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 97 01 00 00 C7 C4 8F 01 A7 48 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 43 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 95 C9 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A6 EA 00 00 35 04 06 00 36 E4 CE 6B 9C 69 A4 43 E1 F6 14 C4 7F 25 [22:26:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 17 C8 47 00 B6 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 34 36 37 34 10 04 04 00 A6 EA 00 00 F4 03 04 00 85 6F 1A 67 B6 04 01 00 00 CD 3D 3D 7C CC 6C 13 07 [22:26:26]CommunicateWithHost err = 0 [22:26:26]CheckOFDResponse [22:26:26]1017 (14) - 77093643461234 [22:26:26]1041 (16) - 0000000000874674 [22:26:26]1040 (4) - 60070 [22:26:26]1012 (4) - 24.10.2024 16:02 [22:26:26]1206 (1) - 0 [22:26:26]OFD Sender: Remove packet 60070 [22:26:26]ProducePacketName [22:26:26]name=ofd_packets/00060070 [22:26:26]NVStorageDeleteData [22:26:26]Write to MH i2c: 01 00 00 F5 2F 24 [22:26:26]Write i2c OK [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: 01 [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: 01 07 00 [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: 01 07 00 F5 2F 00 00 00 00 00 9A 0C D1 [22:26:26]RasterBufferAndPrint [22:26:26]line [22:26:26]line [22:26:26]line [22:26:26]line [22:26:26]line [22:26:26]written 0, free lines is 3232 [22:26:26]MH_Cut [22:26:26]Write to MH i2c: D1 01 00 FC 2F 01 FD [22:26:26]Write i2c OK [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: D1 [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: D1 01 00 [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: D1 01 00 FC 2F 00 FC [22:26:26]Write to MH i2c: 01 00 00 FD 2F 2C [22:26:26]Write i2c OK [22:26:26]MH_I2C_Read... [22:26:27]OFD Sender: No OFD packet to send [22:26:27]*** Cut start [22:26:27]*** Partial cut [22:26:27]*** CUTSNS_PIN = 1 [22:26:27]*** CUTSNS_PIN = 0 [22:26:27]*** Brake cut motor [22:26:28]Read from MH i2c: 01 [22:26:28]MH_I2C_Read... [22:26:28]*** Stop cut motor [22:26:28]*** Cut end [22:26:28]Read from MH i2c: 01 07 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: 01 07 00 FD 2F 00 00 00 00 00 FF 0F 41 [22:26:28]process_action close_receipt done [22:26:28]requested_data is exist [22:26:28]produce_requested_data [22:26:28]requested_item fm.sn is exist - process it [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 11 00 00 [22:26:28]Write to MH i2c: E2 08 00 FE 2F 80 11 00 00 00 00 00 00 A7 [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 17 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 17 00 FE 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 FE [22:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:26:28]wFMCommunicate OK [22:26:28]requested_item fd.num is exist - process it [22:26:28]SAM_PROTO_GetFieldsCounters [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 13 00 00 [22:26:28]Write to MH i2c: E2 08 00 FF 2F 80 13 00 00 00 00 00 00 AA [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 62 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 62 00 FF 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A6 EA 00 00 0E 04 04 00 11 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 20 [22:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A6 EA 00 00 0E 04 04 00 11 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 [22:26:28]wFMCommunicate OK [22:26:28]SAM_PROTO_GetFieldsCounters done [22:26:28]requested_item shift.num is exist - process it [22:26:28]requested_item shift.opened is exist - process it [22:26:28]req_shift_opened [22:26:28]FM_GetShiftState [22:26:28]SAM_PROTO_GetShiftState [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 13 01 00 [22:26:28]Write to MH i2c: E2 08 00 00 30 80 13 01 00 00 00 00 00 AD [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 0E 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 0E 00 00 30 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 E0 [22:26:28]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:26:28]wFMCommunicate OK [22:26:28]SAM_PROTO_GetShiftState done [22:26:28]FM_GetShiftState done [22:26:28]req_shift_opened done [22:26:28]requested_item shift.open_date is exist - process it [22:26:28]req_shift_open_date [22:26:28]req_shift_open_date done [22:26:28]produce_requested_data done [22:26:28]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60070,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [22:26:28]process_action_free close_receipt [22:26:28]json_value_free [22:26:28]json_value_free done [22:26:28]process_json_proto returns [22:26:28]Send response to host [22:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60070,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [22:26:28]free response buf [22:26:28]execute_script done [22:26:28]execute_script returns [22:26:28]free content buf [22:26:28]Sock 9.Close socket [22:26:28]Sock 9.Thread stoped [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:41]accept exits with 7 [22:35:41]New connection [22:35:41]New thread 3067252068 created [22:35:41]Thread 3067108708 joined [22:35:41]Waiting for new connection... [22:35:41] Sock 7.Parse request [22:35:41]Sock 7.Check first char [22:35:41]Sock 7.First char is OK [22:35:41]request: POST /json_proto HTTP/1.0 [22:35:41]Method: POST [22:35:41]URL: /json_proto [22:35:41]Method is POST - this is cgi request [22:35:41]url: /json_proto [22:35:41]query_string will be loaded in cgi processing [22:35:41]execute_cgi json_proto POST (null) [22:35:41]execute_cgi path=json_proto method=POST [22:35:41]POST find Content-Length [22:35:41]Host: 172.17.42.196:8080 [22:35:41]Content-Length: 942 [22:35:41]Content-Type: application/json [22:35:41] [22:35:41]POST finish read [22:35:41]Found Content-Length = 942 [22:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199843", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46254948", "name": "\u0414\u0440\u0430\u0436\u0435 mentos \u0436\u0435\u0432 \u0444\u0440\u0443\u043A\u0442\u044B \u0440\u043E\u043B\u043B 37\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:41]execute_script... [22:35:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199843", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46254948", "name": "\u0414\u0440\u0430\u0436\u0435 mentos \u0436\u0435\u0432 \u0444\u0440\u0443\u043A\u0442\u044B \u0440\u043E\u043B\u043B 37\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:41]POST & json_proto [22:35:41]process_json_proto [22:35:41]json parsed OK: [22:35:41]protocol is kg_v1.0 [22:35:41]action value=close_receipt [22:35:41]process_action close_receipt [22:35:41]cmd_close_receipt [22:35:41]MH_GetDate [22:35:41]Write to MH i2c: F0 00 00 01 30 20 [22:35:41]Write i2c OK [22:35:41]MH_I2C_Read... [22:35:41]Read from MH i2c: F0 [22:35:41]MH_I2C_Read... [22:35:41]Read from MH i2c: F0 09 00 [22:35:41]MH_I2C_Read... [22:35:41]Read from MH i2c: F0 09 00 01 30 00 C2 CB 1A 67 FF C4 6B 64 C9 [22:35:41]GetLastDocTimeStamp 1729808789 [22:35:41]current date 1729809346 [22:35:41]FM_GetShiftState [22:35:41]SAM_PROTO_GetShiftState [22:35:41]wFMCommunicate request_size=4 [22:35:41]MH_SAM_APDU [22:35:41]CAPDU: 80 13 01 00 [22:35:41]Write to MH i2c: E2 08 00 02 30 80 13 01 00 00 00 00 00 AF [22:35:41]Write i2c OK [22:35:41]MH_I2C_Read... [22:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:41]Read from MH i2c: E2 [22:35:41]MH_I2C_Read... [22:35:41]Read from MH i2c: E2 0E 00 [22:35:41]MH_I2C_Read... [22:35:41]Read from MH i2c: E2 0E 00 02 30 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 E2 [22:35:41]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:35:41]wFMCommunicate OK [22:35:41]SAM_PROTO_GetShiftState done [22:35:41]FM_GetShiftState done [22:35:41]opened in 1729730575 [22:35:41]opened+sec_in_day 1729816975 [22:35:41]quantity*price = 4900 [22:35:41]sum+1 = 4901 [22:35:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46254948 Драже mentos жев фрукты ролл 37г 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 124.00 НСП 1% : 1.09 НДС 12% : 13.16 Наличными: 124.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 146 24.10.2024 22:35 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60071 ФПД: 8145135395639 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223546&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60071&fm=8145135395639&tin=02508201610067®Number=0000000000091622&sum=12400 0 [22:35:42]StoreToDocumentArchive [22:35:42]shift 529 fd 60071 [22:35:42]save to /storage/0529/doc_00060071 [22:35:42]save last doc name /storage/0529/doc_00060071 to /storage/kkm_last_doc_name [22:35:42]save OK [22:35:42]Clear old archive folders... [22:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=396 [22:35:42]tlvbuf is 00D7D240 [22:35:42]SAM_PROTO_ClearQueue [22:35:42]wFMCommunicate request_size=4 [22:35:42]MH_SAM_APDU [22:35:42]CAPDU: 80 09 00 00 [22:35:42]Write to MH i2c: E2 08 00 0F 30 80 09 00 00 00 00 00 00 B1 [22:35:42]Write i2c OK [22:35:42]MH_I2C_Read... [22:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:42]Read from MH i2c: E2 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: E2 03 00 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: E2 03 00 0F 30 00 90 00 B3 [22:35:42]RAPDU: 90 00 [22:35:42]wFMCommunicate OK [22:35:42]SAM_PROTO_ClearQueue done [22:35:42]KKMCreateOFDPacket [22:35:42]OFDProtocolAddRootSTLVToBuf [22:35:42]FM_MakeSignedData [22:35:42]FM_MakeSignedData [22:35:42]SAM_PROTO_SignData [22:35:42]wFMCommunicate request_size=4 [22:35:42]MH_SAM_APDU [22:35:42]CAPDU: 80 0D 01 02 [22:35:42]Write to MH i2c: E2 08 00 10 30 80 0D 01 02 00 00 00 00 B9 [22:35:42]Write i2c OK [22:35:42]MH_I2C_Read... [22:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:42]Read from MH i2c: E2 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: E2 03 00 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: E2 03 00 10 30 00 90 00 B4 [22:35:42]RAPDU: 90 00 [22:35:42]wFMCommunicate OK [22:35:42]wFMCommunicate request_size=255 [22:35:42]MH_SAM_APDU [22:35:42]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 08 00 34 36 32 35 34 39 34 38 06 04 33 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF [22:35:42]Write to MH i2c: E2 02 01 11 30 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 08 00 34 36 32 35 34 39 34 38 06 04 33 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 00 00 97 [22:35:42]Write i2c OK [22:35:42]MH_I2C_Read... [22:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:42]Read from MH i2c: E2 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: E2 03 00 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: E2 03 00 11 30 00 90 00 B5 [22:35:42]RAPDU: 90 00 [22:35:42]wFMCommunicate OK [22:35:42]wFMCommunicate request_size=155 [22:35:42]MH_SAM_APDU [22:35:42]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 C2 CB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A7 EA 00 00 35 04 06 00 07 68 6F E6 E3 37 [22:35:42]Write to MH i2c: E2 9E 00 12 30 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 C2 CB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A7 EA 00 00 35 04 06 00 07 68 6F E6 E3 37 00 00 79 [22:35:42]Write i2c OK [22:35:42]MH_I2C_Read... [22:35:42]OFD Sender: No OFD packet to send [22:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:42]Read from MH i2c: E2 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: E2 03 00 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: E2 03 00 12 30 00 90 00 B6 [22:35:42]RAPDU: 90 00 [22:35:42]wFMCommunicate OK [22:35:42]wFMCommunicate request_size=4 [22:35:42]MH_SAM_APDU [22:35:42]CAPDU: 80 0D 03 02 [22:35:42]Write to MH i2c: E2 08 00 13 30 80 0D 03 02 00 00 00 00 BE [22:35:42]Write i2c OK [22:35:42]MH_I2C_Read... [22:35:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:42]Read from MH i2c: E2 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: E2 0B 00 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: E2 0B 00 13 30 00 A3 DB 8A 27 5D AF 03 83 90 00 80 [22:35:42]RAPDU: A3 DB 8A 27 5D AF 03 83 90 00 [22:35:42]wFMCommunicate OK [22:35:42]SAM_PROTO_SignData done [22:35:42]FM_MakeSignedData done [22:35:42]CreateOFDProtocolMessage [22:35:42]wFMCommunicate request_size=4 [22:35:42]MH_SAM_APDU [22:35:42]CAPDU: 80 11 00 00 [22:35:42]Write to MH i2c: E2 08 00 14 30 80 11 00 00 00 00 00 00 BE [22:35:42]Write i2c OK [22:35:42]MH_I2C_Read... [22:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:42]Read from MH i2c: E2 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: E2 17 00 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: E2 17 00 14 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 15 [22:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:35:42]wFMCommunicate OK [22:35:42]CreateOFDProtocolMessage done [22:35:42]OFDSenderStorePacket 60071 [22:35:42]StoreOFDPacket docnum=60071 [22:35:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 A0 01 00 00 E7 FE 98 01 0A FB 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 08 00 34 36 32 35 34 39 34 38 06 04 33 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 C2 CB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A7 EA 00 00 35 04 06 00 07 68 6F E6 E3 37 A3 DB 8A 27 5D AF 03 83 [22:35:42]CheckFolder [22:35:42]dirname=/storage/ofd_packets [22:35:42]CheckFolder done [22:35:42]ProducePacketName [22:35:42]name=ofd_packets/00060071 [22:35:42]NVStorageSaveData ofd_packets/00060071 [22:35:42]File name is /storage/ofd_packets/00060071 [22:35:42]Write 446 bytes [22:35:42]NVStorageSaveData done [22:35:42]OFDSenderStorePacket done [22:35:42]KKMCreateOFDPacket done [22:35:42]NVStorageSaveData kkm_last_timestamp [22:35:42]File name is /storage/kkm_last_timestamp [22:35:42]Write 4 bytes [22:35:42]NVStorageSaveData done [22:35:42]ExternCall_PrintAddStr [22:35:42]wPrintStart [22:35:42]Write to MH i2c: 01 00 00 15 30 45 [22:35:42]Write i2c OK [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: 01 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: 01 07 00 [22:35:42]MH_I2C_Read... [22:35:42]Read from MH i2c: 01 07 00 15 30 00 00 00 00 00 FF 0F 5A [22:35:42]RasterBufferAndPrint [22:35:42]line Счет N : (3)199843 [22:35:42]line ИНН: 02508201610067 [22:35:42]line Контрольно-Кассовый Чек [22:35:42]line ПРОДАЖА [22:35:42]line Товар: 4700000310036 [22:35:43]line Вода Жалалабат 27 0,5л [22:35:43]line 1.000 * 49.00 [22:35:43]line = 49.00 [22:35:43]line НДС 12% НСП 1% [22:35:43]line > о реализуемом товаре [22:35:43]line Товар: 46254948 [22:35:43]line Драже mentos жев фрукты ролл 37г [22:35:43]line 1.000 * 75.00 [22:35:43]line = 75.00 [22:35:43]line НДС 12% НСП 1% [22:35:43]line > о реализуемом товаре [22:35:43]line ИТОГО: 124.00 [22:35:43]line НСП 1% : 1.09 [22:35:43]line НДС 12% : 13.16 [22:35:43]line Наличными: 124.00 [22:35:43]line Безнал.: 0.00 [22:35:43]line Место: АЗС № 87 "Партнер Нефть" [22:35:43]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [22:35:43]line СНО: Общий режим [22:35:43]line Чек 146 24.10.2024 22:35 [22:35:43]line Смена: 529 ФФД: 1.0 [22:35:43]line ЗНМ: 0300000084 [22:35:43]line РНМ: 0000000000091622 [22:35:43]line Версия ККМ: 001 [22:35:43]line ФМ: 0000000000874674 [22:35:43]line ФД: 60071 [22:35:43]line ФПД: 8145135395639 [22:35:43]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223546&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60071&fm=8145135395639&tin=02508201610067®Number=0000000000091622&sum=12400 [22:35:43]line 0 [22:35:43]OFD Sender: Processing packet 60071 [packets to send 30, broken 29] [22:35:43]ProducePacketName [22:35:43]name=ofd_packets/00060071 [22:35:43]OFD Sender: To server: pG, [22:35:43]CommunicateWithHost lk.salyk.kg:30040 [22:35:43]ConnectInit lk.salyk.kg [22:35:43]written 0, free lines is 4095 [22:35:43]Connected sock=10 [22:35:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 A0 01 00 00 E7 FE 98 01 0A FB 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 08 00 34 36 32 35 34 39 34 38 06 04 33 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 70 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 C2 CB 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A7 EA 00 00 35 04 06 00 07 68 6F E6 E3 37 A3 DB 8A 27 5D AF 03 83 [22:35:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 3F EA 47 00 EE 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 34 36 37 34 10 04 04 00 A7 EA 00 00 F4 03 04 00 B2 71 1A 67 B6 04 01 00 00 E4 07 5A 29 EE 2A 30 DF [22:35:43]CommunicateWithHost err = 0 [22:35:43]CheckOFDResponse [22:35:43]1017 (14) - 77093643461234 [22:35:43]1041 (16) - 0000000000874674 [22:35:43]1040 (4) - 60071 [22:35:43]1012 (4) - 24.10.2024 16:11 [22:35:43]1206 (1) - 0 [22:35:43]OFD Sender: Remove packet 60071 [22:35:43]ProducePacketName [22:35:43]name=ofd_packets/00060071 [22:35:43]NVStorageDeleteData [22:35:43]Write to MH i2c: 01 00 00 44 30 74 [22:35:43]Write i2c OK [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: 01 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: 01 07 00 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: 01 07 00 44 30 00 00 00 00 00 91 0C 18 [22:35:43]RasterBufferAndPrint [22:35:43]line [22:35:43]line [22:35:43]line [22:35:43]line [22:35:43]line [22:35:43]written 0, free lines is 3224 [22:35:43]MH_Cut [22:35:43]Write to MH i2c: D1 01 00 4B 30 01 4D [22:35:43]Write i2c OK [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: D1 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: D1 01 00 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: D1 01 00 4B 30 00 4C [22:35:43]Write to MH i2c: 01 00 00 4C 30 7C [22:35:43]Write i2c OK [22:35:43]MH_I2C_Read... [22:35:44]OFD Sender: No OFD packet to send [22:35:44]*** Cut start [22:35:44]*** Partial cut [22:35:44]*** CUTSNS_PIN = 1 [22:35:44]*** CUTSNS_PIN = 0 [22:35:44]*** Brake cut motor [22:35:45]Read from MH i2c: 01 [22:35:45]MH_I2C_Read... [22:35:45]*** Stop cut motor [22:35:45]*** Cut end [22:35:45]Read from MH i2c: 01 07 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: 01 07 00 4C 30 00 00 00 00 00 FF 0F 91 [22:35:45]process_action close_receipt done [22:35:45]requested_data is exist [22:35:45]produce_requested_data [22:35:45]requested_item fm.sn is exist - process it [22:35:45]wFMCommunicate request_size=4 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 11 00 00 [22:35:45]Write to MH i2c: E2 08 00 4D 30 80 11 00 00 00 00 00 00 F7 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 17 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 17 00 4D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 4E [22:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:35:45]wFMCommunicate OK [22:35:45]requested_item fd.num is exist - process it [22:35:45]SAM_PROTO_GetFieldsCounters [22:35:45]wFMCommunicate request_size=4 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 13 00 00 [22:35:45]Write to MH i2c: E2 08 00 4E 30 80 13 00 00 00 00 00 00 FA [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 62 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 62 00 4E 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A7 EA 00 00 0E 04 04 00 11 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 74 [22: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A7 EA 00 00 0E 04 04 00 11 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 [22:35:45]wFMCommunicate OK [22:35:45]SAM_PROTO_GetFieldsCounters done [22:35:45]requested_item shift.num is exist - process it [22:35:45]requested_item shift.opened is exist - process it [22:35:45]req_shift_opened [22:35:45]FM_GetShiftState [22:35:45]SAM_PROTO_GetShiftState [22:35:45]wFMCommunicate request_size=4 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 13 01 00 [22:35:45]Write to MH i2c: E2 08 00 4F 30 80 13 01 00 00 00 00 00 FC [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 0E 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 0E 00 4F 30 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 2F [22:35:45]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:35:45]wFMCommunicate OK [22:35:45]SAM_PROTO_GetShiftState done [22:35:45]FM_GetShiftState done [22:35:45]req_shift_opened done [22:35:45]requested_item shift.open_date is exist - process it [22:35:45]req_shift_open_date [22:35:45]req_shift_open_date done [22:35:45]produce_requested_data done [22:35:45]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60071,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [22:35:45]process_action_free close_receipt [22:35:45]json_value_free [22:35:45]json_value_free done [22:35:45]process_json_proto returns [22:35:45]Send response to host [22:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60071,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [22:35:45]free response buf [22:35:45]execute_script done [22:35:45]execute_script returns [22:35:45]free content buf [22:35:45]Sock 7.Close socket [22:35:45]Sock 7.Thread stoped [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:57]accept exits with 9 [22:36:57]New connection [22:36:57]New thread 3067108708 created [22:36:57]Thread 3067252068 joined [22:36:57]Waiting for new connection... [22:36:57] Sock 9.Parse request [22:36:57]Sock 9.Check first char [22:36:57]Sock 9.First char is OK [22:36:57]request: POST /json_proto HTTP/1.0 [22:36:57]Method: POST [22:36:57]URL: /json_proto [22:36:57]Method is POST - this is cgi request [22:36:57]url: /json_proto [22:36:57]query_string will be loaded in cgi processing [22:36:57]execute_cgi json_proto POST (null) [22:36:57]execute_cgi path=json_proto method=POST [22:36:57]POST find Content-Length [22:36:57]Host: 172.17.42.196:8080 [22:36:57]Content-Length: 646 [22:36:57]Content-Type: application/json [22:36:57] [22:36:57]POST finish read [22:36:57]Found Content-Length = 646 [22:36:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199844", "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" ] } } [22:36:57]execute_script... [22:36:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199844", "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" ] } } [22:36:57]POST & json_proto [22:36:57]process_json_proto [22:36:57]json parsed OK: [22:36:57]protocol is kg_v1.0 [22:36:57]action value=close_receipt [22:36:57]process_action close_receipt [22:36:57]cmd_close_receipt [22:36:57]MH_GetDate [22:36:57]Write to MH i2c: F0 00 00 50 30 6F [22:36:57]Write i2c OK [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: F0 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: F0 09 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: F0 09 00 50 30 00 0F CC 1A 67 FF C4 6B 64 66 [22:36:57]GetLastDocTimeStamp 1729809346 [22:36:57]current date 1729809423 [22:36:57]FM_GetShiftState [22:36:57]SAM_PROTO_GetShiftState [22:36:57]wFMCommunicate request_size=4 [22:36:57]MH_SAM_APDU [22:36:57]CAPDU: 80 13 01 00 [22:36:57]Write to MH i2c: E2 08 00 51 30 80 13 01 00 00 00 00 00 FE [22:36:57]Write i2c OK [22:36:57]MH_I2C_Read... [22:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:57]Read from MH i2c: E2 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 0E 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 0E 00 51 30 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 31 [22:36:57]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:36:57]wFMCommunicate OK [22:36:57]SAM_PROTO_GetShiftState done [22:36:57]FM_GetShiftState done [22:36:57]opened in 1729730575 [22:36:57]opened+sec_in_day 1729816975 [22:36:57]quantity*price = 26000 [22:36:57]sum+1 = 26001 [22:36:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 147 24.10.2024 22:37 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60072 ФПД: 69589285277735 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223703&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60072&fm=69589285277735&tin=02508201610067®Number=0000000000091622&sum=26000 0 [22:36:59]StoreToDocumentArchive [22:36:59]shift 529 fd 60072 [22:36:59]save to /storage/0529/doc_00060072 [22:36:59]save last doc name /storage/0529/doc_00060072 to /storage/kkm_last_doc_name [22:36:59]save OK [22:36:59]Clear old archive folders... [22:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=282 [22:36:59]tlvbuf is 00EB3030 [22:36:59]SAM_PROTO_ClearQueue [22:36:59]wFMCommunicate request_size=4 [22:36:59]MH_SAM_APDU [22:36:59]CAPDU: 80 09 00 00 [22:36:59]Write to MH i2c: E2 08 00 5E 30 80 09 00 00 00 00 00 00 00 [22:36:59]Write i2c OK [22:36:59]MH_I2C_Read... [22:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:59]Read from MH i2c: E2 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 03 00 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 03 00 5E 30 00 90 00 02 [22:36:59]RAPDU: 90 00 [22:36:59]wFMCommunicate OK [22:36:59]SAM_PROTO_ClearQueue done [22:36:59]KKMCreateOFDPacket [22:36:59]OFDProtocolAddRootSTLVToBuf [22:36:59]FM_MakeSignedData [22:36:59]FM_MakeSignedData [22:36:59]SAM_PROTO_SignData [22:36:59]wFMCommunicate request_size=4 [22:36:59]MH_SAM_APDU [22:36:59]CAPDU: 80 0D 01 02 [22:36:59]Write to MH i2c: E2 08 00 5F 30 80 0D 01 02 00 00 00 00 08 [22:36:59]Write i2c OK [22:36:59]MH_I2C_Read... [22:36:59]OFD Sender: No OFD packet to send [22:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:59]Read from MH i2c: E2 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 03 00 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 03 00 5F 30 00 90 00 03 [22:36:59]RAPDU: 90 00 [22:36:59]wFMCommunicate OK [22:36:59]wFMCommunicate request_size=255 [22:36:59]MH_SAM_APDU [22:36: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 93 00 00 00 F4 03 04 00 0F CC 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 [22:36:59]Write to MH i2c: E2 02 01 60 30 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 93 00 00 00 F4 03 04 00 0F CC 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 00 00 CE [22:36:59]Write i2c OK [22:36:59]MH_I2C_Read... [22:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:59]Read from MH i2c: E2 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 03 00 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 03 00 60 30 00 90 00 04 [22:36:59]RAPDU: 90 00 [22:36:59]wFMCommunicate OK [22:36:59]wFMCommunicate request_size=41 [22:36:59]MH_SAM_APDU [22:36:59]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A8 EA 00 00 35 04 06 00 3F 4A 84 A1 10 27 [22:36:59]Write to MH i2c: E2 2C 00 61 30 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A8 EA 00 00 35 04 06 00 3F 4A 84 A1 10 27 00 00 55 [22:36:59]Write i2c OK [22:36:59]MH_I2C_Read... [22:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:59]Read from MH i2c: E2 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 03 00 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 03 00 61 30 00 90 00 05 [22:36:59]RAPDU: 90 00 [22:36:59]wFMCommunicate OK [22:36:59]wFMCommunicate request_size=4 [22:36:59]MH_SAM_APDU [22:36:59]CAPDU: 80 0D 03 02 [22:36:59]Write to MH i2c: E2 08 00 62 30 80 0D 03 02 00 00 00 00 0D [22:36:59]Write i2c OK [22:36:59]MH_I2C_Read... [22:36:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:59]Read from MH i2c: E2 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 0B 00 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 0B 00 62 30 00 1C C1 E0 7B 2D 6A 35 4E 90 00 60 [22:36:59]RAPDU: 1C C1 E0 7B 2D 6A 35 4E 90 00 [22:36:59]wFMCommunicate OK [22:36:59]SAM_PROTO_SignData done [22:36:59]FM_MakeSignedData done [22:36:59]CreateOFDProtocolMessage [22:36:59]wFMCommunicate request_size=4 [22:36:59]MH_SAM_APDU [22:36:59]CAPDU: 80 11 00 00 [22:36:59]Write to MH i2c: E2 08 00 63 30 80 11 00 00 00 00 00 00 0D [22:36:59]Write i2c OK [22:36:59]MH_I2C_Read... [22:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:59]Read from MH i2c: E2 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 17 00 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 17 00 63 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 64 [22:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:36:59]wFMCommunicate OK [22:36:59]CreateOFDProtocolMessage done [22:36:59]OFDSenderStorePacket 60072 [22:36:59]StoreOFDPacket docnum=60072 [22:36:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 BA F5 26 01 47 47 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 93 00 00 00 F4 03 04 00 0F CC 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A8 EA 00 00 35 04 06 00 3F 4A 84 A1 10 27 1C C1 E0 7B 2D 6A 35 4E [22:36:59]CheckFolder [22:36:59]dirname=/storage/ofd_packets [22:36:59]CheckFolder done [22:36:59]ProducePacketName [22:36:59]name=ofd_packets/00060072 [22:36:59]NVStorageSaveData ofd_packets/00060072 [22:36:59]File name is /storage/ofd_packets/00060072 [22:36:59]Write 332 bytes [22:36:59]NVStorageSaveData done [22:36:59]OFDSenderStorePacket done [22:36:59]KKMCreateOFDPacket done [22:36:59]NVStorageSaveData kkm_last_timestamp [22:36:59]File name is /storage/kkm_last_timestamp [22:36:59]Write 4 bytes [22:36:59]NVStorageSaveData done [22:36:59]ExternCall_PrintAddStr [22:36:59]wPrintStart [22:36:59]Write to MH i2c: 01 00 00 64 30 94 [22:36:59]Write i2c OK [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: 01 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: 01 07 00 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: 01 07 00 64 30 00 00 00 00 00 FF 0F A9 [22:36:59]RasterBufferAndPrint [22:36:59]line Счет N : (3)199844 [22:36:59]line ИНН: 02508201610067 [22:36:59]line Контрольно-Кассовый Чек [22:36:59]line ПРОДАЖА [22:36:59]line Товар: 2000036220012 [22:36:59]line Кофе Капучино XL(GABB TRADE) [22:36:59]line 2.000 * 130.00 [22:36:59]line = 260.00 [22:36:59]line НДС 12% НСП 1% [22:36:59]line > о реализуемом товаре [22:36:59]line ИТОГО: 260.00 [22:36:59]line НСП 1% : 2.30 [22:36:59]line НДС 12% : 27.61 [22:36:59]line Наличными: 260.00 [22:36:59]line Безнал.: 0.00 [22:36:59]line Место: АЗС № 87 "Партнер Нефть" [22:36:59]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [22:36:59]line СНО: Общий режим [22:36:59]line Чек 147 24.10.2024 22:37 [22:36:59]line Смена: 529 ФФД: 1.0 [22:36:59]line ЗНМ: 0300000084 [22:36:59]line РНМ: 0000000000091622 [22:36:59]line Версия ККМ: 001 [22:36:59]line ФМ: 0000000000874674 [22:36:59]line ФД: 60072 [22:36:59]line ФПД: 69589285277735 [22:36:59]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223703&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60072&fm=69589285277735&tin=02508201610067®Number=0000000000091622&sum=26000 [22:36:59]OFD Sender: Processing packet 60072 [packets to send 30, broken 29] [22:36:59]ProducePacketName [22:36:59]name=ofd_packets/00060072 [22:36:59]OFD Sender: To server: pG, [22:36:59]CommunicateWithHost lk.salyk.kg:30040 [22:36:59]ConnectInit lk.salyk.kg [22:36:59]line 0 [22:36:59]written 0, free lines is 4095 [22:37:00]Connected sock=10 [22:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 BA F5 26 01 47 47 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 93 00 00 00 F4 03 04 00 0F CC 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A8 EA 00 00 35 04 06 00 3F 4A 84 A1 10 27 1C C1 E0 7B 2D 6A 35 4E [22:37:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 4E EF 47 00 BE 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A8 EA 00 00 F4 03 04 00 FF 71 1A 67 B6 04 01 00 00 CB 8D 52 79 34 24 6F F9 [22:37:00]CommunicateWithHost err = 0 [22:37:00]CheckOFDResponse [22:37:00]1017 (14) - 77093643461234 [22:37:00]1041 (16) - 0000000000874674 [22:37:00]1040 (4) - 60072 [22:37:00]1012 (4) - 24.10.2024 16:12 [22:37:00]1206 (1) - 0 [22:37:00]OFD Sender: Remove packet 60072 [22:37:00]ProducePacketName [22:37:00]name=ofd_packets/00060072 [22:37:00]NVStorageDeleteData [22:37:00]Write to MH i2c: 01 00 00 8D 30 BD [22:37:00]Write i2c OK [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: 01 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: 01 07 00 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: 01 07 00 8D 30 00 00 00 00 00 F7 0C C7 [22:37:00]RasterBufferAndPrint [22:37:00]line [22:37:00]line [22:37:00]line [22:37:00]line [22:37:00]line [22:37:00]written 0, free lines is 3327 [22:37:00]MH_Cut [22:37:00]Write to MH i2c: D1 01 00 94 30 01 96 [22:37:00]Write i2c OK [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: D1 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: D1 01 00 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: D1 01 00 94 30 00 95 [22:37:00]Write to MH i2c: 01 00 00 95 30 C5 [22:37:00]Write i2c OK [22:37:00]MH_I2C_Read... [22:37:00]OFD Sender: No OFD packet to send [22:37:01]*** Cut start [22:37:01]*** Partial cut [22:37:01]*** CUTSNS_PIN = 1 [22:37:01]*** CUTSNS_PIN = 0 [22:37:01]*** Brake cut motor [22:37:01]Read from MH i2c: 01 [22:37:01]MH_I2C_Read... [22:37:01]*** Stop cut motor [22:37:01]*** Cut end [22:37:01]Read from MH i2c: 01 07 00 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: 01 07 00 95 30 00 00 00 00 00 FF 0F DA [22:37:01]process_action close_receipt done [22:37:01]requested_data is exist [22:37:01]produce_requested_data [22:37:01]requested_item fm.sn is exist - process it [22:37:01]wFMCommunicate request_size=4 [22:37:01]MH_SAM_APDU [22:37:01]CAPDU: 80 11 00 00 [22:37:01]Write to MH i2c: E2 08 00 96 30 80 11 00 00 00 00 00 00 40 [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:01]Read from MH i2c: E2 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 17 00 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 17 00 96 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 97 [22:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:37:01]wFMCommunicate OK [22:37:01]requested_item fd.num is exist - process it [22:37:01]SAM_PROTO_GetFieldsCounters [22:37:01]wFMCommunicate request_size=4 [22:37:01]MH_SAM_APDU [22:37:01]CAPDU: 80 13 00 00 [22:37:01]Write to MH i2c: E2 08 00 97 30 80 13 00 00 00 00 00 00 43 [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:02]Read from MH i2c: E2 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: E2 62 00 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: E2 62 00 97 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A8 EA 00 00 0E 04 04 00 11 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 C1 [22:37:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A8 EA 00 00 0E 04 04 00 11 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 [22:37:02]wFMCommunicate OK [22:37:02]SAM_PROTO_GetFieldsCounters done [22:37:02]requested_item shift.num is exist - process it [22:37:02]requested_item shift.opened is exist - process it [22:37:02]req_shift_opened [22:37:02]FM_GetShiftState [22:37:02]SAM_PROTO_GetShiftState [22:37:02]wFMCommunicate request_size=4 [22:37:02]MH_SAM_APDU [22:37:02]CAPDU: 80 13 01 00 [22:37:02]Write to MH i2c: E2 08 00 98 30 80 13 01 00 00 00 00 00 45 [22:37:02]Write i2c OK [22:37:02]MH_I2C_Read... [22:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:02]Read from MH i2c: E2 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: E2 0E 00 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: E2 0E 00 98 30 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 78 [22:37:02]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:37:02]wFMCommunicate OK [22:37:02]SAM_PROTO_GetShiftState done [22:37:02]FM_GetShiftState done [22:37:02]req_shift_opened done [22:37:02]requested_item shift.open_date is exist - process it [22:37:02]req_shift_open_date [22:37:02]req_shift_open_date done [22:37:02]produce_requested_data done [22:37:02]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60072,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [22:37:02]process_action_free close_receipt [22:37:02]json_value_free [22:37:02]json_value_free done [22:37:02]process_json_proto returns [22:37:02]Send response to host [22:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60072,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [22:37:02]free response buf [22:37:02]execute_script done [22:37:02]execute_script returns [22:37:02]free content buf [22:37:02]Sock 9.Close socket [22:37:02]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [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:43:01]OFD Sender: No OFD packet to send [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:30]accept exits with 7 [22:44:30]New connection [22:44:30]New thread 3067252068 created [22:44:30]Thread 3067108708 joined [22:44:30]Waiting for new connection... [22:44:30] Sock 7.Parse request [22:44:30]Sock 7.Check first char [22:44:30]Sock 7.First char is OK [22:44:30]request: POST /json_proto HTTP/1.0 [22:44:30]Method: POST [22:44:30]URL: /json_proto [22:44:30]Method is POST - this is cgi request [22:44:30]url: /json_proto [22:44:30]query_string will be loaded in cgi processing [22:44:30]execute_cgi json_proto POST (null) [22:44:30]execute_cgi path=json_proto method=POST [22:44:30]POST find Content-Length [22:44:30]Host: 172.17.42.196:8080 [22:44:30]Content-Length: 621 [22:44:30]Content-Type: application/json [22:44:30] [22:44:30]POST finish read [22:44:30]Found Content-Length = 621 [22:44:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199845", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:30]execute_script... [22:44:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199845", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:30]POST & json_proto [22:44:30]process_json_proto [22:44:30]json parsed OK: [22:44:30]protocol is kg_v1.0 [22:44:30]action value=close_receipt [22:44:30]process_action close_receipt [22:44:30]cmd_close_receipt [22:44:30]MH_GetDate [22:44:30]Write to MH i2c: F0 00 00 99 30 B8 [22:44:30]Write i2c OK [22:44:30]MH_I2C_Read... [22:44:30]Read from MH i2c: F0 [22:44:30]MH_I2C_Read... [22:44:30]Read from MH i2c: F0 09 00 [22:44:30]MH_I2C_Read... [22:44:30]Read from MH i2c: F0 09 00 99 30 00 D4 CD 1A 67 FF C4 6B 64 75 [22:44:30]GetLastDocTimeStamp 1729809423 [22:44:30]current date 1729809876 [22:44:30]FM_GetShiftState [22:44:30]SAM_PROTO_GetShiftState [22:44:30]wFMCommunicate request_size=4 [22:44:30]MH_SAM_APDU [22:44:30]CAPDU: 80 13 01 00 [22:44:30]Write to MH i2c: E2 08 00 9A 30 80 13 01 00 00 00 00 00 47 [22:44:30]Write i2c OK [22:44:30]MH_I2C_Read... [22:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:30]Read from MH i2c: E2 [22:44:30]MH_I2C_Read... [22:44:30]Read from MH i2c: E2 0E 00 [22:44:30]MH_I2C_Read... [22:44:30]Read from MH i2c: E2 0E 00 9A 30 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 7A [22:44:30]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:44:30]wFMCommunicate OK [22:44:30]SAM_PROTO_GetShiftState done [22:44:30]FM_GetShiftState done [22:44:30]opened in 1729730575 [22:44:30]opened+sec_in_day 1729816975 [22:44:30]quantity*price = 14400 [22:44:30]sum+1 = 14401 [22:44:30]Check (price>sum+1) || (price+1 о реализуемом товаре [22:44:32]line ИТОГО: 144.00 [22:44:32]line НСП 1% : 1.27 [22:44:32]line НДС 12% : 15.29 [22:44:32]line Наличными: 144.00 [22:44:32]line Безнал.: 0.00 [22:44:32]line Место: АЗС № 87 "Партнер Нефть" [22:44:32]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [22:44:32]line СНО: Общий режим [22:44:32]line Чек 148 24.10.2024 22:44 [22:44:32]line Смена: 529 ФФД: 1.0 [22:44:32]line ЗНМ: 0300000084 [22:44:32]line РНМ: 0000000000091622 [22:44:32]line Версия ККМ: 001 [22:44:32]line ФМ: 0000000000874674 [22:44:32]line ФД: 60073 [22:44:32]line ФПД: 193616413556536 [22:44:32]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T224436&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60073&fm=193616413556536&tin=02508201610067®Number=0000000000091622&sum=14400 [22:44:32]OFD Sender: Processing packet 60073 [packets to send 30, broken 29] [22:44:32]ProducePacketName [22:44:32]name=ofd_packets/00060073 [22:44:32]OFD Sender: To server: pG, [22:44:32]CommunicateWithHost lk.salyk.kg:30040 [22:44:32]ConnectInit lk.salyk.kg [22:44:32]line 0 [22:44:33]written 0, free lines is 4095 [22:44:33]Connected sock=10 [22:44:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 06 11 1D 01 5D 7E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 D4 CD 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 A9 EA 00 00 35 04 06 00 B0 17 D5 8D 7F 38 46 DD FC DB A3 EC 9F D1 [22:44:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 F5 2C 47 00 37 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 34 36 37 34 10 04 04 00 A9 EA 00 00 F4 03 04 00 C4 73 1A 67 B6 04 01 00 00 62 B7 22 42 45 1A 79 6F [22:44:33]CommunicateWithHost err = 0 [22:44:33]CheckOFDResponse [22:44:33]1017 (14) - 77093643461234 [22:44:33]1041 (16) - 0000000000874674 [22:44:33]1040 (4) - 60073 [22:44:33]1012 (4) - 24.10.2024 16:20 [22:44:33]1206 (1) - 0 [22:44:33]OFD Sender: Remove packet 60073 [22:44:33]ProducePacketName [22:44:33]name=ofd_packets/00060073 [22:44:33]NVStorageDeleteData [22:44:33]Write to MH i2c: 01 00 00 D5 30 05 [22:44:33]Write i2c OK [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: 01 [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: 01 07 00 [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: 01 07 00 D5 30 00 00 00 00 00 ED 0C 05 [22:44:33]RasterBufferAndPrint [22:44:33]line [22:44:33]line [22:44:33]line [22:44:33]line [22:44:33]line [22:44:33]written 0, free lines is 3318 [22:44:33]MH_Cut [22:44:33]Write to MH i2c: D1 01 00 DC 30 01 DE [22:44:33]Write i2c OK [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: D1 [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: D1 01 00 [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: D1 01 00 DC 30 00 DD [22:44:33]Write to MH i2c: 01 00 00 DD 30 0D [22:44:33]Write i2c OK [22:44:33]MH_I2C_Read... [22:44:33]OFD Sender: No OFD packet to send [22:44:34]*** Cut start [22:44:34]*** Partial cut [22:44:34]*** CUTSNS_PIN = 1 [22:44:34]*** CUTSNS_PIN = 0 [22:44:34]*** Brake cut motor [22:44:34]Read from MH i2c: 01 [22:44:34]MH_I2C_Read... [22:44:34]*** Stop cut motor [22:44:34]*** Cut end [22:44:34]Read from MH i2c: 01 07 00 [22:44:34]MH_I2C_Read... [22:44:34]Read from MH i2c: 01 07 00 DD 30 00 00 00 00 00 FF 0F 22 [22:44:34]process_action close_receipt done [22:44:34]requested_data is exist [22:44:34]produce_requested_data [22:44:34]requested_item fm.sn is exist - process it [22:44:34]wFMCommunicate request_size=4 [22:44:34]MH_SAM_APDU [22:44:34]CAPDU: 80 11 00 00 [22:44:34]Write to MH i2c: E2 08 00 DE 30 80 11 00 00 00 00 00 00 88 [22:44:34]Write i2c OK [22:44:34]MH_I2C_Read... [22:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:34]Read from MH i2c: E2 [22:44:34]MH_I2C_Read... [22:44:34]Read from MH i2c: E2 17 00 [22:44:34]MH_I2C_Read... [22:44:34]Read from MH i2c: E2 17 00 DE 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 DF [22:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:44:34]wFMCommunicate OK [22:44:34]requested_item fd.num is exist - process it [22:44:34]SAM_PROTO_GetFieldsCounters [22:44:34]wFMCommunicate request_size=4 [22:44:34]MH_SAM_APDU [22:44:34]CAPDU: 80 13 00 00 [22:44:34]Write to MH i2c: E2 08 00 DF 30 80 13 00 00 00 00 00 00 8B [22:44:34]Write i2c OK [22:44:34]MH_I2C_Read... [22:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:35]Read from MH i2c: E2 [22:44:35]MH_I2C_Read... [22:44:35]Read from MH i2c: E2 62 00 [22:44:35]MH_I2C_Read... [22:44:35]Read from MH i2c: E2 62 00 DF 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A9 EA 00 00 0E 04 04 00 11 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 0D [22:44: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 A9 EA 00 00 0E 04 04 00 11 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 [22:44:35]wFMCommunicate OK [22:44:35]SAM_PROTO_GetFieldsCounters done [22:44:35]requested_item shift.num is exist - process it [22:44:35]requested_item shift.opened is exist - process it [22:44:35]req_shift_opened [22:44:35]FM_GetShiftState [22:44:35]SAM_PROTO_GetShiftState [22:44:35]wFMCommunicate request_size=4 [22:44:35]MH_SAM_APDU [22:44:35]CAPDU: 80 13 01 00 [22:44:35]Write to MH i2c: E2 08 00 E0 30 80 13 01 00 00 00 00 00 8D [22:44:35]Write i2c OK [22:44:35]MH_I2C_Read... [22:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:35]Read from MH i2c: E2 [22:44:35]MH_I2C_Read... [22:44:35]Read from MH i2c: E2 0E 00 [22:44:35]MH_I2C_Read... [22:44:35]Read from MH i2c: E2 0E 00 E0 30 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 C0 [22:44:35]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:44:35]wFMCommunicate OK [22:44:35]SAM_PROTO_GetShiftState done [22:44:35]FM_GetShiftState done [22:44:35]req_shift_opened done [22:44:35]requested_item shift.open_date is exist - process it [22:44:35]req_shift_open_date [22:44:35]req_shift_open_date done [22:44:35]produce_requested_data done [22:44:35]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60073,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [22:44:35]process_action_free close_receipt [22:44:35]json_value_free [22:44:35]json_value_free done [22:44:35]process_json_proto returns [22:44:35]Send response to host [22:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60073,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [22:44:35]free response buf [22:44:35]execute_script done [22:44:35]execute_script returns [22:44:35]free content buf [22:44:35]Sock 7.Close socket [22:44:35]Sock 7.Thread stoped [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:44:59]accept exits with 9 [22:44:59]New connection [22:44:59]New thread 3067108708 created [22:44:59]Thread 3067252068 joined [22:44:59]Waiting for new connection... [22:44:59] Sock 9.Parse request [22:44:59]Sock 9.Check first char [22:44:59]Sock 9.First char is OK [22:44:59]request: POST /json_proto HTTP/1.0 [22:44:59]Method: POST [22:44:59]URL: /json_proto [22:44:59]Method is POST - this is cgi request [22:44:59]url: /json_proto [22:44:59]query_string will be loaded in cgi processing [22:44:59]execute_cgi json_proto POST (null) [22:44:59]execute_cgi path=json_proto method=POST [22:44:59]POST find Content-Length [22:44:59]Host: 172.17.42.196:8080 [22:44:59]Content-Length: 779 [22:44:59]Content-Type: application/json [22:44:59] [22:44:59]POST finish read [22:44:59]Found Content-Length = 779 [22:44:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199846", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:59]execute_script... [22:44:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199846", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:59]POST & json_proto [22:44:59]process_json_proto [22:44:59]json parsed OK: [22:44:59]protocol is kg_v1.0 [22:44:59]action value=close_receipt [22:44:59]process_action close_receipt [22:44:59]cmd_close_receipt [22:44:59]MH_GetDate [22:44:59]Write to MH i2c: F0 00 00 E1 30 00 [22:44:59]Write i2c OK [22:44:59]MH_I2C_Read... [22:44:59]Read from MH i2c: F0 [22:44:59]MH_I2C_Read... [22:44:59]Read from MH i2c: F0 09 00 [22:44:59]MH_I2C_Read... [22:44:59]Read from MH i2c: F0 09 00 E1 30 00 F1 CD 1A 67 FF C4 6B 64 DA [22:44:59]GetLastDocTimeStamp 1729809876 [22:44:59]current date 1729809905 [22:44:59]FM_GetShiftState [22:44:59]SAM_PROTO_GetShiftState [22:44:59]wFMCommunicate request_size=4 [22:44:59]MH_SAM_APDU [22:44:59]CAPDU: 80 13 01 00 [22:44:59]Write to MH i2c: E2 08 00 E2 30 80 13 01 00 00 00 00 00 8F [22:44:59]Write i2c OK [22:44:59]MH_I2C_Read... [22:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:59]Read from MH i2c: E2 [22:44:59]MH_I2C_Read... [22:44:59]Read from MH i2c: E2 0E 00 [22:44:59]MH_I2C_Read... [22:44:59]Read from MH i2c: E2 0E 00 E2 30 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 C2 [22:44:59]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:44:59]wFMCommunicate OK [22:44:59]SAM_PROTO_GetShiftState done [22:44:59]FM_GetShiftState done [22:44:59]opened in 1729730575 [22:44:59]opened+sec_in_day 1729816975 [22:44:59]quantity*price = 12500 [22:44:59]sum+1 = 12501 [22:44:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 149 24.10.2024 22:45 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60074 ФПД: 27167488199200 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T224505&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60074&fm=27167488199200&tin=02508201610067®Number=0000000000091622&sum=12500 0 [22:45:00]StoreToDocumentArchive [22:45:00]shift 529 fd 60074 [22:45:00]save to /storage/0529/doc_00060074 [22:45:00]save last doc name /storage/0529/doc_00060074 to /storage/kkm_last_doc_name [22:45:00]save OK [22:45:00]Clear old archive folders... [22:45:00]ProcessDocumentItem done err = 0, tmpTLVsize=284 [22:45:00]tlvbuf is 00DA80E0 [22:45:00]SAM_PROTO_ClearQueue [22:45:00]wFMCommunicate request_size=4 [22:45:00]MH_SAM_APDU [22:45:00]CAPDU: 80 09 00 00 [22:45:00]Write to MH i2c: E2 08 00 EF 30 80 09 00 00 00 00 00 00 91 [22:45:00]Write i2c OK [22:45:00]MH_I2C_Read... [22:45:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:00]Read from MH i2c: E2 [22:45:00]MH_I2C_Read... [22:45:00]Read from MH i2c: E2 03 00 [22:45:00]MH_I2C_Read... [22:45:00]Read from MH i2c: E2 03 00 EF 30 00 90 00 93 [22:45:00]RAPDU: 90 00 [22:45:00]wFMCommunicate OK [22:45:00]SAM_PROTO_ClearQueue done [22:45:00]KKMCreateOFDPacket [22:45:00]OFDProtocolAddRootSTLVToBuf [22:45:00]FM_MakeSignedData [22:45:00]FM_MakeSignedData [22:45:00]SAM_PROTO_SignData [22:45:00]wFMCommunicate request_size=4 [22:45:00]MH_SAM_APDU [22:45:00]CAPDU: 80 0D 01 02 [22:45:00]Write to MH i2c: E2 08 00 F0 30 80 0D 01 02 00 00 00 00 99 [22:45:00]Write i2c OK [22:45:00]MH_I2C_Read... [22:45:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:00]Read from MH i2c: E2 [22:45:00]MH_I2C_Read... [22:45:00]Read from MH i2c: E2 03 00 [22:45:00]MH_I2C_Read... [22:45:00]Read from MH i2c: E2 03 00 F0 30 00 90 00 94 [22:45:00]RAPDU: 90 00 [22:45:00]wFMCommunicate OK [22:45:00]wFMCommunicate request_size=255 [22:45:00]MH_SAM_APDU [22:45:00]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 F1 CD 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 [22:45:00]Write to MH i2c: E2 02 01 F1 30 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 F1 CD 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 00 00 1D [22:45:00]Write i2c OK [22:45:00]MH_I2C_Read... [22:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:01]Read from MH i2c: E2 [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: E2 03 00 [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: E2 03 00 F1 30 00 90 00 95 [22:45:01]RAPDU: 90 00 [22:45:01]wFMCommunicate OK [22:45:01]wFMCommunicate request_size=43 [22:45:01]MH_SAM_APDU [22:45:01]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AA EA 00 00 35 04 06 00 18 B5 6C 7B CA 20 [22:45:01]Write to MH i2c: E2 2E 00 F2 30 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AA EA 00 00 35 04 06 00 18 B5 6C 7B CA 20 00 00 BA [22:45:01]Write i2c OK [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: E2 [22:45:01]MH_I2C_Read... [22:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:01]Read from MH i2c: E2 03 00 [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: E2 03 00 F2 30 00 90 00 96 [22:45:01]RAPDU: 90 00 [22:45:01]wFMCommunicate OK [22:45:01]wFMCommunicate request_size=4 [22:45:01]MH_SAM_APDU [22:45:01]CAPDU: 80 0D 03 02 [22:45:01]Write to MH i2c: E2 08 00 F3 30 80 0D 03 02 00 00 00 00 9E [22:45:01]Write i2c OK [22:45:01]MH_I2C_Read... [22:45:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:01]Read from MH i2c: E2 [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: E2 0B 00 [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: E2 0B 00 F3 30 00 95 62 2B 02 10 E5 1D 79 90 00 4E [22:45:01]RAPDU: 95 62 2B 02 10 E5 1D 79 90 00 [22:45:01]wFMCommunicate OK [22:45:01]SAM_PROTO_SignData done [22:45:01]FM_MakeSignedData done [22:45:01]CreateOFDProtocolMessage [22:45:01]wFMCommunicate request_size=4 [22:45:01]MH_SAM_APDU [22:45:01]CAPDU: 80 11 00 00 [22:45:01]Write to MH i2c: E2 08 00 F4 30 80 11 00 00 00 00 00 00 9E [22:45:01]Write i2c OK [22:45:01]MH_I2C_Read... [22:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:01]Read from MH i2c: E2 [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: E2 17 00 [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: E2 17 00 F4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F5 [22:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:45:01]wFMCommunicate OK [22:45:01]CreateOFDProtocolMessage done [22:45:01]OFDSenderStorePacket 60074 [22:45:01]StoreOFDPacket docnum=60074 [22:45:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 30 01 00 00 1F 5A 28 01 72 03 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 F1 CD 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AA EA 00 00 35 04 06 00 18 B5 6C 7B CA 20 95 62 2B 02 10 E5 1D 79 [22:45:01]CheckFolder [22:45:01]dirname=/storage/ofd_packets [22:45:01]CheckFolder done [22:45:01]ProducePacketName [22:45:01]name=ofd_packets/00060074 [22:45:01]NVStorageSaveData ofd_packets/00060074 [22:45:01]File name is /storage/ofd_packets/00060074 [22:45:01]Write 334 bytes [22:45:01]NVStorageSaveData done [22:45:01]OFDSenderStorePacket done [22:45:01]KKMCreateOFDPacket done [22:45:01]NVStorageSaveData kkm_last_timestamp [22:45:01]File name is /storage/kkm_last_timestamp [22:45:01]Write 4 bytes [22:45:01]NVStorageSaveData done [22:45:01]ExternCall_PrintAddStr [22:45:01]wPrintStart [22:45:01]Write to MH i2c: 01 00 00 F5 30 25 [22:45:01]Write i2c OK [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: 01 [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: 01 07 00 [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: 01 07 00 F5 30 00 00 00 00 00 FF 0F 3A [22:45:01]RasterBufferAndPrint [22:45:01]line Счет N : (3)199846 [22:45:01]line ИНН: 02508201610067 [22:45:01]line Контрольно-Кассовый Чек [22:45:01]line ПРОДАЖА [22:45:01]line Товар: 2000036190018 [22:45:01]line Кофе Американо XL(GABB TRADE) [22:45:01]line 1.000 * 125.00 [22:45:01]line = 125.00 [22:45:01]line НДС 12% НСП 1% [22:45:01]line > о реализуемом товаре [22:45:01]line ИТОГО: 125.00 [22:45:01]line НСП 1% : 1.11 [22:45:01]line НДС 12% : 13.27 [22:45:01]line Наличными: 0.00 [22:45:01]line Безнал.: 125.00 [22:45:01]line Место: АЗС № 87 "Партнер Нефть" [22:45:01]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [22:45:01]line СНО: Общий режим [22:45:01]line Чек 149 24.10.2024 22:45 [22:45:01]line Смена: 529 ФФД: 1.0 [22:45:01]line ЗНМ: 0300000084 [22:45:01]line РНМ: 0000000000091622 [22:45:01]line Версия ККМ: 001 [22:45:01]line Платежная система: Mbank [22:45:01]line ФМ: 0000000000874674 [22:45:01]line ФД: 60074 [22:45:01]line ФПД: 27167488199200 [22:45:01]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T224505&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60074&fm=27167488199200&tin=02508201610067®Number=0000000000091622&sum=12500 [22:45:01]line 0 [22:45:01]written 0, free lines is 4095 [22:45:01]OFD Sender: Processing packet 60074 [packets to send 30, broken 29] [22:45:01]ProducePacketName [22:45:01]name=ofd_packets/00060074 [22:45:01]OFD Sender: To server: pG, [22:45:01]CommunicateWithHost lk.salyk.kg:30040 [22:45:01]ConnectInit lk.salyk.kg [22:45:01]Connected sock=11 [22:45:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 30 01 00 00 1F 5A 28 01 72 03 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 F1 CD 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AA EA 00 00 35 04 06 00 18 B5 6C 7B CA 20 95 62 2B 02 10 E5 1D 79 [22:45:01]Write to MH i2c: 01 00 00 1F 31 50 [22:45:01]Write i2c OK [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: 01 [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: 01 07 00 [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: 01 07 00 1F 31 00 00 00 00 00 F5 0C 58 [22:45:01]RasterBufferAndPrint [22:45:01]line [22:45:01]line [22:45:01]line [22:45:01]line [22:45:01]line [22:45:01]written 0, free lines is 3331 [22:45:01]MH_Cut [22:45:01]Write to MH i2c: D1 01 00 26 31 01 29 [22:45:01]Write i2c OK [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: D1 [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: D1 01 00 [22:45:01]MH_I2C_Read... [22:45:01]Read from MH i2c: D1 01 00 26 31 00 28 [22:45:01]Write to MH i2c: 01 00 00 27 31 58 [22:45:01]Write i2c OK [22:45:01]MH_I2C_Read... [22:45:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 F1 2B 47 00 45 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 34 36 37 34 10 04 04 00 AA EA 00 00 F4 03 04 00 E0 73 1A 67 B6 04 01 00 00 A5 74 04 78 DF FE 7E 4C [22:45:01]CommunicateWithHost err = 0 [22:45:01]CheckOFDResponse [22:45:01]1017 (14) - 77093643461234 [22:45:01]1041 (16) - 0000000000874674 [22:45:01]1040 (4) - 60074 [22:45:01]1012 (4) - 24.10.2024 16:20 [22:45:01]1206 (1) - 0 [22:45:01]OFD Sender: Remove packet 60074 [22:45:01]ProducePacketName [22:45:01]name=ofd_packets/00060074 [22:45:01]NVStorageDeleteData [22:45:02]OFD Sender: No OFD packet to send [22:45:02]*** Cut start [22:45:02]*** Partial cut [22:45:02]*** CUTSNS_PIN = 1 [22:45:02]*** CUTSNS_PIN = 0 [22:45:02]*** Brake cut motor [22:45:03]Read from MH i2c: 01 [22:45:03]MH_I2C_Read... [22:45:03]*** Stop cut motor [22:45:03]*** Cut end [22:45:03]Read from MH i2c: 01 07 00 [22:45:03]MH_I2C_Read... [22:45:03]Read from MH i2c: 01 07 00 27 31 00 00 00 00 00 FF 0F 6D [22:45:03]process_action close_receipt done [22:45:03]requested_data is exist [22:45:03]produce_requested_data [22:45:03]requested_item fm.sn is exist - process it [22:45:03]wFMCommunicate request_size=4 [22:45:03]MH_SAM_APDU [22:45:03]CAPDU: 80 11 00 00 [22:45:03]Write to MH i2c: E2 08 00 28 31 80 11 00 00 00 00 00 00 D3 [22:45:03]Write i2c OK [22:45:03]MH_I2C_Read... [22:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:03]Read from MH i2c: E2 [22:45:03]MH_I2C_Read... [22:45:03]Read from MH i2c: E2 17 00 [22:45:03]MH_I2C_Read... [22:45:03]Read from MH i2c: E2 17 00 28 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 2A [22:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:45:03]wFMCommunicate OK [22:45:03]requested_item fd.num is exist - process it [22:45:03]SAM_PROTO_GetFieldsCounters [22:45:03]wFMCommunicate request_size=4 [22:45:03]MH_SAM_APDU [22:45:03]CAPDU: 80 13 00 00 [22:45:03]Write to MH i2c: E2 08 00 29 31 80 13 00 00 00 00 00 00 D6 [22:45:03]Write i2c OK [22:45:03]MH_I2C_Read... [22:45:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:03]Read from MH i2c: E2 [22:45:03]MH_I2C_Read... [22:45:03]Read from MH i2c: E2 62 00 [22:45:03]MH_I2C_Read... [22:45:03]Read from MH i2c: E2 62 00 29 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 AA EA 00 00 0E 04 04 00 11 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 5C [22:45: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 AA EA 00 00 0E 04 04 00 11 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 [22:45:03]wFMCommunicate OK [22:45:03]SAM_PROTO_GetFieldsCounters done [22:45:03]requested_item shift.num is exist - process it [22:45:03]requested_item shift.opened is exist - process it [22:45:03]req_shift_opened [22:45:03]FM_GetShiftState [22:45:03]SAM_PROTO_GetShiftState [22:45:03]wFMCommunicate request_size=4 [22:45:03]MH_SAM_APDU [22:45:03]CAPDU: 80 13 01 00 [22:45:03]Write to MH i2c: E2 08 00 2A 31 80 13 01 00 00 00 00 00 D8 [22:45:03]Write i2c OK [22:45:03]MH_I2C_Read... [22:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:03]Read from MH i2c: E2 [22:45:03]MH_I2C_Read... [22:45:03]Read from MH i2c: E2 0E 00 [22:45:03]MH_I2C_Read... [22:45:03]Read from MH i2c: E2 0E 00 2A 31 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 0B [22:45:03]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:45:03]wFMCommunicate OK [22:45:03]SAM_PROTO_GetShiftState done [22:45:03]FM_GetShiftState done [22:45:03]req_shift_opened done [22:45:03]requested_item shift.open_date is exist - process it [22:45:03]req_shift_open_date [22:45:03]req_shift_open_date done [22:45:03]produce_requested_data done [22:45:03]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60074,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [22:45:03]process_action_free close_receipt [22:45:03]json_value_free [22:45:03]json_value_free done [22:45:03]process_json_proto returns [22:45:03]Send response to host [22:45:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60074,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [22:45:03]free response buf [22:45:03]execute_script done [22:45:03]execute_script returns [22:45:03]free content buf [22:45:03]Sock 9.Close socket [22:45:03]Sock 9.Thread stoped [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]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:54]ConnectInit Can't connect to host [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:23]accept exits with 10 [22:53:23]New connection [22:53:23]New thread 3067252068 created [22:53:23]Thread 3067108708 joined [22:53:23]Waiting for new connection... [22:53:23] Sock 10.Parse request [22:53:23]Sock 10.Check first char [22:53:23]Sock 10.First char is OK [22:53:23]request: POST /json_proto HTTP/1.0 [22:53:23]Method: POST [22:53:23]URL: /json_proto [22:53:23]Method is POST - this is cgi request [22:53:23]url: /json_proto [22:53:23]query_string will be loaded in cgi processing [22:53:23]execute_cgi json_proto POST (null) [22:53:23]execute_cgi path=json_proto method=POST [22:53:23]POST find Content-Length [22:53:23]Host: 172.17.42.196:8080 [22:53:23]Content-Length: 678 [22:53:23]Content-Type: application/json [22:53:23] [22:53:23]POST finish read [22:53:23]Found Content-Length = 678 [22:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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:53:23]execute_script... [22: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)3309330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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:53:23]POST & json_proto [22:53:23]process_json_proto [22:53:23]json parsed OK: [22:53:23]protocol is kg_v1.0 [22:53:23]action value=close_receipt [22:53:23]process_action close_receipt [22:53:23]cmd_close_receipt [22:53:23]MH_GetDate [22:53:23]Write to MH i2c: F0 00 00 2B 31 4B [22:53:23]Write i2c OK [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: F0 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: F0 09 00 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: F0 09 00 2B 31 00 E8 CF 1A 67 FF C4 6B 64 1E [22:53:23]GetLastDocTimeStamp 1729809905 [22:53:23]current date 1729810408 [22:53:23]FM_GetShiftState [22:53:23]SAM_PROTO_GetShiftState [22:53:23]wFMCommunicate request_size=4 [22:53:23]MH_SAM_APDU [22:53:23]CAPDU: 80 13 01 00 [22:53:23]Write to MH i2c: E2 08 00 2C 31 80 13 01 00 00 00 00 00 DA [22:53:23]Write i2c OK [22:53:23]MH_I2C_Read... [22:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:23]Read from MH i2c: E2 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 0E 00 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 0E 00 2C 31 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 0D [22:53:23]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:53:23]wFMCommunicate OK [22:53:23]SAM_PROTO_GetShiftState done [22:53:23]FM_GetShiftState done [22:53:23]opened in 1729730575 [22:53:23]opened+sec_in_day 1729816975 [22:53:23]quantity*price = 50041 [22:53:23]sum+1 = 50042 [22:53: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 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 150 24.10.2024 22:53 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60075 ФПД: 110118348211429 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T225328&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60075&fm=110118348211429&tin=02508201610067®Number=0000000000091622&sum=50000 [22:53:24]StoreToDocumentArchive [22:53:24]shift 529 fd 60075 [22:53:24]save to /storage/0529/doc_00060075 [22:53:24]save last doc name /storage/0529/doc_00060075 to /storage/kkm_last_doc_name [22:53:24]save OK [22:53:24]Clear old archive folders... [22:53:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:53:24]tlvbuf is 00E07A80 [22:53:24]SAM_PROTO_ClearQueue [22:53:24]wFMCommunicate request_size=4 [22:53:24]MH_SAM_APDU [22:53:24]CAPDU: 80 09 00 00 [22:53:24]Write to MH i2c: E2 08 00 39 31 80 09 00 00 00 00 00 00 DC [22:53:24]Write i2c OK [22:53:24]MH_I2C_Read... [22:53:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:24]Read from MH i2c: E2 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: E2 03 00 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: E2 03 00 39 31 00 90 00 DE [22:53:24]RAPDU: 90 00 [22:53:24]wFMCommunicate OK [22:53:24]SAM_PROTO_ClearQueue done [22:53:24]KKMCreateOFDPacket [22:53:24]OFDProtocolAddRootSTLVToBuf [22:53:24]FM_MakeSignedData [22:53:24]FM_MakeSignedData [22:53:24]SAM_PROTO_SignData [22:53:24]wFMCommunicate request_size=4 [22:53:24]MH_SAM_APDU [22:53:24]CAPDU: 80 0D 01 02 [22:53:24]Write to MH i2c: E2 08 00 3A 31 80 0D 01 02 00 00 00 00 E4 [22:53:24]Write i2c OK [22:53:24]MH_I2C_Read... [22:53:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:24]Read from MH i2c: E2 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: E2 03 00 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: E2 03 00 3A 31 00 90 00 DF [22:53:24]RAPDU: 90 00 [22:53:24]wFMCommunicate OK [22:53:24]wFMCommunicate request_size=255 [22:53:24]MH_SAM_APDU [22:53: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 34 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 E8 CF 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AB EA 00 00 35 04 06 00 64 [22:53:24]Write to MH i2c: E2 02 01 3B 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 34 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 E8 CF 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AB EA 00 00 35 04 06 00 64 00 00 4B [22:53:24]Write i2c OK [22:53:24]MH_I2C_Read... [22:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:24]Read from MH i2c: E2 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: E2 03 00 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: E2 03 00 3B 31 00 90 00 E0 [22:53:24]RAPDU: 90 00 [22:53:24]wFMCommunicate OK [22:53:24]wFMCommunicate request_size=10 [22:53:24]MH_SAM_APDU [22:53:24]CAPDU: 80 0D 02 02 05 26 ED 07 44 E5 [22:53:24]Write to MH i2c: E2 0D 00 3C 31 80 0D 02 02 05 00 26 ED 07 44 E5 00 00 34 [22:53:24]Write i2c OK [22:53:24]MH_I2C_Read... [22:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:24]Read from MH i2c: E2 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: E2 03 00 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: E2 03 00 3C 31 00 90 00 E1 [22:53:24]RAPDU: 90 00 [22:53:24]wFMCommunicate OK [22:53:24]wFMCommunicate request_size=4 [22:53:24]MH_SAM_APDU [22:53:24]CAPDU: 80 0D 03 02 [22:53:24]Write to MH i2c: E2 08 00 3D 31 80 0D 03 02 00 00 00 00 E9 [22:53:24]Write i2c OK [22:53:24]MH_I2C_Read... [22:53:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:24]Read from MH i2c: E2 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: E2 0B 00 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: E2 0B 00 3D 31 00 CC C9 26 18 80 E9 A1 8D 90 00 54 [22:53:24]RAPDU: CC C9 26 18 80 E9 A1 8D 90 00 [22:53:24]wFMCommunicate OK [22:53:24]SAM_PROTO_SignData done [22:53:24]FM_MakeSignedData done [22:53:24]CreateOFDProtocolMessage [22:53:24]wFMCommunicate request_size=4 [22:53:24]MH_SAM_APDU [22:53:24]CAPDU: 80 11 00 00 [22:53:24]Write to MH i2c: E2 08 00 3E 31 80 11 00 00 00 00 00 00 E9 [22:53:24]Write i2c OK [22:53:24]MH_I2C_Read... [22:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:24]Read from MH i2c: E2 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: E2 17 00 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: E2 17 00 3E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 40 [22:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:53:24]wFMCommunicate OK [22:53:24]CreateOFDProtocolMessage done [22:53:24]OFDSenderStorePacket 60075 [22:53:24]StoreOFDPacket docnum=60075 [22:53:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 8A 06 07 01 4F AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 E8 CF 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AB EA 00 00 35 04 06 00 64 26 ED 07 44 E5 CC C9 26 18 80 E9 A1 8D [22:53:24]CheckFolder [22:53:24]dirname=/storage/ofd_packets [22:53:24]CheckFolder done [22:53:24]ProducePacketName [22:53:24]name=ofd_packets/00060075 [22:53:24]NVStorageSaveData ofd_packets/00060075 [22:53:24]File name is /storage/ofd_packets/00060075 [22:53:24]Write 301 bytes [22:53:24]NVStorageSaveData done [22:53:24]OFDSenderStorePacket done [22:53:24]KKMCreateOFDPacket done [22:53:24]NVStorageSaveData kkm_last_timestamp [22:53:24]File name is /storage/kkm_last_timestamp [22:53:24]Write 4 bytes [22:53:24]NVStorageSaveData done [22:53:24]ExternCall_PrintAddStr [22:53:24]wPrintStart [22:53:24]Write to MH i2c: 01 00 00 3F 31 70 [22:53:24]Write i2c OK [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: 01 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: 01 07 00 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: 01 07 00 3F 31 00 00 00 00 00 FF 0F 85 [22:53:24]RasterBufferAndPrint [22:53:24]line Счет N : (1)3309330 [22:53:24]line ИНН: 02508201610067 [22:53:24]line Контрольно-Кассовый Чек [22:53:24]line ПРОДАЖА [22:53:24]line ТРК (МРК, ГНК) : 22 [22:53:24]line Товар: 2710124130 [22:53:24]line Аи-92-К-4 [22:53:24]line 7.480 * 66.90 [22:53:24]line = 500.41 [22:53:24]line НДС 12% НСП 1% [22:53:24]line > о реализуемом товаре [22:53:24]line ОКРУГЛЕНИЕ: -0.41 [22:53:24]line ИТОГО: 500.00 [22:53:24]line Внесено: 500.00 [22:53:24]line СДАЧА: 0.00 [22:53:24]line НСП 1% : 4.43 [22:53:24]line НДС 12% : 53.14 [22:53:24]line Наличными: 500.00 [22:53:24]line Безнал.: 0.00 [22:53:24]line Место: АЗС № 87 "Партнер Нефть" [22:53:24]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [22:53:24]line СНО: Общий режим [22:53:24]line Чек 150 24.10.2024 22:53 [22:53:24]line Смена: 529 ФФД: 1.0 [22:53:24]line ЗНМ: 0300000084 [22:53:24]line РНМ: 0000000000091622 [22:53:24]line Версия ККМ: 001 [22:53:24]line ФМ: 0000000000874674 [22:53:24]line ФД: 60075 [22:53:24]line ФПД: 110118348211429 [22:53:24]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T225328&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60075&fm=110118348211429&tin=02508201610067®Number=0000000000091622&sum=50000 [22:53:24]written 0, free lines is 4095 [22:53:24]OFD Sender: Processing packet 60075 [packets to send 30, broken 29] [22:53:24]ProducePacketName [22:53:24]name=ofd_packets/00060075 [22:53:24]OFD Sender: To server: pG, [22:53:24]CommunicateWithHost lk.salyk.kg:30040 [22:53:24]ConnectInit lk.salyk.kg [22:53:24]Connected sock=9 [22:53:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 8A 06 07 01 4F AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 E8 CF 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AB EA 00 00 35 04 06 00 64 26 ED 07 44 E5 CC C9 26 18 80 E9 A1 8D [22:53:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 EE E5 47 00 8B 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 34 36 37 34 10 04 04 00 AB EA 00 00 F4 03 04 00 D7 75 1A 67 B6 04 01 00 00 37 46 A8 67 1B 50 E9 AF [22:53:25]CommunicateWithHost err = 0 [22:53:25]CheckOFDResponse [22:53:25]1017 (14) - 77093643461234 [22:53:25]1041 (16) - 0000000000874674 [22:53:25]1040 (4) - 60075 [22:53:25]1012 (4) - 24.10.2024 16:29 [22:53:25]1206 (1) - 0 [22:53:25]OFD Sender: Remove packet 60075 [22:53:25]ProducePacketName [22:53:25]name=ofd_packets/00060075 [22:53:25]NVStorageDeleteData [22:53:25]Write to MH i2c: 01 00 00 6A 31 9B [22:53:25]Write i2c OK [22:53:25]MH_I2C_Read... [22:53:25]Read from MH i2c: 01 [22:53:25]MH_I2C_Read... [22:53:25]Read from MH i2c: 01 07 00 [22:53:25]MH_I2C_Read... [22:53:25]Read from MH i2c: 01 07 00 6A 31 00 00 00 00 00 E0 0C 8E [22:53:25]RasterBufferAndPrint [22:53:25]line [22:53:25]line [22:53:25]line [22:53:25]line [22:53:25]line [22:53:25]written 0, free lines is 3302 [22:53:25]MH_Cut [22:53:25]Write to MH i2c: D1 01 00 71 31 01 74 [22:53:25]Write i2c OK [22:53:25]MH_I2C_Read... [22:53:25]Read from MH i2c: D1 [22:53:25]MH_I2C_Read... [22:53:25]Read from MH i2c: D1 01 00 [22:53:25]MH_I2C_Read... [22:53:25]Read from MH i2c: D1 01 00 71 31 00 73 [22:53:25]Write to MH i2c: 01 00 00 72 31 A3 [22:53:25]Write i2c OK [22:53:25]MH_I2C_Read... [22:53:25]OFD Sender: No OFD packet to send [22:53:25]*** Cut start [22:53:25]*** Partial cut [22:53:25]*** CUTSNS_PIN = 1 [22:53:26]*** CUTSNS_PIN = 0 [22:53:26]*** Brake cut motor [22:53:26]Read from MH i2c: 01 [22:53:26]MH_I2C_Read... [22:53:26]*** Stop cut motor [22:53:26]Read from MH i2c: 01 *** Cut end [22:53:26]07 00 [22:53:26]MH_I2C_Read... [22:53:26]Read from MH i2c: 01 07 00 72 31 00 00 00 00 00 FF 0F B8 [22:53:26]process_action close_receipt done [22:53:26]requested_data is exist [22:53:26]produce_requested_data [22:53:26]requested_item fm.sn is exist - process it [22:53:26]wFMCommunicate request_size=4 [22:53:26]MH_SAM_APDU [22:53:26]CAPDU: 80 11 00 00 [22:53:26]Write to MH i2c: E2 08 00 73 31 80 11 00 00 00 00 00 00 1E [22:53:26]Write i2c OK [22:53:26]MH_I2C_Read... [22:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:26]Read from MH i2c: E2 [22:53:26]MH_I2C_Read... [22:53:26]Read from MH i2c: E2 17 00 [22:53:26]MH_I2C_Read... [22:53:26]Read from MH i2c: E2 17 00 73 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 75 [22:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:53:26]wFMCommunicate OK [22:53:26]requested_item fd.num is exist - process it [22:53:26]SAM_PROTO_GetFieldsCounters [22:53:26]wFMCommunicate request_size=4 [22:53:26]MH_SAM_APDU [22:53:26]CAPDU: 80 13 00 00 [22:53:26]Write to MH i2c: E2 08 00 74 31 80 13 00 00 00 00 00 00 21 [22:53:26]Write i2c OK [22:53:26]MH_I2C_Read... [22:53:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:26]Read from MH i2c: E2 [22:53:26]MH_I2C_Read... [22:53:26]Read from MH i2c: E2 62 00 [22:53:26]MH_I2C_Read... [22:53:26]Read from MH i2c: E2 62 00 74 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 AB EA 00 00 0E 04 04 00 11 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 AB [22:53:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 AB EA 00 00 0E 04 04 00 11 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 [22:53:26]wFMCommunicate OK [22:53:26]SAM_PROTO_GetFieldsCounters done [22:53:26]requested_item shift.num is exist - process it [22:53:26]requested_item shift.opened is exist - process it [22:53:26]req_shift_opened [22:53:26]FM_GetShiftState [22:53:26]SAM_PROTO_GetShiftState [22:53:26]wFMCommunicate request_size=4 [22:53:26]MH_SAM_APDU [22:53:26]CAPDU: 80 13 01 00 [22:53:26]Write to MH i2c: E2 08 00 75 31 80 13 01 00 00 00 00 00 23 [22:53:26]Write i2c OK [22:53:26]MH_I2C_Read... [22:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:26]Read from MH i2c: E2 [22:53:26]MH_I2C_Read... [22:53:26]Read from MH i2c: E2 0E 00 [22:53:26]MH_I2C_Read... [22:53:26]Read from MH i2c: E2 0E 00 75 31 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 56 [22:53:26]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:53:26]wFMCommunicate OK [22:53:26]SAM_PROTO_GetShiftState done [22:53:26]FM_GetShiftState done [22:53:26]req_shift_opened done [22:53:26]requested_item shift.open_date is exist - process it [22:53:26]req_shift_open_date [22:53:26]req_shift_open_date done [22:53:26]produce_requested_data done [22:53:26]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60075,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [22:53:26]process_action_free close_receipt [22:53:26]json_value_free [22:53:26]json_value_free done [22:53:26]process_json_proto returns [22:53:26]Send response to host [22:53:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60075,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [22:53:26]free response buf [22:53:26]execute_script done [22:53:26]execute_script returns [22:53:26]free content buf [22:53:26]Sock 10.Close socket [22:53:26]Sock 10.Thread stoped [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]accept exits with 7 [22:53:55]New connection [22:53:55]New thread 3067108708 created [22:53:55]Thread 3067252068 joined [22:53:55]Waiting for new connection... [22:53:55] Sock 7.Parse request [22:53:55]Sock 7.Check first char [22:53:55]Sock 7.First char is OK [22:53:55]request: POST /json_proto HTTP/1.0 [22:53:55]Method: POST [22:53:55]URL: /json_proto [22:53:55]Method is POST - this is cgi request [22:53:55]url: /json_proto [22:53:55]query_string will be loaded in cgi processing [22:53:55]execute_cgi json_proto POST (null) [22:53:55]execute_cgi path=json_proto method=POST [22:53:55]POST find Content-Length [22:53:55]Host: 172.17.42.196:8080 [22:53:55]Content-Length: 683 [22:53:55]Content-Type: application/json [22:53:55] [22:53:55]POST finish read [22:53:55]Found Content-Length = 683 [22:53:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3309331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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" ] } } [22:53:55]execute_script... [22:53: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)3309331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "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" ] } } [22:53:55]POST & json_proto [22:53:55]process_json_proto [22:53:55]json parsed OK: [22:53:55]protocol is kg_v1.0 [22:53:55]action value=close_receipt [22:53:55]process_action close_receipt [22:53:55]cmd_close_receipt [22:53:55]MH_GetDate [22:53:55]Write to MH i2c: F0 00 00 76 31 96 [22:53:55]Write i2c OK [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: F0 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: F0 09 00 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: F0 09 00 76 31 00 09 D0 1A 67 FF C4 6B 64 8B [22:53:55]GetLastDocTimeStamp 1729810408 [22:53:55]current date 1729810441 [22:53:55]FM_GetShiftState [22:53:55]SAM_PROTO_GetShiftState [22:53:55]wFMCommunicate request_size=4 [22:53:55]MH_SAM_APDU [22:53:55]CAPDU: 80 13 01 00 [22:53:55]Write to MH i2c: E2 08 00 77 31 80 13 01 00 00 00 00 00 25 [22:53:55]Write i2c OK [22:53:55]MH_I2C_Read... [22:53:55]OFD Sender: No OFD packet to send [22:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:55]Read from MH i2c: E2 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: E2 0E 00 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: E2 0E 00 77 31 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 58 [22:53:55]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:53:55]wFMCommunicate OK [22:53:55]SAM_PROTO_GetShiftState done [22:53:55]FM_GetShiftState done [22:53:55]opened in 1729730575 [22:53:55]opened+sec_in_day 1729816975 [22:53:55]quantity*price = 100015 [22:53:55]sum+1 = 100017 [22:53:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 151 24.10.2024 22:54 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60076 ФПД: 69133994013706 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T225401&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60076&fm=69133994013706&tin=02508201610067®Number=0000000000091622&sum=100000 [22:53:56]StoreToDocumentArchive [22:53:56]shift 529 fd 60076 [22:53:56]save to /storage/0529/doc_00060076 [22:53:56]save last doc name /storage/0529/doc_00060076 to /storage/kkm_last_doc_name [22:53:56]save OK [22:53:56]Clear old archive folders... [22:53:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:53:56]tlvbuf is 00DDCAE0 [22:53:56]SAM_PROTO_ClearQueue [22:53:56]wFMCommunicate request_size=4 [22:53:56]MH_SAM_APDU [22:53:56]CAPDU: 80 09 00 00 [22:53:56]Write to MH i2c: E2 08 00 84 31 80 09 00 00 00 00 00 00 27 [22:53:56]Write i2c OK [22:53:56]MH_I2C_Read... [22:53:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:56]Read from MH i2c: E2 [22:53:56]MH_I2C_Read... [22:53:56]Read from MH i2c: E2 03 00 [22:53:56]MH_I2C_Read... [22:53:56]Read from MH i2c: E2 03 00 84 31 00 90 00 29 [22:53:56]RAPDU: 90 00 [22:53:56]wFMCommunicate OK [22:53:56]SAM_PROTO_ClearQueue done [22:53:56]KKMCreateOFDPacket [22:53:56]OFDProtocolAddRootSTLVToBuf [22:53:56]FM_MakeSignedData [22:53:56]FM_MakeSignedData [22:53:56]SAM_PROTO_SignData [22:53:56]wFMCommunicate request_size=4 [22:53:56]MH_SAM_APDU [22:53:56]CAPDU: 80 0D 01 02 [22:53:56]Write to MH i2c: E2 08 00 85 31 80 0D 01 02 00 00 00 00 2F [22:53:56]Write i2c OK [22:53:56]MH_I2C_Read... [22:53:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:56]Read from MH i2c: E2 [22:53:56]MH_I2C_Read... [22:53:56]Read from MH i2c: E2 03 00 [22:53:56]MH_I2C_Read... [22:53:56]Read from MH i2c: E2 03 00 85 31 00 90 00 2A [22:53:56]RAPDU: 90 00 [22:53:56]wFMCommunicate OK [22:53:56]wFMCommunicate request_size=255 [22:53:56]MH_SAM_APDU [22:53:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 97 00 00 00 F4 03 04 00 09 D0 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AC EA 00 00 35 04 06 00 3E [22:53:56]Write to MH i2c: E2 02 01 86 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 34 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 97 00 00 00 F4 03 04 00 09 D0 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AC EA 00 00 35 04 06 00 3E 00 00 8E [22:53:56]Write i2c OK [22:53:56]MH_I2C_Read... [22:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:57]Read from MH i2c: E2 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 03 00 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 03 00 86 31 00 90 00 2B [22:53:57]RAPDU: 90 00 [22:53:57]wFMCommunicate OK [22:53:57]wFMCommunicate request_size=10 [22:53:57]MH_SAM_APDU [22:53:57]CAPDU: 80 0D 02 02 05 E0 83 27 B4 0A [22:53:57]Write to MH i2c: E2 0D 00 87 31 80 0D 02 02 05 00 E0 83 27 B4 0A 00 00 84 [22:53:57]Write i2c OK [22:53:57]MH_I2C_Read... [22:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:57]Read from MH i2c: E2 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 03 00 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 03 00 87 31 00 90 00 2C [22:53:57]RAPDU: 90 00 [22:53:57]wFMCommunicate OK [22:53:57]wFMCommunicate request_size=4 [22:53:57]MH_SAM_APDU [22:53:57]CAPDU: 80 0D 03 02 [22:53:57]Write to MH i2c: E2 08 00 88 31 80 0D 03 02 00 00 00 00 34 [22:53:57]Write i2c OK [22:53:57]MH_I2C_Read... [22:53:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:57]Read from MH i2c: E2 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 0B 00 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 0B 00 88 31 00 DA A1 C6 62 47 FC B3 EC 90 00 BA [22:53:57]RAPDU: DA A1 C6 62 47 FC B3 EC 90 00 [22:53:57]wFMCommunicate OK [22:53:57]SAM_PROTO_SignData done [22:53:57]FM_MakeSignedData done [22:53:57]CreateOFDProtocolMessage [22:53:57]wFMCommunicate request_size=4 [22:53:57]MH_SAM_APDU [22:53:57]CAPDU: 80 11 00 00 [22:53:57]Write to MH i2c: E2 08 00 89 31 80 11 00 00 00 00 00 00 34 [22:53:57]Write i2c OK [22:53:57]MH_I2C_Read... [22:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:57]Read from MH i2c: E2 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 17 00 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 17 00 89 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 8B [22:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:53:57]wFMCommunicate OK [22:53:57]CreateOFDProtocolMessage done [22:53:57]OFDSenderStorePacket 60076 [22:53:57]StoreOFDPacket docnum=60076 [22:53:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 2C 06 07 01 4B 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 97 00 00 00 F4 03 04 00 09 D0 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AC EA 00 00 35 04 06 00 3E E0 83 27 B4 0A DA A1 C6 62 47 FC B3 EC [22:53:57]CheckFolder [22:53:57]dirname=/storage/ofd_packets [22:53:57]CheckFolder done [22:53:57]ProducePacketName [22:53:57]name=ofd_packets/00060076 [22:53:57]NVStorageSaveData ofd_packets/00060076 [22:53:57]File name is /storage/ofd_packets/00060076 [22:53:57]Write 301 bytes [22:53:57]NVStorageSaveData done [22:53:57]OFDSenderStorePacket done [22:53:57]KKMCreateOFDPacket done [22:53:57]NVStorageSaveData kkm_last_timestamp [22:53:57]File name is /storage/kkm_last_timestamp [22:53:57]Write 4 bytes [22:53:57]NVStorageSaveData done [22:53:57]ExternCall_PrintAddStr [22:53:57]wPrintStart [22:53:57]Write to MH i2c: 01 00 00 8A 31 BB [22:53:57]Write i2c OK [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: 01 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: 01 07 00 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: 01 07 00 8A 31 00 00 00 00 00 FF 0F D0 [22:53:57]RasterBufferAndPrint [22:53:57]line Счет N : (1)3309331 [22:53:57]line ИНН: 02508201610067 [22:53:57]line Контрольно-Кассовый Чек [22:53:57]line ПРОДАЖА [22:53:57]line ТРК (МРК, ГНК) : 42 [22:53:57]line Товар: 2710124130 [22:53:57]line Аи-92-К-4 [22:53:57]line 14.950 * 66.90 [22:53:57]line = 1000.16 [22:53:57]line НДС 12% НСП 1% [22:53:57]line > о реализуемом товаре [22:53:57]line ОКРУГЛЕНИЕ: -0.16 [22:53:57]line ИТОГО: 1000.00 [22:53:57]line Внесено: 1000.00 [22:53:57]line СДАЧА: 0.00 [22:53:57]line НСП 1% : 8.85 [22:53:57]line НДС 12% : 106.21 [22:53:57]line Наличными: 1000.00 [22:53:57]line Безнал.: 0.00 [22:53:57]line Место: АЗС № 87 "Партнер Нефть" [22:53:57]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [22:53:57]line СНО: Общий режим [22:53:57]line Чек 151 24.10.2024 22:54 [22:53:57]line Смена: 529 ФФД: 1.0 [22:53:57]line ЗНМ: 0300000084 [22:53:57]line РНМ: 0000000000091622 [22:53:57]line Версия ККМ: 001 [22:53:57]line ФМ: 0000000000874674 [22:53:57]line ФД: 60076 [22:53:57]line ФПД: 69133994013706 [22:53:57]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T225401&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60076&fm=69133994013706&tin=02508201610067®Number=0000000000091622&sum=100000 [22:53:57]OFD Sender: Processing packet 60076 [packets to send 30, broken 29] [22:53:57]ProducePacketName [22:53:57]name=ofd_packets/00060076 [22:53:57]OFD Sender: To server: pG, [22:53:57]CommunicateWithHost lk.salyk.kg:30040 [22:53:57]ConnectInit lk.salyk.kg [22:53:57]written 0, free lines is 4095 [22:53:57]Connected sock=10 [22:53:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 2C 06 07 01 4B 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 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 97 00 00 00 F4 03 04 00 09 D0 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AC EA 00 00 35 04 06 00 3E E0 83 27 B4 0A DA A1 C6 62 47 FC B3 EC [22:53:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 3B 24 47 00 6D 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 34 36 37 34 10 04 04 00 AC EA 00 00 F4 03 04 00 F8 75 1A 67 B6 04 01 00 00 00 E9 B0 FD 98 B4 8B 0F [22:53:57]CommunicateWithHost err = 0 [22:53:57]CheckOFDResponse [22:53:57]1017 (14) - 77093643461234 [22:53:57]1041 (16) - 0000000000874674 [22:53:57]1040 (4) - 60076 [22:53:57]1012 (4) - 24.10.2024 16:29 [22:53:57]1206 (1) - 0 [22:53:57]OFD Sender: Remove packet 60076 [22:53:57]ProducePacketName [22:53:57]name=ofd_packets/00060076 [22:53:57]NVStorageDeleteData [22:53:58]Write to MH i2c: 01 00 00 B5 31 E6 [22:53:58]Write i2c OK [22:53:58]MH_I2C_Read... [22:53:58]Read from MH i2c: 01 [22:53:58]MH_I2C_Read... [22:53:58]Read from MH i2c: 01 07 00 [22:53:58]MH_I2C_Read... [22:53:58]Read from MH i2c: 01 07 00 B5 31 00 00 00 00 00 E4 0C DD [22:53:58]RasterBufferAndPrint [22:53:58]line [22:53:58]line [22:53:58]line [22:53:58]line [22:53:58]line [22:53:58]written 0, free lines is 3306 [22:53:58]MH_Cut [22:53:58]Write to MH i2c: D1 01 00 BC 31 01 BF [22:53:58]Write i2c OK [22:53:58]MH_I2C_Read... [22:53:58]Read from MH i2c: D1 [22:53:58]MH_I2C_Read... [22:53:58]Read from MH i2c: D1 01 00 [22:53:58]MH_I2C_Read... [22:53:58]Read from MH i2c: D1 01 00 BC 31 00 BE [22:53:58]Write to MH i2c: 01 00 00 BD 31 EE [22:53:58]Write i2c OK [22:53:58]MH_I2C_Read... [22:53:58]OFD Sender: No OFD packet to send [22:53:58]*** Cut start [22:53:58]*** Partial cut [22:53:58]*** CUTSNS_PIN = 1 [22:53:58]*** CUTSNS_PIN = 0 [22:53:59]*** Brake cut motor [22:53:59]Read from MH i2c: 01 [22:53:59]MH_I2C_Read... [22:53:59]*** Stop cut motor [22:53:59]*** Cut end [22:53:59]Read from MH i2c: 01 07 00 [22:53:59]MH_I2C_Read... [22:53:59]Read from MH i2c: 01 07 00 BD 31 00 00 00 00 00 FF 0F 03 [22:53:59]process_action close_receipt done [22:53:59]requested_data is exist [22:53:59]produce_requested_data [22:53:59]requested_item fm.sn is exist - process it [22:53:59]wFMCommunicate request_size=4 [22:53:59]MH_SAM_APDU [22:53:59]CAPDU: 80 11 00 00 [22:53:59]Write to MH i2c: E2 08 00 BE 31 80 11 00 00 00 00 00 00 69 [22:53:59]Write i2c OK [22:53:59]MH_I2C_Read... [22:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:59]Read from MH i2c: E2 [22:53:59]MH_I2C_Read... [22:53:59]Read from MH i2c: E2 17 00 [22:53:59]MH_I2C_Read... [22:53:59]Read from MH i2c: E2 17 00 BE 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C0 [22:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:53:59]wFMCommunicate OK [22:53:59]requested_item fd.num is exist - process it [22:53:59]SAM_PROTO_GetFieldsCounters [22:53:59]wFMCommunicate request_size=4 [22:53:59]MH_SAM_APDU [22:53:59]CAPDU: 80 13 00 00 [22:53:59]Write to MH i2c: E2 08 00 BF 31 80 13 00 00 00 00 00 00 6C [22:53:59]Write i2c OK [22:53:59]MH_I2C_Read... [22:53:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:59]Read from MH i2c: E2 [22:53:59]MH_I2C_Read... [22:53:59]Read from MH i2c: E2 62 00 [22:53:59]MH_I2C_Read... [22:53:59]Read from MH i2c: E2 62 00 BF 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 AC EA 00 00 0E 04 04 00 11 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 FA [22:53: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 AC EA 00 00 0E 04 04 00 11 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 [22:53:59]wFMCommunicate OK [22:53:59]SAM_PROTO_GetFieldsCounters done [22:53:59]requested_item shift.num is exist - process it [22:53:59]requested_item shift.opened is exist - process it [22:53:59]req_shift_opened [22:53:59]FM_GetShiftState [22:53:59]SAM_PROTO_GetShiftState [22:53:59]wFMCommunicate request_size=4 [22:53:59]MH_SAM_APDU [22:53:59]CAPDU: 80 13 01 00 [22:53:59]Write to MH i2c: E2 08 00 C0 31 80 13 01 00 00 00 00 00 6E [22:53:59]Write i2c OK [22:53:59]MH_I2C_Read... [22:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:59]Read from MH i2c: E2 [22:53:59]MH_I2C_Read... [22:53:59]Read from MH i2c: E2 0E 00 [22:53:59]MH_I2C_Read... [22:53:59]Read from MH i2c: E2 0E 00 C0 31 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 A1 [22:53:59]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:53:59]wFMCommunicate OK [22:53:59]SAM_PROTO_GetShiftState done [22:53:59]FM_GetShiftState done [22:53:59]req_shift_opened done [22:53:59]requested_item shift.open_date is exist - process it [22:53:59]req_shift_open_date [22:53:59]req_shift_open_date done [22:53:59]produce_requested_data done [22:53:59]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60076,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [22:53:59]process_action_free close_receipt [22:53:59]json_value_free [22:53:59]json_value_free done [22:53:59]process_json_proto returns [22:53:59]Send response to host [22:53:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60076,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [22:53:59]free response buf [22:53:59]execute_script done [22:53:59]execute_script returns [22:53:59]free content buf [22:53:59]Sock 7.Close socket [22:53:59]Sock 7.Thread stoped [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:08]accept exits with 9 [22:58:08]New connection [22:58:08]New thread 3067252068 created [22:58:08]Thread 3067108708 joined [22:58:08]Waiting for new connection... [22:58:08] Sock 9.Parse request [22:58:08]Sock 9.Check first char [22:58:08]Sock 9.First char is OK [22:58:08]request: POST /json_proto HTTP/1.0 [22:58:08]Method: POST [22:58:08]URL: /json_proto [22:58:08]Method is POST - this is cgi request [22:58:08]url: /json_proto [22:58:08]query_string will be loaded in cgi processing [22:58:08]execute_cgi json_proto POST (null) [22:58:08]execute_cgi path=json_proto method=POST [22:58:08]POST find Content-Length [22:58:08]Host: 172.17.42.196:8080 [22:58:08]Content-Length: 621 [22:58:08]Content-Type: application/json [22:58:08] [22:58:08]POST finish read [22:58:08]Found Content-Length = 621 [22:58:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199847", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:08]execute_script... [22:58:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199847", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:08]POST & json_proto [22:58:08]process_json_proto [22:58:08]json parsed OK: [22:58:08]protocol is kg_v1.0 [22:58:08]action value=close_receipt [22:58:08]process_action close_receipt [22:58:08]cmd_close_receipt [22:58:08]MH_GetDate [22:58:08]Write to MH i2c: F0 00 00 C1 31 E1 [22:58:08]Write i2c OK [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: F0 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: F0 09 00 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: F0 09 00 C1 31 00 06 D1 1A 67 FF C4 6B 64 D4 [22:58:08]GetLastDocTimeStamp 1729810441 [22:58:08]current date 1729810694 [22:58:08]FM_GetShiftState [22:58:08]SAM_PROTO_GetShiftState [22:58:08]wFMCommunicate request_size=4 [22:58:08]MH_SAM_APDU [22:58:08]CAPDU: 80 13 01 00 [22:58:08]Write to MH i2c: E2 08 00 C2 31 80 13 01 00 00 00 00 00 70 [22:58:08]Write i2c OK [22:58:08]MH_I2C_Read... [22:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:08]Read from MH i2c: E2 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: E2 0E 00 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: E2 0E 00 C2 31 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 A3 [22:58:08]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:58:08]wFMCommunicate OK [22:58:08]SAM_PROTO_GetShiftState done [22:58:08]FM_GetShiftState done [22:58:08]opened in 1729730575 [22:58:08]opened+sec_in_day 1729816975 [22:58:08]quantity*price = 14400 [22:58:08]sum+1 = 14401 [22:58:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 152 24.10.2024 22:58 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60077 ФПД: 42157756147869 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T225814&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60077&fm=42157756147869&tin=02508201610067®Number=0000000000091622&sum=14400 0 [22:58:10]StoreToDocumentArchive [22:58:10]shift 529 fd 60077 [22:58:10]save to /storage/0529/doc_00060077 [22:58:10]save last doc name /storage/0529/doc_00060077 to /storage/kkm_last_doc_name [22:58:10]save OK [22:58:10]Clear old archive folders... [22:58:10]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:58:10]tlvbuf is 00EA6170 [22:58:10]SAM_PROTO_ClearQueue [22:58:10]wFMCommunicate request_size=4 [22:58:10]MH_SAM_APDU [22:58:10]CAPDU: 80 09 00 00 [22:58:10]Write to MH i2c: E2 08 00 CF 31 80 09 00 00 00 00 00 00 72 [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:58:10]Read from MH i2c: E2 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 03 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 03 00 CF 31 00 90 00 74 [22:58:10]RAPDU: 90 00 [22:58:10]wFMCommunicate OK [22:58:10]SAM_PROTO_ClearQueue done [22:58:10]KKMCreateOFDPacket [22:58:10]OFDProtocolAddRootSTLVToBuf [22:58:10]FM_MakeSignedData [22:58:10]FM_MakeSignedData [22:58:10]SAM_PROTO_SignData [22:58:10]wFMCommunicate request_size=4 [22:58:10]MH_SAM_APDU [22:58:10]CAPDU: 80 0D 01 02 [22:58:10]Write to MH i2c: E2 08 00 D0 31 80 0D 01 02 00 00 00 00 7A [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:58:10]Read from MH i2c: E2 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 03 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 03 00 D0 31 00 90 00 75 [22:58:10]RAPDU: 90 00 [22:58:10]wFMCommunicate OK [22:58:10]wFMCommunicate request_size=255 [22:58:10]MH_SAM_APDU [22:58:10]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 06 D1 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 [22:58:10]Write to MH i2c: E2 02 01 D1 31 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 06 D1 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 CE [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:10]Read from MH i2c: E2 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 03 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 03 00 D1 31 00 90 00 76 [22:58:10]RAPDU: 90 00 [22:58:10]wFMCommunicate OK [22:58:10]wFMCommunicate request_size=32 [22:58:10]MH_SAM_APDU [22:58:10]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 34 10 04 04 00 AD EA 00 00 35 04 06 00 26 57 9E 14 68 9D [22:58:10]Write to MH i2c: E2 23 00 D2 31 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 34 10 04 04 00 AD EA 00 00 35 04 06 00 26 57 9E 14 68 9D 00 00 A9 [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:10]Read from MH i2c: E2 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 03 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 03 00 D2 31 00 90 00 77 [22:58:10]RAPDU: 90 00 [22:58:10]wFMCommunicate OK [22:58:10]wFMCommunicate request_size=4 [22:58:10]MH_SAM_APDU [22:58:10]CAPDU: 80 0D 03 02 [22:58:10]Write to MH i2c: E2 08 00 D3 31 80 0D 03 02 00 00 00 00 7F [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:58:10]Read from MH i2c: E2 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 0B 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 0B 00 D3 31 00 6B E5 D2 71 79 CF C5 44 90 00 64 [22:58:10]RAPDU: 6B E5 D2 71 79 CF C5 44 90 00 [22:58:10]wFMCommunicate OK [22:58:10]SAM_PROTO_SignData done [22:58:10]FM_MakeSignedData done [22:58:10]CreateOFDProtocolMessage [22:58:10]wFMCommunicate request_size=4 [22:58:10]MH_SAM_APDU [22:58:10]CAPDU: 80 11 00 00 [22:58:10]Write to MH i2c: E2 08 00 D4 31 80 11 00 00 00 00 00 00 7F [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:10]Read from MH i2c: E2 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 17 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: E2 17 00 D4 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 D6 [22:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:58:10]wFMCommunicate OK [22:58:10]CreateOFDProtocolMessage done [22:58:10]OFDSenderStorePacket 60077 [22:58:10]StoreOFDPacket docnum=60077 [22:58:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 6A B8 1D 01 26 BE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 06 D1 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AD EA 00 00 35 04 06 00 26 57 9E 14 68 9D 6B E5 D2 71 79 CF C5 44 [22:58:10]CheckFolder [22:58:10]dirname=/storage/ofd_packets [22:58:10]CheckFolder done [22:58:10]ProducePacketName [22:58:10]name=ofd_packets/00060077 [22:58:10]NVStorageSaveData ofd_packets/00060077 [22:58:10]File name is /storage/ofd_packets/00060077 [22:58:10]Write 323 bytes [22:58:10]NVStorageSaveData done [22:58:10]OFDSenderStorePacket done [22:58:10]KKMCreateOFDPacket done [22:58:10]NVStorageSaveData kkm_last_timestamp [22:58:10]File name is /storage/kkm_last_timestamp [22:58:10]Write 4 bytes [22:58:10]NVStorageSaveData done [22:58:10]ExternCall_PrintAddStr [22:58:10]wPrintStart [22:58:10]Write to MH i2c: 01 00 00 D5 31 06 [22:58:10]Write i2c OK [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: 01 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: 01 07 00 [22:58:10]MH_I2C_Read... [22:58:10]Read from MH i2c: 01 07 00 D5 31 00 00 00 00 00 FF 0F 1B [22:58:10]RasterBufferAndPrint [22:58:10]line Счет N : (3)199847 [22:58:10]line ИНН: 02508201610067 [22:58:10]line Контрольно-Кассовый Чек [22:58:10]line ПРОДАЖА [22:58:10]line Товар: 48747059 [22:58:10]line Сигареты Winston Legend Blue [22:58:10]line 1.000 * 144.00 [22:58:10]line = 144.00 [22:58:10]line НДС 12% НСП 1% [22:58:10]line > о реализуемом товаре [22:58:10]line ИТОГО: 144.00 [22:58:10]line НСП 1% : 1.27 [22:58:10]line НДС 12% : 15.29 [22:58:10]line Наличными: 144.00 [22:58:10]line Безнал.: 0.00 [22:58:10]line Место: АЗС № 87 "Партнер Нефть" [22:58:10]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [22:58:10]line СНО: Общий режим [22:58:10]line Чек 152 24.10.2024 22:58 [22:58:10]line Смена: 529 ФФД: 1.0 [22:58:10]line ЗНМ: 0300000084 [22:58:10]line РНМ: 0000000000091622 [22:58:10]line Версия ККМ: 001 [22:58:10]line ФМ: 0000000000874674 [22:58:10]line ФД: 60077 [22:58:10]line ФПД: 42157756147869 [22:58:10]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T225814&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60077&fm=42157756147869&tin=02508201610067®Number=0000000000091622&sum=14400 [22:58:10]OFD Sender: Processing packet 60077 [packets to send 30, broken 29] [22:58:10]ProducePacketName [22:58:10]name=ofd_packets/00060077 [22:58:10]OFD Sender: To server: pG, [22:58:10]CommunicateWithHost lk.salyk.kg:30040 [22:58:10]ConnectInit lk.salyk.kg [22:58:10]line 0 [22:58:10]written 0, free lines is 4095 [22:58:11]Connected sock=10 [22:58:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 6A B8 1D 01 26 BE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 06 D1 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AD EA 00 00 35 04 06 00 26 57 9E 14 68 9D 6B E5 D2 71 79 CF C5 44 [22:58:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 45 81 47 00 05 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 34 36 37 34 10 04 04 00 AD EA 00 00 F4 03 04 00 F6 76 1A 67 B6 04 01 00 00 42 25 04 16 53 01 F2 89 [22:58:11]CommunicateWithHost err = 0 [22:58:11]CheckOFDResponse [22:58:11]1017 (14) - 77093643461234 [22:58:11]1041 (16) - 0000000000874674 [22:58:11]1040 (4) - 60077 [22:58:11]1012 (4) - 24.10.2024 16:33 [22:58:11]1206 (1) - 0 [22:58:11]OFD Sender: Remove packet 60077 [22:58:11]ProducePacketName [22:58:11]name=ofd_packets/00060077 [22:58:11]NVStorageDeleteData [22:58:11]Write to MH i2c: 01 00 00 FE 31 2F [22:58:11]Write i2c OK [22:58:11]MH_I2C_Read... [22:58:11]Read from MH i2c: 01 [22:58:11]MH_I2C_Read... [22:58:11]Read from MH i2c: 01 07 00 [22:58:11]MH_I2C_Read... [22:58:11]Read from MH i2c: 01 07 00 FE 31 00 00 00 00 00 D1 0C 13 [22:58:11]RasterBufferAndPrint [22:58:11]line [22:58:11]line [22:58:11]line [22:58:11]line [22:58:11]line [22:58:11]written 0, free lines is 3290 [22:58:11]MH_Cut [22:58:11]Write to MH i2c: D1 01 00 05 32 01 09 [22:58:11]Write i2c OK [22:58:11]MH_I2C_Read... [22:58:11]Read from MH i2c: D1 [22:58:11]MH_I2C_Read... [22:58:11]Read from MH i2c: D1 01 00 [22:58:11]MH_I2C_Read... [22:58:11]Read from MH i2c: D1 01 00 05 32 00 08 [22:58:11]Write to MH i2c: 01 00 00 06 32 38 [22:58:11]Write i2c OK [22:58:11]MH_I2C_Read... [22:58:11]OFD Sender: No OFD packet to send [22:58:12]*** Cut start [22:58:12]*** Partial cut [22:58:12]*** CUTSNS_PIN = 1 [22:58:12]*** CUTSNS_PIN = 0 [22:58:12]*** Brake cut motor [22:58:12]Read from MH i2c: 01 [22:58:12]MH_I2C_Read... [22:58:12]*** Stop cut motor [22:58:12]*** Cut end [22:58:12]Read from MH i2c: 01 07 00 [22:58:12]MH_I2C_Read... [22:58:12]Read from MH i2c: 01 07 00 06 32 00 00 00 00 00 FF 0F 4D [22:58:12]process_action close_receipt done [22:58:12]requested_data is exist [22:58:12]produce_requested_data [22:58:12]requested_item fm.sn is exist - process it [22:58:12]wFMCommunicate request_size=4 [22:58:12]MH_SAM_APDU [22:58:12]CAPDU: 80 11 00 00 [22:58:12]Write to MH i2c: E2 08 00 07 32 80 11 00 00 00 00 00 00 B3 [22:58:12]Write i2c OK [22:58:12]MH_I2C_Read... [22:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:12]Read from MH i2c: E2 [22:58:12]MH_I2C_Read... [22:58:12]Read from MH i2c: E2 17 00 [22:58:12]MH_I2C_Read... [22:58:12]Read from MH i2c: E2 17 00 07 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 0A [22:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:58:12]wFMCommunicate OK [22:58:12]requested_item fd.num is exist - process it [22:58:12]SAM_PROTO_GetFieldsCounters [22:58:12]wFMCommunicate request_size=4 [22:58:12]MH_SAM_APDU [22:58:12]CAPDU: 80 13 00 00 [22:58:12]Write to MH i2c: E2 08 00 08 32 80 13 00 00 00 00 00 00 B6 [22:58:12]Write i2c OK [22:58:12]MH_I2C_Read... [22:58:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:12]Read from MH i2c: E2 [22:58:12]MH_I2C_Read... [22:58:12]Read from MH i2c: E2 62 00 [22:58:12]MH_I2C_Read... [22:58:12]Read from MH i2c: E2 62 00 08 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 AD EA 00 00 0E 04 04 00 11 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 48 [22:58: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 AD EA 00 00 0E 04 04 00 11 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 [22:58:13]wFMCommunicate OK [22:58:13]SAM_PROTO_GetFieldsCounters done [22:58:13]requested_item shift.num is exist - process it [22:58:13]requested_item shift.opened is exist - process it [22:58:13]req_shift_opened [22:58:13]FM_GetShiftState [22:58:13]SAM_PROTO_GetShiftState [22:58:13]wFMCommunicate request_size=4 [22:58:13]MH_SAM_APDU [22:58:13]CAPDU: 80 13 01 00 [22:58:13]Write to MH i2c: E2 08 00 09 32 80 13 01 00 00 00 00 00 B8 [22:58:13]Write i2c OK [22:58:13]MH_I2C_Read... [22:58:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:13]Read from MH i2c: E2 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 0E 00 [22:58:13]MH_I2C_Read... [22:58:13]Read from MH i2c: E2 0E 00 09 32 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 EB [22:58:13]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:58:13]wFMCommunicate OK [22:58:13]SAM_PROTO_GetShiftState done [22:58:13]FM_GetShiftState done [22:58:13]req_shift_opened done [22:58:13]requested_item shift.open_date is exist - process it [22:58:13]req_shift_open_date [22:58:13]req_shift_open_date done [22:58:13]produce_requested_data done [22:58:13]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60077,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [22:58:13]process_action_free close_receipt [22:58:13]json_value_free [22:58:13]json_value_free done [22:58:13]process_json_proto returns [22:58:13]Send response to host [22:58:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60077,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [22:58:13]free response buf [22:58:13]execute_script done [22:58:13]execute_script returns [22:58:13]free content buf [22:58:13]Sock 9.Close socket [22:58:13]Sock 9.Thread stoped [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:08]accept exits with 7 [22:59:08]New connection [22:59:08]New thread 3067108708 created [22:59:08]Thread 3067252068 joined [22:59:08]Waiting for new connection... [22:59:08] Sock 7.Parse request [22:59:08]Sock 7.Check first char [22:59:08]Sock 7.First char is OK [22:59:08]request: POST /json_proto HTTP/1.0 [22:59:08]Method: POST [22:59:08]URL: /json_proto [22:59:08]Method is POST - this is cgi request [22:59:08]url: /json_proto [22:59:08]query_string will be loaded in cgi processing [22:59:08]execute_cgi json_proto POST (null) [22:59:08]execute_cgi path=json_proto method=POST [22:59:08]POST find Content-Length [22:59:08]Host: 172.17.42.196:8080 [22:59:08]Content-Length: 623 [22:59:08]Content-Type: application/json [22:59:08] [22:59:08]POST finish read [22:59:08]Found Content-Length = 623 [22:59:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199848", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:08]execute_script... [22:59:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199848", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:08]POST & json_proto [22:59:08]process_json_proto [22:59:08]json parsed OK: [22:59:08]protocol is kg_v1.0 [22:59:08]action value=close_receipt [22:59:08]process_action close_receipt [22:59:08]cmd_close_receipt [22:59:08]MH_GetDate [22:59:08]Write to MH i2c: F0 00 00 0A 32 2B [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: F0 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: F0 09 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: F0 09 00 0A 32 00 42 D1 1A 67 FF C4 6B 64 5A [22:59:08]GetLastDocTimeStamp 1729810694 [22:59:08]current date 1729810754 [22:59:08]FM_GetShiftState [22:59:08]SAM_PROTO_GetShiftState [22:59:08]wFMCommunicate request_size=4 [22:59:08]MH_SAM_APDU [22:59:08]CAPDU: 80 13 01 00 [22:59:08]Write to MH i2c: E2 08 00 0B 32 80 13 01 00 00 00 00 00 BA [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:08]Read from MH i2c: E2 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 0E 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 0E 00 0B 32 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 ED [22:59:08]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:59:08]wFMCommunicate OK [22:59:08]SAM_PROTO_GetShiftState done [22:59:08]FM_GetShiftState done [22:59:08]opened in 1729730575 [22:59:08]opened+sec_in_day 1729816975 [22:59:08]quantity*price = 28800 [22:59:08]sum+1 = 28801 [22:59:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 153 24.10.2024 22:59 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60078 ФПД: 166073459275305 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T225914&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60078&fm=166073459275305&tin=02508201610067®Number=0000000000091622&sum=28800 0 [22:59:10]StoreToDocumentArchive [22:59:10]shift 529 fd 60078 [22:59:10]save to /storage/0529/doc_00060078 [22:59:10]save last doc name /storage/0529/doc_00060078 to /storage/kkm_last_doc_name [22:59:10]save OK [22:59:10]Clear old archive folders... [22:59:10]ProcessDocumentItem done err = 0, tmpTLVsize=275 [22:59:10]tlvbuf is B6DF1060 [22:59:10]SAM_PROTO_ClearQueue [22:59:10]wFMCommunicate request_size=4 [22:59:10]MH_SAM_APDU [22:59:10]CAPDU: 80 09 00 00 [22:59:10]Write to MH i2c: E2 08 00 18 32 80 09 00 00 00 00 00 00 BC [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:10]Read from MH i2c: E2 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 18 32 00 90 00 BE [22:59:10]RAPDU: 90 00 [22:59:10]wFMCommunicate OK [22:59:10]SAM_PROTO_ClearQueue done [22:59:10]KKMCreateOFDPacket [22:59:10]OFDProtocolAddRootSTLVToBuf [22:59:10]FM_MakeSignedData [22:59:10]FM_MakeSignedData [22:59:10]SAM_PROTO_SignData [22:59:10]wFMCommunicate request_size=4 [22:59:10]MH_SAM_APDU [22:59:10]CAPDU: 80 0D 01 02 [22:59:10]Write to MH i2c: E2 08 00 19 32 80 0D 01 02 00 00 00 00 C4 [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:10]Read from MH i2c: E2 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 19 32 00 90 00 BF [22:59:10]RAPDU: 90 00 [22:59:10]wFMCommunicate OK [22:59:10]wFMCommunicate request_size=255 [22:59:10]MH_SAM_APDU [22:59:10]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 42 D1 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [22:59:10]Write to MH i2c: E2 02 01 1A 32 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 42 D1 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 D7 [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:10]Read from MH i2c: E2 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 1A 32 00 90 00 C0 [22:59:10]RAPDU: 90 00 [22:59:10]wFMCommunicate OK [22:59:10]wFMCommunicate request_size=34 [22:59:10]MH_SAM_APDU [22:59:10]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AE EA 00 00 35 04 06 00 97 0A FD 8B F6 29 [22:59:10]Write to MH i2c: E2 25 00 1B 32 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AE EA 00 00 35 04 06 00 97 0A FD 8B F6 29 00 00 6C [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:10]Read from MH i2c: E2 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 03 00 1B 32 00 90 00 C1 [22:59:10]RAPDU: 90 00 [22:59:10]wFMCommunicate OK [22:59:10]wFMCommunicate request_size=4 [22:59:10]MH_SAM_APDU [22:59:10]CAPDU: 80 0D 03 02 [22:59:10]Write to MH i2c: E2 08 00 1C 32 80 0D 03 02 00 00 00 00 C9 [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:10]Read from MH i2c: E2 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 0B 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 0B 00 1C 32 00 DC B0 45 DF E1 DF DC 92 90 00 A8 [22:59:10]RAPDU: DC B0 45 DF E1 DF DC 92 90 00 [22:59:10]wFMCommunicate OK [22:59:10]SAM_PROTO_SignData done [22:59:10]FM_MakeSignedData done [22:59:10]CreateOFDProtocolMessage [22:59:10]wFMCommunicate request_size=4 [22:59:10]MH_SAM_APDU [22:59:10]CAPDU: 80 11 00 00 [22:59:10]Write to MH i2c: E2 08 00 1D 32 80 11 00 00 00 00 00 00 C9 [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:10]Read from MH i2c: E2 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 17 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 17 00 1D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 20 [22:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:59:10]wFMCommunicate OK [22:59:10]CreateOFDProtocolMessage done [22:59:10]OFDSenderStorePacket 60078 [22:59:10]StoreOFDPacket docnum=60078 [22:59:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 2E CB 1F 01 CB 0F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 42 D1 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AE EA 00 00 35 04 06 00 97 0A FD 8B F6 29 DC B0 45 DF E1 DF DC 92 [22:59:10]CheckFolder [22:59:10]dirname=/storage/ofd_packets [22:59:10]CheckFolder done [22:59:10]ProducePacketName [22:59:10]name=ofd_packets/00060078 [22:59:10]NVStorageSaveData ofd_packets/00060078 [22:59:10]File name is /storage/ofd_packets/00060078 [22:59:10]Write 325 bytes [22:59:10]NVStorageSaveData done [22:59:10]OFDSenderStorePacket done [22:59:10]KKMCreateOFDPacket done [22:59:10]NVStorageSaveData kkm_last_timestamp [22:59:10]File name is /storage/kkm_last_timestamp [22:59:10]Write 4 bytes [22:59:10]NVStorageSaveData done [22:59:10]ExternCall_PrintAddStr [22:59:10]wPrintStart [22:59:10]Write to MH i2c: 01 00 00 1E 32 50 [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: 01 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: 01 07 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: 01 07 00 1E 32 00 00 00 00 00 FF 0F 65 [22:59:10]RasterBufferAndPrint [22:59:10]line Счет N : (3)199848 [22:59:10]line ИНН: 02508201610067 [22:59:10]line Контрольно-Кассовый Чек [22:59:10]line ПРОДАЖА [22:59:10]line Товар: 48743587 [22:59:10]line Сигареты Winston XStyle Silver [22:59:10]line 2.000 * 144.00 [22:59:10]line = 288.00 [22:59:10]line НДС 12% НСП 1% [22:59:10]line > о реализуемом товаре [22:59:10]line ИТОГО: 288.00 [22:59:10]line НСП 1% : 2.55 [22:59:10]line НДС 12% : 30.58 [22:59:10]line Наличными: 288.00 [22:59:10]line Безнал.: 0.00 [22:59:10]line Место: АЗС № 87 "Партнер Нефть" [22:59:10]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [22:59:10]line СНО: Общий режим [22:59:10]line Чек 153 24.10.2024 22:59 [22:59:10]line Смена: 529 ФФД: 1.0 [22:59:10]line ЗНМ: 0300000084 [22:59:10]line РНМ: 0000000000091622 [22:59:10]line Версия ККМ: 001 [22:59:10]line ФМ: 0000000000874674 [22:59:10]line ФД: 60078 [22:59:10]line ФПД: 166073459275305 [22:59:10]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T225914&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60078&fm=166073459275305&tin=02508201610067®Number=0000000000091622&sum=28800 [22:59:10]OFD Sender: Processing packet 60078 [packets to send 30, broken 29] [22:59:10]ProducePacketName [22:59:10]name=ofd_packets/00060078 [22:59:10]OFD Sender: To server: pG, [22:59:10]CommunicateWithHost lk.salyk.kg:30040 [22:59:10]ConnectInit lk.salyk.kg [22:59:10]line 0 [22:59:10]written 0, free lines is 4095 [22:59:11]Connected sock=10 [22:59:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 2E CB 1F 01 CB 0F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 42 D1 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AE EA 00 00 35 04 06 00 97 0A FD 8B F6 29 DC B0 45 DF E1 DF DC 92 [22:59:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 F9 29 47 00 BA 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 34 36 37 34 10 04 04 00 AE EA 00 00 F4 03 04 00 32 77 1A 67 B6 04 01 00 00 BB 1C 0D 7A 6A 7C C6 AE [22:59:11]CommunicateWithHost err = 0 [22:59:11]CheckOFDResponse [22:59:11]1017 (14) - 77093643461234 [22:59:11]1041 (16) - 0000000000874674 [22:59:11]1040 (4) - 60078 [22:59:11]1012 (4) - 24.10.2024 16:34 [22:59:11]1206 (1) - 0 [22:59:11]OFD Sender: Remove packet 60078 [22:59:11]ProducePacketName [22:59:11]name=ofd_packets/00060078 [22:59:11]NVStorageDeleteData [22:59:11]Write to MH i2c: 01 00 00 47 32 79 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 07 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: 01 07 00 47 32 00 00 00 00 00 E3 0C 6F [22:59:11]RasterBufferAndPrint [22:59:11]line [22:59:11]line [22:59:11]line [22:59:11]line [22:59:11]line [22:59:11]written 0, free lines is 3304 [22:59:11]MH_Cut [22:59:11]Write to MH i2c: D1 01 00 4E 32 01 52 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: D1 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: D1 01 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: D1 01 00 4E 32 00 51 [22:59:11]Write to MH i2c: 01 00 00 4F 32 81 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]OFD Sender: No OFD packet to send [22:59:12]*** Cut start [22:59:12]*** Partial cut [22:59:12]*** CUTSNS_PIN = 1 [22:59:12]*** CUTSNS_PIN = 0 [22:59:12]*** Brake cut motor [22:59:12]Read from MH i2c: 01 [22:59:12]MH_I2C_Read... [22:59:12]*** Stop cut motor [22:59:12]*** Cut end [22:59:12]Read from MH i2c: 01 07 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 07 00 4F 32 00 00 00 00 00 FF 0F 96 [22:59:12]process_action close_receipt done [22:59:12]requested_data is exist [22:59:12]produce_requested_data [22:59:12]requested_item fm.sn is exist - process it [22:59:12]wFMCommunicate request_size=4 [22:59:12]MH_SAM_APDU [22:59:12]CAPDU: 80 11 00 00 [22:59:12]Write to MH i2c: E2 08 00 50 32 80 11 00 00 00 00 00 00 FC [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:12]Read from MH i2c: E2 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 17 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 17 00 50 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 53 [22:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [22:59:12]wFMCommunicate OK [22:59:12]requested_item fd.num is exist - process it [22:59:12]SAM_PROTO_GetFieldsCounters [22:59:12]wFMCommunicate request_size=4 [22:59:12]MH_SAM_APDU [22:59:12]CAPDU: 80 13 00 00 [22:59:12]Write to MH i2c: E2 08 00 51 32 80 13 00 00 00 00 00 00 FF [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:13]Read from MH i2c: E2 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 62 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 62 00 51 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 AE EA 00 00 0E 04 04 00 11 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 95 [22:59:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 AE EA 00 00 0E 04 04 00 11 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 [22:59:13]wFMCommunicate OK [22:59:13]SAM_PROTO_GetFieldsCounters done [22:59:13]requested_item shift.num is exist - process it [22:59:13]requested_item shift.opened is exist - process it [22:59:13]req_shift_opened [22:59:13]FM_GetShiftState [22:59:13]SAM_PROTO_GetShiftState [22:59:13]wFMCommunicate request_size=4 [22:59:13]MH_SAM_APDU [22:59:13]CAPDU: 80 13 01 00 [22:59:13]Write to MH i2c: E2 08 00 52 32 80 13 01 00 00 00 00 00 01 [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:13]Read from MH i2c: E2 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 0E 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 0E 00 52 32 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 34 [22:59:13]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [22:59:13]wFMCommunicate OK [22:59:13]SAM_PROTO_GetShiftState done [22:59:13]FM_GetShiftState done [22:59:13]req_shift_opened done [22:59:13]requested_item shift.open_date is exist - process it [22:59:13]req_shift_open_date [22:59:13]req_shift_open_date done [22:59:13]produce_requested_data done [22:59:13]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60078,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [22:59:13]process_action_free close_receipt [22:59:13]json_value_free [22:59:13]json_value_free done [22:59:13]process_json_proto returns [22:59:13]Send response to host [22:59:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60078,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [22:59:13]free response buf [22:59:13]execute_script done [22:59:13]execute_script returns [22:59:13]free content buf [22:59:13]Sock 7.Close socket [22:59:13]Sock 7.Thread stoped [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]accept exits with 9 [23:09:22]New connection [23:09:22]New thread 3067252068 created [23:09:22]Thread 3067108708 joined [23:09:22]Waiting for new connection... [23:09:22] Sock 9.Parse request [23:09:22]Sock 9.Check first char [23:09:22]Sock 9.First char is OK [23:09:22]request: POST /json_proto HTTP/1.0 [23:09:22]Method: POST [23:09:22]URL: /json_proto [23:09:22]Method is POST - this is cgi request [23:09:22]url: /json_proto [23:09:22]query_string will be loaded in cgi processing [23:09:22]execute_cgi json_proto POST (null) [23:09:22]execute_cgi path=json_proto method=POST [23:09:22]POST find Content-Length [23:09:22]Host: 172.17.42.196:8080 [23:09:22]Content-Length: 2379 [23:09:22]Content-Type: application/json [23:09:22] [23:09:22]POST finish read [23:09:22]Found Content-Length = 2379 [23:09:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199849", "tax_sys" : 0, "items" : [ { "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650075420409", "name": "\u0421\u043E\u043A Rich \u0412\u0438\u0448\u043D\u044F 0,2", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620021192902", "name": "48 \u041A\u043E\u043F\u0435\u0435\u043A \u0441\u0442\u0430\u043A\u0430\u043D \u0428\u043E\u043A\u043E\u043B\u0430\u0434", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 800.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:22]execute_script... [23:09:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199849", "tax_sys" : 0, "items" : [ { "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650075420409", "name": "\u0421\u043E\u043A Rich \u0412\u0438\u0448\u043D\u044F 0,2", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620021192902", "name": "48 \u041A\u043E\u043F\u0435\u0435\u043A \u0441\u0442\u0430\u043A\u0430\u043D \u0428\u043E\u043A\u043E\u043B\u0430\u0434", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 800.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:22]POST & json_proto [23:09:22]process_json_proto [23:09:22]json parsed OK: [23:09:22]protocol is kg_v1.0 [23:09:22]action value=close_receipt [23:09:22]process_action close_receipt [23:09:22]cmd_close_receipt [23:09:22]MH_GetDate [23:09:22]Write to MH i2c: F0 00 00 53 32 74 [23:09:22]OFD Sender: No OFD packet to send [23:09:22]Write i2c OK [23:09:22]MH_I2C_Read... [23:09:22]Read from MH i2c: F0 [23:09:22]MH_I2C_Read... [23:09:22]Read from MH i2c: F0 09 00 [23:09:22]MH_I2C_Read... [23:09:22]Read from MH i2c: F0 09 00 53 32 00 A8 D3 1A 67 FF C4 6B 64 0B [23:09:22]GetLastDocTimeStamp 1729810754 [23:09:22]current date 1729811368 [23:09:22]FM_GetShiftState [23:09:22]SAM_PROTO_GetShiftState [23:09:22]wFMCommunicate request_size=4 [23:09:22]MH_SAM_APDU [23:09:22]CAPDU: 80 13 01 00 [23:09:22]Write to MH i2c: E2 08 00 54 32 80 13 01 00 00 00 00 00 03 [23:09:22]Write i2c OK [23:09:22]MH_I2C_Read... [23:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:22]Read from MH i2c: E2 [23:09:22]MH_I2C_Read... [23:09:22]Read from MH i2c: E2 0E 00 [23:09:22]MH_I2C_Read... [23:09:22]Read from MH i2c: E2 0E 00 54 32 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 36 [23:09:22]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [23:09:22]wFMCommunicate OK [23:09:22]SAM_PROTO_GetShiftState done [23:09:22]FM_GetShiftState done [23:09:22]opened in 1729730575 [23:09:22]opened+sec_in_day 1729816975 [23:09:22]quantity*price = 13000 [23:09:22]sum+1 = 13001 [23:09:22]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4650075420409 Сок Rich Вишня 0,2 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000325907 Напиток Фанта 0,45л ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001571528 Вода ASU пит н.газ персик ПЭТ 1,0 л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620021192902 48 Копеек стакан Шоколад 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 800.00 НСП 1% : 7.07 НДС 12% : 84.95 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 154 24.10.2024 23:09 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60079 ФПД: 102746394206033 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230928&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60079&fm=102746394206033&tin=02508201610067®Number=0000000000091622&sum=80000 0 [23:09:23]StoreToDocumentArchive [23:09:23]shift 529 fd 60079 [23:09:23]save to /storage/0529/doc_00060079 [23:09:23]save last doc name /storage/0529/doc_00060079 to /storage/kkm_last_doc_name [23:09:23]save OK [23:09:23]Clear old archive folders... [23:09:23]ProcessDocumentItem done err = 0, tmpTLVsize=989 [23:09:23]tlvbuf is B6EF1A70 [23:09:23]SAM_PROTO_ClearQueue [23:09:23]wFMCommunicate request_size=4 [23:09:23]MH_SAM_APDU [23:09:23]CAPDU: 80 09 00 00 [23:09:23]Write to MH i2c: E2 08 00 61 32 80 09 00 00 00 00 00 00 05 [23:09:23]Write i2c OK [23:09:23]MH_I2C_Read... [23:09:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:09:24]Read from MH i2c: E2 [23:09:24]MH_I2C_Read... [23:09:24]Read from MH i2c: E2 03 00 [23:09:24]MH_I2C_Read... [23:09:24]Read from MH i2c: E2 03 00 61 32 00 90 00 07 [23:09:24]RAPDU: 90 00 [23:09:24]wFMCommunicate OK [23:09:24]SAM_PROTO_ClearQueue done [23:09:24]KKMCreateOFDPacket [23:09:24]OFDProtocolAddRootSTLVToBuf [23:09:24]FM_MakeSignedData [23:09:24]FM_MakeSignedData [23:09:24]SAM_PROTO_SignData [23:09:24]wFMCommunicate request_size=4 [23:09:24]MH_SAM_APDU [23:09:24]CAPDU: 80 0D 01 02 [23:09:24]Write to MH i2c: E2 08 00 62 32 80 0D 01 02 00 00 00 00 0D [23:09:24]Write i2c OK [23:09:24]MH_I2C_Read... [23:09:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:09:24]Read from MH i2c: E2 [23:09:24]MH_I2C_Read... [23:09:24]Read from MH i2c: E2 03 00 [23:09:24]MH_I2C_Read... [23:09:24]Read from MH i2c: E2 03 00 62 32 00 90 00 08 [23:09:24]RAPDU: 90 00 [23:09:24]wFMCommunicate OK [23:09:24]wFMCommunicate request_size=255 [23:09:24]MH_SAM_APDU [23:09:24]CAPDU: 80 0D 02 02 FA 03 00 DD 03 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 [23:09:24]Write to MH i2c: E2 02 01 63 32 80 0D 02 02 FA 00 03 00 DD 03 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 00 00 27 [23:09:24]Write i2c OK [23:09:24]MH_I2C_Read... [23:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:24]Read from MH i2c: E2 [23:09:24]MH_I2C_Read... [23:09:24]Read from MH i2c: E2 03 00 [23:09:24]MH_I2C_Read... [23:09:24]Read from MH i2c: E2 03 00 63 32 00 90 00 09 [23:09:24]RAPDU: 90 00 [23:09:24]wFMCommunicate OK [23:09:24]wFMCommunicate request_size=255 [23:09:24]MH_SAM_APDU [23:09:24]CAPDU: 80 0D 02 02 FA 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E [23:09:24]Write to MH i2c: E2 02 01 64 32 80 0D 02 02 FA 00 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E 00 00 7C [23:09:24]Write i2c OK [23:09:24]MH_I2C_Read... [23:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:24]Read from MH i2c: E2 [23:09:24]MH_I2C_Read... [23:09:24]Read from MH i2c: E2 03 00 [23:09:24]MH_I2C_Read... [23:09:24]Read from MH i2c: E2 03 00 64 32 00 90 00 0A [23:09:24]RAPDU: 90 00 [23:09:24]wFMCommunicate OK [23:09:24]wFMCommunicate request_size=255 [23:09:24]MH_SAM_APDU [23:09:24]CAPDU: 80 0D 02 02 FA D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 30 32 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 [23:09:24]Write to MH i2c: E2 02 01 65 32 80 0D 02 02 FA 00 D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 30 32 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 00 00 82 [23:09:24]Write i2c OK [23:09:24]MH_I2C_Read... [23:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:24]Read from MH i2c: E2 [23:09:24]MH_I2C_Read... [23:09:24]Read from MH i2c: E2 03 00 [23:09:24]MH_I2C_Read... [23:09:24]Read from MH i2c: E2 03 00 65 32 00 90 00 0B [23:09:24]RAPDU: 90 00 [23:09:24]wFMCommunicate OK [23:09:24]wFMCommunicate request_size=248 [23:09:24]MH_SAM_APDU [23:09:24]CAPDU: 80 0D 02 02 F3 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 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 9A 00 00 00 F4 03 04 00 A8 D3 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AF EA 00 00 35 04 06 00 5D 72 82 54 1F 51 [23:09:24]Write to MH i2c: E2 FB 00 66 32 80 0D 02 02 F3 00 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 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 9A 00 00 00 F4 03 04 00 A8 D3 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AF EA 00 00 35 04 06 00 5D 72 82 54 1F 51 00 00 63 [23:09:24]Write i2c OK [23:09:24]MH_I2C_Read... [23:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:25]Read from MH i2c: E2 [23:09:25]MH_I2C_Read... [23:09:25]Read from MH i2c: E2 03 00 [23:09:25]MH_I2C_Read... [23:09:25]Read from MH i2c: E2 03 00 66 32 00 90 00 0C [23:09:25]RAPDU: 90 00 [23:09:25]wFMCommunicate OK [23:09:25]wFMCommunicate request_size=4 [23:09:25]MH_SAM_APDU [23:09:25]CAPDU: 80 0D 03 02 [23:09:25]Write to MH i2c: E2 08 00 67 32 80 0D 03 02 00 00 00 00 14 [23:09:25]Write i2c OK [23:09:25]MH_I2C_Read... [23:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:09:25]Read from MH i2c: E2 [23:09:25]MH_I2C_Read... [23:09:25]Read from MH i2c: E2 0B 00 [23:09:25]MH_I2C_Read... [23:09:25]Read from MH i2c: E2 0B 00 67 32 00 CE 30 EF 6B 62 F1 6A 69 90 00 93 [23:09:25]RAPDU: CE 30 EF 6B 62 F1 6A 69 90 00 [23:09:25]wFMCommunicate OK [23:09:25]SAM_PROTO_SignData done [23:09:25]FM_MakeSignedData done [23:09:25]CreateOFDProtocolMessage [23:09:25]wFMCommunicate request_size=4 [23:09:25]MH_SAM_APDU [23:09:25]CAPDU: 80 11 00 00 [23:09:25]Write to MH i2c: E2 08 00 68 32 80 11 00 00 00 00 00 00 14 [23:09:25]Write i2c OK [23:09:25]MH_I2C_Read... [23:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:25]Read from MH i2c: E2 [23:09:25]MH_I2C_Read... [23:09:25]Read from MH i2c: E2 17 00 [23:09:25]MH_I2C_Read... [23:09:25]Read from MH i2c: E2 17 00 68 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 6B [23:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [23:09:25]wFMCommunicate OK [23:09:25]CreateOFDProtocolMessage done [23:09:25]OFDSenderStorePacket 60079 [23:09:25]StoreOFDPacket docnum=60079 [23:09:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 F1 03 00 00 24 3D E9 03 12 3F 5A 03 01 00 03 00 DD 03 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 30 32 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 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 9A 00 00 00 F4 03 04 00 A8 D3 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AF EA 00 00 35 04 06 00 5D 72 82 54 1F 51 CE 30 EF 6B 62 F1 6A 69 [23:09:25]CheckFolder [23:09:25]dirname=/storage/ofd_packets [23:09:25]CheckFolder done [23:09:25]ProducePacketName [23:09:25]name=ofd_packets/00060079 [23:09:25]NVStorageSaveData ofd_packets/00060079 [23:09:25]File name is /storage/ofd_packets/00060079 [23:09:25]Write 1039 bytes [23:09:25]NVStorageSaveData done [23:09:25]OFDSenderStorePacket done [23:09:25]KKMCreateOFDPacket done [23:09:25]NVStorageSaveData kkm_last_timestamp [23:09:25]File name is /storage/kkm_last_timestamp [23:09:25]Write 4 bytes [23:09:25]NVStorageSaveData done [23:09:25]ExternCall_PrintAddStr [23:09:25]wPrintStart [23:09:25]Write to MH i2c: 01 00 00 69 32 9B [23:09:25]Write i2c OK [23:09:25]MH_I2C_Read... [23:09:25]Read from MH i2c: 01 [23:09:25]MH_I2C_Read... [23:09:25]Read from MH i2c: 01 07 00 [23:09:25]MH_I2C_Read... [23:09:25]Read from MH i2c: 01 07 00 69 32 00 00 00 00 00 FF 0F B0 [23:09:25]RasterBufferAndPrint [23:09:25]line Счет N : (3)199849 [23:09:25]line ИНН: 02508201610067 [23:09:25]line Контрольно-Кассовый Чек [23:09:25]line ПРОДАЖА [23:09:25]line Товар: 4870002329937 [23:09:25]line Напиток Lipton IceTea 1л персик Regular [23:09:25]line 1.000 * 130.00 [23:09:25]line = 130.00 [23:09:25]line НДС 12% НСП 1% [23:09:25]line > о реализуемом товаре [23:09:25]line Товар: 2000036210013 [23:09:25]line Кофе Капучино (GABB TRADE) [23:09:25]line 2.000 * 115.00 [23:09:25]line = 230.00 [23:09:25]line НДС 12% НСП 1% [23:09:25]line > о реализуемом товаре [23:09:25]line Товар: 4650075420409 [23:09:25]line Сок Rich Вишня 0,2 [23:09:25]line 1.000 * 85.00 [23:09:25]line = 85.00 [23:09:25]line НДС 12% НСП 1% [23:09:25]line > о реализуемом товаре [23:09:25]line Товар: 5449000325907 [23:09:25]line Напиток Фанта 0,45л ж/б [23:09:25]line 1.000 * 90.00 [23:09:25]line = 90.00 [23:09:25]line НДС 12% НСП 1% [23:09:25]line > о реализуемом товаре [23:09:25]line Товар: 4870001571528 [23:09:25]line Вода ASU пит н.газ персик ПЭТ 1,0 л [23:09:25]line 1.000 * 100.00 [23:09:25]line = 100.00 [23:09:25]line НДС 12% НСП 1% [23:09:25]line > о реализуемом товаре [23:09:25]line Товар: 4700000160792 [23:09:25]line Снек Курут классический (круглый) [23:09:25]line 1.000 * 60.00 [23:09:25]line = 60.00 [23:09:25]line НДС 12% НСП 1% [23:09:25]line > о реализуемом товаре [23:09:25]line Товар: 4620021192902 [23:09:25]line 48 Копеек стакан Шоколад [23:09:25]line 1.000 * 105.00 [23:09:25]line = 105.00 [23:09:25]line НДС 12% НСП 1% [23:09:25]line > о реализуемом товаре [23:09:25]line ИТОГО: 800.00 [23:09:25]line НСП 1% : 7.07 [23:09:25]line НДС 12% : 84.95 [23:09:25]line Наличными: 800.00 [23:09:25]line Безнал.: 0.00 [23:09:25]line Место: АЗС № 87 "Партнер Нефть" [23:09:25]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [23:09:25]line СНО: Общий режим [23:09:25]line Чек 154 24.10.2024 23:09 [23:09:25]line Смена: 529 ФФД: 1.0 [23:09:25]line ЗНМ: 0300000084 [23:09:25]line РНМ: 0000000000091622 [23:09:25]line Версия ККМ: 001 [23:09:25]line ФМ: 0000000000874674 [23:09:25]line ФД: 60079 [23:09:25]line ФПД: 102746394206033 [23:09:25]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230928&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60079&fm=102746394206033&tin=02508201610067®Number=0000000000091622&sum=80000 [23:09:25]line 0 [23:09:25]written 0, free lines is 4095 [23:09:25]OFD Sender: Processing packet 60079 [packets to send 30, broken 29] [23:09:25]ProducePacketName [23:09:25]name=ofd_packets/00060079 [23:09:25]OFD Sender: To server: pG, [23:09:25]CommunicateWithHost lk.salyk.kg:30040 [23:09:25]ConnectInit lk.salyk.kg [23:09:25]Connected sock=10 [23:09:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 F1 03 00 00 24 3D E9 03 12 3F 5A 03 01 00 03 00 DD 03 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 30 32 06 04 2B 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 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 9A 00 00 00 F4 03 04 00 A8 D3 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 AF EA 00 00 35 04 06 00 5D 72 82 54 1F 51 CE 30 EF 6B 62 F1 6A 69 [23:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 14 DC 47 00 5A 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 34 36 37 34 10 04 04 00 AF EA 00 00 F4 03 04 00 98 79 1A 67 B6 04 01 00 00 67 53 16 7E 5F 14 54 08 [23:09:26]CommunicateWithHost err = 0 [23:09:26]CheckOFDResponse [23:09:26]1017 (14) - 77093643461234 [23:09:26]1041 (16) - 0000000000874674 [23:09:26]1040 (4) - 60079 [23:09:26]1012 (4) - 24.10.2024 16:45 [23:09:26]1206 (1) - 0 [23:09:26]OFD Sender: Remove packet 60079 [23:09:26]ProducePacketName [23:09:26]name=ofd_packets/00060079 [23:09:26]NVStorageDeleteData [23:09:26]Write to MH i2c: 01 00 00 B8 32 EA [23:09:26]Write i2c OK [23:09:26]MH_I2C_Read... [23:09:26]Read from MH i2c: 01 [23:09:26]MH_I2C_Read... [23:09:26]Read from MH i2c: 01 07 00 [23:09:26]MH_I2C_Read... [23:09:26]Read from MH i2c: 01 07 00 B8 32 00 00 00 00 00 BD 0A B8 [23:09:26]RasterBufferAndPrint [23:09:26]line [23:09:26]line [23:09:26]line [23:09:26]line [23:09:26]line [23:09:26]written 0, free lines is 2761 [23:09:26]MH_Cut [23:09:26]Write to MH i2c: D1 01 00 BF 32 01 C3 [23:09:26]Write i2c OK [23:09:26]MH_I2C_Read... [23:09:26]Read from MH i2c: D1 [23:09:26]MH_I2C_Read... [23:09:26]Read from MH i2c: D1 01 00 [23:09:26]MH_I2C_Read... [23:09:26]Read from MH i2c: D1 01 00 BF 32 00 C2 [23:09:26]Write to MH i2c: 01 00 00 C0 32 F2 [23:09:26]Write i2c OK [23:09:26]MH_I2C_Read... [23:09:26]OFD Sender: No OFD packet to send [23:09:27]*** Cut start [23:09:27]*** Partial cut [23:09:27]*** CUTSNS_PIN = 1 [23:09:27]*** CUTSNS_PIN = 0 [23:09:27]*** Brake cut motor [23:09:28]Read from MH i2c: 01 [23:09:28]MH_I2C_Read... [23:09:28]*** Stop cut motor [23:09:28]*** Cut end [23:09:28]Read from MH i2c: 01 07 00 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: 01 07 00 C0 32 00 00 00 00 00 FF 0F 07 [23:09:28]process_action close_receipt done [23:09:28]requested_data is exist [23:09:28]produce_requested_data [23:09:28]requested_item fm.sn is exist - process it [23:09:28]wFMCommunicate request_size=4 [23:09:28]MH_SAM_APDU [23:09:28]CAPDU: 80 11 00 00 [23:09:28]Write to MH i2c: E2 08 00 C1 32 80 11 00 00 00 00 00 00 6D [23:09:28]Write i2c OK [23:09:28]MH_I2C_Read... [23:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:28]Read from MH i2c: E2 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 17 00 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 17 00 C1 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C4 [23:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [23:09:28]wFMCommunicate OK [23:09:28]requested_item fd.num is exist - process it [23:09:28]SAM_PROTO_GetFieldsCounters [23:09:28]wFMCommunicate request_size=4 [23:09:28]MH_SAM_APDU [23:09:28]CAPDU: 80 13 00 00 [23:09:28]Write to MH i2c: E2 08 00 C2 32 80 13 00 00 00 00 00 00 70 [23:09:28]Write i2c OK [23:09:28]MH_I2C_Read... [23:09:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:09:28]Read from MH i2c: E2 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 62 00 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 62 00 C2 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 AF EA 00 00 0E 04 04 00 11 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 0A [23:09: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 AF EA 00 00 0E 04 04 00 11 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 [23:09:28]wFMCommunicate OK [23:09:28]SAM_PROTO_GetFieldsCounters done [23:09:28]requested_item shift.num is exist - process it [23:09:28]requested_item shift.opened is exist - process it [23:09:28]req_shift_opened [23:09:28]FM_GetShiftState [23:09:28]SAM_PROTO_GetShiftState [23:09:28]wFMCommunicate request_size=4 [23:09:28]MH_SAM_APDU [23:09:28]CAPDU: 80 13 01 00 [23:09:28]Write to MH i2c: E2 08 00 C3 32 80 13 01 00 00 00 00 00 72 [23:09:28]Write i2c OK [23:09:28]MH_I2C_Read... [23:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:28]Read from MH i2c: E2 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 0E 00 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 0E 00 C3 32 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 A5 [23:09:28]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [23:09:28]wFMCommunicate OK [23:09:28]SAM_PROTO_GetShiftState done [23:09:28]FM_GetShiftState done [23:09:28]req_shift_opened done [23:09:28]requested_item shift.open_date is exist - process it [23:09:28]req_shift_open_date [23:09:28]req_shift_open_date done [23:09:28]produce_requested_data done [23:09:28]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60079,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [23:09:28]process_action_free close_receipt [23:09:28]json_value_free [23:09:28]json_value_free done [23:09:28]process_json_proto returns [23:09:28]Send response to host [23:09:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60079,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [23:09:28]free response buf [23:09:28]execute_script done [23:09:28]execute_script returns [23:09:28]free content buf [23:09:28]Sock 9.Close socket [23:09:28]Sock 9.Thread stoped [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:02]accept exits with 7 [23:14:02]New connection [23:14:02]New thread 3067108708 created [23:14:02]Thread 3067252068 joined [23:14:02]Waiting for new connection... [23:14:02] Sock 7.Parse request [23:14:02]Sock 7.Check first char [23:14:02]Sock 7.First char is OK [23:14:02]request: POST /json_proto HTTP/1.0 [23:14:02]Method: POST [23:14:02]URL: /json_proto [23:14:02]Method is POST - this is cgi request [23:14:02]url: /json_proto [23:14:02]query_string will be loaded in cgi processing [23:14:02]execute_cgi json_proto POST (null) [23:14:02]execute_cgi path=json_proto method=POST [23:14:02]POST find Content-Length [23:14:02]Host: 172.17.42.196:8080 [23:14:02]Content-Length: 851 [23:14:02]Content-Type: application/json [23:14:02] [23:14:02]POST finish read [23:14:02]Found Content-Length = 851 [23:14:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199850", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:02]execute_script... [23:14:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199850", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:02]POST & json_proto [23:14:02]process_json_proto [23:14:02]json parsed OK: [23:14:02]protocol is kg_v1.0 [23:14:02]action value=close_receipt [23:14:02]process_action close_receipt [23:14:02]cmd_close_receipt [23:14:02]MH_GetDate [23:14:02]Write to MH i2c: F0 00 00 C4 32 E5 [23:14:02]Write i2c OK [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: F0 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: F0 09 00 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: F0 09 00 C4 32 00 C0 D4 1A 67 FF C4 6B 64 95 [23:14:02]GetLastDocTimeStamp 1729811368 [23:14:02]current date 1729811648 [23:14:02]FM_GetShiftState [23:14:02]SAM_PROTO_GetShiftState [23:14:02]wFMCommunicate request_size=4 [23:14:02]MH_SAM_APDU [23:14:02]CAPDU: 80 13 01 00 [23:14:02]Write to MH i2c: E2 08 00 C5 32 80 13 01 00 00 00 00 00 74 [23:14:02]Write i2c OK [23:14:02]MH_I2C_Read... [23:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:02]Read from MH i2c: E2 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 0E 00 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 0E 00 C5 32 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 A7 [23:14:02]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [23:14:02]wFMCommunicate OK [23:14:02]SAM_PROTO_GetShiftState done [23:14:02]FM_GetShiftState done [23:14:02]opened in 1729730575 [23:14:02]opened+sec_in_day 1729816975 [23:14:02]quantity*price = 7500 [23:14:02]sum+1 = 7501 [23:14:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 0.00 Безнал.: 75.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 155 24.10.2024 23:14 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874674 ФД: 60080 ФПД: 197793344064801 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T231408&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60080&fm=197793344064801&tin=02508201610067®Number=0000000000091622&sum=7500 0 [23:14:04]StoreToDocumentArchive [23:14:04]shift 529 fd 60080 [23:14:04]save to /storage/0529/doc_00060080 [23:14:04]save last doc name /storage/0529/doc_00060080 to /storage/kkm_last_doc_name [23:14:04]save OK [23:14:04]Clear old archive folders... [23:14:04]ProcessDocumentItem done err = 0, tmpTLVsize=289 [23:14:04]tlvbuf is 00E67260 [23:14:04]SAM_PROTO_ClearQueue [23:14:04]wFMCommunicate request_size=4 [23:14:04]MH_SAM_APDU [23:14:04]CAPDU: 80 09 00 00 [23:14:04]Write to MH i2c: E2 08 00 D2 32 80 09 00 00 00 00 00 00 76 [23:14:04]Write i2c OK [23:14:04]MH_I2C_Read... [23:14:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:04]Read from MH i2c: E2 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: E2 03 00 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: E2 03 00 D2 32 00 90 00 78 [23:14:04]RAPDU: 90 00 [23:14:04]wFMCommunicate OK [23:14:04]SAM_PROTO_ClearQueue done [23:14:04]KKMCreateOFDPacket [23:14:04]OFDProtocolAddRootSTLVToBuf [23:14:04]FM_MakeSignedData [23:14:04]FM_MakeSignedData [23:14:04]SAM_PROTO_SignData [23:14:04]wFMCommunicate request_size=4 [23:14:04]MH_SAM_APDU [23:14:04]CAPDU: 80 0D 01 02 [23:14:04]Write to MH i2c: E2 08 00 D3 32 80 0D 01 02 00 00 00 00 7E [23:14:04]Write i2c OK [23:14:04]MH_I2C_Read... [23:14:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:04]Read from MH i2c: E2 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: E2 03 00 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: E2 03 00 D3 32 00 90 00 79 [23:14:04]RAPDU: 90 00 [23:14:04]wFMCommunicate OK [23:14:04]wFMCommunicate request_size=255 [23:14:04]MH_SAM_APDU [23:14:04]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 C0 D4 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [23:14:04]Write to MH i2c: E2 02 01 D4 32 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 C0 D4 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 A8 [23:14:04]Write i2c OK [23:14:04]MH_I2C_Read... [23:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:04]Read from MH i2c: E2 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: E2 03 00 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: E2 03 00 D4 32 00 90 00 7A [23:14:04]RAPDU: 90 00 [23:14:04]wFMCommunicate OK [23:14:04]wFMCommunicate request_size=48 [23:14:04]MH_SAM_APDU [23:14:04]CAPDU: 80 0D 02 02 2B 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 B0 EA 00 00 35 04 06 00 B3 E4 5A 03 0D 21 [23:14:04]Write to MH i2c: E2 33 00 D5 32 80 0D 02 02 2B 00 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 B0 EA 00 00 35 04 06 00 B3 E4 5A 03 0D 21 00 00 37 [23:14:04]Write i2c OK [23:14:04]MH_I2C_Read... [23:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:04]Read from MH i2c: E2 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: E2 03 00 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: E2 03 00 D5 32 00 90 00 7B [23:14:04]RAPDU: 90 00 [23:14:04]wFMCommunicate OK [23:14:04]wFMCommunicate request_size=4 [23:14:04]MH_SAM_APDU [23:14:04]CAPDU: 80 0D 03 02 [23:14:04]Write to MH i2c: E2 08 00 D6 32 80 0D 03 02 00 00 00 00 83 [23:14:04]Write i2c OK [23:14:04]MH_I2C_Read... [23:14:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:04]Read from MH i2c: E2 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: E2 0B 00 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: E2 0B 00 D6 32 00 BE 7F BA BE 8F D0 01 F1 90 00 8A [23:14:04]RAPDU: BE 7F BA BE 8F D0 01 F1 90 00 [23:14:04]wFMCommunicate OK [23:14:04]SAM_PROTO_SignData done [23:14:04]FM_MakeSignedData done [23:14:04]CreateOFDProtocolMessage [23:14:04]wFMCommunicate request_size=4 [23:14:04]MH_SAM_APDU [23:14:04]CAPDU: 80 11 00 00 [23:14:04]Write to MH i2c: E2 08 00 D7 32 80 11 00 00 00 00 00 00 83 [23:14:04]Write i2c OK [23:14:04]MH_I2C_Read... [23:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:04]Read from MH i2c: E2 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: E2 17 00 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: E2 17 00 D7 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 DA [23:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [23:14:04]wFMCommunicate OK [23:14:04]CreateOFDProtocolMessage done [23:14:04]OFDSenderStorePacket 60080 [23:14:04]StoreOFDPacket docnum=60080 [23:14:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 01 00 00 98 F6 2D 01 21 11 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 C0 D4 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 B0 EA 00 00 35 04 06 00 B3 E4 5A 03 0D 21 BE 7F BA BE 8F D0 01 F1 [23:14:04]CheckFolder [23:14:04]dirname=/storage/ofd_packets [23:14:04]CheckFolder done [23:14:04]ProducePacketName [23:14:04]name=ofd_packets/00060080 [23:14:04]NVStorageSaveData ofd_packets/00060080 [23:14:04]File name is /storage/ofd_packets/00060080 [23:14:04]Write 339 bytes [23:14:04]NVStorageSaveData done [23:14:04]OFDSenderStorePacket done [23:14:04]KKMCreateOFDPacket done [23:14:04]NVStorageSaveData kkm_last_timestamp [23:14:04]File name is /storage/kkm_last_timestamp [23:14:04]Write 4 bytes [23:14:04]NVStorageSaveData done [23:14:04]ExternCall_PrintAddStr [23:14:04]wPrintStart [23:14:04]Write to MH i2c: 01 00 00 D8 32 0A [23:14:04]Write i2c OK [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: 01 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: 01 07 00 [23:14:04]MH_I2C_Read... [23:14:04]Read from MH i2c: 01 07 00 D8 32 00 00 00 00 00 FF 0F 1F [23:14:04]RasterBufferAndPrint [23:14:04]line Счет N : (3)199850 [23:14:04]line ИНН: 02508201610067 [23:14:04]line Контрольно-Кассовый Чек [23:14:04]line ПРОДАЖА [23:14:04]line Товар: 5449000189325 [23:14:04]line Холодный чай Fuse персик 0,5л [23:14:04]line 1.000 * 75.00 [23:14:04]line = 75.00 [23:14:04]line НДС 12% НСП 1% [23:14:04]line > о реализуемом товаре [23:14:04]line ИТОГО: 75.00 [23:14:04]line НСП 1% : 0.66 [23:14:04]line НДС 12% : 7.96 [23:14:04]line Наличными: 0.00 [23:14:04]line Безнал.: 75.00 [23:14:04]line Место: АЗС № 87 "Партнер Нефть" [23:14:04]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [23:14:04]line СНО: Общий режим [23:14:04]line Чек 155 24.10.2024 23:14 [23:14:04]line Смена: 529 ФФД: 1.0 [23:14:04]line ЗНМ: 0300000084 [23:14:04]line РНМ: 0000000000091622 [23:14:04]line Версия ККМ: 001 [23:14:04]line Платежная система: Бакай Банк [23:14:04]line ФМ: 0000000000874674 [23:14:04]line ФД: 60080 [23:14:04]line ФПД: 197793344064801 [23:14:04]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T231408&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60080&fm=197793344064801&tin=02508201610067®Number=0000000000091622&sum=7500 [23:14:04]line 0 [23:14:04]OFD Sender: Processing packet 60080 [packets to send 30, broken 29] [23:14:04]ProducePacketName [23:14:04]name=ofd_packets/00060080 [23:14:04]OFD Sender: To server: pG, [23:14:04]CommunicateWithHost lk.salyk.kg:30040 [23:14:04]ConnectInit lk.salyk.kg [23:14:04]written 0, free lines is 4095 [23:14:05]Connected sock=10 [23:14:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 01 00 00 98 F6 2D 01 21 11 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 C0 D4 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 B0 EA 00 00 35 04 06 00 B3 E4 5A 03 0D 21 BE 7F BA BE 8F D0 01 F1 [23:14:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 92 69 47 00 2D 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 34 36 37 34 10 04 04 00 B0 EA 00 00 F4 03 04 00 B0 7A 1A 67 B6 04 01 00 00 6A 68 5B D7 E7 31 2A 51 [23:14:05]CommunicateWithHost err = 0 [23:14:05]CheckOFDResponse [23:14:05]1017 (14) - 77093643461234 [23:14:05]1041 (16) - 0000000000874674 [23:14:05]1040 (4) - 60080 [23:14:05]1012 (4) - 24.10.2024 16:49 [23:14:05]1206 (1) - 0 [23:14:05]OFD Sender: Remove packet 60080 [23:14:05]ProducePacketName [23:14:05]name=ofd_packets/00060080 [23:14:05]NVStorageDeleteData [23:14:05]Write to MH i2c: 01 00 00 03 33 36 [23:14:05]Write i2c OK [23:14:05]MH_I2C_Read... [23:14:05]Read from MH i2c: 01 [23:14:05]MH_I2C_Read... [23:14:05]Read from MH i2c: 01 07 00 [23:14:05]MH_I2C_Read... [23:14:05]Read from MH i2c: 01 07 00 03 33 00 00 00 00 00 C2 0C 0B [23:14:05]RasterBufferAndPrint [23:14:05]line [23:14:05]line [23:14:05]line [23:14:05]line [23:14:05]line [23:14:05]written 0, free lines is 3272 [23:14:05]MH_Cut [23:14:05]Write to MH i2c: D1 01 00 0A 33 01 0F [23:14:05]Write i2c OK [23:14:05]MH_I2C_Read... [23:14:05]Read from MH i2c: D1 [23:14:05]MH_I2C_Read... [23:14:05]Read from MH i2c: D1 01 00 [23:14:05]MH_I2C_Read... [23:14:05]Read from MH i2c: D1 01 00 0A 33 00 0E [23:14:05]Write to MH i2c: 01 00 00 0B 33 3E [23:14:05]Write i2c OK [23:14:05]MH_I2C_Read... [23:14:05]OFD Sender: No OFD packet to send [23:14:06]*** Cut start [23:14:06]*** Partial cut [23:14:06]*** CUTSNS_PIN = 1 [23:14:06]*** CUTSNS_PIN = 0 [23:14:06]*** Brake cut motor [23:14:06]Read from MH i2c: 01 [23:14:06]MH_I2C_Read... [23:14:06]*** Stop cut motor [23:14:06]*** Cut end [23:14:06]Read from MH i2c: 01 07 00 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: 01 07 00 0B 33 00 00 00 00 00 FF 0F 53 [23:14:06]process_action close_receipt done [23:14:06]requested_data is exist [23:14:06]produce_requested_data [23:14:06]requested_item fm.sn is exist - process it [23:14:06]wFMCommunicate request_size=4 [23:14:06]MH_SAM_APDU [23:14:06]CAPDU: 80 11 00 00 [23:14:06]Write to MH i2c: E2 08 00 0C 33 80 11 00 00 00 00 00 00 B9 [23:14:06]Write i2c OK [23:14:06]MH_I2C_Read... [23:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:06]Read from MH i2c: E2 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 17 00 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 17 00 0C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 10 [23:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [23:14:06]wFMCommunicate OK [23:14:06]requested_item fd.num is exist - process it [23:14:06]SAM_PROTO_GetFieldsCounters [23:14:06]wFMCommunicate request_size=4 [23:14:06]MH_SAM_APDU [23:14:06]CAPDU: 80 13 00 00 [23:14:06]Write to MH i2c: E2 08 00 0D 33 80 13 00 00 00 00 00 00 BC [23:14:06]Write i2c OK [23:14:06]MH_I2C_Read... [23:14:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:07]Read from MH i2c: E2 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 62 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 62 00 0D 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B0 EA 00 00 0E 04 04 00 11 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 5A [23:14: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B0 EA 00 00 0E 04 04 00 11 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 [23:14:07]wFMCommunicate OK [23:14:07]SAM_PROTO_GetFieldsCounters done [23:14:07]requested_item shift.num is exist - process it [23:14:07]requested_item shift.opened is exist - process it [23:14:07]req_shift_opened [23:14:07]FM_GetShiftState [23:14:07]SAM_PROTO_GetShiftState [23:14:07]wFMCommunicate request_size=4 [23:14:07]MH_SAM_APDU [23:14:07]CAPDU: 80 13 01 00 [23:14:07]Write to MH i2c: E2 08 00 0E 33 80 13 01 00 00 00 00 00 BE [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:07]Read from MH i2c: E2 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 0E 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 0E 00 0E 33 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 F1 [23:14:07]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [23:14:07]wFMCommunicate OK [23:14:07]SAM_PROTO_GetShiftState done [23:14:07]FM_GetShiftState done [23:14:07]req_shift_opened done [23:14:07]requested_item shift.open_date is exist - process it [23:14:07]req_shift_open_date [23:14:07]req_shift_open_date done [23:14:07]produce_requested_data done [23:14:07]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60080,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [23:14:07]process_action_free close_receipt [23:14:07]json_value_free [23:14:07]json_value_free done [23:14:07]process_json_proto returns [23:14:07]Send response to host [23:14:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60080,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [23:14:07]free response buf [23:14:07]execute_script done [23:14:07]execute_script returns [23:14:07]free content buf [23:14:07]Sock 7.Close socket [23:14:07]Sock 7.Thread stoped [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:28]accept exits with 9 [00:02:28]New connection [00:02:28]New thread 3067252068 created [00:02:28]Thread 3067108708 joined [00:02:28]Waiting for new connection... [00:02:28] Sock 9.Parse request [00:02:28]Sock 9.Check first char [00:02:28]Sock 9.First char is OK [00:02:28]request: POST /json_proto HTTP/1.0 [00:02:28]Method: POST [00:02:28]URL: /json_proto [00:02:28]Method is POST - this is cgi request [00:02:28]url: /json_proto [00:02:28]query_string will be loaded in cgi processing [00:02:28]execute_cgi json_proto POST (null) [00:02:28]execute_cgi path=json_proto method=POST [00:02:28]POST find Content-Length [00:02:28]Host: 172.17.42.196:8080 [00:02:28]Content-Length: 646 [00:02:28]Content-Type: application/json [00:02:28] [00:02:28]POST finish read [00:02:28]Found Content-Length = 646 [00:02:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)199851", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:28]execute_script... [00: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 : (3)199851", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:28]POST & json_proto [00:02:28]process_json_proto [00:02:28]json parsed OK: [00:02:28]protocol is kg_v1.0 [00:02:28]action value=close_receipt [00:02:28]process_action close_receipt [00:02:28]cmd_close_receipt [00:02:28]MH_GetDate [00:02:28]Write to MH i2c: F0 00 00 0F 33 31 [00:02:28]Write i2c OK [00:02:28]MH_I2C_Read... [00:02:28]Read from MH i2c: F0 [00:02:28]MH_I2C_Read... [00:02:28]Read from MH i2c: F0 09 00 [00:02:28]MH_I2C_Read... [00:02:28]Read from MH i2c: F0 09 00 0F 33 00 1A E0 1A 67 FF C4 6B 64 47 [00:02:28]GetLastDocTimeStamp 1729811648 [00:02:28]current date 1729814554 [00:02:28]FM_GetShiftState [00:02:28]SAM_PROTO_GetShiftState [00:02:28]wFMCommunicate request_size=4 [00:02:28]MH_SAM_APDU [00:02:28]CAPDU: 80 13 01 00 [00:02:28]Write to MH i2c: E2 08 00 10 33 80 13 01 00 00 00 00 00 C0 [00:02:28]Write i2c OK [00:02:28]MH_I2C_Read... [00:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:28]Read from MH i2c: E2 [00:02:28]MH_I2C_Read... [00:02:28]Read from MH i2c: E2 0E 00 [00:02:28]MH_I2C_Read... [00:02:28]Read from MH i2c: E2 0E 00 10 33 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 F3 [00:02:28]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [00:02:28]wFMCommunicate OK [00:02:28]SAM_PROTO_GetShiftState done [00:02:28]FM_GetShiftState done [00:02:28]opened in 1729730575 [00:02:28]opened+sec_in_day 1729816975 [00:02:28]quantity*price = 13000 [00:02:28]sum+1 = 13001 [00:02:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 156 25.10.2024 00:02 Смена: 529 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60081 ФПД: 131614106068572 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T000234&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60081&fm=131614106068572&tin=02508201610067®Number=0000000000091622&sum=13000 0 [00:02:29]StoreToDocumentArchive [00:02:29]shift 529 fd 60081 [00:02:29]save to /storage/0529/doc_00060081 [00:02:29]save last doc name /storage/0529/doc_00060081 to /storage/kkm_last_doc_name [00:02:29]save OK [00:02:29]Clear old archive folders... [00:02:29]ProcessDocumentItem done err = 0, tmpTLVsize=282 [00:02:29]tlvbuf is 00EBB070 [00:02:29]SAM_PROTO_ClearQueue [00:02:29]wFMCommunicate request_size=4 [00:02:29]MH_SAM_APDU [00:02:29]CAPDU: 80 09 00 00 [00:02:29]Write to MH i2c: E2 08 00 1D 33 80 09 00 00 00 00 00 00 C2 [00:02:29]Write i2c OK [00:02:29]MH_I2C_Read... [00:02:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:02:29]Read from MH i2c: E2 [00:02:29]MH_I2C_Read... [00:02:29]Read from MH i2c: E2 03 00 [00:02:29]MH_I2C_Read... [00:02:29]Read from MH i2c: E2 03 00 1D 33 00 90 00 C4 [00:02:29]RAPDU: 90 00 [00:02:29]wFMCommunicate OK [00:02:29]SAM_PROTO_ClearQueue done [00:02:29]KKMCreateOFDPacket [00:02:29]OFDProtocolAddRootSTLVToBuf [00:02:29]FM_MakeSignedData [00:02:29]FM_MakeSignedData [00:02:29]SAM_PROTO_SignData [00:02:29]wFMCommunicate request_size=4 [00:02:29]MH_SAM_APDU [00:02:29]CAPDU: 80 0D 01 02 [00:02:29]Write to MH i2c: E2 08 00 1E 33 80 0D 01 02 00 00 00 00 CA [00:02:29]Write i2c OK [00:02:29]MH_I2C_Read... [00:02:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:02:29]Read from MH i2c: E2 [00:02:29]MH_I2C_Read... [00:02:29]Read from MH i2c: E2 03 00 [00:02:29]MH_I2C_Read... [00:02:29]Read from MH i2c: E2 03 00 1E 33 00 90 00 C5 [00:02:29]RAPDU: 90 00 [00:02:29]wFMCommunicate OK [00:02:29]wFMCommunicate request_size=255 [00:02:29]MH_SAM_APDU [00:02:29]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 1A E0 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 [00:02:29]Write to MH i2c: E2 02 01 1F 33 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 1A E0 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 00 00 FE [00:02:29]Write i2c OK [00:02:29]MH_I2C_Read... [00:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:30]Read from MH i2c: E2 [00:02:30]MH_I2C_Read... [00:02:30]Read from MH i2c: E2 03 00 [00:02:30]MH_I2C_Read... [00:02:30]Read from MH i2c: E2 03 00 1F 33 00 90 00 C6 [00:02:30]RAPDU: 90 00 [00:02:30]wFMCommunicate OK [00:02:30]wFMCommunicate request_size=41 [00:02:30]MH_SAM_APDU [00:02:30]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 B1 EA 00 00 35 04 06 00 77 B3 CC 0A 26 5C [00:02:30]Write to MH i2c: E2 2C 00 20 33 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 B1 EA 00 00 35 04 06 00 77 B3 CC 0A 26 5C 00 00 BD [00:02:30]Write i2c OK [00:02:30]MH_I2C_Read... [00:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:30]Read from MH i2c: E2 [00:02:30]MH_I2C_Read... [00:02:30]Read from MH i2c: E2 03 00 [00:02:30]MH_I2C_Read... [00:02:30]Read from MH i2c: E2 03 00 20 33 00 90 00 C7 [00:02:30]RAPDU: 90 00 [00:02:30]wFMCommunicate OK [00:02:30]wFMCommunicate request_size=4 [00:02:30]MH_SAM_APDU [00:02:30]CAPDU: 80 0D 03 02 [00:02:30]Write to MH i2c: E2 08 00 21 33 80 0D 03 02 00 00 00 00 CF [00:02:30]Write i2c OK [00:02:30]MH_I2C_Read... [00:02:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:02:30]Read from MH i2c: E2 [00:02:30]MH_I2C_Read... [00:02:30]Read from MH i2c: E2 0B 00 [00:02:30]MH_I2C_Read... [00:02:30]Read from MH i2c: E2 0B 00 21 33 00 17 07 C4 00 86 DD 12 27 90 00 4E [00:02:30]RAPDU: 17 07 C4 00 86 DD 12 27 90 00 [00:02:30]wFMCommunicate OK [00:02:30]SAM_PROTO_SignData done [00:02:30]FM_MakeSignedData done [00:02:30]CreateOFDProtocolMessage [00:02:30]wFMCommunicate request_size=4 [00:02:30]MH_SAM_APDU [00:02:30]CAPDU: 80 11 00 00 [00:02:30]Write to MH i2c: E2 08 00 22 33 80 11 00 00 00 00 00 00 CF [00:02:30]Write i2c OK [00:02:30]MH_I2C_Read... [00:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:30]Read from MH i2c: E2 [00:02:30]MH_I2C_Read... [00:02:30]Read from MH i2c: E2 17 00 [00:02:30]MH_I2C_Read... [00:02:30]Read from MH i2c: E2 17 00 22 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 26 [00:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [00:02:30]wFMCommunicate OK [00:02:30]CreateOFDProtocolMessage done [00:02:30]OFDSenderStorePacket 60081 [00:02:30]StoreOFDPacket docnum=60081 [00:02:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 6A 7A 26 01 4E 02 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 1A E0 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 B1 EA 00 00 35 04 06 00 77 B3 CC 0A 26 5C 17 07 C4 00 86 DD 12 27 [00:02:30]CheckFolder [00:02:30]dirname=/storage/ofd_packets [00:02:30]CheckFolder done [00:02:30]ProducePacketName [00:02:30]name=ofd_packets/00060081 [00:02:30]NVStorageSaveData ofd_packets/00060081 [00:02:30]File name is /storage/ofd_packets/00060081 [00:02:30]Write 332 bytes [00:02:30]NVStorageSaveData done [00:02:30]OFDSenderStorePacket done [00:02:30]KKMCreateOFDPacket done [00:02:30]NVStorageSaveData kkm_last_timestamp [00:02:30]File name is /storage/kkm_last_timestamp [00:02:30]Write 4 bytes [00:02:30]NVStorageSaveData done [00:02:30]ExternCall_PrintAddStr [00:02:30]wPrintStart [00:02:30]Write to MH i2c: 01 00 00 23 33 56 [00:02:30]Write i2c OK [00:02:30]MH_I2C_Read... [00:02:30]Read from MH i2c: 01 [00:02:30]MH_I2C_Read... [00:02:30]Read from MH i2c: 01 07 00 [00:02:30]MH_I2C_Read... [00:02:30]Read from MH i2c: 01 07 00 23 33 00 00 00 00 00 FF 0F 6B [00:02:30]RasterBufferAndPrint [00:02:30]line Счет N : (3)199851 [00:02:30]line ИНН: 02508201610067 [00:02:30]line Контрольно-Кассовый Чек [00:02:30]line ПРОДАЖА [00:02:30]line Товар: 2000036220012 [00:02:30]line Кофе Капучино XL(GABB TRADE) [00:02:30]line 1.000 * 130.00 [00:02:30]line = 130.00 [00:02:30]line НДС 12% НСП 1% [00:02:30]line > о реализуемом товаре [00:02:30]line ИТОГО: 130.00 [00:02:30]line НСП 1% : 1.15 [00:02:30]line НДС 12% : 13.80 [00:02:30]line Наличными: 130.00 [00:02:30]line Безнал.: 0.00 [00:02:30]line Место: АЗС № 87 "Партнер Нефть" [00:02:30]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [00:02:30]line СНО: Общий режим [00:02:30]line Чек 156 25.10.2024 00:02 [00:02:30]line Смена: 529 ФФД: 1.0 [00:02:30]line ЗНМ: 0300000084 [00:02:30]line РНМ: 0000000000091622 [00:02:30]line Версия ККМ: 001 [00:02:30]line ФМ: 0000000000874674 [00:02:30]line ФД: 60081 [00:02:30]line ФПД: 131614106068572 [00:02:30]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T000234&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60081&fm=131614106068572&tin=02508201610067®Number=0000000000091622&sum=13000 [00:02:30]line 0 [00:02:30]OFD Sender: Processing packet 60081 [packets to send 30, broken 29] [00:02:30]ProducePacketName [00:02:30]name=ofd_packets/00060081 [00:02:30]OFD Sender: To server: pG, [00:02:30]CommunicateWithHost lk.salyk.kg:30040 [00:02:30]ConnectInit lk.salyk.kg [00:02:30]written 0, free lines is 4095 [00:02:30]Connected sock=10 [00: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 34 36 37 34 2E 01 00 00 6A 7A 26 01 4E 02 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 1A E0 1A 67 0E 04 04 00 11 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 B1 EA 00 00 35 04 06 00 77 B3 CC 0A 26 5C 17 07 C4 00 86 DD 12 27 [00:02:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 1E 0D 47 00 21 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 34 36 37 34 10 04 04 00 B1 EA 00 00 F4 03 04 00 09 86 1A 67 B6 04 01 00 00 CF 4A F0 5C 3A E2 15 80 [00:02:31]CommunicateWithHost err = 0 [00:02:31]CheckOFDResponse [00:02:31]1017 (14) - 77093643461234 [00:02:31]1041 (16) - 0000000000874674 [00:02:31]1040 (4) - 60081 [00:02:31]1012 (4) - 24.10.2024 17:38 [00:02:31]1206 (1) - 0 [00:02:31]OFD Sender: Remove packet 60081 [00:02:31]ProducePacketName [00:02:31]name=ofd_packets/00060081 [00:02:31]NVStorageDeleteData [00:02:31]Write to MH i2c: 01 00 00 4C 33 7F [00:02:31]Write i2c OK [00:02:31]MH_I2C_Read... [00:02:31]Read from MH i2c: 01 [00:02:31]MH_I2C_Read... [00:02:31]Read from MH i2c: 01 07 00 [00:02:31]MH_I2C_Read... [00:02:31]Read from MH i2c: 01 07 00 4C 33 00 00 00 00 00 FC 0C 8E [00:02:31]RasterBufferAndPrint [00:02:31]line [00:02:31]line [00:02:31]line [00:02:31]line [00:02:31]line [00:02:31]written 0, free lines is 3330 [00:02:31]MH_Cut [00:02:31]Write to MH i2c: D1 01 00 53 33 01 58 [00:02:31]Write i2c OK [00:02:31]MH_I2C_Read... [00:02:31]Read from MH i2c: D1 [00:02:31]MH_I2C_Read... [00:02:31]Read from MH i2c: D1 01 00 [00:02:31]MH_I2C_Read... [00:02:31]Read from MH i2c: D1 01 00 53 33 00 57 [00:02:31]Write to MH i2c: 01 00 00 54 33 87 [00:02:31]Write i2c OK [00:02:31]MH_I2C_Read... [00:02:31]OFD Sender: No OFD packet to send [00:02:31]*** Cut start [00:02:31]*** Partial cut [00:02:31]*** CUTSNS_PIN = 1 [00:02:31]*** CUTSNS_PIN = 0 [00:02:32]*** Brake cut motor [00:02:32]Read from MH i2c: 01 [00:02:32]MH_I2C_Read... [00:02:32]*** Stop cut motor [00:02:32]*** Cut end [00:02:32]Read from MH i2c: 01 07 00 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: 01 07 00 54 33 00 00 00 00 00 FF 0F 9C [00:02:32]process_action close_receipt done [00:02:32]requested_data is exist [00:02:32]produce_requested_data [00:02:32]requested_item fm.sn is exist - process it [00:02:32]wFMCommunicate request_size=4 [00:02:32]MH_SAM_APDU [00:02:32]CAPDU: 80 11 00 00 [00:02:32]Write to MH i2c: E2 08 00 55 33 80 11 00 00 00 00 00 00 02 [00:02:32]Write i2c OK [00:02:32]MH_I2C_Read... [00:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:32]Read from MH i2c: E2 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 55 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 59 [00:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [00:02:32]wFMCommunicate OK [00:02:32]requested_item fd.num is exist - process it [00:02:32]SAM_PROTO_GetFieldsCounters [00:02:32]wFMCommunicate request_size=4 [00:02:32]MH_SAM_APDU [00:02:32]CAPDU: 80 13 00 00 [00:02:32]Write to MH i2c: E2 08 00 56 33 80 13 00 00 00 00 00 00 05 [00:02:32]Write i2c OK [00:02:32]MH_I2C_Read... [00:02:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:32]Read from MH i2c: E2 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 62 00 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 62 00 56 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B1 EA 00 00 0E 04 04 00 11 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 A7 [00: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B1 EA 00 00 0E 04 04 00 11 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 [00:02:32]wFMCommunicate OK [00:02:32]SAM_PROTO_GetFieldsCounters done [00:02:32]requested_item shift.num is exist - process it [00:02:32]requested_item shift.opened is exist - process it [00:02:32]req_shift_opened [00:02:32]FM_GetShiftState [00:02:32]SAM_PROTO_GetShiftState [00:02:32]wFMCommunicate request_size=4 [00:02:32]MH_SAM_APDU [00:02:32]CAPDU: 80 13 01 00 [00:02:32]Write to MH i2c: E2 08 00 57 33 80 13 01 00 00 00 00 00 07 [00:02:32]Write i2c OK [00:02:32]MH_I2C_Read... [00:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:32]Read from MH i2c: E2 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 0E 00 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 0E 00 57 33 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 3A [00:02:32]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [00:02:32]wFMCommunicate OK [00:02:32]SAM_PROTO_GetShiftState done [00:02:32]FM_GetShiftState done [00:02:32]req_shift_opened done [00:02:32]requested_item shift.open_date is exist - process it [00:02:32]req_shift_open_date [00:02:32]req_shift_open_date done [00:02:32]produce_requested_data done [00:02:32]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60081,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [00:02:32]process_action_free close_receipt [00:02:32]json_value_free [00:02:32]json_value_free done [00:02:32]process_json_proto returns [00:02:32]Send response to host [00:02:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60081,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [00:02:32]free response buf [00:02:32]execute_script done [00:02:32]execute_script returns [00:02:32]free content buf [00:02:32]Sock 9.Close socket [00:02:32]Sock 9.Thread stoped [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]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:50]accept exits with 7 [00:10:50]New connection [00:10:50]New thread 3067108708 created [00:10:50]Thread 3067252068 joined [00:10:50]Waiting for new connection... [00:10:50] Sock 7.Parse request [00:10:50]Sock 7.Check first char [00:10:50]Sock 7.First char is OK [00:10:50]request: POST /json_proto HTTP/1.0 [00:10:50]Method: POST [00:10:50]URL: /json_proto [00:10:50]Method is POST - this is cgi request [00:10:50]url: /json_proto [00:10:50]query_string will be loaded in cgi processing [00:10:50]execute_cgi json_proto POST (null) [00:10:50]execute_cgi path=json_proto method=POST [00:10:50]POST find Content-Length [00:10:50]Host: 172.17.42.196:8080 [00:10:50]Content-Length: 215 [00:10:50]Content-Type: application/json [00:10:50] [00:10:50]POST finish read [00:10:50]Found Content-Length = 215 [00:10:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:50]execute_script... [00:10:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:50]POST & json_proto [00:10:50]process_json_proto [00:10:50]json parsed OK: [00:10:50]protocol is kg_v1.0 [00:10:50]action value=get_value [00:10:50]process_action get_value [00:10:50]cmd_get_value [00:10:50]process_action get_value done [00:10:50]requested_data is exist [00:10:50]produce_requested_data [00:10:50]requested_item kkm.sn is exist - process it [00:10:50]requested_item kkm.ver is exist - process it [00:10:50]requested_item fm.sn is exist - process it [00:10:50]wFMCommunicate request_size=4 [00:10:50]MH_SAM_APDU [00:10:50]CAPDU: 80 11 00 00 [00:10:50]Write to MH i2c: E2 08 00 58 33 80 11 00 00 00 00 00 00 05 [00:10:50]Write i2c OK [00:10:50]MH_I2C_Read... [00:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:50]Read from MH i2c: E2 [00:10:50]MH_I2C_Read... [00:10:50]Read from MH i2c: E2 17 00 [00:10:50]MH_I2C_Read... [00:10:50]Read from MH i2c: E2 17 00 58 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 5C [00:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [00:10:50]wFMCommunicate OK [00:10:50]requested_item fd.num is exist - process it [00:10:50]SAM_PROTO_GetFieldsCounters [00:10:50]wFMCommunicate request_size=4 [00:10:50]MH_SAM_APDU [00:10:50]CAPDU: 80 13 00 00 [00:10:50]Write to MH i2c: E2 08 00 59 33 80 13 00 00 00 00 00 00 08 [00:10:50]Write i2c OK [00:10:50]MH_I2C_Read... [00:10:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:50]Read from MH i2c: E2 [00:10:50]MH_I2C_Read... [00:10:50]Read from MH i2c: E2 62 00 [00:10:50]MH_I2C_Read... [00:10:50]Read from MH i2c: E2 62 00 59 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B1 EA 00 00 0E 04 04 00 11 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 AA [00:10: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B1 EA 00 00 0E 04 04 00 11 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 [00:10:50]wFMCommunicate OK [00:10:50]SAM_PROTO_GetFieldsCounters done [00:10:50]requested_item shift.num is exist - process it [00:10:50]requested_item shift.opened is exist - process it [00:10:50]req_shift_opened [00:10:50]FM_GetShiftState [00:10:50]SAM_PROTO_GetShiftState [00:10:50]wFMCommunicate request_size=4 [00:10:50]MH_SAM_APDU [00:10:50]CAPDU: 80 13 01 00 [00:10:50]Write to MH i2c: E2 08 00 5A 33 80 13 01 00 00 00 00 00 0A [00:10:50]Write i2c OK [00:10:50]MH_I2C_Read... [00:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:50]Read from MH i2c: E2 [00:10:50]MH_I2C_Read... [00:10:50]Read from MH i2c: E2 0E 00 [00:10:50]MH_I2C_Read... [00:10:50]Read from MH i2c: E2 0E 00 5A 33 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 3D [00:10:50]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [00:10:50]wFMCommunicate OK [00:10:50]SAM_PROTO_GetShiftState done [00:10:50]FM_GetShiftState done [00:10:50]req_shift_opened done [00:10:50]requested_item shift.open_date is exist - process it [00:10:50]req_shift_open_date [00:10:50]req_shift_open_date done [00:10:50]produce_requested_data done [00:10:50]produce_requested_data return {"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60081,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [00:10:50]process_action_free get_value [00:10:50]json_value_free [00:10:50]json_value_free done [00:10:50]process_json_proto returns [00:10:50]Send response to host [00:10:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60081,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [00:10:50]free response buf [00:10:50]execute_script done [00:10:50]execute_script returns [00:10:50]free content buf [00:10:50]Sock 7.Close socket [00:10:50]Sock 7.Thread stoped [00:10:50]accept exits with 9 [00:10:50]New connection [00:10:50]New thread 3067252068 created [00:10:50]Thread 3067108708 joined [00:10:50]Waiting for new connection... [00:10:50] Sock 9.Parse request [00:10:50]Sock 9.Check first char [00:10:50]Sock 9.First char is OK [00:10:50]request: POST /json_proto HTTP/1.0 [00:10:50]Method: POST [00:10:50]URL: /json_proto [00:10:50]Method is POST - this is cgi request [00:10:50]url: /json_proto [00:10:50]query_string will be loaded in cgi processing [00:10:50]execute_cgi json_proto POST (null) [00:10:50]execute_cgi path=json_proto method=POST [00:10:50]POST find Content-Length [00:10:50]Host: 172.17.42.196:8080 [00:10:50]Content-Length: 331 [00:10:50]Content-Type: application/json [00:10:50] [00:10:50]POST finish read [00:10:50]Found Content-Length = 331 [00:10:50]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:10:50]execute_script... [00:10:50]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:10:50]POST & json_proto [00:10:50]process_json_proto [00:10:50]json parsed OK: [00:10:50]protocol is kg_v1.0 [00:10:50]action value=get_value [00:10:50]process_action get_value [00:10:50]cmd_get_value [00:10:50]process_action get_value done [00:10:50]requested_data is exist [00:10:50]produce_requested_data [00:10:50]requested_item fm.sale.total is exist - process it [00:10:50]SAM_PROTO_GetFMData [00:10:50]wFMCommunicate request_size=4 [00:10:50]MH_SAM_APDU [00:10:50]CAPDU: 80 13 03 00 [00:10:50]Write to MH i2c: E2 08 00 5B 33 80 13 03 00 00 00 00 00 0D [00:10:50]Write i2c OK [00:10:50]MH_I2C_Read... [00:10:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:51]Read from MH i2c: E2 [00:10:51]MH_I2C_Read... [00:10:51]Read from MH i2c: E2 FD 00 [00:10:51]MH_I2C_Read... [00:10:51]Read from MH i2c: E2 FD 00 5B 33 00 C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 FD [00:10:51]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 [00:10:51]wFMCommunicate OK [00:10:51]wFMCommunicate request_size=4 [00:10:51]MH_SAM_APDU [00:10:51]CAPDU: 80 17 00 00 [00:10:51]Write to MH i2c: E2 08 00 5C 33 80 17 00 00 00 00 00 00 0F [00:10:51]Write i2c OK [00:10:51]MH_I2C_Read... [00:10:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:51]Read from MH i2c: E2 [00:10:51]MH_I2C_Read... [00:10:51]Read from MH i2c: E2 FD 00 [00:10:51]MH_I2C_Read... [00:10:51]Read from MH i2c: E2 FD 00 5C 33 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 7C [00:10:51]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:10:51]wFMCommunicate OK [00:10:51]wFMCommunicate request_size=4 [00:10:51]MH_SAM_APDU [00:10:51]CAPDU: 80 17 00 00 [00:10:51]Write to MH i2c: E2 08 00 5D 33 80 17 00 00 00 00 00 00 10 [00:10:51]Write i2c OK [00:10:51]MH_I2C_Read... [00:10:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:51]Read from MH i2c: E2 [00:10:51]MH_I2C_Read... [00:10:51]Read from MH i2c: E2 FD 00 [00:10:51]MH_I2C_Read... [00:10:51]Read from MH i2c: E2 FD 00 5D 33 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BE [00:10:51]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:51]wFMCommunicate OK [00:10:51]wFMCommunicate request_size=4 [00:10:51]MH_SAM_APDU [00:10:51]CAPDU: 80 17 00 00 [00:10:51]Write to MH i2c: E2 08 00 5E 33 80 17 00 00 00 00 00 00 11 [00:10:51]Write i2c OK [00:10:51]MH_I2C_Read... [00:10:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:51]Read from MH i2c: E2 [00:10:51]MH_I2C_Read... [00:10:51]Read from MH i2c: E2 FD 00 [00:10:51]MH_I2C_Read... [00:10:51]Read from MH i2c: E2 FD 00 5E 33 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8C [00:10:51]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:51]wFMCommunicate OK [00:10:51]wFMCommunicate request_size=4 [00:10:51]MH_SAM_APDU [00:10:51]CAPDU: 80 17 00 00 [00:10:51]Write to MH i2c: E2 08 00 5F 33 80 17 00 00 00 00 00 00 12 [00:10:51]Write i2c OK [00:10:51]MH_I2C_Read... [00:10:51]OFD Sender: No OFD packet to send [00:10:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:10:52]Read from MH i2c: E2 [00:10:52]MH_I2C_Read... [00:10:52]Read from MH i2c: E2 DF 00 [00:10:52]MH_I2C_Read... [00:10:52]Read from MH i2c: E2 DF 00 5F 33 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F2 [00:10:52]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:10:52]wFMCommunicate OK [00:10:52]SAM_PROTO_GetFMData done [00:10:52]requested_item fm.sale_refund.total is exist - process it [00:10:52]requested_item fm.buy.total is exist - process it [00:10:52]requested_item shift.sale.total is exist - process it [00:10:52]SAM_PROTO_GetShiftData [00:10:52]wFMCommunicate request_size=4 [00:10:52]MH_SAM_APDU [00:10:52]CAPDU: 80 13 02 00 [00:10:52]Write to MH i2c: E2 08 00 60 33 80 13 02 00 00 00 00 00 11 [00:10:52]Write i2c OK [00:10:52]MH_I2C_Read... [00:10:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:52]Read from MH i2c: E2 [00:10:52]MH_I2C_Read... [00:10:52]Read from MH i2c: E2 FD 00 [00:10:52]MH_I2C_Read... [00:10:52]Read from MH i2c: E2 FD 00 60 33 00 AE 04 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E5 [00:10:52]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:10:52]wFMCommunicate OK [00:10:52]wFMCommunicate request_size=4 [00:10:52]MH_SAM_APDU [00:10:52]CAPDU: 80 17 00 00 [00:10:52]Write to MH i2c: E2 08 00 61 33 80 17 00 00 00 00 00 00 14 [00:10:52]Write i2c OK [00:10:52]MH_I2C_Read... [00:10:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:52]Read from MH i2c: E2 [00:10:52]MH_I2C_Read... [00:10:52]Read from MH i2c: E2 FD 00 [00:10:52]MH_I2C_Read... [00:10:52]Read from MH i2c: E2 FD 00 61 33 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 36 [00:10:52]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 [00:10:52]wFMCommunicate OK [00:10:52]wFMCommunicate request_size=4 [00:10:52]MH_SAM_APDU [00:10:52]CAPDU: 80 17 00 00 [00:10:52]Write to MH i2c: E2 08 00 62 33 80 17 00 00 00 00 00 00 15 [00:10:52]Write i2c OK [00:10:52]MH_I2C_Read... [00:10:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:53]Read from MH i2c: E2 [00:10:53]MH_I2C_Read... [00:10:53]Read from MH i2c: E2 FD 00 [00:10:53]MH_I2C_Read... [00:10:53]Read from MH i2c: E2 FD 00 62 33 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CC [00:10:53]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 [00:10:53]wFMCommunicate OK [00:10:53]wFMCommunicate request_size=4 [00:10:53]MH_SAM_APDU [00:10:53]CAPDU: 80 17 00 00 [00:10:53]Write to MH i2c: E2 08 00 63 33 80 17 00 00 00 00 00 00 16 [00:10:53]Write i2c OK [00:10:53]MH_I2C_Read... [00:10:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:53]Read from MH i2c: E2 [00:10:53]MH_I2C_Read... [00:10:53]Read from MH i2c: E2 FD 00 [00:10:53]MH_I2C_Read... [00:10:53]Read from MH i2c: E2 FD 00 63 33 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 88 [00:10:53]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 [00:10:53]wFMCommunicate OK [00:10:53]wFMCommunicate request_size=4 [00:10:53]MH_SAM_APDU [00:10:53]CAPDU: 80 17 00 00 [00:10:53]Write to MH i2c: E2 08 00 64 33 80 17 00 00 00 00 00 00 17 [00:10:53]Write i2c OK [00:10:53]MH_I2C_Read... [00:10:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:10:53]Read from MH i2c: E2 [00:10:53]MH_I2C_Read... [00:10:53]Read from MH i2c: E2 CB 00 [00:10:53]MH_I2C_Read... [00:10:53]Read from MH i2c: E2 CB 00 64 33 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 00 [00:10:53]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 [00:10:53]wFMCommunicate OK [00:10:53]SAM_PROTO_GetShiftData done [00:10:53]requested_item shift.sale.total_cash is exist - process it [00:10:53]requested_item shift.sale_refund.total is exist - process it [00:10:53]requested_item shift.sale_refund.total_cash is exist - process it [00:10:53]requested_item shift.buy.total is exist - process it [00:10:53]requested_item shift.buy.total_cash is exist - process it [00:10:53]produce_requested_data done [00:10:53]produce_requested_data return {"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.00,"fm.buy.total":0.00,"shift.sale.total":55602.97,"shift.sale.total_cash":40216.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:10:53]process_action_free get_value [00:10:53]json_value_free [00:10:53]json_value_free done [00:10:53]process_json_proto returns [00:10:53]Send response to host [00:10:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.00,"fm.buy.total":0.00,"shift.sale.total":55602.97,"shift.sale.total_cash":40216.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:10:53]free response buf [00:10:53]execute_script done [00:10:53]execute_script returns [00:10:53]free content buf [00:10:53]Sock 9.Close socket [00:10:53]Sock 9.Thread stoped [00:10:53]accept exits with 7 [00:10:53]New connection [00:10:53]New thread 3067108708 created [00:10:53]Thread 3067252068 joined [00:10:53]Waiting for new connection... [00:10:53] Sock 7.Parse request [00:10:53]Sock 7.Check first char [00:10:53]Sock 7.First char is OK [00:10:53]request: POST /json_proto HTTP/1.0 [00:10:53]Method: POST [00:10:53]URL: /json_proto [00:10:53]Method is POST - this is cgi request [00:10:53]url: /json_proto [00:10:53]query_string will be loaded in cgi processing [00:10:53]execute_cgi json_proto POST (null) [00:10:53]execute_cgi path=json_proto method=POST [00:10:53]POST find Content-Length [00:10:53]Host: 172.17.42.196:8080 [00:10:53]Content-Length: 331 [00:10:53]Content-Type: application/json [00:10:53] [00:10:53]POST finish read [00:10:53]Found Content-Length = 331 [00:10:53]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:10:53]execute_script... [00:10:53]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:10:53]POST & json_proto [00:10:53]process_json_proto [00:10:53]json parsed OK: [00:10:53]protocol is kg_v1.0 [00:10:53]action value=get_value [00:10:53]process_action get_value [00:10:53]cmd_get_value [00:10:53]process_action get_value done [00:10:53]requested_data is exist [00:10:53]produce_requested_data [00:10:53]requested_item fm.sale.total is exist - process it [00:10:53]SAM_PROTO_GetFMData [00:10:53]wFMCommunicate request_size=4 [00:10:53]MH_SAM_APDU [00:10:53]CAPDU: 80 13 03 00 [00:10:53]Write to MH i2c: E2 08 00 65 33 80 13 03 00 00 00 00 00 17 [00:10:53]Write i2c OK [00:10:53]MH_I2C_Read... [00:10:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:54]Read from MH i2c: E2 [00:10:54]MH_I2C_Read... [00:10:54]Read from MH i2c: E2 FD 00 [00:10:54]MH_I2C_Read... [00:10:54]Read from MH i2c: E2 FD 00 65 33 00 C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 07 [00:10:54]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 [00:10:54]wFMCommunicate OK [00:10:54]wFMCommunicate request_size=4 [00:10:54]MH_SAM_APDU [00:10:54]CAPDU: 80 17 00 00 [00:10:54]Write to MH i2c: E2 08 00 66 33 80 17 00 00 00 00 00 00 19 [00:10:54]Write i2c OK [00:10:54]MH_I2C_Read... [00:10:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:54]Read from MH i2c: E2 [00:10:54]MH_I2C_Read... [00:10:54]Read from MH i2c: E2 FD 00 [00:10:54]MH_I2C_Read... [00:10:54]Read from MH i2c: E2 FD 00 66 33 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 86 [00:10:54]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:10:54]wFMCommunicate OK [00:10:54]wFMCommunicate request_size=4 [00:10:54]MH_SAM_APDU [00:10:54]CAPDU: 80 17 00 00 [00:10:54]Write to MH i2c: E2 08 00 67 33 80 17 00 00 00 00 00 00 1A [00:10:54]Write i2c OK [00:10:54]MH_I2C_Read... [00:10:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:54]Read from MH i2c: E2 [00:10:54]MH_I2C_Read... [00:10:54]Read from MH i2c: E2 FD 00 [00:10:54]MH_I2C_Read... [00:10:54]Read from MH i2c: E2 FD 00 67 33 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C8 [00:10:55]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:55]wFMCommunicate OK [00:10:55]wFMCommunicate request_size=4 [00:10:55]MH_SAM_APDU [00:10:55]CAPDU: 80 17 00 00 [00:10:55]Write to MH i2c: E2 08 00 68 33 80 17 00 00 00 00 00 00 1B [00:10:55]Write i2c OK [00:10:55]MH_I2C_Read... [00:10:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:55]Read from MH i2c: E2 [00:10:55]MH_I2C_Read... [00:10:55]Read from MH i2c: E2 FD 00 [00:10:55]MH_I2C_Read... [00:10:55]Read from MH i2c: E2 FD 00 68 33 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 96 [00:10:55]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:55]wFMCommunicate OK [00:10:55]wFMCommunicate request_size=4 [00:10:55]MH_SAM_APDU [00:10:55]CAPDU: 80 17 00 00 [00:10:55]Write to MH i2c: E2 08 00 69 33 80 17 00 00 00 00 00 00 1C [00:10:55]Write i2c OK [00:10:55]MH_I2C_Read... [00:10:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:10:55]Read from MH i2c: E2 [00:10:55]MH_I2C_Read... [00:10:55]Read from MH i2c: E2 DF 00 [00:10:55]MH_I2C_Read... [00:10:55]Read from MH i2c: E2 DF 00 69 33 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FC [00:10:55]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:10:55]wFMCommunicate OK [00:10:55]SAM_PROTO_GetFMData done [00:10:55]requested_item fm.sale_refund.total is exist - process it [00:10:55]requested_item fm.buy.total is exist - process it [00:10:55]requested_item shift.sale.total is exist - process it [00:10:55]SAM_PROTO_GetShiftData [00:10:55]wFMCommunicate request_size=4 [00:10:55]MH_SAM_APDU [00:10:55]CAPDU: 80 13 02 00 [00:10:55]Write to MH i2c: E2 08 00 6A 33 80 13 02 00 00 00 00 00 1B [00:10:55]Write i2c OK [00:10:55]MH_I2C_Read... [00:10:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:56]Read from MH i2c: E2 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 FD 00 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 FD 00 6A 33 00 AE 04 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EF [00:10:56]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:10:56]wFMCommunicate OK [00:10:56]wFMCommunicate request_size=4 [00:10:56]MH_SAM_APDU [00:10:56]CAPDU: 80 17 00 00 [00:10:56]Write to MH i2c: E2 08 00 6B 33 80 17 00 00 00 00 00 00 1E [00:10:56]Write i2c OK [00:10:56]MH_I2C_Read... [00:10:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:56]Read from MH i2c: E2 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 FD 00 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 FD 00 6B 33 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 40 [00:10:56]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 [00:10:56]wFMCommunicate OK [00:10:56]wFMCommunicate request_size=4 [00:10:56]MH_SAM_APDU [00:10:56]CAPDU: 80 17 00 00 [00:10:56]Write to MH i2c: E2 08 00 6C 33 80 17 00 00 00 00 00 00 1F [00:10:56]Write i2c OK [00:10:56]MH_I2C_Read... [00:10:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:57]Read from MH i2c: E2 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: E2 FD 00 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: E2 FD 00 6C 33 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D6 [00:10:57]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 [00:10:57]wFMCommunicate OK [00:10:57]wFMCommunicate request_size=4 [00:10:57]MH_SAM_APDU [00:10:57]CAPDU: 80 17 00 00 [00:10:57]Write to MH i2c: E2 08 00 6D 33 80 17 00 00 00 00 00 00 20 [00:10:57]OFD Sender: No OFD packet to send [00:10:57]Write i2c OK [00:10:57]MH_I2C_Read... [00:10:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:57]Read from MH i2c: E2 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: E2 FD 00 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: E2 FD 00 6D 33 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 92 [00:10:57]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 [00:10:57]wFMCommunicate OK [00:10:57]wFMCommunicate request_size=4 [00:10:57]MH_SAM_APDU [00:10:57]CAPDU: 80 17 00 00 [00:10:57]Write to MH i2c: E2 08 00 6E 33 80 17 00 00 00 00 00 00 21 [00:10:57]Write i2c OK [00:10:57]MH_I2C_Read... [00:10:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:10:57]Read from MH i2c: E2 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: E2 CB 00 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: E2 CB 00 6E 33 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 0A [00:10:57]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 [00:10:57]wFMCommunicate OK [00:10:57]SAM_PROTO_GetShiftData done [00:10:57]requested_item shift.sale.total_cash is exist - process it [00:10:57]requested_item shift.sale_refund.total is exist - process it [00:10:57]requested_item shift.sale_refund.total_cash is exist - process it [00:10:57]requested_item shift.buy.total is exist - process it [00:10:57]requested_item shift.buy.total_cash is exist - process it [00:10:57]produce_requested_data done [00:10:57]produce_requested_data return {"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.00,"fm.buy.total":0.00,"shift.sale.total":55602.97,"shift.sale.total_cash":40216.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:10:57]process_action_free get_value [00:10:57]json_value_free [00:10:57]json_value_free done [00:10:57]process_json_proto returns [00:10:57]Send response to host [00:10:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.00,"fm.buy.total":0.00,"shift.sale.total":55602.97,"shift.sale.total_cash":40216.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:10:57]free response buf [00:10:57]execute_script done [00:10:57]execute_script returns [00:10:57]free content buf [00:10:57]Sock 7.Close socket [00:10:57]Sock 7.Thread stoped [00:10:57]accept exits with 9 [00:10:57]New connection [00:10:57]New thread 3067252068 created [00:10:57]Thread 3067108708 joined [00:10:57]Waiting for new connection... [00:10:57] Sock 9.Parse request [00:10:57]Sock 9.Check first char [00:10:57]Sock 9.First char is OK [00:10:57]request: POST /json_proto HTTP/1.0 [00:10:57]Method: POST [00:10:57]URL: /json_proto [00:10:57]Method is POST - this is cgi request [00:10:57]url: /json_proto [00:10:57]query_string will be loaded in cgi processing [00:10:57]execute_cgi json_proto POST (null) [00:10:57]execute_cgi path=json_proto method=POST [00:10:57]POST find Content-Length [00:10:57]Host: 172.17.42.196:8080 [00:10:57]Content-Length: 282 [00:10:57]Content-Type: application/json [00:10:57] [00:10:57]POST finish read [00:10:57]Found Content-Length = 282 [00:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0436\u0430\u043D \u0443\u0443\u043B\u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:57]execute_script... [00:10:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0436\u0430\u043D \u0443\u0443\u043B\u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:57]POST & json_proto [00:10:57]process_json_proto [00:10:57]json parsed OK: [00:10:57]protocol is kg_v1.0 [00:10:57]action value=x_report [00:10:57]process_action x_report [00:10:57]cmd_x_report [00:10:57]MH_GetDate [00:10:57]Write to MH i2c: F0 00 00 6F 33 91 [00:10:57]Write i2c OK [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: F0 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: F0 09 00 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: F0 09 00 6F 33 00 18 E2 1A 67 FF C4 6B 64 A7 [00:10:57]GetLastDocTimeStamp 1729814554 [00:10:57]current date 1729815064 [00:10:57]FM_GetShiftState [00:10:57]SAM_PROTO_GetShiftState [00:10:57]wFMCommunicate request_size=4 [00:10:57]MH_SAM_APDU [00:10:57]CAPDU: 80 13 01 00 [00:10:57]Write to MH i2c: E2 08 00 70 33 80 13 01 00 00 00 00 00 20 [00:10:57]Write i2c OK [00:10:57]MH_I2C_Read... [00:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:57]Read from MH i2c: E2 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: E2 0E 00 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: E2 0E 00 70 33 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 53 [00:10:57]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [00:10:57]wFMCommunicate OK [00:10:57]SAM_PROTO_GetShiftState done [00:10:57]FM_GetShiftState done [00:10:57]KKMCreateXReportDocument [00:10:57]Load OK [00:10:57]Malloc new data [00:10:57]MH_GetDate [00:10:57]Write to MH i2c: F0 00 00 71 33 93 [00:10:57]Write i2c OK [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: F0 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: F0 09 00 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: F0 09 00 71 33 00 18 E2 1A 67 FF C4 6B 64 A9 [00:10:57]Malloc new data [00:10:57]Malloc new data [00:10:57]wFMCommunicate request_size=4 [00:10:57]MH_SAM_APDU [00:10:57]CAPDU: 80 11 00 00 [00:10:58]Write to MH i2c: E2 08 00 72 33 80 11 00 00 00 00 00 00 1F [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:58]Read from MH i2c: E2 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 17 00 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 17 00 72 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 76 [00:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [00:10:58]wFMCommunicate OK [00:10:58]SAM_PROTO_GetFieldsCounters [00:10:58]wFMCommunicate request_size=4 [00:10:58]MH_SAM_APDU [00:10:58]CAPDU: 80 13 00 00 [00:10:58]Write to MH i2c: E2 08 00 73 33 80 13 00 00 00 00 00 00 22 [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:58]Read from MH i2c: E2 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 62 00 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 62 00 73 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B1 EA 00 00 0E 04 04 00 11 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 C4 [00:10: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B1 EA 00 00 0E 04 04 00 11 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 [00:10:58]wFMCommunicate OK [00:10:58]SAM_PROTO_GetFieldsCounters done [00:10:58]Malloc new data [00:10:58]Malloc new data [00:10:58]Malloc new data [00:10:58]KKMCreateXReportDocument OK [00:10:58]KKMSetXReportData OK [00:10:58]KKMPrepareXReportFMData [00:10:58]SAM_PROTO_GetShiftData [00:10:58]wFMCommunicate request_size=4 [00:10:58]MH_SAM_APDU [00:10:58]CAPDU: 80 13 02 00 [00:10:58]Write to MH i2c: E2 08 00 74 33 80 13 02 00 00 00 00 00 25 [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:58]Read from MH i2c: E2 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 FD 00 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 FD 00 74 33 00 AE 04 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F9 [00:10:58]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:10:58]wFMCommunicate OK [00:10:58]wFMCommunicate request_size=4 [00:10:58]MH_SAM_APDU [00:10:58]CAPDU: 80 17 00 00 [00:10:58]Write to MH i2c: E2 08 00 75 33 80 17 00 00 00 00 00 00 28 [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:59]Read from MH i2c: E2 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 FD 00 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 FD 00 75 33 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 4A [00:10:59]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 [00:10:59]wFMCommunicate OK [00:10:59]wFMCommunicate request_size=4 [00:10:59]MH_SAM_APDU [00:10:59]CAPDU: 80 17 00 00 [00:10:59]Write to MH i2c: E2 08 00 76 33 80 17 00 00 00 00 00 00 29 [00:10:59]Write i2c OK [00:10:59]MH_I2C_Read... [00:10:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:59]Read from MH i2c: E2 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 FD 00 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 FD 00 76 33 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E0 [00:10:59]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 [00:10:59]wFMCommunicate OK [00:10:59]wFMCommunicate request_size=4 [00:10:59]MH_SAM_APDU [00:10:59]CAPDU: 80 17 00 00 [00:10:59]Write to MH i2c: E2 08 00 77 33 80 17 00 00 00 00 00 00 2A [00:10:59]Write i2c OK [00:10:59]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 FD 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 FD 00 77 33 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 9C [00:11:00]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 [00:11:00]wFMCommunicate OK [00:11:00]wFMCommunicate request_size=4 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 17 00 00 [00:11:00]Write to MH i2c: E2 08 00 78 33 80 17 00 00 00 00 00 00 2B [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 CB 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 CB 00 78 33 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 14 [00:11:00]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 [00:11:00]wFMCommunicate OK [00:11:00]SAM_PROTO_GetShiftData done [00:11:00]1194 (1194) - счетчики итогов смены [00:11:00] 1134 (4) - 156 - количество чеков со всеми признаками расчетов [00:11:00] 1129 (155) - счетчики операций «приход» [00:11:00] 1135 (4) - 156 - количество чеков по признаку расчетов [00:11:00] 1201 (3) - 55602.97 - общая итоговая сумма в чеках [00:11:00] 1136 (3) - 40216.00 - итоговая сумма в чеках наличными [00:11:00] 1138 (3) - 15386.97 - итоговая сумма в чеках безналичными [00:11:00] 1024 (122) - суммы налогов [00:11:00] 1006 (9) - суммы НДС [00:11:00] 1010 (1) - 0% - код ставки НДС [00:11:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:00] 1006 (12) - суммы НДС [00:11:00] 1010 (1) - 12% - код ставки НДС [00:11:00] 1011 (3) - 5905.24 - сумма НДС по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 0% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (11) - суммы НСП [00:11:00] 1014 (1) - 1% - код ставки НСП [00:11:00] 1015 (2) - 491.96 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 2% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 3% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 5% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 0,50% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 1,50% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1130 (141) - счетчики операций «возврат прихода» [00:11:00] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:00] 1024 (117) - суммы налогов [00:11:00] 1006 (9) - суммы НДС [00:11:00] 1010 (1) - 0% - код ставки НДС [00:11:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:00] 1006 (9) - суммы НДС [00:11:00] 1010 (1) - 12% - код ставки НДС [00:11:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 0% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 1% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 2% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 3% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 5% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 0,50% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 1,50% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1131 (141) - счетчики операций «расход» [00:11:00] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:00] 1024 (117) - суммы налогов [00:11:00] 1006 (9) - суммы НДС [00:11:00] 1010 (1) - 0% - код ставки НДС [00:11:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:00] 1006 (9) - суммы НДС [00:11:00] 1010 (1) - 12% - код ставки НДС [00:11:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 0% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 1% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 2% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 3% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 5% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 0,50% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 1,50% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1132 (141) - счетчики операций «возврат расхода» [00:11:00] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:00] 1024 (117) - суммы налогов [00:11:00] 1006 (9) - суммы НДС [00:11:00] 1010 (1) - 0% - код ставки НДС [00:11:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:00] 1006 (9) - суммы НДС [00:11:00] 1010 (1) - 12% - код ставки НДС [00:11:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 0% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 1% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 2% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 3% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 5% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 0,50% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1007 (9) - суммы НСП [00:11:00] 1014 (1) - 1,50% - код ставки НСП [00:11:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:00] 1133 (588) - - счетчики коррекции - не используются [00:11:00]SetTLVBufToDocument [00:11:00]Processing tag 1194 (04AA) [00:11:00]Load OK [00:11:00]SetTLVBufToDocument [00:11:00]Processing tag 1134 (046E) [00:11:00]Malloc new data [00:11:00]Processing tag 1129 (0469) [00:11:00]Load OK [00:11:00]SetTLVBufToDocument [00:11:00]Processing tag 1135 (046F) [00:11:00]Malloc new data [00:11:00]Processing tag 1201 (04B1) [00:11:00]Malloc new data [00:11:00]Processing tag 1136 (0470) [00:11:00]Malloc new data [00:11:00]Processing tag 1138 (0472) [00:11:00]Malloc new data [00:11:00]Processing tag 1024 (0400) [00:11:00]Load OK [00:11:00]SetTLVBufToDocument [00:11:00]Processing tag 1006 (03EE) [00:11:00]Load OK [00:11:00]SetTLVBufToDocument [00:11:00]Processing tag 1010 (03F2) [00:11:00]Malloc new data [00:11:00]Processing tag 1011 (03F3) [00:11:00]Malloc new data [00:11:00]SetTLVBufToDocument err=0 [00:11:00]Processing tag 1006 (03EE) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1010 (03F2) [00:11:01]Malloc new data [00:11:01]Processing tag 1011 (03F3) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]SetTLVBufToDocument err=0 [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1130 (046A) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1135 (046F) [00:11:01]Malloc new data [00:11:01]Processing tag 1201 (04B1) [00:11:01]Malloc new data [00:11:01]Processing tag 1136 (0470) [00:11:01]Malloc new data [00:11:01]Processing tag 1138 (0472) [00:11:01]Malloc new data [00:11:01]Processing tag 1024 (0400) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1006 (03EE) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1010 (03F2) [00:11:01]Malloc new data [00:11:01]Processing tag 1011 (03F3) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1006 (03EE) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1010 (03F2) [00:11:01]Malloc new data [00:11:01]Processing tag 1011 (03F3) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]SetTLVBufToDocument err=0 [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1131 (046B) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1135 (046F) [00:11:01]Malloc new data [00:11:01]Processing tag 1201 (04B1) [00:11:01]Malloc new data [00:11:01]Processing tag 1136 (0470) [00:11:01]Malloc new data [00:11:01]Processing tag 1138 (0472) [00:11:01]Malloc new data [00:11:01]Processing tag 1024 (0400) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1006 (03EE) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1010 (03F2) [00:11:01]Malloc new data [00:11:01]Processing tag 1011 (03F3) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1006 (03EE) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1010 (03F2) [00:11:01]Malloc new data [00:11:01]Processing tag 1011 (03F3) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]SetTLVBufToDocument err=0 [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1132 (046C) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1135 (046F) [00:11:01]Malloc new data [00:11:01]Processing tag 1201 (04B1) [00:11:01]Malloc new data [00:11:01]Processing tag 1136 (0470) [00:11:01]Malloc new data [00:11:01]Processing tag 1138 (0472) [00:11:01]Malloc new data [00:11:01]Processing tag 1024 (0400) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1006 (03EE) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1010 (03F2) [00:11:01]Malloc new data [00:11:01]Processing tag 1011 (03F3) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1006 (03EE) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1010 (03F2) [00:11:01]Malloc new data [00:11:01]Processing tag 1011 (03F3) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1007 (03EF) [00:11:01]Load OK [00:11:01]SetTLVBufToDocument [00:11:01]Processing tag 1014 (03F6) [00:11:01]Malloc new data [00:11:01]Processing tag 1015 (03F7) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]SetTLVBufToDocument err=0 [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Processing tag 1133 (046D) [00:11:01]Malloc new data [00:11:01]SetTLVBufToDocument err=0 [00:11:01]SetTLVBufToDocument err=0 [00:11:01]Malloc new data [00:11:01]SAM_PROTO_GetFMData [00:11:01]wFMCommunicate request_size=4 [00:11:01]MH_SAM_APDU [00:11:01]CAPDU: 80 13 03 00 [00:11:01]Write to MH i2c: E2 08 00 79 33 80 13 03 00 00 00 00 00 2B [00:11:01]Write i2c OK [00:11:01]MH_I2C_Read... [00:11:02]OFD Sender: No OFD packet to send [00:11:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 79 33 00 C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 1B [00:11:02]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 [00:11:02]wFMCommunicate OK [00:11:02]wFMCommunicate request_size=4 [00:11:02]MH_SAM_APDU [00:11:02]CAPDU: 80 17 00 00 [00:11:02]Write to MH i2c: E2 08 00 7A 33 80 17 00 00 00 00 00 00 2D [00:11:02]Write i2c OK [00:11:02]MH_I2C_Read... [00:11:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 7A 33 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 9A [00:11:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:11:02]wFMCommunicate OK [00:11:02]wFMCommunicate request_size=4 [00:11:02]MH_SAM_APDU [00:11:02]CAPDU: 80 17 00 00 [00:11:02]Write to MH i2c: E2 08 00 7B 33 80 17 00 00 00 00 00 00 2E [00:11:03]Write i2c OK [00:11:03]MH_I2C_Read... [00:11:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:03]Read from MH i2c: E2 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 7B 33 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DC [00:11:03]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:03]wFMCommunicate OK [00:11:03]wFMCommunicate request_size=4 [00:11:03]MH_SAM_APDU [00:11:03]CAPDU: 80 17 00 00 [00:11:03]Write to MH i2c: E2 08 00 7C 33 80 17 00 00 00 00 00 00 2F [00:11:03]Write i2c OK [00:11:03]MH_I2C_Read... [00:11:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:03]Read from MH i2c: E2 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 7C 33 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AA [00:11:03]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:04]wFMCommunicate OK [00:11:04]wFMCommunicate request_size=4 [00:11:04]MH_SAM_APDU [00:11:04]CAPDU: 80 17 00 00 [00:11:04]Write to MH i2c: E2 08 00 7D 33 80 17 00 00 00 00 00 00 30 [00:11:04]Write i2c OK [00:11:04]MH_I2C_Read... [00:11:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:11:04]Read from MH i2c: E2 [00:11:04]MH_I2C_Read... [00:11:04]Read from MH i2c: E2 DF 00 [00:11:04]MH_I2C_Read... [00:11:04]Read from MH i2c: E2 DF 00 7D 33 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 10 [00:11:04]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11:04]wFMCommunicate OK [00:11:04]SAM_PROTO_GetFMData done [00:11:04]FM_GetFMData:85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:11:05]oper:6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11:05]total:FB 98 AA 6C [00:11:05]Malloc new data [00:11:05]oper:6F 04 04 00 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:05]total:1C B2 D6 [00:11:05]Malloc new data [00:11:05]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:11:05]total: [00:11:05]Malloc new data [00:11:05]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:11:05]total: [00:11:05]Malloc new data [00:11:05]KKMPrepareXReportFMData err=0 [00:11:05]Х отчет ИНН: 02508201610067 Кассир: Сабыржан уулу Б. 25.10.2024 00:11 Смена: 522 РНМ: 0000000000091622 ЗНМ: 0300000084 СНО: Общий режим Всего чеков: 156 ИТОГИ ПРИХОД Чеков: 156 Общий итог: 55602.97 Итого наличными: 40216.00 Итого безнал.: 15386.97 НДС 0% : 0.00 НДС 12% : 5905.24 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 491.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 Нал. в кассе: 40216.00 НС Приход: 18231196.11 НС Возвр.Прихода: 140703.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874674 [00:11:05]StoreToDocumentArchive [00:11:05]MH_GetDate [00:11:05]Write to MH i2c: F0 00 00 7E 33 A0 [00:11:05]Write i2c OK [00:11:05]MH_I2C_Read... [00:11:05]Read from MH i2c: F0 [00:11:05]MH_I2C_Read... [00:11:05]Read from MH i2c: F0 09 00 [00:11:05]MH_I2C_Read... [00:11:05]Read from MH i2c: F0 09 00 7E 33 00 1F E2 1A 67 FF C4 6B 64 BD [00:11:05]shift 522 fd 1729815071 [00:11:05]Create dir for shift 0522 [00:11:05]save to /storage/0522/doc_1729815071 [00:11:05]save last doc name /storage/0522/doc_1729815071 to /storage/kkm_last_doc_name [00:11:05]save OK [00:11:05]Clear old archive folders... [00:11:05]NVStorageSaveData kkm_last_timestamp [00:11:05]File name is /storage/kkm_last_timestamp [00:11:05]Write 4 bytes [00:11:05]NVStorageSaveData done [00:11:05]ExternCall_PrintAddStr [00:11:05]wPrintStart [00:11:05]Write to MH i2c: 01 00 00 7F 33 B2 [00:11:05]Write i2c OK [00:11:05]MH_I2C_Read... [00:11:05]Read from MH i2c: 01 [00:11:05]MH_I2C_Read... [00:11:05]Read from MH i2c: 01 07 00 [00:11:05]MH_I2C_Read... [00:11:05]Read from MH i2c: 01 07 00 7F 33 00 00 00 00 00 FF 0F C7 [00:11:05]RasterBufferAndPrint [00:11:05]line Х отчет [00:11:05]line ИНН: 02508201610067 [00:11:05]line Кассир: Сабыржан уулу Б. [00:11:05]line 25.10.2024 00:11 [00:11:05]line Смена: 522 [00:11:05]line РНМ: 0000000000091622 [00:11:05]line ЗНМ: 0300000084 [00:11:05]line СНО: Общий режим [00:11:05]line Всего чеков: 156 [00:11:05]line ИТОГИ ПРИХОД [00:11:05]line Чеков: 156 [00:11:05]line Общий итог: 55602.97 [00:11:05]line Итого наличными: 40216.00 [00:11:05]line Итого безнал.: 15386.97 [00:11:05]line НДС 0% : 0.00 [00:11:05]line НДС 12% : 5905.24 [00:11:05]line НСП 0% : 0.00 [00:11:05]line НСП 1,50% : 0.00 [00:11:05]line НСП 0,50% : 0.00 [00:11:05]line НСП 5% : 0.00 [00:11:05]line НСП 3% : 0.00 [00:11:05]line НСП 2% : 0.00 [00:11:05]line НСП 1% : 491.96 [00:11:05]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:11:05]line Чеков: 0 [00:11:05]line Общий итог: 0.00 [00:11:05]line Итого наличными: 0.00 [00:11:05]line Итого безнал.: 0.00 [00:11:05]line НДС 0% : 0.00 [00:11:05]line НДС 12% : 0.00 [00:11:05]line НСП 0% : 0.00 [00:11:05]line НСП 1,50% : 0.00 [00:11:05]line НСП 0,50% : 0.00 [00:11:05]line НСП 5% : 0.00 [00:11:05]line НСП 3% : 0.00 [00:11:05]line НСП 2% : 0.00 [00:11:05]line НСП 1% : 0.00 [00:11:05]line ИТОГИ РАСХОД [00:11:05]line Чеков: 0 [00:11:05]line Общий итог: 0.00 [00:11:05]line Итого наличными: 0.00 [00:11:05]line Итого безнал.: 0.00 [00:11:05]line НДС 0% : 0.00 [00:11:05]line НДС 12% : 0.00 [00:11:05]line НСП 0% : 0.00 [00:11:05]line НСП 1,50% : 0.00 [00:11:05]line НСП 0,50% : 0.00 [00:11:05]line НСП 5% : 0.00 [00:11:05]line НСП 3% : 0.00 [00:11:05]line НСП 2% : 0.00 [00:11:05]line НСП 1% : 0.00 [00:11:05]line ИТОГИ ВОЗВРАТ РАСХОДА [00:11:05]line Чеков: 0 [00:11:05]line Общий итог: 0.00 [00:11:05]line Итого наличными: 0.00 [00:11:05]line Итого безнал.: 0.00 [00:11:05]line НДС 0% : 0.00 [00:11:05]line НДС 12% : 0.00 [00:11:05]line НСП 0% : 0.00 [00:11:05]line НСП 1,50% : 0.00 [00:11:05]line НСП 0,50% : 0.00 [00:11:05]line НСП 5% : 0.00 [00:11:05]line НСП 3% : 0.00 [00:11:05]line НСП 2% : 0.00 [00:11:05]line НСП 1% : 0.00 [00:11:05]line Сумма внесений: 0.00 [00:11:05]line Сумма выплат: 0.00 [00:11:05]line Нал. в кассе: 40216.00 [00:11:05]line НС Приход: 18231196.11 [00:11:05]line НС Возвр.Прихода: 140703.00 [00:11:05]line НС Расход: 0.00 [00:11:05]line НС Возвр.Расхода: 0.00 [00:11:05]line ФМ: 0000000000874674 [00:11:05]written 0, free lines is 4095 [00:11:06]Write to MH i2c: 01 00 00 CA 33 FD [00:11:06]Write i2c OK [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: 01 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: 01 07 00 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: 01 07 00 CA 33 00 00 00 00 00 AA 0A B8 [00:11:06]RasterBufferAndPrint [00:11:06]line [00:11:06]line [00:11:06]line [00:11:06]line [00:11:06]line [00:11:06]written 0, free lines is 2766 [00:11:06]MH_Cut [00:11:06]Write to MH i2c: D1 01 00 D1 33 01 D6 [00:11:06]Write i2c OK [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: D1 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: D1 01 00 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: D1 01 00 D1 33 00 D5 [00:11:06]Write to MH i2c: 01 00 00 D2 33 05 [00:11:06]Write i2c OK [00:11:06]MH_I2C_Read... [00:11:07]OFD Sender: No OFD packet to send [00:11:07]*** Cut start [00:11:07]*** Partial cut [00:11:07]*** CUTSNS_PIN = 1 [00:11:07]*** CUTSNS_PIN = 0 [00:11:07]*** Brake cut motor [00:11:08]Read from MH i2c: 01 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: 01 07 00 [00:11:08]MH_I2C_Read... [00:11:08]*** Stop cut motor [00:11:08]*** Cut end [00:11:08]Read from MH i2c: 01 07 00 D2 33 00 00 00 00 00 FF 0F 1A [00:11:08]process_action x_report done [00:11:08]requested_data is exist [00:11:08]produce_requested_data [00:11:08]requested_item fd.num is exist - process it [00:11:08]SAM_PROTO_GetFieldsCounters [00:11:08]wFMCommunicate request_size=4 [00:11:08]MH_SAM_APDU [00:11:08]CAPDU: 80 13 00 00 [00:11:08]Write to MH i2c: E2 08 00 D3 33 80 13 00 00 00 00 00 00 82 [00:11:08]Write i2c OK [00:11:08]MH_I2C_Read... [00:11:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:08]Read from MH i2c: E2 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 62 00 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 62 00 D3 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B1 EA 00 00 0E 04 04 00 11 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 24 [00: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B1 EA 00 00 0E 04 04 00 11 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 [00:11:08]wFMCommunicate OK [00:11:08]SAM_PROTO_GetFieldsCounters done [00:11:08]requested_item shift.num is exist - process it [00:11:08]requested_item shift.opened is exist - process it [00:11:08]req_shift_opened [00:11:08]FM_GetShiftState [00:11:08]SAM_PROTO_GetShiftState [00:11:08]wFMCommunicate request_size=4 [00:11:08]MH_SAM_APDU [00:11:08]CAPDU: 80 13 01 00 [00:11:08]Write to MH i2c: E2 08 00 D4 33 80 13 01 00 00 00 00 00 84 [00:11:08]Write i2c OK [00:11:08]MH_I2C_Read... [00:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:08]Read from MH i2c: E2 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 0E 00 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 0E 00 D4 33 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 B7 [00:11:08]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [00:11:08]wFMCommunicate OK [00:11:08]SAM_PROTO_GetShiftState done [00:11:08]FM_GetShiftState done [00:11:08]req_shift_opened done [00:11:08]requested_item shift.open_date is exist - process it [00:11:08]req_shift_open_date [00:11:08]req_shift_open_date done [00:11:08]produce_requested_data done [00:11:08]produce_requested_data return {"fd.num":60081,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [00:11:08]process_action_free x_report [00:11:08]json_value_free [00:11:08]json_value_free done [00:11:08]process_json_proto returns [00:11:08]Send response to host [00:11:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":60081,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [00:11:08]free response buf [00:11:08]execute_script done [00:11:08]execute_script returns [00:11:08]free content buf [00:11:08]Sock 9.Close socket [00:11:08]Sock 9.Thread stoped [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:06]accept exits with 7 [00:12:06]New connection [00:12:06]New thread 3067108708 created [00:12:06]Thread 3067252068 joined [00:12:06]Waiting for new connection... [00:12:06] Sock 7.Parse request [00:12:06]Sock 7.Check first char [00:12:06]Sock 7.First char is OK [00:12:06]request: POST /json_proto HTTP/1.0 [00:12:06]Method: POST [00:12:06]URL: /json_proto [00:12:06]Method is POST - this is cgi request [00:12:06]url: /json_proto [00:12:06]query_string will be loaded in cgi processing [00:12:06]execute_cgi json_proto POST (null) [00:12:06]execute_cgi path=json_proto method=POST [00:12:06]POST find Content-Length [00:12:06]Host: 172.17.42.196:8080 [00:12:06]Content-Length: 215 [00:12:06]Content-Type: application/json [00:12:06] [00:12:06]POST finish read [00:12:06]Found Content-Length = 215 [00:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:06]execute_script... [00:12:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:06]POST & json_proto [00:12:06]process_json_proto [00:12:06]json parsed OK: [00:12:06]protocol is kg_v1.0 [00:12:06]action value=get_value [00:12:06]process_action get_value [00:12:06]cmd_get_value [00:12:06]process_action get_value done [00:12:06]requested_data is exist [00:12:06]produce_requested_data [00:12:06]requested_item kkm.sn is exist - process it [00:12:06]requested_item kkm.ver is exist - process it [00:12:06]requested_item fm.sn is exist - process it [00:12:06]wFMCommunicate request_size=4 [00:12:06]MH_SAM_APDU [00:12:06]CAPDU: 80 11 00 00 [00:12:06]Write to MH i2c: E2 08 00 D5 33 80 11 00 00 00 00 00 00 82 [00:12:06]Write i2c OK [00:12:06]MH_I2C_Read... [00:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:06]Read from MH i2c: E2 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 17 00 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 17 00 D5 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 D9 [00:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [00:12:06]wFMCommunicate OK [00:12:06]requested_item fd.num is exist - process it [00:12:06]SAM_PROTO_GetFieldsCounters [00:12:06]wFMCommunicate request_size=4 [00:12:06]MH_SAM_APDU [00:12:06]CAPDU: 80 13 00 00 [00:12:06]Write to MH i2c: E2 08 00 D6 33 80 13 00 00 00 00 00 00 85 [00:12:06]Write i2c OK [00:12:06]MH_I2C_Read... [00:12:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:06]Read from MH i2c: E2 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 62 00 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 62 00 D6 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B1 EA 00 00 0E 04 04 00 11 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 27 [00:12: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B1 EA 00 00 0E 04 04 00 11 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 [00:12:06]wFMCommunicate OK [00:12:06]SAM_PROTO_GetFieldsCounters done [00:12:06]requested_item shift.num is exist - process it [00:12:06]requested_item shift.opened is exist - process it [00:12:06]req_shift_opened [00:12:06]FM_GetShiftState [00:12:06]SAM_PROTO_GetShiftState [00:12:06]wFMCommunicate request_size=4 [00:12:06]MH_SAM_APDU [00:12:06]CAPDU: 80 13 01 00 [00:12:06]Write to MH i2c: E2 08 00 D7 33 80 13 01 00 00 00 00 00 87 [00:12:06]Write i2c OK [00:12:06]MH_I2C_Read... [00:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:06]Read from MH i2c: E2 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 0E 00 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 0E 00 D7 33 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 BA [00:12:06]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [00:12:06]wFMCommunicate OK [00:12:06]SAM_PROTO_GetShiftState done [00:12:06]FM_GetShiftState done [00:12:06]req_shift_opened done [00:12:06]requested_item shift.open_date is exist - process it [00:12:06]req_shift_open_date [00:12:06]req_shift_open_date done [00:12:06]produce_requested_data done [00:12:06]produce_requested_data return {"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60081,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575} [00:12:06]process_action_free get_value [00:12:06]json_value_free [00:12:06]json_value_free done [00:12:06]process_json_proto returns [00:12:06]Send response to host [00:12:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60081,"shift.num":529,"shift.opened":1,"shift.open_date":1729730575}}} [00:12:06]free response buf [00:12:06]execute_script done [00:12:06]execute_script returns [00:12:06]free content buf [00:12:06]Sock 7.Close socket [00:12:06]Sock 7.Thread stoped [00:12:06]accept exits with 9 [00:12:06]New connection [00:12:06]New thread 3067252068 created [00:12:06]Thread 3067108708 joined [00:12:06]Waiting for new connection... [00:12:06] Sock 9.Parse request [00:12:06]Sock 9.Check first char [00:12:06]Sock 9.First char is OK [00:12:06]request: POST /json_proto HTTP/1.0 [00:12:06]Method: POST [00:12:06]URL: /json_proto [00:12:06]Method is POST - this is cgi request [00:12:06]url: /json_proto [00:12:06]query_string will be loaded in cgi processing [00:12:06]execute_cgi json_proto POST (null) [00:12:06]execute_cgi path=json_proto method=POST [00:12:06]POST find Content-Length [00:12:06]Host: 172.17.42.196:8080 [00:12:06]Content-Length: 331 [00:12:06]Content-Type: application/json [00:12:06] [00:12:06]POST finish read [00:12:06]Found Content-Length = 331 [00:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:06]execute_script... [00:12:07]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:07]POST & json_proto [00:12:07]process_json_proto [00:12:07]json parsed OK: [00:12:07]protocol is kg_v1.0 [00:12:07]action value=get_value [00:12:07]process_action get_value [00:12:07]cmd_get_value [00:12:07]process_action get_value done [00:12:07]requested_data is exist [00:12:07]produce_requested_data [00:12:07]requested_item fm.sale.total is exist - process it [00:12:07]SAM_PROTO_GetFMData [00:12:07]wFMCommunicate request_size=4 [00:12:07]MH_SAM_APDU [00:12:07]CAPDU: 80 13 03 00 [00:12:07]Write to MH i2c: E2 08 00 D8 33 80 13 03 00 00 00 00 00 8A [00:12:07]Write i2c OK [00:12:07]MH_I2C_Read... [00:12:07]OFD Sender: No OFD packet to send [00:12:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:07]Read from MH i2c: E2 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 FD 00 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 FD 00 D8 33 00 C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 7A [00:12:07]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 [00:12:07]wFMCommunicate OK [00:12:07]wFMCommunicate request_size=4 [00:12:07]MH_SAM_APDU [00:12:07]CAPDU: 80 17 00 00 [00:12:07]Write to MH i2c: E2 08 00 D9 33 80 17 00 00 00 00 00 00 8C [00:12:07]Write i2c OK [00:12:07]MH_I2C_Read... [00:12:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:07]Read from MH i2c: E2 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 FD 00 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 FD 00 D9 33 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F9 [00:12:07]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:12:07]wFMCommunicate OK [00:12:07]wFMCommunicate request_size=4 [00:12:07]MH_SAM_APDU [00:12:07]CAPDU: 80 17 00 00 [00:12:07]Write to MH i2c: E2 08 00 DA 33 80 17 00 00 00 00 00 00 8D [00:12:07]Write i2c OK [00:12:07]MH_I2C_Read... [00:12:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:08]Read from MH i2c: E2 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 FD 00 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 FD 00 DA 33 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3B [00:12:08]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:08]wFMCommunicate OK [00:12:08]wFMCommunicate request_size=4 [00:12:08]MH_SAM_APDU [00:12:08]CAPDU: 80 17 00 00 [00:12:08]Write to MH i2c: E2 08 00 DB 33 80 17 00 00 00 00 00 00 8E [00:12:08]Write i2c OK [00:12:08]MH_I2C_Read... [00:12:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:08]Read from MH i2c: E2 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 FD 00 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 FD 00 DB 33 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 09 [00:12:08]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:08]wFMCommunicate OK [00:12:08]wFMCommunicate request_size=4 [00:12:08]MH_SAM_APDU [00:12:08]CAPDU: 80 17 00 00 [00:12:08]Write to MH i2c: E2 08 00 DC 33 80 17 00 00 00 00 00 00 8F [00:12:08]Write i2c OK [00:12:08]MH_I2C_Read... [00:12:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:12:08]Read from MH i2c: E2 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 DF 00 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 DF 00 DC 33 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [00:12:08]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08]wFMCommunicate OK [00:12:08]SAM_PROTO_GetFMData done [00:12:08]requested_item fm.sale_refund.total is exist - process it [00:12:08]requested_item fm.buy.total is exist - process it [00:12:08]requested_item shift.sale.total is exist - process it [00:12:08]SAM_PROTO_GetShiftData [00:12:08]wFMCommunicate request_size=4 [00:12:08]MH_SAM_APDU [00:12:08]CAPDU: 80 13 02 00 [00:12:08]Write to MH i2c: E2 08 00 DD 33 80 13 02 00 00 00 00 00 8E [00:12:08]Write i2c OK [00:12:08]MH_I2C_Read... [00:12:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:09]Read from MH i2c: E2 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 FD 00 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 FD 00 DD 33 00 AE 04 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 62 [00:12:09]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:12:09]wFMCommunicate OK [00:12:09]wFMCommunicate request_size=4 [00:12:09]MH_SAM_APDU [00:12:09]CAPDU: 80 17 00 00 [00:12:09]Write to MH i2c: E2 08 00 DE 33 80 17 00 00 00 00 00 00 91 [00:12:09]Write i2c OK [00:12:09]MH_I2C_Read... [00:12:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:09]Read from MH i2c: E2 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 FD 00 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 FD 00 DE 33 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 B3 [00:12:09]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 [00:12:09]wFMCommunicate OK [00:12:09]wFMCommunicate request_size=4 [00:12:09]MH_SAM_APDU [00:12:09]CAPDU: 80 17 00 00 [00:12:09]Write to MH i2c: E2 08 00 DF 33 80 17 00 00 00 00 00 00 92 [00:12:09]Write i2c OK [00:12:09]MH_I2C_Read... [00:12:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:09]Read from MH i2c: E2 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 FD 00 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 FD 00 DF 33 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 49 [00:12:09]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 [00:12:09]wFMCommunicate OK [00:12:09]wFMCommunicate request_size=4 [00:12:09]MH_SAM_APDU [00:12:09]CAPDU: 80 17 00 00 [00:12:09]Write to MH i2c: E2 08 00 E0 33 80 17 00 00 00 00 00 00 93 [00:12:09]Write i2c OK [00:12:09]MH_I2C_Read... [00:12:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:09]Read from MH i2c: E2 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 FD 00 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 FD 00 E0 33 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 05 [00:12:09]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 [00:12:10]wFMCommunicate OK [00:12:10]wFMCommunicate request_size=4 [00:12:10]MH_SAM_APDU [00:12:10]CAPDU: 80 17 00 00 [00:12:10]Write to MH i2c: E2 08 00 E1 33 80 17 00 00 00 00 00 00 94 [00:12:10]Write i2c OK [00:12:10]MH_I2C_Read... [00:12:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:12:10]Read from MH i2c: E2 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 CB 00 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 CB 00 E1 33 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 7D [00:12:10]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 [00:12:10]wFMCommunicate OK [00:12:10]SAM_PROTO_GetShiftData done [00:12:10]requested_item shift.sale.total_cash is exist - process it [00:12:10]requested_item shift.sale_refund.total is exist - process it [00:12:10]requested_item shift.sale_refund.total_cash is exist - process it [00:12:10]requested_item shift.buy.total is exist - process it [00:12:10]requested_item shift.buy.total_cash is exist - process it [00:12:10]produce_requested_data done [00:12:10]produce_requested_data return {"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.00,"fm.buy.total":0.00,"shift.sale.total":55602.97,"shift.sale.total_cash":40216.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:10]process_action_free get_value [00:12:10]json_value_free [00:12:10]json_value_free done [00:12:10]process_json_proto returns [00:12:10]Send response to host [00:12:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.00,"fm.buy.total":0.00,"shift.sale.total":55602.97,"shift.sale.total_cash":40216.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:10]free response buf [00:12:10]execute_script done [00:12:10]execute_script returns [00:12:10]free content buf [00:12:10]Sock 9.Close socket [00:12:10]Sock 9.Thread stoped [00:12:10]accept exits with 7 [00:12:10]New connection [00:12:10]New thread 3067108708 created [00:12:10]Thread 3067252068 joined [00:12:10]Waiting for new connection... [00:12:10] Sock 7.Parse request [00:12:10]Sock 7.Check first char [00:12:10]Sock 7.First char is OK [00:12:10]request: POST /json_proto HTTP/1.0 [00:12:10]Method: POST [00:12:10]URL: /json_proto [00:12:10]Method is POST - this is cgi request [00:12:10]url: /json_proto [00:12:10]query_string will be loaded in cgi processing [00:12:10]execute_cgi json_proto POST (null) [00:12:10]execute_cgi path=json_proto method=POST [00:12:10]POST find Content-Length [00:12:10]Host: 172.17.42.196:8080 [00:12:10]Content-Length: 331 [00:12:10]Content-Type: application/json [00:12:10] [00:12:10]POST finish read [00:12:10]Found Content-Length = 331 [00:12:10]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:10]execute_script... [00:12:10]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:10]POST & json_proto [00:12:10]process_json_proto [00:12:10]json parsed OK: [00:12:10]protocol is kg_v1.0 [00:12:10]action value=get_value [00:12:10]process_action get_value [00:12:10]cmd_get_value [00:12:10]process_action get_value done [00:12:10]requested_data is exist [00:12:10]produce_requested_data [00:12:10]requested_item fm.sale.total is exist - process it [00:12:10]SAM_PROTO_GetFMData [00:12:10]wFMCommunicate request_size=4 [00:12:10]MH_SAM_APDU [00:12:10]CAPDU: 80 13 03 00 [00:12:10]Write to MH i2c: E2 08 00 E2 33 80 13 03 00 00 00 00 00 94 [00:12:10]Write i2c OK [00:12:10]MH_I2C_Read... [00:12:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:10]Read from MH i2c: E2 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 FD 00 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 FD 00 E2 33 00 C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 84 [00:12:10]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 [00:12:10]wFMCommunicate OK [00:12:10]wFMCommunicate request_size=4 [00:12:10]MH_SAM_APDU [00:12:10]CAPDU: 80 17 00 00 [00:12:10]Write to MH i2c: E2 08 00 E3 33 80 17 00 00 00 00 00 00 96 [00:12:10]Write i2c OK [00:12:10]MH_I2C_Read... [00:12:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:11]Read from MH i2c: E2 [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: E2 FD 00 [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: E2 FD 00 E3 33 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 03 [00:12:11]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:12:11]wFMCommunicate OK [00:12:11]wFMCommunicate request_size=4 [00:12:11]MH_SAM_APDU [00:12:11]CAPDU: 80 17 00 00 [00:12:11]Write to MH i2c: E2 08 00 E4 33 80 17 00 00 00 00 00 00 97 [00:12:11]Write i2c OK [00:12:11]MH_I2C_Read... [00:12:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:11]Read from MH i2c: E2 [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: E2 FD 00 [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: E2 FD 00 E4 33 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 45 [00:12:11]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:11]wFMCommunicate OK [00:12:11]wFMCommunicate request_size=4 [00:12:11]MH_SAM_APDU [00:12:11]CAPDU: 80 17 00 00 [00:12:11]Write to MH i2c: E2 08 00 E5 33 80 17 00 00 00 00 00 00 98 [00:12:11]Write i2c OK [00:12:11]MH_I2C_Read... [00:12:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:11]Read from MH i2c: E2 [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: E2 FD 00 [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: E2 FD 00 E5 33 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 13 [00:12:11]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:11]wFMCommunicate OK [00:12:11]wFMCommunicate request_size=4 [00:12:11]MH_SAM_APDU [00:12:11]CAPDU: 80 17 00 00 [00:12:11]Write to MH i2c: E2 08 00 E6 33 80 17 00 00 00 00 00 00 99 [00:12:11]Write i2c OK [00:12:11]MH_I2C_Read... [00:12:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:12:12]Read from MH i2c: E2 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 DF 00 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 DF 00 E6 33 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 79 [00:12:12]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12]wFMCommunicate OK [00:12:12]SAM_PROTO_GetFMData done [00:12:12]requested_item fm.sale_refund.total is exist - process it [00:12:12]requested_item fm.buy.total is exist - process it [00:12:12]requested_item shift.sale.total is exist - process it [00:12:12]SAM_PROTO_GetShiftData [00:12:12]wFMCommunicate request_size=4 [00:12:12]MH_SAM_APDU [00:12:12]CAPDU: 80 13 02 00 [00:12:12]Write to MH i2c: E2 08 00 E7 33 80 13 02 00 00 00 00 00 98 [00:12:12]Write i2c OK [00:12:12]MH_I2C_Read... [00:12:12]OFD Sender: No OFD packet to send [00:12:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:12]Read from MH i2c: E2 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 FD 00 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 FD 00 E7 33 00 AE 04 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6C [00:12:12]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:12:12]wFMCommunicate OK [00:12:12]wFMCommunicate request_size=4 [00:12:12]MH_SAM_APDU [00:12:12]CAPDU: 80 17 00 00 [00:12:12]Write to MH i2c: E2 08 00 E8 33 80 17 00 00 00 00 00 00 9B [00:12:12]Write i2c OK [00:12:12]MH_I2C_Read... [00:12:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:13]Read from MH i2c: E2 [00:12:13]MH_I2C_Read... [00:12:13]Read from MH i2c: E2 FD 00 [00:12:13]MH_I2C_Read... [00:12:13]Read from MH i2c: E2 FD 00 E8 33 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 BD [00:12:13]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 [00:12:13]wFMCommunicate OK [00:12:13]wFMCommunicate request_size=4 [00:12:13]MH_SAM_APDU [00:12:13]CAPDU: 80 17 00 00 [00:12:13]Write to MH i2c: E2 08 00 E9 33 80 17 00 00 00 00 00 00 9C [00:12:13]Write i2c OK [00:12:13]MH_I2C_Read... [00:12:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:13]Read from MH i2c: E2 [00:12:13]MH_I2C_Read... [00:12:13]Read from MH i2c: E2 FD 00 [00:12:13]MH_I2C_Read... [00:12:13]Read from MH i2c: E2 FD 00 E9 33 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 53 [00:12:13]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 [00:12:13]wFMCommunicate OK [00:12:13]wFMCommunicate request_size=4 [00:12:13]MH_SAM_APDU [00:12:13]CAPDU: 80 17 00 00 [00:12:13]Write to MH i2c: E2 08 00 EA 33 80 17 00 00 00 00 00 00 9D [00:12:13]Write i2c OK [00:12:13]MH_I2C_Read... [00:12:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:14]Read from MH i2c: E2 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 FD 00 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 FD 00 EA 33 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 0F [00:12:14]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 [00:12:14]wFMCommunicate OK [00:12:14]wFMCommunicate request_size=4 [00:12:14]MH_SAM_APDU [00:12:14]CAPDU: 80 17 00 00 [00:12:14]Write to MH i2c: E2 08 00 EB 33 80 17 00 00 00 00 00 00 9E [00:12:14]Write i2c OK [00:12:14]MH_I2C_Read... [00:12:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:12:14]Read from MH i2c: E2 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 CB 00 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 CB 00 EB 33 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 87 [00:12:14]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 [00:12:14]wFMCommunicate OK [00:12:14]SAM_PROTO_GetShiftData done [00:12:14]requested_item shift.sale.total_cash is exist - process it [00:12:14]requested_item shift.sale_refund.total is exist - process it [00:12:14]requested_item shift.sale_refund.total_cash is exist - process it [00:12:14]requested_item shift.buy.total is exist - process it [00:12:14]requested_item shift.buy.total_cash is exist - process it [00:12:14]produce_requested_data done [00:12:14]produce_requested_data return {"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.00,"fm.buy.total":0.00,"shift.sale.total":55602.97,"shift.sale.total_cash":40216.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:14]process_action_free get_value [00:12:14]json_value_free [00:12:14]json_value_free done [00:12:14]process_json_proto returns [00:12:14]Send response to host [00:12:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.00,"fm.buy.total":0.00,"shift.sale.total":55602.97,"shift.sale.total_cash":40216.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:14]free response buf [00:12:14]execute_script done [00:12:14]execute_script returns [00:12:14]free content buf [00:12:14]Sock 7.Close socket [00:12:14]Sock 7.Thread stoped [00:12:14]accept exits with 9 [00:12:14]New connection [00:12:14]New thread 3067252068 created [00:12:14]Thread 3067108708 joined [00:12:14]Waiting for new connection... [00:12:14] Sock 9.Parse request [00:12:14]Sock 9.Check first char [00:12:14]Sock 9.First char is OK [00:12:14]request: POST /json_proto HTTP/1.0 [00:12:14]Method: POST [00:12:14]URL: /json_proto [00:12:14]Method is POST - this is cgi request [00:12:14]url: /json_proto [00:12:14]query_string will be loaded in cgi processing [00:12:14]execute_cgi json_proto POST (null) [00:12:14]execute_cgi path=json_proto method=POST [00:12:14]POST find Content-Length [00:12:14]Host: 172.17.42.196:8080 [00:12:14]Content-Length: 285 [00:12:14]Content-Type: application/json [00:12:14] [00:12:14]POST finish read [00:12:14]Found Content-Length = 285 [00:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0436\u0430\u043D \u0443\u0443\u043B\u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:14]execute_script... [00:12:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0436\u0430\u043D \u0443\u0443\u043B\u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:14]POST & json_proto [00:12:14]process_json_proto [00:12:14]json parsed OK: [00:12:14]protocol is kg_v1.0 [00:12:14]action value=close_shift [00:12:14]process_action close_shift [00:12:14]cmd_close_shift [00:12:14]MH_GetDate [00:12:14]Write to MH i2c: F0 00 00 EC 33 0E [00:12:14]Write i2c OK [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: F0 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: F0 09 00 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: F0 09 00 EC 33 00 64 E2 1A 67 FF C4 6B 64 70 [00:12:14]GetLastDocTimeStamp 1729815064 [00:12:14]current date 1729815140 [00:12:14]FM_GetShiftState [00:12:14]SAM_PROTO_GetShiftState [00:12:14]wFMCommunicate request_size=4 [00:12:14]MH_SAM_APDU [00:12:14]CAPDU: 80 13 01 00 [00:12:14]Write to MH i2c: E2 08 00 ED 33 80 13 01 00 00 00 00 00 9D [00:12:14]Write i2c OK [00:12:14]MH_I2C_Read... [00:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:14]Read from MH i2c: E2 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 0E 00 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 0E 00 ED 33 00 09 00 01 0F 98 19 67 00 00 00 00 90 00 D0 [00:12:14]RAPDU: 09 00 01 0F 98 19 67 00 00 00 00 90 00 [00:12:14]wFMCommunicate OK [00:12:14]SAM_PROTO_GetShiftState done [00:12:14]FM_GetShiftState done [00:12:14]KKMCreateCloseShiftDocument [00:12:14]Load OK [00:12:14]Malloc new data [00:12:14]MH_GetDate [00:12:14]Write to MH i2c: F0 00 00 EE 33 10 [00:12:14]Write i2c OK [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: F0 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: F0 09 00 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: F0 09 00 EE 33 00 64 E2 1A 67 FF C4 6B 64 72 [00:12:14]Malloc new data [00:12:14]Malloc new data [00:12:14]Malloc new data [00:12:14]Malloc new data [00:12:14]KKMCreateCloseShiftDocument OK [00:12:14]KKMSetCloseShiftData OK [00:12:14]ProcessDocumentItem done err = 0, tmpTLVsize=80 [00:12:14]tlvbuf is 00EF6410 [00:12:14]KKMLoadAndSignCloseShiftData [00:12:14]SAM_PROTO_ProcessDocument [00:12:14]wFMCommunicate request_size=9 [00:12:14]MH_SAM_APDU [00:12:14]CAPDU: 80 15 01 00 04 05 00 50 00 [00:12:14]Write to MH i2c: E2 0C 00 EF 33 80 15 01 00 04 00 05 00 50 00 00 00 FE [00:12:14]Write i2c OK [00:12:14]MH_I2C_Read... [00:12:14]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:12:14]Read from MH i2c: E2 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 03 00 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 03 00 EF 33 00 90 00 96 [00:12:14]RAPDU: 90 00 [00:12:14]wFMCommunicate OK [00:12:14]wFMCommunicate request_size=23 [00:12:14]MH_SAM_APDU [00:12:14]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:14]Write to MH i2c: E2 1A 00 F0 33 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 98 [00:12:14]Write i2c OK [00:12:14]MH_I2C_Read... [00:12:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:15]Read from MH i2c: E2 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 03 00 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 03 00 F0 33 00 90 00 97 [00:12:15]RAPDU: 90 00 [00:12:15]wFMCommunicate OK [00:12:15]wFMCommunicate request_size=39 [00:12:15]MH_SAM_APDU [00:12:15]CAPDU: 80 15 02 00 22 FD 03 1E 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B6 D0 B0 D0 BD 20 D1 83 D1 83 D0 BB D1 83 20 D0 91 2E 20 [00:12:15]Write to MH i2c: E2 2A 00 F1 33 80 15 02 00 22 00 FD 03 1E 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B6 D0 B0 D0 BD 20 D1 83 D1 83 D0 BB D1 83 20 D0 91 2E 20 00 00 2E [00:12:15]Write i2c OK [00:12:15]MH_I2C_Read... [00:12:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:15]Read from MH i2c: E2 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 03 00 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 03 00 F1 33 00 90 00 98 [00:12:15]RAPDU: 90 00 [00:12:15]wFMCommunicate OK [00:12:15]wFMCommunicate request_size=13 [00:12:15]MH_SAM_APDU [00:12:15]CAPDU: 80 15 02 00 08 F4 03 04 00 64 E2 1A 67 [00:12:15]Write to MH i2c: E2 10 00 F2 33 80 15 02 00 08 00 F4 03 04 00 64 E2 1A 67 00 00 77 [00:12:15]Write i2c OK [00:12:15]MH_I2C_Read... [00:12:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:15]Read from MH i2c: E2 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 03 00 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 03 00 F2 33 00 90 00 99 [00:12:15]RAPDU: 90 00 [00:12:15]wFMCommunicate OK [00:12:15]wFMCommunicate request_size=25 [00:12:15]MH_SAM_APDU [00:12:15]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 [00:12:15]Write to MH i2c: E2 1C 00 F3 33 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 00 00 03 [00:12:15]Write i2c OK [00:12:15]MH_I2C_Read... [00:12:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:15]Read from MH i2c: E2 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 03 00 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 03 00 F3 33 00 90 00 9A [00:12:15]RAPDU: 90 00 [00:12:15]wFMCommunicate OK [00:12:15]wFMCommunicate request_size=4 [00:12:15]MH_SAM_APDU [00:12:15]CAPDU: 80 15 03 00 [00:12:15]Write to MH i2c: E2 08 00 F4 33 80 15 03 00 00 00 00 00 A8 [00:12:15]Write i2c OK [00:12:15]MH_I2C_Read... [00:12:15]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:12:15]Read from MH i2c: E2 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 FD 00 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 FD 00 F4 33 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 B2 EA 00 00 0E 04 04 00 11 02 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9E 00 00 00 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [00:12:15]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 B2 EA 00 00 0E 04 04 00 11 02 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9E 00 00 00 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:15]wFMCommunicate OK [00:12:15]SAM_PROTO_ProcessDocument answer len = 1265 [00:12:15]SAM_PROTO_ProcessDocument remain to read = 1017 [00:12:15]wFMCommunicate request_size=4 [00:12:15]MH_SAM_APDU [00:12:15]CAPDU: 80 17 00 00 [00:12:15]Write to MH i2c: E2 08 00 F5 33 80 17 00 00 00 00 00 00 A8 [00:12:15]Write i2c OK [00:12:15]MH_I2C_Read... [00:12:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:16]Read from MH i2c: E2 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 FD 00 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 FD 00 F5 33 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F1 [00:12:16]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:12:16]wFMCommunicate OK [00:12:16]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:12:16]SAM_PROTO_ProcessDocument remain to read = 767 [00:12:16]wFMCommunicate request_size=4 [00:12:16]MH_SAM_APDU [00:12:16]CAPDU: 80 17 00 00 [00:12:16]Write to MH i2c: E2 08 00 F6 33 80 17 00 00 00 00 00 00 A9 [00:12:16]Write i2c OK [00:12:16]MH_I2C_Read... [00:12:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:16]Read from MH i2c: E2 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 FD 00 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 FD 00 F6 33 00 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 90 00 0B [00:12:16]RAPDU: 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 90 00 [00:12:16]wFMCommunicate OK [00:12:16]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:12:16]SAM_PROTO_ProcessDocument remain to read = 517 [00:12:16]wFMCommunicate request_size=4 [00:12:16]MH_SAM_APDU [00:12:16]CAPDU: 80 17 00 00 [00:12:16]Write to MH i2c: E2 08 00 F7 33 80 17 00 00 00 00 00 00 AA [00:12:16]Write i2c OK [00:12:16]MH_I2C_Read... [00:12:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:17]Read from MH i2c: E2 [00:12:17]MH_I2C_Read... [00:12:17]Read from MH i2c: E2 FD 00 [00:12:17]MH_I2C_Read... [00:12:17]Read from MH i2c: E2 FD 00 F7 33 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 34 [00:12:17]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:17]wFMCommunicate OK [00:12:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:12:17]SAM_PROTO_ProcessDocument remain to read = 267 [00:12:17]wFMCommunicate request_size=4 [00:12:17]MH_SAM_APDU [00:12:17]CAPDU: 80 17 00 00 [00:12:17]Write to MH i2c: E2 08 00 F8 33 80 17 00 00 00 00 00 00 AB [00:12:17]Write i2c OK [00:12:17]MH_I2C_Read... [00:12:17]OFD Sender: No OFD packet to send [00:12:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:17]Read from MH i2c: E2 [00:12:17]MH_I2C_Read... [00:12:17]Read from MH i2c: E2 FD 00 [00:12:17]MH_I2C_Read... [00:12:17]Read from MH i2c: E2 FD 00 F8 33 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 73 [00:12:17]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:17]wFMCommunicate OK [00:12:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:12:17]SAM_PROTO_ProcessDocument remain to read = 17 [00:12:17]wFMCommunicate request_size=4 [00:12:17]MH_SAM_APDU [00:12:17]CAPDU: 80 17 00 00 [00:12:17]Write to MH i2c: E2 08 00 F9 33 80 17 00 00 00 00 00 00 AC [00:12:17]Write i2c OK [00:12:17]MH_I2C_Read... [00:12:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [00:12:17]Read from MH i2c: E2 [00:12:17]MH_I2C_Read... [00:12:17]Read from MH i2c: E2 14 00 [00:12:17]MH_I2C_Read... [00:12:17]Read from MH i2c: E2 14 00 F9 33 00 01 00 06 F7 03 00 00 35 04 06 00 34 7F 65 D0 57 DD 90 00 0D [00:12:17]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 34 7F 65 D0 57 DD 90 00 [00:12:17]wFMCommunicate OK [00:12:17]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [00:12:17]SAM_PROTO_ProcessDocument done [00:12:17]1209 (1) - 1.0 - номер версии ФФД [00:12:17]1041 (16) - 0000000000874674 - номер ФМ [00:12:17]1040 (4) - 60082 - номер ФД [00:12:17]1038 (4) - 529 - номер смены [00:12:17]1118 (4) - 156 - количество кассовых чеков за смену [00:12:17]1111 (4) - 158 - общее количество ФД за смену [00:12:17]1194 (1194) - счетчики итогов смены [00:12:17] 1134 (4) - 156 - количество чеков со всеми признаками расчетов [00:12:17] 1129 (155) - счетчики операций «приход» [00:12:17] 1135 (4) - 156 - количество чеков по признаку расчетов [00:12:17] 1201 (3) - 55602.97 - общая итоговая сумма в чеках [00:12:17] 1136 (3) - 40216.00 - итоговая сумма в чеках наличными [00:12:17] 1138 (3) - 15386.97 - итоговая сумма в чеках безналичными [00:12:17] 1024 (122) - суммы налогов [00:12:17] 1006 (9) - суммы НДС [00:12:17] 1010 (1) - 0% - код ставки НДС [00:12:17] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:17] 1006 (12) - суммы НДС [00:12:17] 1010 (1) - 12% - код ставки НДС [00:12:17] 1011 (3) - 5905.24 - сумма НДС по ставке [00:12:17] 1007 (9) - суммы НСП [00:12:17] 1014 (1) - 0% - код ставки НСП [00:12:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:17] 1007 (11) - суммы НСП [00:12:17] 1014 (1) - 1% - код ставки НСП [00:12:17] 1015 (2) - 491.96 - сумма НСП по ставке [00:12:17] 1007 (9) - суммы НСП [00:12:17] 1014 (1) - 2% - код ставки НСП [00:12:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:17] 1007 (9) - суммы НСП [00:12:17] 1014 (1) - 3% - код ставки НСП [00:12:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:17] 1007 (9) - суммы НСП [00:12:17] 1014 (1) - 5% - код ставки НСП [00:12:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:17] 1007 (9) - суммы НСП [00:12:17] 1014 (1) - 0,50% - код ставки НСП [00:12:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:17] 1007 (9) - суммы НСП [00:12:17] 1014 (1) - 1,50% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1130 (141) - счетчики операций «возврат прихода» [00:12:18] 1135 (4) - 0 - количество чеков по признаку расчетов [00:12:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:12:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:12:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:12:18] 1024 (117) - суммы налогов [00:12:18] 1006 (9) - суммы НДС [00:12:18] 1010 (1) - 0% - код ставки НДС [00:12:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:18] 1006 (9) - суммы НДС [00:12:18] 1010 (1) - 12% - код ставки НДС [00:12:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 0% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 1% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 2% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 3% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 5% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 0,50% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 1,50% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1131 (141) - счетчики операций «расход» [00:12:18] 1135 (4) - 0 - количество чеков по признаку расчетов [00:12:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:12:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:12:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:12:18] 1024 (117) - суммы налогов [00:12:18] 1006 (9) - суммы НДС [00:12:18] 1010 (1) - 0% - код ставки НДС [00:12:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:18] 1006 (9) - суммы НДС [00:12:18] 1010 (1) - 12% - код ставки НДС [00:12:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 0% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 1% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 2% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 3% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 5% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 0,50% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 1,50% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1132 (141) - счетчики операций «возврат расхода» [00:12:18] 1135 (4) - 0 - количество чеков по признаку расчетов [00:12:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:12:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:12:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:12:18] 1024 (117) - суммы налогов [00:12:18] 1006 (9) - суммы НДС [00:12:18] 1010 (1) - 0% - код ставки НДС [00:12:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:18] 1006 (9) - суммы НДС [00:12:18] 1010 (1) - 12% - код ставки НДС [00:12:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 0% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 1% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 2% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 3% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 5% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 0,50% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1007 (9) - суммы НСП [00:12:18] 1014 (1) - 1,50% - код ставки НСП [00:12:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:18] 1133 (588) - - счетчики коррекции - не используются [00:12:18]1077 (6) - 57721773643741 - ФПД [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1209 (04B9) [00:12:18]Malloc new data [00:12:18]Processing tag 1041 (0411) [00:12:18]Processing tag 1040 (0410) [00:12:18]Malloc new data [00:12:18]Processing tag 1038 (040E) [00:12:18]Malloc new data [00:12:18]Processing tag 1118 (045E) [00:12:18]Malloc new data [00:12:18]Processing tag 1111 (0457) [00:12:18]Malloc new data [00:12:18]Processing tag 1194 (04AA) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1134 (046E) [00:12:18]Malloc new data [00:12:18]Processing tag 1129 (0469) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1135 (046F) [00:12:18]Malloc new data [00:12:18]Processing tag 1201 (04B1) [00:12:18]Malloc new data [00:12:18]Processing tag 1136 (0470) [00:12:18]Malloc new data [00:12:18]Processing tag 1138 (0472) [00:12:18]Malloc new data [00:12:18]Processing tag 1024 (0400) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1006 (03EE) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1010 (03F2) [00:12:18]Malloc new data [00:12:18]Processing tag 1011 (03F3) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1006 (03EE) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1010 (03F2) [00:12:18]Malloc new data [00:12:18]Processing tag 1011 (03F3) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]SetTLVBufToDocument err=0 [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1130 (046A) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1135 (046F) [00:12:18]Malloc new data [00:12:18]Processing tag 1201 (04B1) [00:12:18]Malloc new data [00:12:18]Processing tag 1136 (0470) [00:12:18]Malloc new data [00:12:18]Processing tag 1138 (0472) [00:12:18]Malloc new data [00:12:18]Processing tag 1024 (0400) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1006 (03EE) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1010 (03F2) [00:12:18]Malloc new data [00:12:18]Processing tag 1011 (03F3) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1006 (03EE) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1010 (03F2) [00:12:18]Malloc new data [00:12:18]Processing tag 1011 (03F3) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]SetTLVBufToDocument err=0 [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1131 (046B) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1135 (046F) [00:12:18]Malloc new data [00:12:18]Processing tag 1201 (04B1) [00:12:18]Malloc new data [00:12:18]Processing tag 1136 (0470) [00:12:18]Malloc new data [00:12:18]Processing tag 1138 (0472) [00:12:18]Malloc new data [00:12:18]Processing tag 1024 (0400) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1006 (03EE) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1010 (03F2) [00:12:18]Malloc new data [00:12:18]Processing tag 1011 (03F3) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1006 (03EE) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1010 (03F2) [00:12:18]Malloc new data [00:12:18]Processing tag 1011 (03F3) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:18]Processing tag 1015 (03F7) [00:12:18]Malloc new data [00:12:18]SetTLVBufToDocument err=0 [00:12:18]Processing tag 1007 (03EF) [00:12:18]Load OK [00:12:18]SetTLVBufToDocument [00:12:18]Processing tag 1014 (03F6) [00:12:18]Malloc new data [00:12:19]Processing tag 1015 (03F7) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]Processing tag 1007 (03EF) [00:12:19]Load OK [00:12:19]SetTLVBufToDocument [00:12:19]Processing tag 1014 (03F6) [00:12:19]Malloc new data [00:12:19]Processing tag 1015 (03F7) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]SetTLVBufToDocument err=0 [00:12:19]SetTLVBufToDocument err=0 [00:12:19]Processing tag 1132 (046C) [00:12:19]Load OK [00:12:19]SetTLVBufToDocument [00:12:19]Processing tag 1135 (046F) [00:12:19]Malloc new data [00:12:19]Processing tag 1201 (04B1) [00:12:19]Malloc new data [00:12:19]Processing tag 1136 (0470) [00:12:19]Malloc new data [00:12:19]Processing tag 1138 (0472) [00:12:19]Malloc new data [00:12:19]Processing tag 1024 (0400) [00:12:19]Load OK [00:12:19]SetTLVBufToDocument [00:12:19]Processing tag 1006 (03EE) [00:12:19]Load OK [00:12:19]SetTLVBufToDocument [00:12:19]Processing tag 1010 (03F2) [00:12:19]Malloc new data [00:12:19]Processing tag 1011 (03F3) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]Processing tag 1006 (03EE) [00:12:19]Load OK [00:12:19]SetTLVBufToDocument [00:12:19]Processing tag 1010 (03F2) [00:12:19]Malloc new data [00:12:19]Processing tag 1011 (03F3) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]Processing tag 1007 (03EF) [00:12:19]Load OK [00:12:19]SetTLVBufToDocument [00:12:19]Processing tag 1014 (03F6) [00:12:19]Malloc new data [00:12:19]Processing tag 1015 (03F7) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]Processing tag 1007 (03EF) [00:12:19]Load OK [00:12:19]SetTLVBufToDocument [00:12:19]Processing tag 1014 (03F6) [00:12:19]Malloc new data [00:12:19]Processing tag 1015 (03F7) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]Processing tag 1007 (03EF) [00:12:19]Load OK [00:12:19]SetTLVBufToDocument [00:12:19]Processing tag 1014 (03F6) [00:12:19]Malloc new data [00:12:19]Processing tag 1015 (03F7) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]Processing tag 1007 (03EF) [00:12:19]Load OK [00:12:19]SetTLVBufToDocument [00:12:19]Processing tag 1014 (03F6) [00:12:19]Malloc new data [00:12:19]Processing tag 1015 (03F7) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]Processing tag 1007 (03EF) [00:12:19]Load OK [00:12:19]SetTLVBufToDocument [00:12:19]Processing tag 1014 (03F6) [00:12:19]Malloc new data [00:12:19]Processing tag 1015 (03F7) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]Processing tag 1007 (03EF) [00:12:19]Load OK [00:12:19]SetTLVBufToDocument [00:12:19]Processing tag 1014 (03F6) [00:12:19]Malloc new data [00:12:19]Processing tag 1015 (03F7) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]Processing tag 1007 (03EF) [00:12:19]Load OK [00:12:19]SetTLVBufToDocument [00:12:19]Processing tag 1014 (03F6) [00:12:19]Malloc new data [00:12:19]Processing tag 1015 (03F7) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]SetTLVBufToDocument err=0 [00:12:19]SetTLVBufToDocument err=0 [00:12:19]Processing tag 1133 (046D) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]Processing tag 1077 (0435) [00:12:19]Malloc new data [00:12:19]SetTLVBufToDocument err=0 [00:12:19]Malloc new data [00:12:19]SAM_PROTO_GetFMData [00:12:19]wFMCommunicate request_size=4 [00:12:19]MH_SAM_APDU [00:12:19]CAPDU: 80 13 03 00 [00:12:19]Write to MH i2c: E2 08 00 FA 33 80 13 03 00 00 00 00 00 AC [00:12:19]Write i2c OK [00:12:19]MH_I2C_Read... [00:12:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:19]Read from MH i2c: E2 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 FD 00 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 FD 00 FA 33 00 C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 9C [00:12:19]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 [00:12:19]wFMCommunicate OK [00:12:19]wFMCommunicate request_size=4 [00:12:19]MH_SAM_APDU [00:12:19]CAPDU: 80 17 00 00 [00:12:19]Write to MH i2c: E2 08 00 FB 33 80 17 00 00 00 00 00 00 AE [00:12:19]Write i2c OK [00:12:19]MH_I2C_Read... [00:12:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:20]Read from MH i2c: E2 [00:12:20]MH_I2C_Read... [00:12:20]Read from MH i2c: E2 FD 00 [00:12:20]MH_I2C_Read... [00:12:20]Read from MH i2c: E2 FD 00 FB 33 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 1B [00:12:20]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:12:20]wFMCommunicate OK [00:12:20]wFMCommunicate request_size=4 [00:12:20]MH_SAM_APDU [00:12:20]CAPDU: 80 17 00 00 [00:12:20]Write to MH i2c: E2 08 00 FC 33 80 17 00 00 00 00 00 00 AF [00:12:20]Write i2c OK [00:12:20]MH_I2C_Read... [00:12:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:20]Read from MH i2c: E2 [00:12:20]MH_I2C_Read... [00:12:20]Read from MH i2c: E2 FD 00 [00:12:20]MH_I2C_Read... [00:12:20]Read from MH i2c: E2 FD 00 FC 33 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5D [00:12:20]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:20]wFMCommunicate OK [00:12:20]wFMCommunicate request_size=4 [00:12:20]MH_SAM_APDU [00:12:20]CAPDU: 80 17 00 00 [00:12:20]Write to MH i2c: E2 08 00 FD 33 80 17 00 00 00 00 00 00 B0 [00:12:20]Write i2c OK [00:12:20]MH_I2C_Read... [00:12:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:21]Read from MH i2c: E2 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 FD 00 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 FD 00 FD 33 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2B [00:12:21]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:21]wFMCommunicate OK [00:12:21]wFMCommunicate request_size=4 [00:12:21]MH_SAM_APDU [00:12:21]CAPDU: 80 17 00 00 [00:12:21]Write to MH i2c: E2 08 00 FE 33 80 17 00 00 00 00 00 00 B1 [00:12:21]Write i2c OK [00:12:21]MH_I2C_Read... [00:12:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:12:21]Read from MH i2c: E2 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 DF 00 [00:12:21]MH_I2C_Read... [00:12:21]Read from MH i2c: E2 DF 00 FE 33 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 [00:12:21]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21]wFMCommunicate OK [00:12:21]SAM_PROTO_GetFMData done [00:12:21]Malloc new data [00:12:21]Malloc new data [00:12:21]Malloc new data [00:12:21]Malloc new data [00:12:21]KKMLoadAndSignCloseShiftData err=0 [00:12:21]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сабыржан уулу Б. 25.10.2024 00:12 Смена: 529 РНМ: 0000000000091622 ЗНМ: 0300000084 СНО: Общий режим Чеков за смену: 156 ФД за смену: 158 Всего чеков: 156 ИТОГИ ПРИХОД Чеков: 156 Общий итог: 55602.97 Итого наличными: 40216.00 Итого безнал.: 15386.97 НДС 0% : 0.00 НДС 12% : 5905.24 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 491.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 Нал. в кассе: 40216.00 НС Приход: 18231196.11 НС Возвр.Прихода: 140703.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 60082 ФМ: 0000000000874674 ФПД: 57721773643741 [00:12:21]StoreToDocumentArchive [00:12:21]shift 529 fd 60082 [00:12:21]save to /storage/0529/doc_00060082 [00:12:21]save last doc name /storage/0529/doc_00060082 to /storage/kkm_last_doc_name [00:12:21]save OK [00:12:21]Clear old archive folders... [00:12:21]Remove dir /storage/0522 [00:12:21]opendir ok [00:12:21]file . [00:12:21]file .. [00:12:21]file doc_1729815071 [00:12:21]remove file /storage/0522/doc_1729815071 [00:12:21]remove dir /storage/0522 [00:12:21]NVStorageSaveData kkm_registers [00:12:21]File name is /storage/kkm_registers [00:12:21]Write 24 bytes [00:12:21]NVStorageSaveData done [00:12:21]NVStorageSaveData kkm_registers [00:12:21]File name is /storage/kkm_registers [00:12:21]Write 24 bytes [00:12:21]NVStorageSaveData done [00:12:21]ProcessDocumentItem done err = 0, tmpTLVsize=1388 [00:12:21]tlvbuf is 00DB4570 [00:12:22]SAM_PROTO_ClearQueue [00:12:22]wFMCommunicate request_size=4 [00:12:22]MH_SAM_APDU [00:12:22]CAPDU: 80 09 00 00 [00:12:22]Write to MH i2c: E2 08 00 FF 33 80 09 00 00 00 00 00 00 A4 [00:12:22]Write i2c OK [00:12:22]MH_I2C_Read... [00:12:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:22]Read from MH i2c: E2 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 03 00 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 03 00 FF 33 00 90 00 A6 [00:12:22]RAPDU: 90 00 [00:12:22]wFMCommunicate OK [00:12:22]SAM_PROTO_ClearQueue done [00:12:22]KKMCreateOFDPacket [00:12:22]OFDProtocolAddRootSTLVToBuf [00:12:22]FM_MakeSignedData [00:12:22]FM_MakeSignedData [00:12:22]SAM_PROTO_SignData [00:12:22]wFMCommunicate request_size=4 [00:12:22]MH_SAM_APDU [00:12:22]CAPDU: 80 0D 01 02 [00:12:22]Write to MH i2c: E2 08 00 00 34 80 0D 01 02 00 00 00 00 AD [00:12:22]Write i2c OK [00:12:22]MH_I2C_Read... [00:12:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:22]Read from MH i2c: E2 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 03 00 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 03 00 00 34 00 90 00 A8 [00:12:22]RAPDU: 90 00 [00:12:22]wFMCommunicate OK [00:12:22]wFMCommunicate request_size=255 [00:12:22]MH_SAM_APDU [00:12:22]CAPDU: 80 0D 02 02 FA 05 00 6C 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 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B6 D0 B0 D0 BD 20 D1 83 D1 83 D0 BB D1 83 20 D0 91 2E 20 F4 03 04 00 64 E2 1A 67 0E 04 04 00 11 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 5E 04 04 00 9C 00 00 00 57 04 04 00 9E 00 00 00 AA 04 D5 04 6E 04 04 00 9C 00 00 00 69 04 A2 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BC 02 09 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 [00:12:22]Write to MH i2c: E2 02 01 01 34 80 0D 02 02 FA 00 05 00 6C 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 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B6 D0 B0 D0 BD 20 D1 83 D1 83 D0 BB D1 83 20 D0 91 2E 20 F4 03 04 00 64 E2 1A 67 0E 04 04 00 11 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 5E 04 04 00 9C 00 00 00 57 04 04 00 9E 00 00 00 AA 04 D5 04 6E 04 04 00 9C 00 00 00 69 04 A2 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BC 02 09 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 00 00 80 [00:12:22]Write i2c OK [00:12:22]MH_I2C_Read... [00:12:22]OFD Sender: No OFD packet to send [00:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:22]Read from MH i2c: E2 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 03 00 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 03 00 01 34 00 90 00 A9 [00:12:22]RAPDU: 90 00 [00:12:22]wFMCommunicate OK [00:12:22]wFMCommunicate request_size=255 [00:12:22]MH_SAM_APDU [00:12:22]CAPDU: 80 0D 02 02 FA 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 [00:12:22]Write to MH i2c: E2 02 01 02 34 80 0D 02 02 FA 00 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 00 15 [00:12:23]Write i2c OK [00:12:23]MH_I2C_Read... [00:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:23]Read from MH i2c: E2 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 03 00 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 03 00 02 34 00 90 00 AA [00:12:23]RAPDU: 90 00 [00:12:23]wFMCommunicate OK [00:12:23]wFMCommunicate request_size=255 [00:12:23]MH_SAM_APDU [00:12:23]CAPDU: 80 0D 02 02 FA 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 [00:12:23]Write to MH i2c: E2 02 01 03 34 80 0D 02 02 FA 00 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 00 00 6B [00:12:23]Write i2c OK [00:12:23]MH_I2C_Read... [00:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:23]Read from MH i2c: E2 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 03 00 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 03 00 03 34 00 90 00 AB [00:12:23]RAPDU: 90 00 [00:12:23]wFMCommunicate OK [00:12:23]wFMCommunicate request_size=255 [00:12:23]MH_SAM_APDU [00:12:23]CAPDU: 80 0D 02 02 FA 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 [00:12:24]Write to MH i2c: E2 02 01 04 34 80 0D 02 02 FA 00 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 00 00 75 [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:24]Read from MH i2c: E2 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 03 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 03 00 04 34 00 90 00 AC [00:12:24]RAPDU: 90 00 [00:12:24]wFMCommunicate OK [00:12:24]wFMCommunicate request_size=255 [00:12:24]MH_SAM_APDU [00:12:24]CAPDU: 80 0D 02 02 FA 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:12:24]Write to MH i2c: E2 02 01 05 34 80 0D 02 02 FA 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 54 [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 05 34 00 90 00 AD [00:12:25]RAPDU: 90 00 [00:12:25]wFMCommunicate OK [00:12:25]wFMCommunicate request_size=147 [00:12:25]MH_SAM_APDU [00:12:25]CAPDU: 80 0D 02 02 8E EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B2 EA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 04 06 00 34 7F 65 D0 57 DD [00:12:25]Write to MH i2c: E2 96 00 06 34 80 0D 02 02 8E 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B2 EA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 04 06 00 34 7F 65 D0 57 DD 00 00 AD [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 03 00 06 34 00 90 00 AE [00:12:25]RAPDU: 90 00 [00:12:25]wFMCommunicate OK [00:12:25]wFMCommunicate request_size=4 [00:12:25]MH_SAM_APDU [00:12:25]CAPDU: 80 0D 03 02 [00:12:25]Write to MH i2c: E2 08 00 07 34 80 0D 03 02 00 00 00 00 B6 [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 0B 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 0B 00 07 34 00 4B D2 8D 84 75 56 64 D8 90 00 EC [00:12:25]RAPDU: 4B D2 8D 84 75 56 64 D8 90 00 [00:12:25]wFMCommunicate OK [00:12:25]SAM_PROTO_SignData done [00:12:25]FM_MakeSignedData done [00:12:25]CreateOFDProtocolMessage [00:12:25]wFMCommunicate request_size=4 [00:12:25]MH_SAM_APDU [00:12:25]CAPDU: 80 11 00 00 [00:12:25]Write to MH i2c: E2 08 00 08 34 80 11 00 00 00 00 00 00 B6 [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 [00:12:25]MH_I2C_Read... [00:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:25]Read from MH i2c: E2 17 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: E2 17 00 08 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 0D [00:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [00:12:25]wFMCommunicate OK [00:12:25]CreateOFDProtocolMessage done [00:12:25]OFDSenderStorePacket 60082 [00:12:25]StoreOFDPacket docnum=60082 [00:12:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 80 05 00 00 9B 87 78 05 69 C9 5A 05 01 00 05 00 6C 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 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B6 D0 B0 D0 BD 20 D1 83 D1 83 D0 BB D1 83 20 D0 91 2E 20 F4 03 04 00 64 E2 1A 67 0E 04 04 00 11 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 5E 04 04 00 9C 00 00 00 57 04 04 00 9E 00 00 00 AA 04 D5 04 6E 04 04 00 9C 00 00 00 69 04 A2 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BC 02 09 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 B2 EA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 04 06 00 34 7F 65 D0 57 DD 4B D2 8D 84 75 56 64 D8 [00:12:26]CheckFolder [00:12:26]dirname=/storage/ofd_packets [00:12:26]CheckFolder done [00:12:26]ProducePacketName [00:12:26]name=ofd_packets/00060082 [00:12:26]NVStorageSaveData ofd_packets/00060082 [00:12:26]File name is /storage/ofd_packets/00060082 [00:12:26]Write 1438 bytes [00:12:26]NVStorageSaveData done [00:12:26]OFDSenderStorePacket done [00:12:26]KKMCreateOFDPacket done [00:12:26]NVStorageSaveData kkm_last_timestamp [00:12:26]File name is /storage/kkm_last_timestamp [00:12:26]Write 4 bytes [00:12:26]NVStorageSaveData done [00:12:26]ExternCall_PrintAddStr [00:12:26]wPrintStart [00:12:26]Write to MH i2c: 01 00 00 09 34 3D [00:12:26]Write i2c OK [00:12:26]MH_I2C_Read... [00:12:26]Read from MH i2c: 01 [00:12:26]MH_I2C_Read... [00:12:26]Read from MH i2c: 01 07 00 [00:12:26]MH_I2C_Read... [00:12:26]Read from MH i2c: 01 07 00 09 34 00 00 00 00 00 FF 0F 52 [00:12:26]RasterBufferAndPrint [00:12:26]line Отчет о закрытии смены [00:12:26]line ФФД: 1.0 [00:12:26]line ИНН: 02508201610067 [00:12:26]line Кассир: Сабыржан уулу Б. [00:12:26]line 25.10.2024 00:12 [00:12:26]line Смена: 529 [00:12:26]line РНМ: 0000000000091622 [00:12:26]line ЗНМ: 0300000084 [00:12:26]line СНО: Общий режим [00:12:26]line Чеков за смену: 156 [00:12:26]line ФД за смену: 158 [00:12:26]line Всего чеков: 156 [00:12:26]line ИТОГИ ПРИХОД [00:12:26]line Чеков: 156 [00:12:26]line Общий итог: 55602.97 [00:12:26]line Итого наличными: 40216.00 [00:12:26]line Итого безнал.: 15386.97 [00:12:26]line НДС 0% : 0.00 [00:12:26]line НДС 12% : 5905.24 [00:12:26]line НСП 0% : 0.00 [00:12:26]line НСП 1,50% : 0.00 [00:12:26]line НСП 0,50% : 0.00 [00:12:26]line НСП 5% : 0.00 [00:12:26]line НСП 3% : 0.00 [00:12:26]line НСП 2% : 0.00 [00:12:26]line НСП 1% : 491.96 [00:12:26]OFD Sender: Processing packet 60082 [packets to send 30, broken 29] [00:12:26]ProducePacketName [00:12:26]name=ofd_packets/00060082 [00:12:26]OFD Sender: To server: pG, [00:12:26]CommunicateWithHost lk.salyk.kg:30040 [00:12:26]ConnectInit lk.salyk.kg [00:12:26]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:12:26]line Чеков: 0 [00:12:26]line Общий итог: 0.00 [00:12:26]line Итого наличными: 0.00 [00:12:26]line Итого безнал.: 0.00 [00:12:26]line НДС 0% : 0.00 [00:12:26]line НДС 12% : 0.00 [00:12:26]line НСП 0% : 0.00 [00:12:26]line НСП 1,50% : 0.00 [00:12:26]line НСП 0,50% : 0.00 [00:12:26]line НСП 5% : 0.00 [00:12:26]line НСП 3% : 0.00 [00:12:26]line НСП 2% : 0.00 [00:12:26]line НСП 1% : 0.00 [00:12:26]line ИТОГИ РАСХОД [00:12:26]line Чеков: 0 [00:12:26]line Общий итог: 0.00 [00:12:26]line Итого наличными: 0.00 [00:12:26]line Итого безнал.: 0.00 [00:12:26]line НДС 0% : 0.00 [00:12:26]line НДС 12% : 0.00 [00:12:26]line НСП 0% : 0.00 [00:12:26]line НСП 1,50% : 0.00 [00:12:26]line НСП 0,50% : 0.00 [00:12:26]line НСП 5% : 0.00 [00:12:26]line НСП 3% : 0.00 [00:12:26]line НСП 2% : 0.00 [00:12:26]line НСП 1% : 0.00 [00:12:26]line ИТОГИ ВОЗВРАТ РАСХОДА [00:12:26]line Чеков: 0 [00:12:26]line Общий итог: 0.00 [00:12:26]line Итого наличными: 0.00 [00:12:26]line Итого безнал.: 0.00 [00:12:26]line НДС 0% : 0.00 [00:12:26]line НДС 12% : 0.00 [00:12:26]line НСП 0% : 0.00 [00:12:26]line НСП 1,50% : 0.00 [00:12:26]line НСП 0,50% : 0.00 [00:12:26]line НСП 5% : 0.00 [00:12:26]line НСП 3% : 0.00 [00:12:26]line НСП 2% : 0.00 [00:12:26]line НСП 1% : 0.00 [00:12:26]line Сумма внесений: 0.00 [00:12:26]line Сумма выплат: 0.00 [00:12:26]line Нал. в кассе: 40216.00 [00:12:26]line НС Приход: 18231196.11 [00:12:26]line НС Возвр.Прихода: 140703.00 [00:12:26]line НС Расход: 0.00 [00:12:26]line НС Возвр.Расхода: 0.00 [00:12:26]line ФД: 60082 [00:12:26]line ФМ: 0000000000874674 [00:12:26]line ФПД: 57721773643741 [00:12:26]written 0, free lines is 4095 [00:12:26]Connected sock=10 [00:12:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 80 05 00 00 9B 87 78 05 69 C9 5A 05 01 00 05 00 6C 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 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B6 D0 B0 D0 BD 20 D1 83 D1 83 D0 BB D1 83 20 D0 91 2E 20 F4 03 04 00 64 E2 1A 67 0E 04 04 00 11 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 5E 04 04 00 9C 00 00 00 57 04 04 00 9E 00 00 00 AA 04 D5 04 6E 04 04 00 9C 00 00 00 69 04 A2 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BC 02 09 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 Write to MH i2c: 01 F6 00 03 00 01 59 00 34 05 8D F7 [00:12:27]03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF Write i2c OK [00:12:27]03 MH_I2C_Read... [00:12:27]0A Read from MH i2c: 00 01 F6 [00:12:27]03 MH_I2C_Read... [00:12:27]01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 Read from MH i2c: 00 01 00 07 EF 00 03 [00:12:27]0A MH_I2C_Read... [00:12:27]00 Read from MH i2c: F6 03 01 01 00 07 01 00 F7 59 03 34 01 00 00 00 00 00 6D 00 04 00 4C 69 02 0B 78 08 04 [00:12:27]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 RasterBufferAndPrint [00:12:27]00 line [00:12:27]EE line [00:12:27]03 line [00:12:27]09 line [00:12:27]00 line [00:12:27]F2 03 01 written 0, free lines is 3061 [00:12:27]00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 MH_Cut [00:12:27]Write to MH i2c: 03 D1 00 01 00 00 EF 60 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 34 03 01 01 66 00 [00:12:27]01 F7 Write i2c OK [00:12:27]03 MH_I2C_Read... [00:12:27]00 Read from MH i2c: 00 D1 EF [00:12:27]03 MH_I2C_Read... [00:12:27]09 00 F6 03 01 00 02 F7 03 00 00 EF Read from MH i2c: 03 D1 09 01 00 00 [00:12:27]F6 MH_I2C_Read... [00:12:27]03 01 00 03 F7 03 Read from MH i2c: 00 D1 00 01 EF 00 60 03 34 09 00 00 65 F6 [00:12:27]03 Write to MH i2c: 01 01 00 00 04 00 F7 61 03 34 00 95 00 [00:12:27]EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 Write i2c OK [00:12:27]F6 MH_I2C_Read... [00:12:27]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 B2 EA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 04 06 00 34 7F 65 D0 57 DD 4B D2 8D 84 75 56 64 D8 [00:12:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 E9 99 47 00 22 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 34 36 37 34 10 04 04 00 B2 EA 00 00 F4 03 04 00 5E 88 1A 67 B6 04 01 00 00 62 F9 3B 16 24 70 61 51 [00:12:28]CommunicateWithHost err = 0 [00:12:28]CheckOFDResponse [00:12:28]*** Cut start [00:12:28]1017 (14) - 77093643461234 [00:12:28]*** Partial cut [00:12:28]1041 (16) - 0000000000874674 [00:12:28]*** CUTSNS_PIN = 1 [00:12:28]1040 (4) - 60082 [00:12:28]*** CUTSNS_PIN = 0 [00:12:28]1012 (4) - 24.10.2024 17:48 [00:12:28]1206 (1) - 0 [00:12:28]OFD Sender: Remove packet 60082 [00:12:28]ProducePacketName [00:12:28]name=ofd_packets/00060082 [00:12:28]NVStorageDeleteData [00:12:28]*** Brake cut motor [00:12:28]Read from MH i2c: 01 [00:12:28]MH_I2C_Read... [00:12:28]*** Stop cut motor [00:12:28]*** Cut end [00:12:28]Read from MH i2c: 01 07 00 [00:12:28]MH_I2C_Read... [00:12:28]OFD Sender: No OFD packet to send [00:12:28]Read from MH i2c: 01 07 00 61 34 00 00 00 00 00 FF 0F AA [00:12:28]process_action close_shift done [00:12:28]requested_data is exist [00:12:28]produce_requested_data [00:12:28]requested_item fd.num is exist - process it [00:12:28]SAM_PROTO_GetFieldsCounters [00:12:28]wFMCommunicate request_size=4 [00:12:28]MH_SAM_APDU [00:12:28]CAPDU: 80 13 00 00 [00:12:28]Write to MH i2c: E2 08 00 62 34 80 13 00 00 00 00 00 00 12 [00:12:28]Write i2c OK [00:12:28]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 62 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B2 EA 00 00 0E 04 04 00 11 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [00:12: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B2 EA 00 00 0E 04 04 00 11 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:29]wFMCommunicate OK [00:12:29]SAM_PROTO_GetFieldsCounters done [00:12:29]requested_item shift.num is exist - process it [00:12:29]requested_item shift.opened is exist - process it [00:12:29]req_shift_opened [00:12:29]FM_GetShiftState [00:12:29]SAM_PROTO_GetShiftState [00:12:29]wFMCommunicate request_size=4 [00:12:29]MH_SAM_APDU [00:12:29]CAPDU: 80 13 01 00 [00:12:29]Write to MH i2c: E2 08 00 63 34 80 13 01 00 00 00 00 00 14 [00:12:29]Write i2c OK [00:12:29]MH_I2C_Read... [00:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:29]Read from MH i2c: E2 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 0E 00 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 0E 00 63 34 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1F [00:12:29]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:29]wFMCommunicate OK [00:12:29]SAM_PROTO_GetShiftState done [00:12:29]FM_GetShiftState done [00:12:29]req_shift_opened done [00:12:29]requested_item shift.open_date is exist - process it [00:12:29]req_shift_open_date [00:12:29]FM_GetShiftState [00:12:29]SAM_PROTO_GetShiftState [00:12:29]wFMCommunicate request_size=4 [00:12:29]MH_SAM_APDU [00:12:29]CAPDU: 80 13 01 00 [00:12:29]Write to MH i2c: E2 08 00 64 34 80 13 01 00 00 00 00 00 15 [00:12:29]Write i2c OK [00:12:29]MH_I2C_Read... [00:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:29]Read from MH i2c: E2 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 0E 00 [00:12:29]MH_I2C_Read... [00:12:29]Read from MH i2c: E2 0E 00 64 34 00 09 00 00 00 00 00 00 00 00 00 00 90 00 20 [00:12:29]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:29]wFMCommunicate OK [00:12:29]SAM_PROTO_GetShiftState done [00:12:29]FM_GetShiftState done [00:12:29]req_shift_open_date done [00:12:29]produce_requested_data done [00:12:29]produce_requested_data return {"fd.num":60082,"shift.num":529,"shift.opened":0,"shift.open_date":0} [00:12:29]process_action_free close_shift [00:12:29]json_value_free [00:12:29]json_value_free done [00:12:29]process_json_proto returns [00:12:29]Send response to host [00:12:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":60082,"shift.num":529,"shift.opened":0,"shift.open_date":0}}} [00:12:29]free response buf [00:12:29]execute_script done [00:12:29]execute_script returns [00:12:29]free content buf [00:12:29]Sock 9.Close socket [00:12:29]Sock 9.Thread stoped [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:42]accept exits with 7 [00:39:42]New connection [00:39:42]New thread 3067108708 created [00:39:42]Thread 3067252068 joined [00:39:42]Waiting for new connection... [00:39:42] Sock 7.Parse request [00:39:42]Sock 7.Check first char [00:39:42]Sock 7.First char is OK [00:39:42]request: POST /json_proto HTTP/1.0 [00:39:42]Method: POST [00:39:42]URL: /json_proto [00:39:42]Method is POST - this is cgi request [00:39:42]url: /json_proto [00:39:42]query_string will be loaded in cgi processing [00:39:42]execute_cgi json_proto POST (null) [00:39:42]execute_cgi path=json_proto method=POST [00:39:42]POST find Content-Length [00:39:42]Host: 172.17.42.196:8080 [00:39:42]Content-Length: 215 [00:39:42]Content-Type: application/json [00:39:42] [00:39:42]POST finish read [00:39:42]Found Content-Length = 215 [00:39:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:42]execute_script... [00:39:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:42]POST & json_proto [00:39:42]process_json_proto [00:39:42]json parsed OK: [00:39:42]protocol is kg_v1.0 [00:39:42]action value=get_value [00:39:42]process_action get_value [00:39:42]cmd_get_value [00:39:42]process_action get_value done [00:39:42]requested_data is exist [00:39:42]produce_requested_data [00:39:42]requested_item kkm.sn is exist - process it [00:39:42]requested_item kkm.ver is exist - process it [00:39:42]requested_item fm.sn is exist - process it [00:39:42]wFMCommunicate request_size=4 [00:39:42]MH_SAM_APDU [00:39:42]CAPDU: 80 11 00 00 [00:39:42]Write to MH i2c: E2 08 00 65 34 80 11 00 00 00 00 00 00 13 [00:39:42]Write i2c OK [00:39:42]MH_I2C_Read... [00:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:42]Read from MH i2c: E2 [00:39:42]MH_I2C_Read... [00:39:42]Read from MH i2c: E2 17 00 [00:39:42]MH_I2C_Read... [00:39:42]Read from MH i2c: E2 17 00 65 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 6A [00:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [00:39:42]wFMCommunicate OK [00:39:42]requested_item fd.num is exist - process it [00:39:42]SAM_PROTO_GetFieldsCounters [00:39:42]wFMCommunicate request_size=4 [00:39:42]MH_SAM_APDU [00:39:42]CAPDU: 80 13 00 00 [00:39:42]Write to MH i2c: E2 08 00 66 34 80 13 00 00 00 00 00 00 16 [00:39:42]Write i2c OK [00:39:42]MH_I2C_Read... [00:39:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:42]Read from MH i2c: E2 [00:39:42]MH_I2C_Read... [00:39:42]Read from MH i2c: E2 62 00 [00:39:42]MH_I2C_Read... [00:39:42]Read from MH i2c: E2 62 00 66 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B2 EA 00 00 0E 04 04 00 11 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [00:39: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B2 EA 00 00 0E 04 04 00 11 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:39:42]wFMCommunicate OK [00:39:42]SAM_PROTO_GetFieldsCounters done [00:39:42]requested_item shift.num is exist - process it [00:39:42]requested_item shift.opened is exist - process it [00:39:42]req_shift_opened [00:39:42]FM_GetShiftState [00:39:42]SAM_PROTO_GetShiftState [00:39:42]wFMCommunicate request_size=4 [00:39:42]MH_SAM_APDU [00:39:42]CAPDU: 80 13 01 00 [00:39:42]Write to MH i2c: E2 08 00 67 34 80 13 01 00 00 00 00 00 18 [00:39:42]Write i2c OK [00:39:42]MH_I2C_Read... [00:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:42]Read from MH i2c: E2 [00:39:42]MH_I2C_Read... [00:39:42]Read from MH i2c: E2 0E 00 [00:39:42]MH_I2C_Read... [00:39:42]Read from MH i2c: E2 0E 00 67 34 00 09 00 00 00 00 00 00 00 00 00 00 90 00 23 [00:39:42]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:39:42]wFMCommunicate OK [00:39:42]SAM_PROTO_GetShiftState done [00:39:42]FM_GetShiftState done [00:39:42]req_shift_opened done [00:39:42]requested_item shift.open_date is exist - process it [00:39:42]req_shift_open_date [00:39:42]FM_GetShiftState [00:39:42]SAM_PROTO_GetShiftState [00:39:42]wFMCommunicate request_size=4 [00:39:42]MH_SAM_APDU [00:39:42]CAPDU: 80 13 01 00 [00:39:42]Write to MH i2c: E2 08 00 68 34 80 13 01 00 00 00 00 00 19 [00:39:42]Write i2c OK [00:39:42]MH_I2C_Read... [00:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:42]Read from MH i2c: E2 [00:39:42]MH_I2C_Read... [00:39:42]Read from MH i2c: E2 0E 00 [00:39:42]MH_I2C_Read... [00:39:42]Read from MH i2c: E2 0E 00 68 34 00 09 00 00 00 00 00 00 00 00 00 00 90 00 24 [00:39:42]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:39:42]wFMCommunicate OK [00:39:42]SAM_PROTO_GetShiftState done [00:39:42]FM_GetShiftState done [00:39:42]req_shift_open_date done [00:39:42]produce_requested_data done [00:39:42]produce_requested_data return {"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60082,"shift.num":529,"shift.opened":0,"shift.open_date":0} [00:39:42]process_action_free get_value [00:39:42]json_value_free [00:39:42]json_value_free done [00:39:42]process_json_proto returns [00:39:42]Send response to host [00:39:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60082,"shift.num":529,"shift.opened":0,"shift.open_date":0}}} [00:39:42]free response buf [00:39:42]execute_script done [00:39:42]execute_script returns [00:39:42]free content buf [00:39:42]Sock 7.Close socket [00:39:42]Sock 7.Thread stoped [00:39:42]accept exits with 9 [00:39:42]New connection [00:39:42]New thread 3067252068 created [00:39:42]Thread 3067108708 joined [00:39:42]Waiting for new connection... [00:39:42] Sock 9.Parse request [00:39:42]Sock 9.Check first char [00:39:42]Sock 9.First char is OK [00:39:42]request: POST /json_proto HTTP/1.0 [00:39:42]Method: POST [00:39:42]URL: /json_proto [00:39:42]Method is POST - this is cgi request [00:39:42]url: /json_proto [00:39:42]query_string will be loaded in cgi processing [00:39:42]execute_cgi json_proto POST (null) [00:39:42]execute_cgi path=json_proto method=POST [00:39:42]POST find Content-Length [00:39:42]Host: 172.17.42.196:8080 [00:39:42]Content-Length: 331 [00:39:42]Content-Type: application/json [00:39:42] [00:39:42]POST finish read [00:39:42]Found Content-Length = 331 [00:39:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:39:42]execute_script... [00:39:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:39:43]POST & json_proto [00:39:43]process_json_proto [00:39:43]json parsed OK: [00:39:43]protocol is kg_v1.0 [00:39:43]action value=get_value [00:39:43]process_action get_value [00:39:43]cmd_get_value [00:39:43]process_action get_value done [00:39:43]requested_data is exist [00:39:43]produce_requested_data [00:39:43]requested_item fm.sale.total is exist - process it [00:39:43]SAM_PROTO_GetFMData [00:39:43]wFMCommunicate request_size=4 [00:39:43]MH_SAM_APDU [00:39:43]CAPDU: 80 13 03 00 [00:39:43]Write to MH i2c: E2 08 00 69 34 80 13 03 00 00 00 00 00 1C [00:39:43]Write i2c OK [00:39:43]MH_I2C_Read... [00:39:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:39:43]Read from MH i2c: E2 [00:39:43]MH_I2C_Read... [00:39:43]Read from MH i2c: E2 FD 00 [00:39:43]MH_I2C_Read... [00:39:43]Read from MH i2c: E2 FD 00 69 34 00 C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 0C [00:39:43]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 [00:39:43]wFMCommunicate OK [00:39:43]wFMCommunicate request_size=4 [00:39:43]MH_SAM_APDU [00:39:43]CAPDU: 80 17 00 00 [00:39:43]Write to MH i2c: E2 08 00 6A 34 80 17 00 00 00 00 00 00 1E [00:39:43]Write i2c OK [00:39:43]MH_I2C_Read... [00:39:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:44]Read from MH i2c: E2 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 FD 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 FD 00 6A 34 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 8B [00:39:44]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:39:44]wFMCommunicate OK [00:39:44]wFMCommunicate request_size=4 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 17 00 00 [00:39:44]Write to MH i2c: E2 08 00 6B 34 80 17 00 00 00 00 00 00 1F [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:44]Read from MH i2c: E2 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 FD 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 FD 00 6B 34 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CD [00:39:44]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:39:44]wFMCommunicate OK [00:39:44]wFMCommunicate request_size=4 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 17 00 00 [00:39:44]Write to MH i2c: E2 08 00 6C 34 80 17 00 00 00 00 00 00 20 [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:44]Read from MH i2c: E2 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 FD 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 FD 00 6C 34 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9B [00:39:44]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:39:44]wFMCommunicate OK [00:39:44]wFMCommunicate request_size=4 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 17 00 00 [00:39:44]Write to MH i2c: E2 08 00 6D 34 80 17 00 00 00 00 00 00 21 [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 [00:39:44]MH_I2C_Read... [00:39:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:39:44]Read from MH i2c: E2 DF 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 DF 00 6D 34 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 01 [00:39:44]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:39:44]wFMCommunicate OK [00:39:44]SAM_PROTO_GetFMData done [00:39:44]requested_item fm.sale_refund.total is exist - process it [00:39:44]requested_item fm.buy.total is exist - process it [00:39:44]requested_item shift.sale.total is exist - process it [00:39:44]SAM_PROTO_GetShiftData [00:39:44]wFMCommunicate request_size=4 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 13 02 00 [00:39:44]Write to MH i2c: E2 08 00 6E 34 80 13 02 00 00 00 00 00 20 [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:39:45]OFD Sender: No OFD packet to send [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 FD 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 FD 00 6E 34 00 AE 04 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F4 [00:39:45]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 9C 00 00 00 69 04 9B 00 6F 04 04 00 9C 00 00 00 B1 04 03 00 E9 D7 54 70 04 03 00 60 5D 3D 72 04 03 00 89 7A 17 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 BC 02 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2C C0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:39:45]wFMCommunicate OK [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 17 00 00 [00:39:45]Write to MH i2c: E2 08 00 6F 34 80 17 00 00 00 00 00 00 23 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 FD 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 FD 00 6F 34 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 45 [00:39:45]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 [00:39:45]wFMCommunicate OK [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 17 00 00 [00:39:45]Write to MH i2c: E2 08 00 70 34 80 17 00 00 00 00 00 00 24 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 FD 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 FD 00 70 34 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DB [00:39:45]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 [00:39:45]wFMCommunicate OK [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 17 00 00 [00:39:45]Write to MH i2c: E2 08 00 71 34 80 17 00 00 00 00 00 00 25 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:46]Read from MH i2c: E2 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: E2 FD 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: E2 FD 00 71 34 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 97 [00:39:46]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 [00:39:46]wFMCommunicate OK [00:39:46]wFMCommunicate request_size=4 [00:39:46]MH_SAM_APDU [00:39:46]CAPDU: 80 17 00 00 [00:39:46]Write to MH i2c: E2 08 00 72 34 80 17 00 00 00 00 00 00 26 [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:39:46]Read from MH i2c: E2 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: E2 CB 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: E2 CB 00 72 34 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 0F [00:39:46]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 [00:39:46]wFMCommunicate OK [00:39:46]SAM_PROTO_GetShiftData done [00:39:46]requested_item shift.sale.total_cash is exist - process it [00:39:46]requested_item shift.sale_refund.total is exist - process it [00:39:46]requested_item shift.sale_refund.total_cash is exist - process it [00:39:46]requested_item shift.buy.total is exist - process it [00:39:46]requested_item shift.buy.total_cash is exist - process it [00:39:46]produce_requested_data done [00:39:46]produce_requested_data return {"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.00,"fm.buy.total":0.00,"shift.sale.total":55602.97,"shift.sale.total_cash":40216.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:39:46]process_action_free get_value [00:39:46]json_value_free [00:39:46]json_value_free done [00:39:46]process_json_proto returns [00:39:46]Send response to host [00:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.00,"fm.buy.total":0.00,"shift.sale.total":55602.97,"shift.sale.total_cash":40216.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:39:46]free response buf [00:39:46]execute_script done [00:39:46]execute_script returns [00:39:46]free content buf [00:39:46]Sock 9.Close socket [00:39:46]Sock 9.Thread stoped [00:39:46]accept exits with 7 [00:39:46]New connection [00:39:46]New thread 3067108708 created [00:39:46]Thread 3067252068 joined [00:39:46]Waiting for new connection... [00:39:46] Sock 7.Parse request [00:39:46]Sock 7.Check first char [00:39:46]Sock 7.First char is OK [00:39:46]request: POST /json_proto HTTP/1.0 [00:39:46]Method: POST [00:39:46]URL: /json_proto [00:39:46]Method is POST - this is cgi request [00:39:46]url: /json_proto [00:39:46]query_string will be loaded in cgi processing [00:39:46]execute_cgi json_proto POST (null) [00:39:46]execute_cgi path=json_proto method=POST [00:39:46]POST find Content-Length [00:39:46]Host: 172.17.42.196:8080 [00:39:46]Content-Length: 271 [00:39:46]Content-Type: application/json [00:39:46] [00:39:46]POST finish read [00:39:46]Found Content-Length = 271 [00:39:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0443\u0440\u0430\u0442\u0431\u0435\u043A\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:46]execute_script... [00:39:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0443\u0440\u0430\u0442\u0431\u0435\u043A\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:46]POST & json_proto [00:39:46]process_json_proto [00:39:46]json parsed OK: [00:39:46]protocol is kg_v1.0 [00:39:46]action value=open_shift [00:39:46]process_action open_shift [00:39:46]cmd_open_shift [00:39:46]MH_GetDate [00:39:46]Write to MH i2c: F0 00 00 73 34 96 [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: F0 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: F0 09 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: F0 09 00 73 34 00 D8 E8 1A 67 FF C4 6B 64 72 [00:39:46]GetLastDocTimeStamp 1729815140 [00:39:46]current date 1729816792 [00:39:46]FM_GetShiftState [00:39:46]SAM_PROTO_GetShiftState [00:39:46]wFMCommunicate request_size=4 [00:39:46]MH_SAM_APDU [00:39:46]CAPDU: 80 13 01 00 [00:39:46]Write to MH i2c: E2 08 00 74 34 80 13 01 00 00 00 00 00 25 [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:46]Read from MH i2c: E2 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: E2 0E 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: E2 0E 00 74 34 00 09 00 00 00 00 00 00 00 00 00 00 90 00 30 [00:39:46]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:39:46]wFMCommunicate OK [00:39:46]SAM_PROTO_GetShiftState done [00:39:46]FM_GetShiftState done [00:39:46]KKMCreateOpenShiftDocument [00:39:46]Load OK [00:39:46]Malloc new data [00:39:46]MH_GetDate [00:39:46]Write to MH i2c: F0 00 00 75 34 98 [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: F0 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: F0 09 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: F0 09 00 75 34 00 D9 E8 1A 67 FF C4 6B 64 75 [00:39:46]Malloc new data [00:39:46]KKMCreateOpenShiftDocument OK [00:39:46]KKMSetOpenShiftData OK [00:39:46]ProcessDocumentItem done err = 0, tmpTLVsize=197 [00:39:46]tlvbuf is 00ECA450 [00:39:46]KKMLoadAndSignOpenShiftData [00:39:46]SAM_PROTO_ProcessDocument [00:39:46]wFMCommunicate request_size=9 [00:39:46]MH_SAM_APDU [00:39:46]CAPDU: 80 15 01 00 04 02 00 C5 00 [00:39:46]Write to MH i2c: E2 0C 00 76 34 80 15 01 00 04 00 02 00 C5 00 00 00 F8 [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:39:46]Read from MH i2c: E2 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: E2 03 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: E2 03 00 76 34 00 90 00 1E [00:39:46]RAPDU: 90 00 [00:39:46]wFMCommunicate OK [00:39:46]wFMCommunicate request_size=23 [00:39:46]MH_SAM_APDU [00:39:46]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:39:46]Write to MH i2c: E2 1A 00 77 34 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 20 [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:39:46]Read from MH i2c: E2 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: E2 03 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: E2 03 00 77 34 00 90 00 1F [00:39:46]RAPDU: 90 00 [00:39:46]wFMCommunicate OK [00:39:46]wFMCommunicate request_size=34 [00:39:46]MH_SAM_APDU [00:39:46]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A2 D1 83 D1 80 D0 B0 D1 82 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A1 2E 20 [00:39:46]Write to MH i2c: E2 25 00 78 34 80 15 02 00 1D 00 FD 03 19 00 D0 A2 D1 83 D1 80 D0 B0 D1 82 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A1 2E 20 00 00 E8 [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 03 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 03 00 78 34 00 90 00 20 [00:39:47]RAPDU: 90 00 [00:39:47]wFMCommunicate OK [00:39:47]wFMCommunicate request_size=82 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 15 02 00 4D F1 03 49 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B5 D0 BA D0 B0 D0 B1 D0 B0 D0 B4 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B5 D0 BA D0 B0 D0 B1 D0 B0 D0 B4 20 37 31 2C 20 34 30 2E 38 36 30 38 39 38 2C 20 37 32 2E 39 38 34 36 32 31 [00:39:47]Write to MH i2c: E2 55 00 79 34 80 15 02 00 4D 00 F1 03 49 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B5 D0 BA D0 B0 D0 B1 D0 B0 D0 B4 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B5 D0 BA D0 B0 D0 B1 D0 B0 D0 B4 20 37 31 2C 20 34 30 2E 38 36 30 38 39 38 2C 20 37 32 2E 39 38 34 36 32 31 00 00 4B [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 03 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 03 00 79 34 00 90 00 21 [00:39:47]RAPDU: 90 00 [00:39:47]wFMCommunicate OK [00:39:47]wFMCommunicate request_size=50 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:39:47]Write to MH i2c: E2 35 00 7A 34 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 AC [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 03 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 03 00 7A 34 00 90 00 22 [00:39:47]RAPDU: 90 00 [00:39:47]wFMCommunicate OK [00:39:47]wFMCommunicate request_size=13 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 15 02 00 08 F4 03 04 00 D9 E8 1A 67 [00:39:47]Write to MH i2c: E2 10 00 7B 34 80 15 02 00 08 00 F4 03 04 00 D9 E8 1A 67 00 00 7C [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 03 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 03 00 7B 34 00 90 00 23 [00:39:47]RAPDU: 90 00 [00:39:47]wFMCommunicate OK [00:39:47]wFMCommunicate request_size=25 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 [00:39:47]Write to MH i2c: E2 1C 00 7C 34 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 00 00 8D [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 03 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 03 00 7C 34 00 90 00 24 [00:39:47]RAPDU: 90 00 [00:39:47]wFMCommunicate OK [00:39:47]wFMCommunicate request_size=4 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 15 03 00 [00:39:47]Write to MH i2c: E2 08 00 7D 34 80 15 03 00 00 00 00 00 32 [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 38 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 38 00 7D 34 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 B3 EA 00 00 0E 04 04 00 12 02 00 00 35 04 06 00 A2 B6 4A 15 92 27 90 00 23 [00:39:47]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 B3 EA 00 00 0E 04 04 00 12 02 00 00 35 04 06 00 A2 B6 4A 15 92 27 90 00 [00:39:47]wFMCommunicate OK [00:39:47]SAM_PROTO_ProcessDocument answer len = 51 [00:39:47]SAM_PROTO_ProcessDocument done [00:39:47]SetTLVBufToDocument [00:39:47]Processing tag 1209 (04B9) [00:39:47]Malloc new data [00:39:47]Processing tag 1041 (0411) [00:39:47]Processing tag 1040 (0410) [00:39:47]Malloc new data [00:39:47]Processing tag 1038 (040E) [00:39:47]Malloc new data [00:39:47]Processing tag 1077 (0435) [00:39:47]Malloc new data [00:39:47]SetTLVBufToDocument err=0 [00:39:47]KKMLoadAndSignOpenShiftData store KKM data [00:39:47]KKMLoadAndSignOpenShiftData err=0 [00:39:47]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Туратбеков С. Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 Место: АЗС № 87 "Партнер Нефть" 25.10.2024 00:39 Смена: 530 РНМ: 0000000000091622 ЗНМ: 0300000084 ФД: 60083 ФМ: 0000000000874674 ФПД: 178903810675239 [00:39:47]StoreToDocumentArchive [00:39:47]shift 530 fd 60083 [00:39:47]Create dir for shift 0530 [00:39:47]save to /storage/0530/doc_00060083 [00:39:47]save last doc name /storage/0530/doc_00060083 to /storage/kkm_last_doc_name [00:39:47]save OK [00:39:47]Clear old archive folders... [00:39:47]Remove dir /storage/0529 [00:39:47]opendir ok [00:39:47]file . [00:39:47]file .. [00:39:47]file doc_00059925 [00:39:47]remove file /storage/0529/doc_00059925 [00:39:47]file doc_00059926 [00:39:47]remove file /storage/0529/doc_00059926 [00:39:47]file doc_00059927 [00:39:47]remove file /storage/0529/doc_00059927 [00:39:47]file doc_00059928 [00:39:47]remove file /storage/0529/doc_00059928 [00:39:47]file doc_00059929 [00:39:47]remove file /storage/0529/doc_00059929 [00:39:47]file doc_00059930 [00:39:47]remove file /storage/0529/doc_00059930 [00:39:47]file doc_00059931 [00:39:47]remove file /storage/0529/doc_00059931 [00:39:47]file doc_00059932 [00:39:47]remove file /storage/0529/doc_00059932 [00:39:47]file doc_00059933 [00:39:47]remove file /storage/0529/doc_00059933 [00:39:47]file doc_00059934 [00:39:47]remove file /storage/0529/doc_00059934 [00:39:47]file doc_00059935 [00:39:47]remove file /storage/0529/doc_00059935 [00:39:47]file doc_00059936 [00:39:47]remove file /storage/0529/doc_00059936 [00:39:47]file doc_00059937 [00:39:47]remove file /storage/0529/doc_00059937 [00:39:47]file doc_00059938 [00:39:47]remove file /storage/0529/doc_00059938 [00:39:47]file doc_00059939 [00:39:47]remove file /storage/0529/doc_00059939 [00:39:47]file doc_00059940 [00:39:47]remove file /storage/0529/doc_00059940 [00:39:47]file doc_00059941 [00:39:47]remove file /storage/0529/doc_00059941 [00:39:47]file doc_00059942 [00:39:47]remove file /storage/0529/doc_00059942 [00:39:47]file doc_00059943 [00:39:47]remove file /storage/0529/doc_00059943 [00:39:47]file doc_00059944 [00:39:47]remove file /storage/0529/doc_00059944 [00:39:47]file doc_00059945 [00:39:47]remove file /storage/0529/doc_00059945 [00:39:47]file doc_00059946 [00:39:47]remove file /storage/0529/doc_00059946 [00:39:47]file doc_00059947 [00:39:47]remove file /storage/0529/doc_00059947 [00:39:47]file doc_00059948 [00:39:47]remove file /storage/0529/doc_00059948 [00:39:47]file doc_00059949 [00:39:47]remove file /storage/0529/doc_00059949 [00:39:47]file doc_00059950 [00:39:47]remove file /storage/0529/doc_00059950 [00:39:47]file doc_00059951 [00:39:47]remove file /storage/0529/doc_00059951 [00:39:47]file doc_00059952 [00:39:47]remove file /storage/0529/doc_00059952 [00:39:47]file doc_00059953 [00:39:47]remove file /storage/0529/doc_00059953 [00:39:47]file doc_00059954 [00:39:47]remove file /storage/0529/doc_00059954 [00:39:47]file doc_00059955 [00:39:47]remove file /storage/0529/doc_00059955 [00:39:47]file doc_00059956 [00:39:47]remove file /storage/0529/doc_00059956 [00:39:47]file doc_00059957 [00:39:47]remove file /storage/0529/doc_00059957 [00:39:47]file doc_00059958 [00:39:47]remove file /storage/0529/doc_00059958 [00:39:47]file doc_00059959 [00:39:47]remove file /storage/0529/doc_00059959 [00:39:47]file doc_00059960 [00:39:47]remove file /storage/0529/doc_00059960 [00:39:47]file doc_00059961 [00:39:47]remove file /storage/0529/doc_00059961 [00:39:47]file doc_00059962 [00:39:47]remove file /storage/0529/doc_00059962 [00:39:47]file doc_00059963 [00:39:47]remove file /storage/0529/doc_00059963 [00:39:47]file doc_00059964 [00:39:47]remove file /storage/0529/doc_00059964 [00:39:47]file doc_00059965 [00:39:47]remove file /storage/0529/doc_00059965 [00:39:47]file doc_00059966 [00:39:47]remove file /storage/0529/doc_00059966 [00:39:47]file doc_00059967 [00:39:47]remove file /storage/0529/doc_00059967 [00:39:47]file doc_00059968 [00:39:47]remove file /storage/0529/doc_00059968 [00:39:47]file doc_00059969 [00:39:47]remove file /storage/0529/doc_00059969 [00:39:47]file doc_00059970 [00:39:47]remove file /storage/0529/doc_00059970 [00:39:47]file doc_00059971 [00:39:47]remove file /storage/0529/doc_00059971 [00:39:47]file doc_00059972 [00:39:47]remove file /storage/0529/doc_00059972 [00:39:47]file doc_00059973 [00:39:47]remove file /storage/0529/doc_00059973 [00:39:47]file doc_00059974 [00:39:47]remove file /storage/0529/doc_00059974 [00:39:47]file doc_00059975 [00:39:47]remove file /storage/0529/doc_00059975 [00:39:47]file doc_00059976 [00:39:47]remove file /storage/0529/doc_00059976 [00:39:47]file doc_00059977 [00:39:47]remove file /storage/0529/doc_00059977 [00:39:47]file doc_00059978 [00:39:47]remove file /storage/0529/doc_00059978 [00:39:47]file doc_00059979 [00:39:47]remove file /storage/0529/doc_00059979 [00:39:47]file doc_00059980 [00:39:47]remove file /storage/0529/doc_00059980 [00:39:47]file doc_00059981 [00:39:47]remove file /storage/0529/doc_00059981 [00:39:47]file doc_00059982 [00:39:47]remove file /storage/0529/doc_00059982 [00:39:47]file doc_00059983 [00:39:47]remove file /storage/0529/doc_00059983 [00:39:47]file doc_00059984 [00:39:47]remove file /storage/0529/doc_00059984 [00:39:47]file doc_00059985 [00:39:47]remove file /storage/0529/doc_00059985 [00:39:47]file doc_00059986 [00:39:47]remove file /storage/0529/doc_00059986 [00:39:47]file doc_00059987 [00:39:47]remove file /storage/0529/doc_00059987 [00:39:47]file doc_00059988 [00:39:47]remove file /storage/0529/doc_00059988 [00:39:47]file doc_00059989 [00:39:47]remove file /storage/0529/doc_00059989 [00:39:47]file doc_00059990 [00:39:47]remove file /storage/0529/doc_00059990 [00:39:47]file doc_00059991 [00:39:47]remove file /storage/0529/doc_00059991 [00:39:47]file doc_00059992 [00:39:47]remove file /storage/0529/doc_00059992 [00:39:47]file doc_00059993 [00:39:47]remove file /storage/0529/doc_00059993 [00:39:47]file doc_00059994 [00:39:47]remove file /storage/0529/doc_00059994 [00:39:47]file doc_00059995 [00:39:47]remove file /storage/0529/doc_00059995 [00:39:47]file doc_00059996 [00:39:47]remove file /storage/0529/doc_00059996 [00:39:47]file doc_00059997 [00:39:47]remove file /storage/0529/doc_00059997 [00:39:47]file doc_00059998 [00:39:47]remove file /storage/0529/doc_00059998 [00:39:47]file doc_00059999 [00:39:47]remove file /storage/0529/doc_00059999 [00:39:47]file doc_00060000 [00:39:47]remove file /storage/0529/doc_00060000 [00:39:47]file doc_00060001 [00:39:47]remove file /storage/0529/doc_00060001 [00:39:47]file doc_00060002 [00:39:47]remove file /storage/0529/doc_00060002 [00:39:47]file doc_00060003 [00:39:47]remove file /storage/0529/doc_00060003 [00:39:47]file doc_00060004 [00:39:47]remove file /storage/0529/doc_00060004 [00:39:47]file doc_00060005 [00:39:47]remove file /storage/0529/doc_00060005 [00:39:47]file doc_00060006 [00:39:47]remove file /storage/0529/doc_00060006 [00:39:47]file doc_00060007 [00:39:47]remove file /storage/0529/doc_00060007 [00:39:47]file doc_00060008 [00:39:47]remove file /storage/0529/doc_00060008 [00:39:47]file doc_00060009 [00:39:48]remove file /storage/0529/doc_00060009 [00:39:48]file doc_00060010 [00:39:48]remove file /storage/0529/doc_00060010 [00:39:48]file doc_00060011 [00:39:48]remove file /storage/0529/doc_00060011 [00:39:48]file doc_00060012 [00:39:48]remove file /storage/0529/doc_00060012 [00:39:48]file doc_00060013 [00:39:48]remove file /storage/0529/doc_00060013 [00:39:48]file doc_00060014 [00:39:48]remove file /storage/0529/doc_00060014 [00:39:48]file doc_00060015 [00:39:48]remove file /storage/0529/doc_00060015 [00:39:48]file doc_00060016 [00:39:48]remove file /storage/0529/doc_00060016 [00:39:48]file doc_00060017 [00:39:48]remove file /storage/0529/doc_00060017 [00:39:48]file doc_00060018 [00:39:48]remove file /storage/0529/doc_00060018 [00:39:48]file doc_00060019 [00:39:48]remove file /storage/0529/doc_00060019 [00:39:48]file doc_00060020 [00:39:48]remove file /storage/0529/doc_00060020 [00:39:48]file doc_00060021 [00:39:48]remove file /storage/0529/doc_00060021 [00:39:48]file doc_00060022 [00:39:48]remove file /storage/0529/doc_00060022 [00:39:48]file doc_00060023 [00:39:48]remove file /storage/0529/doc_00060023 [00:39:48]file doc_00060024 [00:39:48]remove file /storage/0529/doc_00060024 [00:39:48]file doc_00060025 [00:39:48]remove file /storage/0529/doc_00060025 [00:39:48]file doc_00060026 [00:39:48]remove file /storage/0529/doc_00060026 [00:39:48]file doc_00060027 [00:39:48]remove file /storage/0529/doc_00060027 [00:39:48]file doc_00060028 [00:39:48]remove file /storage/0529/doc_00060028 [00:39:48]file doc_00060029 [00:39:48]remove file /storage/0529/doc_00060029 [00:39:48]file doc_00060030 [00:39:48]remove file /storage/0529/doc_00060030 [00:39:48]file doc_00060031 [00:39:48]remove file /storage/0529/doc_00060031 [00:39:48]file doc_00060032 [00:39:48]remove file /storage/0529/doc_00060032 [00:39:48]file doc_00060033 [00:39:48]remove file /storage/0529/doc_00060033 [00:39:48]file doc_00060034 [00:39:48]remove file /storage/0529/doc_00060034 [00:39:48]file doc_00060035 [00:39:48]remove file /storage/0529/doc_00060035 [00:39:48]file doc_00060036 [00:39:48]remove file /storage/0529/doc_00060036 [00:39:48]file doc_00060037 [00:39:48]remove file /storage/0529/doc_00060037 [00:39:48]file doc_00060038 [00:39:48]remove file /storage/0529/doc_00060038 [00:39:48]file doc_00060039 [00:39:48]remove file /storage/0529/doc_00060039 [00:39:48]file doc_00060040 [00:39:48]remove file /storage/0529/doc_00060040 [00:39:48]file doc_00060041 [00:39:48]remove file /storage/0529/doc_00060041 [00:39:48]file doc_00060042 [00:39:48]remove file /storage/0529/doc_00060042 [00:39:48]file doc_00060043 [00:39:48]remove file /storage/0529/doc_00060043 [00:39:48]file doc_00060044 [00:39:48]remove file /storage/0529/doc_00060044 [00:39:48]file doc_00060045 [00:39:48]remove file /storage/0529/doc_00060045 [00:39:48]file doc_00060046 [00:39:48]remove file /storage/0529/doc_00060046 [00:39:48]file doc_00060047 [00:39:48]remove file /storage/0529/doc_00060047 [00:39:48]file doc_00060048 [00:39:48]remove file /storage/0529/doc_00060048 [00:39:48]file doc_00060049 [00:39:48]remove file /storage/0529/doc_00060049 [00:39:48]file doc_00060050 [00:39:48]remove file /storage/0529/doc_00060050 [00:39:48]file doc_00060051 [00:39:48]remove file /storage/0529/doc_00060051 [00:39:48]file doc_00060052 [00:39:48]remove file /storage/0529/doc_00060052 [00:39:48]file doc_00060053 [00:39:48]remove file /storage/0529/doc_00060053 [00:39:48]file doc_00060054 [00:39:48]remove file /storage/0529/doc_00060054 [00:39:48]file doc_00060055 [00:39:48]remove file /storage/0529/doc_00060055 [00:39:48]file doc_00060056 [00:39:48]remove file /storage/0529/doc_00060056 [00:39:48]file doc_00060057 [00:39:48]remove file /storage/0529/doc_00060057 [00:39:48]file doc_00060058 [00:39:48]remove file /storage/0529/doc_00060058 [00:39:48]file doc_00060059 [00:39:48]remove file /storage/0529/doc_00060059 [00:39:48]file doc_00060060 [00:39:48]remove file /storage/0529/doc_00060060 [00:39:48]file doc_00060061 [00:39:48]remove file /storage/0529/doc_00060061 [00:39:48]file doc_00060062 [00:39:48]remove file /storage/0529/doc_00060062 [00:39:48]file doc_00060063 [00:39:48]remove file /storage/0529/doc_00060063 [00:39:48]file doc_00060064 [00:39:48]remove file /storage/0529/doc_00060064 [00:39:48]file doc_00060065 [00:39:48]remove file /storage/0529/doc_00060065 [00:39:48]file doc_00060066 [00:39:48]remove file /storage/0529/doc_00060066 [00:39:48]file doc_00060067 [00:39:48]remove file /storage/0529/doc_00060067 [00:39:48]file doc_00060068 [00:39:48]remove file /storage/0529/doc_00060068 [00:39:48]file doc_00060069 [00:39:48]remove file /storage/0529/doc_00060069 [00:39:48]file doc_00060070 [00:39:48]remove file /storage/0529/doc_00060070 [00:39:48]file doc_00060071 [00:39:48]remove file /storage/0529/doc_00060071 [00:39:48]file doc_00060072 [00:39:48]remove file /storage/0529/doc_00060072 [00:39:48]file doc_00060073 [00:39:48]remove file /storage/0529/doc_00060073 [00:39:48]file doc_00060074 [00:39:48]remove file /storage/0529/doc_00060074 [00:39:48]file doc_00060075 [00:39:48]remove file /storage/0529/doc_00060075 [00:39:48]file doc_00060076 [00:39:48]remove file /storage/0529/doc_00060076 [00:39:48]file doc_00060077 [00:39:48]remove file /storage/0529/doc_00060077 [00:39:48]file doc_00060078 [00:39:48]remove file /storage/0529/doc_00060078 [00:39:48]file doc_00060079 [00:39:48]remove file /storage/0529/doc_00060079 [00:39:48]file doc_00060080 [00:39:48]remove file /storage/0529/doc_00060080 [00:39:48]file doc_00060081 [00:39:48]remove file /storage/0529/doc_00060081 [00:39:48]file doc_00060082 [00:39:48]remove file /storage/0529/doc_00060082 [00:39:48]remove dir /storage/0529 [00:39:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:39:48]tlvbuf is 00E2BAC0 [00:39:48]SAM_PROTO_ClearQueue [00:39:48]wFMCommunicate request_size=4 [00:39:48]MH_SAM_APDU [00:39:48]CAPDU: 80 09 00 00 [00:39:48]Write to MH i2c: E2 08 00 7E 34 80 09 00 00 00 00 00 00 24 [00:39:48]Write i2c OK [00:39:48]MH_I2C_Read... [00:39:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:39:48]Read from MH i2c: E2 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 03 00 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 03 00 7E 34 00 90 00 26 [00:39:48]RAPDU: 90 00 [00:39:48]wFMCommunicate OK [00:39:48]SAM_PROTO_ClearQueue done [00:39:48]KKMCreateOFDPacket [00:39:48]OFDProtocolAddRootSTLVToBuf [00:39:48]FM_MakeSignedData [00:39:48]FM_MakeSignedData [00:39:48]SAM_PROTO_SignData [00:39:48]wFMCommunicate request_size=4 [00:39:48]MH_SAM_APDU [00:39:48]CAPDU: 80 0D 01 02 [00:39:48]Write to MH i2c: E2 08 00 7F 34 80 0D 01 02 00 00 00 00 2C [00:39:48]Write i2c OK [00:39:48]MH_I2C_Read... [00:39:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:39:48]Read from MH i2c: E2 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 03 00 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 03 00 7F 34 00 90 00 27 [00:39:48]RAPDU: 90 00 [00:39:48]wFMCommunicate OK [00:39:48]wFMCommunicate request_size=255 [00:39:48]MH_SAM_APDU [00:39:48]CAPDU: 80 0D 02 02 FA 02 00 F8 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 19 00 D0 A2 D1 83 D1 80 D0 B0 D1 82 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A1 2E 20 F1 03 49 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B5 D0 BA D0 B0 D0 B1 D0 B0 D0 B4 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B5 D0 BA D0 B0 D0 B1 D0 B0 D0 B4 20 37 31 2C 20 34 30 2E 38 36 30 38 39 38 2C 20 37 32 2E 39 38 34 36 32 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 D9 E8 1A 67 0E 04 04 00 12 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B3 EA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 04 06 00 A2 B6 4A 15 [00:39:48]Write to MH i2c: E2 02 01 80 34 80 0D 02 02 FA 00 02 00 F8 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 19 00 D0 A2 D1 83 D1 80 D0 B0 D1 82 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A1 2E 20 F1 03 49 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B5 D0 BA D0 B0 D0 B1 D0 B0 D0 B4 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B5 D0 BA D0 B0 D0 B1 D0 B0 D0 B4 20 37 31 2C 20 34 30 2E 38 36 30 38 39 38 2C 20 37 32 2E 39 38 34 36 32 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 D9 E8 1A 67 0E 04 04 00 12 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B3 EA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 04 06 00 A2 B6 4A 15 00 00 67 [00:39:48]Write i2c OK [00:39:48]MH_I2C_Read... [00:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:49]Read from MH i2c: E2 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 03 00 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 03 00 80 34 00 90 00 28 [00:39:49]RAPDU: 90 00 [00:39:49]wFMCommunicate OK [00:39:49]wFMCommunicate request_size=7 [00:39:49]MH_SAM_APDU [00:39:49]CAPDU: 80 0D 02 02 02 92 27 [00:39:49]Write to MH i2c: E2 0A 00 81 34 80 0D 02 02 02 00 92 27 00 00 EC [00:39:49]Write i2c OK [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 [00:39:49]MH_I2C_Read... [00:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:49]Read from MH i2c: E2 03 00 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 03 00 81 34 00 90 00 29 [00:39:49]RAPDU: 90 00 [00:39:49]wFMCommunicate OK [00:39:49]wFMCommunicate request_size=4 [00:39:49]MH_SAM_APDU [00:39:49]CAPDU: 80 0D 03 02 [00:39:49]Write to MH i2c: E2 08 00 82 34 80 0D 03 02 00 00 00 00 31 [00:39:49]Write i2c OK [00:39:49]MH_I2C_Read... [00:39:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:39:49]Read from MH i2c: E2 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 0B 00 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 0B 00 82 34 00 74 45 4E E0 9D C5 2A 6A 90 00 0F [00:39:49]RAPDU: 74 45 4E E0 9D C5 2A 6A 90 00 [00:39:49]wFMCommunicate OK [00:39:49]SAM_PROTO_SignData done [00:39:49]FM_MakeSignedData done [00:39:49]CreateOFDProtocolMessage [00:39:49]wFMCommunicate request_size=4 [00:39:49]MH_SAM_APDU [00:39:49]CAPDU: 80 11 00 00 [00:39:49]Write to MH i2c: E2 08 00 83 34 80 11 00 00 00 00 00 00 31 [00:39:49]Write i2c OK [00:39:49]MH_I2C_Read... [00:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:49]Read from MH i2c: E2 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 17 00 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 17 00 83 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 88 [00:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [00:39:49]wFMCommunicate OK [00:39:49]CreateOFDProtocolMessage done [00:39:49]OFDSenderStorePacket 60083 [00:39:49]StoreOFDPacket docnum=60083 [00:39:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0C 01 00 00 C5 16 04 01 E8 F7 5A 02 01 00 02 00 F8 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 19 00 D0 A2 D1 83 D1 80 D0 B0 D1 82 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A1 2E 20 F1 03 49 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B5 D0 BA D0 B0 D0 B1 D0 B0 D0 B4 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B5 D0 BA D0 B0 D0 B1 D0 B0 D0 B4 20 37 31 2C 20 34 30 2E 38 36 30 38 39 38 2C 20 37 32 2E 39 38 34 36 32 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 D9 E8 1A 67 0E 04 04 00 12 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B3 EA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 04 06 00 A2 B6 4A 15 92 27 74 45 4E E0 9D C5 2A 6A [00:39:49]CheckFolder [00:39:49]dirname=/storage/ofd_packets [00:39:49]CheckFolder done [00:39:49]ProducePacketName [00:39:49]name=ofd_packets/00060083 [00:39:49]NVStorageSaveData ofd_packets/00060083 [00:39:49]File name is /storage/ofd_packets/00060083 [00:39:49]Write 298 bytes [00:39:49]NVStorageSaveData done [00:39:49]OFDSenderStorePacket done [00:39:49]KKMCreateOFDPacket done [00:39:49]NVStorageSaveData kkm_last_timestamp [00:39:49]File name is /storage/kkm_last_timestamp [00:39:49]Write 4 bytes [00:39:49]NVStorageSaveData done [00:39:49]ExternCall_PrintAddStr [00:39:49]wPrintStart [00:39:49]Write to MH i2c: 01 00 00 84 34 B8 [00:39:49]Write i2c OK [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: 01 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: 01 07 00 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: 01 07 00 84 34 00 00 00 00 00 FF 0F CD [00:39:49]RasterBufferAndPrint [00:39:49]line Отчет об открытии смены [00:39:49]line ФФД: 1.0 [00:39:49]line ИНН: 02508201610067 [00:39:49]line Кассир: Туратбеков С. [00:39:49]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [00:39:49]line Место: АЗС № 87 "Партнер Нефть" [00:39:49]line 25.10.2024 00:39 [00:39:49]line Смена: 530 [00:39:49]line РНМ: 0000000000091622 [00:39:49]line ЗНМ: 0300000084 [00:39:49]line ФД: 60083 [00:39:49]line ФМ: 0000000000874674 [00:39:49]line ФПД: 178903810675239 [00:39:49]written 0, free lines is 4095 [00:39:49]OFD Sender: Processing packet 60083 [packets to send 30, broken 29] [00:39:49]ProducePacketName [00:39:49]name=ofd_packets/00060083 [00:39:49]OFD Sender: To server: pG, [00:39:49]CommunicateWithHost lk.salyk.kg:30040 [00:39:49]ConnectInit lk.salyk.kg [00:39:49]Write to MH i2c: 01 00 00 96 34 CA [00:39:49]Write i2c OK [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: 01 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: 01 07 00 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: 01 07 00 96 34 00 00 00 00 00 56 0E 35 [00:39:49]RasterBufferAndPrint [00:39:49]line [00:39:49]line [00:39:49]line [00:39:49]line [00:39:49]line [00:39:49]written 0, free lines is 3683 [00:39:49]Connected sock=10 [00:39:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0C 01 00 00 C5 16 04 01 E8 F7 5A 02 01 00 02 00 F8 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 19 00 D0 A2 D1 83 D1 80 D0 B0 D1 82 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A1 2E 20 F1 03 49 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B5 D0 BA D0 B0 D0 B1 D0 B0 D0 B4 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B5 D0 BA D0 B0 D0 B1 D0 B0 D0 B4 20 37 31 2C 20 34 30 2E 38 36 30 38 39 38 2C 20 37 32 2E 39 38 34 36 32 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 D9 E8 1A 67 0E 04 04 00 12 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B3 EA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 04 06 00 A2 B6 4A 15 92 27 74 45 4E E0 9D C5 2A 6A [00:39:49]MH_Cut [00:39:49]Write to MH i2c: D1 01 00 9D 34 01 A3 [00:39:49]Write i2c OK [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: D1 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: D1 01 00 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: D1 01 00 9D 34 00 A2 [00:39:49]Write to MH i2c: 01 00 00 9E 34 D2 [00:39:49]Write i2c OK [00:39:49]MH_I2C_Read... [00:39:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 92 AF 47 00 56 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 B3 EA 00 00 F4 03 04 00 C8 8E 1A 67 B6 04 01 00 00 47 1B 70 B8 1B E2 70 97 [00:39:49]CommunicateWithHost err = 0 [00:39:49]CheckOFDResponse [00:39:49]1017 (14) - 77093643461234 [00:39:49]1041 (16) - 0000000000874674 [00:39:49]1040 (4) - 60083 [00:39:49]1012 (4) - 24.10.2024 18:15 [00:39:49]1206 (1) - 0 [00:39:49]OFD Sender: Remove packet 60083 [00:39:49]ProducePacketName [00:39:49]name=ofd_packets/00060083 [00:39:49]NVStorageDeleteData [00:39:50]*** Cut start [00:39:50]*** Partial cut [00:39:50]*** CUTSNS_PIN = 1 [00:39:50]*** CUTSNS_PIN = 0 [00:39:50]*** Brake cut motor [00:39:50]OFD Sender: No OFD packet to send [00:39:50]Read from MH i2c: 01 [00:39:50]MH_I2C_Read... [00:39:50]*** Stop cut motor [00:39:50]*** Cut end [00:39:50]Read from MH i2c: 01 07 00 [00:39:50]MH_I2C_Read... [00:39:50]Read from MH i2c: 01 07 00 9E 34 00 00 00 00 00 FF 0F E7 [00:39:50]process_action open_shift done [00:39:50]requested_data is exist [00:39:50]produce_requested_data [00:39:50]requested_item fd.num is exist - process it [00:39:50]SAM_PROTO_GetFieldsCounters [00:39:50]wFMCommunicate request_size=4 [00:39:50]MH_SAM_APDU [00:39:50]CAPDU: 80 13 00 00 [00:39:50]Write to MH i2c: E2 08 00 9F 34 80 13 00 00 00 00 00 00 4F [00:39:50]Write i2c OK [00:39:50]MH_I2C_Read... [00:39:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:50]Read from MH i2c: E2 [00:39:50]MH_I2C_Read... [00:39:50]Read from MH i2c: E2 62 00 [00:39:50]MH_I2C_Read... [00:39:50]Read from MH i2c: E2 62 00 9F 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B3 EA 00 00 0E 04 04 00 12 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 20 [00:39: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B3 EA 00 00 0E 04 04 00 12 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:39:50]wFMCommunicate OK [00:39:50]SAM_PROTO_GetFieldsCounters done [00:39:50]requested_item shift.num is exist - process it [00:39:50]requested_item shift.opened is exist - process it [00:39:50]req_shift_opened [00:39:50]FM_GetShiftState [00:39:50]SAM_PROTO_GetShiftState [00:39:50]wFMCommunicate request_size=4 [00:39:50]MH_SAM_APDU [00:39:50]CAPDU: 80 13 01 00 [00:39:50]Write to MH i2c: E2 08 00 A0 34 80 13 01 00 00 00 00 00 51 [00:39:50]Write i2c OK [00:39:50]MH_I2C_Read... [00:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:51]Read from MH i2c: E2 [00:39:51]MH_I2C_Read... [00:39:51]Read from MH i2c: E2 0E 00 [00:39:51]MH_I2C_Read... [00:39:51]Read from MH i2c: E2 0E 00 A0 34 00 09 00 01 D9 E8 1A 67 00 00 00 00 90 00 9F [00:39:51]RAPDU: 09 00 01 D9 E8 1A 67 00 00 00 00 90 00 [00:39:51]wFMCommunicate OK [00:39:51]SAM_PROTO_GetShiftState done [00:39:51]FM_GetShiftState done [00:39:51]req_shift_opened done [00:39:51]requested_item shift.open_date is exist - process it [00:39:51]req_shift_open_date [00:39:51]req_shift_open_date done [00:39:51]produce_requested_data done [00:39:51]produce_requested_data return {"fd.num":60083,"shift.num":530,"shift.opened":1,"shift.open_date":1729816793} [00:39:51]process_action_free open_shift [00:39:51]json_value_free [00:39:51]json_value_free done [00:39:51]process_json_proto returns [00:39:51]Send response to host [00:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":60083,"shift.num":530,"shift.opened":1,"shift.open_date":1729816793}}} [00:39:51]free response buf [00:39:51]execute_script done [00:39:51]execute_script returns [00:39:51]free content buf [00:39:51]Sock 7.Close socket [00:39:51]Sock 7.Thread stoped [00:39:51]accept exits with 9 [00:39:51]New connection [00:39:51]New thread 3067252068 created [00:39:51]Thread 3067108708 joined [00:39:51]Waiting for new connection... [00:39:51] Sock 9.Parse request [00:39:51]Sock 9.Check first char [00:39:51]Sock 9.First char is OK [00:39:51]request: POST /json_proto HTTP/1.0 [00:39:51]Method: POST [00:39:51]URL: /json_proto [00:39:51]Method is POST - this is cgi request [00:39:51]url: /json_proto [00:39:51]query_string will be loaded in cgi processing [00:39:51]execute_cgi json_proto POST (null) [00:39:51]execute_cgi path=json_proto method=POST [00:39:51]POST find Content-Length [00:39:51]Host: 172.17.42.196:8080 [00:39:51]Content-Length: 331 [00:39:51]Content-Type: application/json [00:39:51] [00:39:51]POST finish read [00:39:51]Found Content-Length = 331 [00:39:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:39:51]execute_script... [00:39:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:39:51]POST & json_proto [00:39:51]process_json_proto [00:39:51]json parsed OK: [00:39:51]protocol is kg_v1.0 [00:39:51]action value=get_value [00:39:51]process_action get_value [00:39:51]cmd_get_value [00:39:51]process_action get_value done [00:39:51]requested_data is exist [00:39:51]produce_requested_data [00:39:51]requested_item fm.sale.total is exist - process it [00:39:51]SAM_PROTO_GetFMData [00:39:51]wFMCommunicate request_size=4 [00:39:51]MH_SAM_APDU [00:39:51]CAPDU: 80 13 03 00 [00:39:51]Write to MH i2c: E2 08 00 A1 34 80 13 03 00 00 00 00 00 54 [00:39:51]Write i2c OK [00:39:51]MH_I2C_Read... [00:39:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:39:51]Read from MH i2c: E2 [00:39:51]MH_I2C_Read... [00:39:51]Read from MH i2c: E2 FD 00 [00:39:51]MH_I2C_Read... [00:39:51]Read from MH i2c: E2 FD 00 A1 34 00 C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 44 [00:39:51]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 [00:39:51]wFMCommunicate OK [00:39:51]wFMCommunicate request_size=4 [00:39:51]MH_SAM_APDU [00:39:51]CAPDU: 80 17 00 00 [00:39:51]Write to MH i2c: E2 08 00 A2 34 80 17 00 00 00 00 00 00 56 [00:39:51]Write i2c OK [00:39:51]MH_I2C_Read... [00:39:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:51]Read from MH i2c: E2 [00:39:51]MH_I2C_Read... [00:39:51]Read from MH i2c: E2 FD 00 [00:39:51]MH_I2C_Read... [00:39:51]Read from MH i2c: E2 FD 00 A2 34 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C3 [00:39:52]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:39:52]wFMCommunicate OK [00:39:52]wFMCommunicate request_size=4 [00:39:52]MH_SAM_APDU [00:39:52]CAPDU: 80 17 00 00 [00:39:52]Write to MH i2c: E2 08 00 A3 34 80 17 00 00 00 00 00 00 57 [00:39:52]Write i2c OK [00:39:52]MH_I2C_Read... [00:39:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:52]Read from MH i2c: E2 [00:39:52]MH_I2C_Read... [00:39:52]Read from MH i2c: E2 FD 00 [00:39:52]MH_I2C_Read... [00:39:52]Read from MH i2c: E2 FD 00 A3 34 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 05 [00:39:52]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:39:52]wFMCommunicate OK [00:39:52]wFMCommunicate request_size=4 [00:39:52]MH_SAM_APDU [00:39:52]CAPDU: 80 17 00 00 [00:39:52]Write to MH i2c: E2 08 00 A4 34 80 17 00 00 00 00 00 00 58 [00:39:52]Write i2c OK [00:39:52]MH_I2C_Read... [00:39:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:52]Read from MH i2c: E2 [00:39:52]MH_I2C_Read... [00:39:52]Read from MH i2c: E2 FD 00 [00:39:52]MH_I2C_Read... [00:39:52]Read from MH i2c: E2 FD 00 A4 34 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D3 [00:39:52]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:39:53]wFMCommunicate OK [00:39:53]wFMCommunicate request_size=4 [00:39:53]MH_SAM_APDU [00:39:53]CAPDU: 80 17 00 00 [00:39:53]Write to MH i2c: E2 08 00 A5 34 80 17 00 00 00 00 00 00 59 [00:39:53]Write i2c OK [00:39:53]MH_I2C_Read... [00:39:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:39:53]Read from MH i2c: E2 [00:39:53]MH_I2C_Read... [00:39:53]Read from MH i2c: E2 DF 00 [00:39:53]MH_I2C_Read... [00:39:53]Read from MH i2c: E2 DF 00 A5 34 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 39 [00:39:53]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:39:53]wFMCommunicate OK [00:39:53]SAM_PROTO_GetFMData done [00:39:53]requested_item fm.sale_refund.total is exist - process it [00:39:53]requested_item fm.buy.total is exist - process it [00:39:53]requested_item shift.sale.total is exist - process it [00:39:53]SAM_PROTO_GetShiftData [00:39:53]wFMCommunicate request_size=4 [00:39:53]MH_SAM_APDU [00:39:53]CAPDU: 80 13 02 00 [00:39:53]Write to MH i2c: E2 08 00 A6 34 80 13 02 00 00 00 00 00 58 [00:39:53]Write i2c OK [00:39:53]MH_I2C_Read... [00:39:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:39:53]Read from MH i2c: E2 [00:39:53]MH_I2C_Read... [00:39:53]Read from MH i2c: E2 FD 00 [00:39:53]MH_I2C_Read... [00:39:53]Read from MH i2c: E2 FD 00 A6 34 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 CB [00:39:54]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:39:54]wFMCommunicate OK [00:39:54]wFMCommunicate request_size=4 [00:39:54]MH_SAM_APDU [00:39:54]CAPDU: 80 17 00 00 [00:39:54]Write to MH i2c: E2 08 00 A7 34 80 17 00 00 00 00 00 00 5B [00:39:54]Write i2c OK [00:39:54]MH_I2C_Read... [00:39:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:54]Read from MH i2c: E2 [00:39:54]MH_I2C_Read... [00:39:54]Read from MH i2c: E2 FD 00 [00:39:54]MH_I2C_Read... [00:39:54]Read from MH i2c: E2 FD 00 A7 34 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 63 [00:39:54]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:39:54]wFMCommunicate OK [00:39:54]wFMCommunicate request_size=4 [00:39:54]MH_SAM_APDU [00:39:54]CAPDU: 80 17 00 00 [00:39:54]Write to MH i2c: E2 08 00 A8 34 80 17 00 00 00 00 00 00 5C [00:39:54]Write i2c OK [00:39:54]MH_I2C_Read... [00:39:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:54]Read from MH i2c: E2 [00:39:54]MH_I2C_Read... [00:39:54]Read from MH i2c: E2 FD 00 [00:39:54]MH_I2C_Read... [00:39:54]Read from MH i2c: E2 FD 00 A8 34 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 2E [00:39:54]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:39:55]wFMCommunicate OK [00:39:55]wFMCommunicate request_size=4 [00:39:55]MH_SAM_APDU [00:39:55]CAPDU: 80 17 00 00 [00:39:55]Write to MH i2c: E2 08 00 A9 34 80 17 00 00 00 00 00 00 5D [00:39:55]Write i2c OK [00:39:55]MH_I2C_Read... [00:39:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:55]Read from MH i2c: E2 [00:39:55]MH_I2C_Read... [00:39:55]Read from MH i2c: E2 FD 00 [00:39:55]MH_I2C_Read... [00:39:55]Read from MH i2c: E2 FD 00 A9 34 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 CF [00:39:55]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:39:55]wFMCommunicate OK [00:39:55]wFMCommunicate request_size=4 [00:39:55]MH_SAM_APDU [00:39:55]CAPDU: 80 17 00 00 [00:39:55]Write to MH i2c: E2 08 00 AA 34 80 17 00 00 00 00 00 00 5E [00:39:55]Write i2c OK [00:39:55]MH_I2C_Read... [00:39:55]OFD Sender: No OFD packet to send [00:39:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:39:55]Read from MH i2c: E2 [00:39:55]MH_I2C_Read... [00:39:55]Read from MH i2c: E2 BD 00 [00:39:55]MH_I2C_Read... [00:39:55]Read from MH i2c: E2 BD 00 AA 34 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 44 [00:39:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:39:55]wFMCommunicate OK [00:39:55]SAM_PROTO_GetShiftData done [00:39:55]requested_item shift.sale.total_cash is exist - process it [00:39:55]requested_item shift.sale_refund.total is exist - process it [00:39:55]requested_item shift.sale_refund.total_cash is exist - process it [00:39:55]requested_item shift.buy.total is exist - process it [00:39:55]requested_item shift.buy.total_cash is exist - process it [00:39:55]produce_requested_data done [00:39:55]produce_requested_data return {"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.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:39:55]process_action_free get_value [00:39:55]json_value_free [00:39:55]json_value_free done [00:39:55]process_json_proto returns [00:39:55]Send response to host [00:39:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.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:39:55]free response buf [00:39:55]execute_script done [00:39:55]execute_script returns [00:39:55]free content buf [00:39:55]Sock 9.Close socket [00:39:55]Sock 9.Thread stoped [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]accept exits with 7 [00:44:05]New connection [00:44:05]New thread 3067108708 created [00:44:05]Thread 3067252068 joined [00:44:05]Waiting for new connection... [00:44:05] Sock 7.Parse request [00:44:05]Sock 7.Check first char [00:44:05]Sock 7.First char is OK [00:44:05]request: POST /json_proto HTTP/1.0 [00:44:05]Method: POST [00:44:05]URL: /json_proto [00:44:05]Method is POST - this is cgi request [00:44:05]url: /json_proto [00:44:05]query_string will be loaded in cgi processing [00:44:05]execute_cgi json_proto POST (null) [00:44:05]execute_cgi path=json_proto method=POST [00:44:05]POST find Content-Length [00:44:05]Host: 172.17.42.196:8080 [00:44:05]Content-Length: 215 [00:44:05]Content-Type: application/json [00:44:05] [00:44:05]POST finish read [00:44:05]Found Content-Length = 215 [00:44:05]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:44:05]execute_script... [00:44:05]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:44:05]POST & json_proto [00:44:05]process_json_proto [00:44:05]json parsed OK: [00:44:05]protocol is kg_v1.0 [00:44:05]action value=get_value [00:44:05]process_action get_value [00:44:05]cmd_get_value [00:44:05]process_action get_value done [00:44:05]requested_data is exist [00:44:05]produce_requested_data [00:44:05]requested_item kkm.sn is exist - process it [00:44:05]requested_item kkm.ver is exist - process it [00:44:05]requested_item fm.sn is exist - process it [00:44:05]wFMCommunicate request_size=4 [00:44:05]MH_SAM_APDU [00:44:05]CAPDU: 80 11 00 00 [00:44:05]Write to MH i2c: E2 08 00 AB 34 80 11 00 00 00 00 00 00 59 [00:44:05]Write i2c OK [00:44:05]MH_I2C_Read... [00:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:05]Read from MH i2c: E2 [00:44:05]MH_I2C_Read... [00:44:05]Read from MH i2c: E2 17 00 [00:44:05]MH_I2C_Read... [00:44:05]Read from MH i2c: E2 17 00 AB 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 B0 [00:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [00:44:05]wFMCommunicate OK [00:44:05]requested_item fd.num is exist - process it [00:44:05]SAM_PROTO_GetFieldsCounters [00:44:05]wFMCommunicate request_size=4 [00:44:05]MH_SAM_APDU [00:44:05]CAPDU: 80 13 00 00 [00:44:05]Write to MH i2c: E2 08 00 AC 34 80 13 00 00 00 00 00 00 5C [00:44:05]Write i2c OK [00:44:05]MH_I2C_Read... [00:44:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:44:05]Read from MH i2c: E2 [00:44:05]MH_I2C_Read... [00:44:05]Read from MH i2c: E2 62 00 [00:44:05]MH_I2C_Read... [00:44:05]Read from MH i2c: E2 62 00 AC 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B3 EA 00 00 0E 04 04 00 12 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 2D [00:44: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B3 EA 00 00 0E 04 04 00 12 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:44:05]wFMCommunicate OK [00:44:05]SAM_PROTO_GetFieldsCounters done [00:44:05]requested_item shift.num is exist - process it [00:44:05]requested_item shift.opened is exist - process it [00:44:05]req_shift_opened [00:44:05]FM_GetShiftState [00:44:05]SAM_PROTO_GetShiftState [00:44:05]wFMCommunicate request_size=4 [00:44:05]MH_SAM_APDU [00:44:05]CAPDU: 80 13 01 00 [00:44:05]Write to MH i2c: E2 08 00 AD 34 80 13 01 00 00 00 00 00 5E [00:44:05]Write i2c OK [00:44:05]MH_I2C_Read... [00:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:05]Read from MH i2c: E2 [00:44:05]MH_I2C_Read... [00:44:05]Read from MH i2c: E2 0E 00 [00:44:05]MH_I2C_Read... [00:44:05]Read from MH i2c: E2 0E 00 AD 34 00 09 00 01 D9 E8 1A 67 00 00 00 00 90 00 AC [00:44:05]RAPDU: 09 00 01 D9 E8 1A 67 00 00 00 00 90 00 [00:44:05]wFMCommunicate OK [00:44:05]SAM_PROTO_GetShiftState done [00:44:05]FM_GetShiftState done [00:44:05]req_shift_opened done [00:44:05]requested_item shift.open_date is exist - process it [00:44:05]req_shift_open_date [00:44:05]req_shift_open_date done [00:44:05]produce_requested_data done [00:44:05]produce_requested_data return {"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60083,"shift.num":530,"shift.opened":1,"shift.open_date":1729816793} [00:44:05]process_action_free get_value [00:44:05]json_value_free [00:44:05]json_value_free done [00:44:05]process_json_proto returns [00:44:05]Send response to host [00:44:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60083,"shift.num":530,"shift.opened":1,"shift.open_date":1729816793}}} [00:44:05]free response buf [00:44:05]execute_script done [00:44:05]execute_script returns [00:44:05]free content buf [00:44:05]Sock 7.Close socket [00:44:05]Sock 7.Thread stoped [00:44:05]accept exits with 9 [00:44:05]New connection [00:44:05]New thread 3067252068 created [00:44:05]Thread 3067108708 joined [00:44:05]Waiting for new connection... [00:44:05] Sock 9.Parse request [00:44:05]Sock 9.Check first char [00:44:05]Sock 9.First char is OK [00:44:05]request: POST /json_proto HTTP/1.0 [00:44:05]Method: POST [00:44:05]URL: /json_proto [00:44:05]Method is POST - this is cgi request [00:44:05]url: /json_proto [00:44:05]query_string will be loaded in cgi processing [00:44:05]execute_cgi json_proto POST (null) [00:44:05]execute_cgi path=json_proto method=POST [00:44:05]POST find Content-Length [00:44:05]Host: 172.17.42.196:8080 [00:44:05]Content-Length: 331 [00:44:05]Content-Type: application/json [00:44:05] [00:44:05]POST finish read [00:44:05]Found Content-Length = 331 [00:44: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" ] } } [00:44:05]execute_script... [00:44: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" ] } } [00:44:05]POST & json_proto [00:44:05]process_json_proto [00:44:05]json parsed OK: [00:44:05]protocol is kg_v1.0 [00:44:05]action value=get_value [00:44:05]process_action get_value [00:44:05]cmd_get_value [00:44:05]process_action get_value done [00:44:05]requested_data is exist [00:44:05]produce_requested_data [00:44:05]requested_item fm.sale.total is exist - process it [00:44:05]SAM_PROTO_GetFMData [00:44:05]wFMCommunicate request_size=4 [00:44:05]MH_SAM_APDU [00:44:05]CAPDU: 80 13 03 00 [00:44:05]Write to MH i2c: E2 08 00 AE 34 80 13 03 00 00 00 00 00 61 [00:44:05]OFD Sender: No OFD packet to send [00:44:05]Write i2c OK [00:44:05]MH_I2C_Read... [00:44:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:44:06]Read from MH i2c: E2 [00:44:06]MH_I2C_Read... [00:44:06]Read from MH i2c: E2 FD 00 [00:44:06]MH_I2C_Read... [00:44:06]Read from MH i2c: E2 FD 00 AE 34 00 C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 51 [00:44:06]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 [00:44:06]wFMCommunicate OK [00:44:06]wFMCommunicate request_size=4 [00:44:06]MH_SAM_APDU [00:44:06]CAPDU: 80 17 00 00 [00:44:06]Write to MH i2c: E2 08 00 AF 34 80 17 00 00 00 00 00 00 63 [00:44:06]Write i2c OK [00:44:06]MH_I2C_Read... [00:44:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:44:06]Read from MH i2c: E2 [00:44:06]MH_I2C_Read... [00:44:06]Read from MH i2c: E2 FD 00 [00:44:06]MH_I2C_Read... [00:44:06]Read from MH i2c: E2 FD 00 AF 34 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 D0 [00:44:06]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:44:06]wFMCommunicate OK [00:44:06]wFMCommunicate request_size=4 [00:44:06]MH_SAM_APDU [00:44:06]CAPDU: 80 17 00 00 [00:44:06]Write to MH i2c: E2 08 00 B0 34 80 17 00 00 00 00 00 00 64 [00:44:06]Write i2c OK [00:44:06]MH_I2C_Read... [00:44:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:44:06]Read from MH i2c: E2 [00:44:06]MH_I2C_Read... [00:44:06]Read from MH i2c: E2 FD 00 [00:44:06]MH_I2C_Read... [00:44:06]Read from MH i2c: E2 FD 00 B0 34 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 12 [00:44:06]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:44:06]wFMCommunicate OK [00:44:06]wFMCommunicate request_size=4 [00:44:06]MH_SAM_APDU [00:44:06]CAPDU: 80 17 00 00 [00:44:06]Write to MH i2c: E2 08 00 B1 34 80 17 00 00 00 00 00 00 65 [00:44:06]Write i2c OK [00:44:06]MH_I2C_Read... [00:44:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:44:07]Read from MH i2c: E2 [00:44:07]MH_I2C_Read... [00:44:07]Read from MH i2c: E2 FD 00 [00:44:07]MH_I2C_Read... [00:44:07]Read from MH i2c: E2 FD 00 B1 34 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E0 [00:44:07]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:44:07]wFMCommunicate OK [00:44:07]wFMCommunicate request_size=4 [00:44:07]MH_SAM_APDU [00:44:07]CAPDU: 80 17 00 00 [00:44:07]Write to MH i2c: E2 08 00 B2 34 80 17 00 00 00 00 00 00 66 [00:44:07]Write i2c OK [00:44:07]MH_I2C_Read... [00:44:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:44:07]Read from MH i2c: E2 [00:44:07]MH_I2C_Read... [00:44:07]Read from MH i2c: E2 DF 00 [00:44:07]MH_I2C_Read... [00:44:07]Read from MH i2c: E2 DF 00 B2 34 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 46 [00:44:07]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:44:07]wFMCommunicate OK [00:44:07]SAM_PROTO_GetFMData done [00:44:07]requested_item fm.sale_refund.total is exist - process it [00:44:07]requested_item fm.buy.total is exist - process it [00:44:07]requested_item shift.sale.total is exist - process it [00:44:07]SAM_PROTO_GetShiftData [00:44:07]wFMCommunicate request_size=4 [00:44:07]MH_SAM_APDU [00:44:07]CAPDU: 80 13 02 00 [00:44:07]Write to MH i2c: E2 08 00 B3 34 80 13 02 00 00 00 00 00 65 [00:44:07]Write i2c OK [00:44:07]MH_I2C_Read... [00:44:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:44:07]Read from MH i2c: E2 [00:44:07]MH_I2C_Read... [00:44:07]Read from MH i2c: E2 FD 00 [00:44:07]MH_I2C_Read... [00:44:07]Read from MH i2c: E2 FD 00 B3 34 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 D8 [00:44:07]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:44:07]wFMCommunicate OK [00:44:07]wFMCommunicate request_size=4 [00:44:07]MH_SAM_APDU [00:44:07]CAPDU: 80 17 00 00 [00:44:07]Write to MH i2c: E2 08 00 B4 34 80 17 00 00 00 00 00 00 68 [00:44:07]Write i2c OK [00:44:07]MH_I2C_Read... [00:44:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:44:08]Read from MH i2c: E2 [00:44:08]MH_I2C_Read... [00:44:08]Read from MH i2c: E2 FD 00 [00:44:08]MH_I2C_Read... [00:44:08]Read from MH i2c: E2 FD 00 B4 34 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 70 [00:44:08]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:44:08]wFMCommunicate OK [00:44:08]wFMCommunicate request_size=4 [00:44:08]MH_SAM_APDU [00:44:08]CAPDU: 80 17 00 00 [00:44:08]Write to MH i2c: E2 08 00 B5 34 80 17 00 00 00 00 00 00 69 [00:44:08]Write i2c OK [00:44:08]MH_I2C_Read... [00:44:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:44:08]Read from MH i2c: E2 [00:44:08]MH_I2C_Read... [00:44:08]Read from MH i2c: E2 FD 00 [00:44:08]MH_I2C_Read... [00:44:08]Read from MH i2c: E2 FD 00 B5 34 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 3B [00:44:08]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:44:08]wFMCommunicate OK [00:44:08]wFMCommunicate request_size=4 [00:44:08]MH_SAM_APDU [00:44:08]CAPDU: 80 17 00 00 [00:44:08]Write to MH i2c: E2 08 00 B6 34 80 17 00 00 00 00 00 00 6A [00:44:08]Write i2c OK [00:44:08]MH_I2C_Read... [00:44:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:44:08]Read from MH i2c: E2 [00:44:08]MH_I2C_Read... [00:44:08]Read from MH i2c: E2 FD 00 [00:44:08]MH_I2C_Read... [00:44:08]Read from MH i2c: E2 FD 00 B6 34 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 DC [00:44:08]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:44:08]wFMCommunicate OK [00:44:08]wFMCommunicate request_size=4 [00:44:08]MH_SAM_APDU [00:44:08]CAPDU: 80 17 00 00 [00:44:08]Write to MH i2c: E2 08 00 B7 34 80 17 00 00 00 00 00 00 6B [00:44:08]Write i2c OK [00:44:08]MH_I2C_Read... [00:44:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:44:08]Read from MH i2c: E2 [00:44:08]MH_I2C_Read... [00:44:08]Read from MH i2c: E2 BD 00 [00:44:08]MH_I2C_Read... [00:44:08]Read from MH i2c: E2 BD 00 B7 34 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 51 [00:44:08]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:44:08]wFMCommunicate OK [00:44:08]SAM_PROTO_GetShiftData done [00:44:08]requested_item shift.sale.total_cash is exist - process it [00:44:08]requested_item shift.sale_refund.total is exist - process it [00:44:08]requested_item shift.sale_refund.total_cash is exist - process it [00:44:08]requested_item shift.buy.total is exist - process it [00:44:08]requested_item shift.buy.total_cash is exist - process it [00:44:08]produce_requested_data done [00:44:08]produce_requested_data return {"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.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:44:08]process_action_free get_value [00:44:08]json_value_free [00:44:08]json_value_free done [00:44:08]process_json_proto returns [00:44:08]Send response to host [00:44:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.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:44:08]free response buf [00:44:08]execute_script done [00:44:08]execute_script returns [00:44:08]free content buf [00:44:08]Sock 9.Close socket [00:44:08]Sock 9.Thread stoped [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:45]accept exits with 7 [00:44:45]New connection [00:44:45]New thread 3067108708 created [00:44:45]Thread 3067252068 joined [00:44:45]Waiting for new connection... [00:44:45] Sock 7.Parse request [00:44:45]Sock 7.Check first char [00:44:45]Sock 7.First char is OK [00:44:45]request: POST /json_proto HTTP/1.0 [00:44:45]Method: POST [00:44:45]URL: /json_proto [00:44:45]Method is POST - this is cgi request [00:44:45]url: /json_proto [00:44:45]query_string will be loaded in cgi processing [00:44:45]execute_cgi json_proto POST (null) [00:44:45]execute_cgi path=json_proto method=POST [00:44:45]POST find Content-Length [00:44:45]Host: 172.17.42.196:8080 [00:44:45]Content-Length: 215 [00:44:45]Content-Type: application/json [00:44:45] [00:44:45]POST finish read [00:44:45]Found Content-Length = 215 [00:44:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:45]execute_script... [00:44:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:45]POST & json_proto [00:44:45]process_json_proto [00:44:45]json parsed OK: [00:44:45]protocol is kg_v1.0 [00:44:45]action value=get_value [00:44:45]process_action get_value [00:44:45]cmd_get_value [00:44:45]process_action get_value done [00:44:45]requested_data is exist [00:44:45]produce_requested_data [00:44:45]requested_item kkm.sn is exist - process it [00:44:45]requested_item kkm.ver is exist - process it [00:44:45]requested_item fm.sn is exist - process it [00:44:45]wFMCommunicate request_size=4 [00:44:45]MH_SAM_APDU [00:44:45]CAPDU: 80 11 00 00 [00:44:45]Write to MH i2c: E2 08 00 B8 34 80 11 00 00 00 00 00 00 66 [00:44:45]Write i2c OK [00:44:45]MH_I2C_Read... [00:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:45]Read from MH i2c: E2 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 17 00 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 17 00 B8 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 BD [00:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [00:44:45]wFMCommunicate OK [00:44:45]requested_item fd.num is exist - process it [00:44:45]SAM_PROTO_GetFieldsCounters [00:44:45]wFMCommunicate request_size=4 [00:44:45]MH_SAM_APDU [00:44:45]CAPDU: 80 13 00 00 [00:44:45]Write to MH i2c: E2 08 00 B9 34 80 13 00 00 00 00 00 00 69 [00:44:45]Write i2c OK [00:44:45]MH_I2C_Read... [00:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:44:45]Read from MH i2c: E2 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 62 00 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 62 00 B9 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B3 EA 00 00 0E 04 04 00 12 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 3A [00: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B3 EA 00 00 0E 04 04 00 12 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:44:45]wFMCommunicate OK [00:44:45]SAM_PROTO_GetFieldsCounters done [00:44:45]requested_item shift.num is exist - process it [00:44:45]requested_item shift.opened is exist - process it [00:44:45]req_shift_opened [00:44:45]FM_GetShiftState [00:44:45]SAM_PROTO_GetShiftState [00:44:45]wFMCommunicate request_size=4 [00:44:45]MH_SAM_APDU [00:44:45]CAPDU: 80 13 01 00 [00:44:45]Write to MH i2c: E2 08 00 BA 34 80 13 01 00 00 00 00 00 6B [00:44:45]Write i2c OK [00:44:45]MH_I2C_Read... [00:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:45]Read from MH i2c: E2 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 0E 00 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 0E 00 BA 34 00 09 00 01 D9 E8 1A 67 00 00 00 00 90 00 B9 [00:44:45]RAPDU: 09 00 01 D9 E8 1A 67 00 00 00 00 90 00 [00:44:45]wFMCommunicate OK [00:44:45]SAM_PROTO_GetShiftState done [00:44:45]FM_GetShiftState done [00:44:45]req_shift_opened done [00:44:45]requested_item shift.open_date is exist - process it [00:44:45]req_shift_open_date [00:44:45]req_shift_open_date done [00:44:45]produce_requested_data done [00:44:45]produce_requested_data return {"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60083,"shift.num":530,"shift.opened":1,"shift.open_date":1729816793} [00:44:45]process_action_free get_value [00:44:45]json_value_free [00:44:45]json_value_free done [00:44:45]process_json_proto returns [00:44:45]Send response to host [00:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60083,"shift.num":530,"shift.opened":1,"shift.open_date":1729816793}}} [00:44:45]free response buf [00:44:45]execute_script done [00:44:45]execute_script returns [00:44:45]free content buf [00:44:45]Sock 7.Close socket [00:44:45]Sock 7.Thread stoped [00:44:45]accept exits with 9 [00:44:45]New connection [00:44:45]New thread 3067252068 created [00:44:45]Thread 3067108708 joined [00:44:45]Waiting for new connection... [00:44:45] Sock 9.Parse request [00:44:45]Sock 9.Check first char [00:44:45]Sock 9.First char is OK [00:44:45]request: POST /json_proto HTTP/1.0 [00:44:45]Method: POST [00:44:45]URL: /json_proto [00:44:45]Method is POST - this is cgi request [00:44:45]url: /json_proto [00:44:45]query_string will be loaded in cgi processing [00:44:45]execute_cgi json_proto POST (null) [00:44:45]execute_cgi path=json_proto method=POST [00:44:45]POST find Content-Length [00:44:45]Host: 172.17.42.196:8080 [00:44:45]Content-Length: 331 [00:44:45]Content-Type: application/json [00:44:45] [00:44:45]POST finish read [00:44:45]Found Content-Length = 331 [00:44:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:44:45]execute_script... [00:44:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:44:45]POST & json_proto [00:44:45]process_json_proto [00:44:45]json parsed OK: [00:44:45]protocol is kg_v1.0 [00:44:45]action value=get_value [00:44:45]process_action get_value [00:44:45]cmd_get_value [00:44:45]process_action get_value done [00:44:45]requested_data is exist [00:44:45]produce_requested_data [00:44:45]requested_item fm.sale.total is exist - process it [00:44:45]SAM_PROTO_GetFMData [00:44:45]wFMCommunicate request_size=4 [00:44:45]MH_SAM_APDU [00:44:45]CAPDU: 80 13 03 00 [00:44:45]Write to MH i2c: E2 08 00 BB 34 80 13 03 00 00 00 00 00 6E [00:44:45]Write i2c OK [00:44:45]MH_I2C_Read... [00:44:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:44:45]Read from MH i2c: E2 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 FD 00 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 FD 00 BB 34 00 C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 5E [00:44:45]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 [00:44:45]wFMCommunicate OK [00:44:45]wFMCommunicate request_size=4 [00:44:45]MH_SAM_APDU [00:44:45]CAPDU: 80 17 00 00 [00:44:45]Write to MH i2c: E2 08 00 BC 34 80 17 00 00 00 00 00 00 70 [00:44:45]Write i2c OK [00:44:45]MH_I2C_Read... [00:44:46]OFD Sender: No OFD packet to send [00:44:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:44:46]Read from MH i2c: E2 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 FD 00 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 FD 00 BC 34 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 DD [00:44:46]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:44:46]wFMCommunicate OK [00:44:46]wFMCommunicate request_size=4 [00:44:46]MH_SAM_APDU [00:44:46]CAPDU: 80 17 00 00 [00:44:46]Write to MH i2c: E2 08 00 BD 34 80 17 00 00 00 00 00 00 71 [00:44:46]Write i2c OK [00:44:46]MH_I2C_Read... [00:44:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:44:46]Read from MH i2c: E2 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 FD 00 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 FD 00 BD 34 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1F [00:44:46]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:44:46]wFMCommunicate OK [00:44:46]wFMCommunicate request_size=4 [00:44:46]MH_SAM_APDU [00:44:46]CAPDU: 80 17 00 00 [00:44:46]Write to MH i2c: E2 08 00 BE 34 80 17 00 00 00 00 00 00 72 [00:44:46]Write i2c OK [00:44:46]MH_I2C_Read... [00:44:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:44:46]Read from MH i2c: E2 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 FD 00 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 FD 00 BE 34 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 ED [00:44:46]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:44:46]wFMCommunicate OK [00:44:46]wFMCommunicate request_size=4 [00:44:46]MH_SAM_APDU [00:44:46]CAPDU: 80 17 00 00 [00:44:46]Write to MH i2c: E2 08 00 BF 34 80 17 00 00 00 00 00 00 73 [00:44:46]Write i2c OK [00:44:46]MH_I2C_Read... [00:44:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:44:47]Read from MH i2c: E2 [00:44:47]MH_I2C_Read... [00:44:47]Read from MH i2c: E2 DF 00 [00:44:47]MH_I2C_Read... [00:44:47]Read from MH i2c: E2 DF 00 BF 34 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 53 [00:44:47]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:44:47]wFMCommunicate OK [00:44:47]SAM_PROTO_GetFMData done [00:44:47]requested_item fm.sale_refund.total is exist - process it [00:44:47]requested_item fm.buy.total is exist - process it [00:44:47]requested_item shift.sale.total is exist - process it [00:44:47]SAM_PROTO_GetShiftData [00:44:47]wFMCommunicate request_size=4 [00:44:47]MH_SAM_APDU [00:44:47]CAPDU: 80 13 02 00 [00:44:47]Write to MH i2c: E2 08 00 C0 34 80 13 02 00 00 00 00 00 72 [00:44:47]Write i2c OK [00:44:47]MH_I2C_Read... [00:44:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:44:47]Read from MH i2c: E2 [00:44:47]MH_I2C_Read... [00:44:47]Read from MH i2c: E2 FD 00 [00:44:47]MH_I2C_Read... [00:44:47]Read from MH i2c: E2 FD 00 C0 34 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 E5 [00:44:47]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:44:47]wFMCommunicate OK [00:44:47]wFMCommunicate request_size=4 [00:44:47]MH_SAM_APDU [00:44:47]CAPDU: 80 17 00 00 [00:44:47]Write to MH i2c: E2 08 00 C1 34 80 17 00 00 00 00 00 00 75 [00:44:47]Write i2c OK [00:44:47]MH_I2C_Read... [00:44:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:44:47]Read from MH i2c: E2 [00:44:47]MH_I2C_Read... [00:44:47]Read from MH i2c: E2 FD 00 [00:44:47]MH_I2C_Read... [00:44:47]Read from MH i2c: E2 FD 00 C1 34 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 7D [00:44:47]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:44:47]wFMCommunicate OK [00:44:47]wFMCommunicate request_size=4 [00:44:47]MH_SAM_APDU [00:44:47]CAPDU: 80 17 00 00 [00:44:47]Write to MH i2c: E2 08 00 C2 34 80 17 00 00 00 00 00 00 76 [00:44:47]Write i2c OK [00:44:47]MH_I2C_Read... [00:44:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:44:48]Read from MH i2c: E2 [00:44:48]MH_I2C_Read... [00:44:48]Read from MH i2c: E2 FD 00 [00:44:48]MH_I2C_Read... [00:44:48]Read from MH i2c: E2 FD 00 C2 34 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 48 [00:44:48]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:44:48]wFMCommunicate OK [00:44:48]wFMCommunicate request_size=4 [00:44:48]MH_SAM_APDU [00:44:48]CAPDU: 80 17 00 00 [00:44:48]Write to MH i2c: E2 08 00 C3 34 80 17 00 00 00 00 00 00 77 [00:44:48]Write i2c OK [00:44:48]MH_I2C_Read... [00:44:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:44:48]Read from MH i2c: E2 [00:44:48]MH_I2C_Read... [00:44:48]Read from MH i2c: E2 FD 00 [00:44:48]MH_I2C_Read... [00:44:48]Read from MH i2c: E2 FD 00 C3 34 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 E9 [00:44:48]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:44:48]wFMCommunicate OK [00:44:48]wFMCommunicate request_size=4 [00:44:48]MH_SAM_APDU [00:44:48]CAPDU: 80 17 00 00 [00:44:48]Write to MH i2c: E2 08 00 C4 34 80 17 00 00 00 00 00 00 78 [00:44:48]Write i2c OK [00:44:48]MH_I2C_Read... [00:44:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:44:48]Read from MH i2c: E2 [00:44:48]MH_I2C_Read... [00:44:48]Read from MH i2c: E2 BD 00 [00:44:48]MH_I2C_Read... [00:44:48]Read from MH i2c: E2 BD 00 C4 34 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 5E [00:44:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:44:48]wFMCommunicate OK [00:44:48]SAM_PROTO_GetShiftData done [00:44:48]requested_item shift.sale.total_cash is exist - process it [00:44:48]requested_item shift.sale_refund.total is exist - process it [00:44:48]requested_item shift.sale_refund.total_cash is exist - process it [00:44:48]requested_item shift.buy.total is exist - process it [00:44:48]requested_item shift.buy.total_cash is exist - process it [00:44:48]produce_requested_data done [00:44:48]produce_requested_data return {"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.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:44:48]process_action_free get_value [00:44:48]json_value_free [00:44:48]json_value_free done [00:44:48]process_json_proto returns [00:44:48]Send response to host [00:44:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.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:44:48]free response buf [00:44:48]execute_script done [00:44:48]execute_script returns [00:44:48]free content buf [00:44:48]Sock 9.Close socket [00:44:48]Sock 9.Thread stoped [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:44:58]accept exits with 7 [00:44:58]New connection [00:44:58]New thread 3067108708 created [00:44:58]Thread 3067252068 joined [00:44:58]Waiting for new connection... [00:44:58] Sock 7.Parse request [00:44:58]Sock 7.Check first char [00:44:58]Sock 7.First char is OK [00:44:58]request: POST /json_proto HTTP/1.0 [00:44:58]Method: POST [00:44:58]URL: /json_proto [00:44:58]Method is POST - this is cgi request [00:44:58]url: /json_proto [00:44:58]query_string will be loaded in cgi processing [00:44:58]execute_cgi json_proto POST (null) [00:44:58]execute_cgi path=json_proto method=POST [00:44:58]POST find Content-Length [00:44:58]Host: 172.17.42.196:8080 [00:44:58]Content-Length: 215 [00:44:58]Content-Type: application/json [00:44:58] [00:44:58]POST finish read [00:44:58]Found Content-Length = 215 [00:44:58]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:44:58]execute_script... [00:44:58]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:44:58]POST & json_proto [00:44:58]process_json_proto [00:44:58]json parsed OK: [00:44:58]protocol is kg_v1.0 [00:44:58]action value=get_value [00:44:58]process_action get_value [00:44:58]cmd_get_value [00:44:58]process_action get_value done [00:44:58]requested_data is exist [00:44:58]produce_requested_data [00:44:58]requested_item kkm.sn is exist - process it [00:44:58]requested_item kkm.ver is exist - process it [00:44:58]requested_item fm.sn is exist - process it [00:44:58]wFMCommunicate request_size=4 [00:44:58]MH_SAM_APDU [00:44:58]CAPDU: 80 11 00 00 [00:44:58]Write to MH i2c: E2 08 00 C5 34 80 11 00 00 00 00 00 00 73 [00:44:58]Write i2c OK [00:44:58]MH_I2C_Read... [00:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:58]Read from MH i2c: E2 [00:44:58]MH_I2C_Read... [00:44:58]Read from MH i2c: E2 17 00 [00:44:58]MH_I2C_Read... [00:44:58]Read from MH i2c: E2 17 00 C5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 CA [00:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [00:44:58]wFMCommunicate OK [00:44:58]requested_item fd.num is exist - process it [00:44:58]SAM_PROTO_GetFieldsCounters [00:44:58]wFMCommunicate request_size=4 [00:44:58]MH_SAM_APDU [00:44:58]CAPDU: 80 13 00 00 [00:44:58]Write to MH i2c: E2 08 00 C6 34 80 13 00 00 00 00 00 00 76 [00:44:58]Write i2c OK [00:44:58]MH_I2C_Read... [00:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:44:58]Read from MH i2c: E2 [00:44:58]MH_I2C_Read... [00:44:58]Read from MH i2c: E2 62 00 [00:44:58]MH_I2C_Read... [00:44:58]Read from MH i2c: E2 62 00 C6 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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B3 EA 00 00 0E 04 04 00 12 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 47 [00:44: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 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 B3 EA 00 00 0E 04 04 00 12 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:44:58]wFMCommunicate OK [00:44:58]SAM_PROTO_GetFieldsCounters done [00:44:58]requested_item shift.num is exist - process it [00:44:58]requested_item shift.opened is exist - process it [00:44:58]req_shift_opened [00:44:58]FM_GetShiftState [00:44:58]SAM_PROTO_GetShiftState [00:44:58]wFMCommunicate request_size=4 [00:44:58]MH_SAM_APDU [00:44:58]CAPDU: 80 13 01 00 [00:44:58]Write to MH i2c: E2 08 00 C7 34 80 13 01 00 00 00 00 00 78 [00:44:58]Write i2c OK [00:44:58]MH_I2C_Read... [00:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:58]Read from MH i2c: E2 [00:44:58]MH_I2C_Read... [00:44:58]Read from MH i2c: E2 0E 00 [00:44:58]MH_I2C_Read... [00:44:58]Read from MH i2c: E2 0E 00 C7 34 00 09 00 01 D9 E8 1A 67 00 00 00 00 90 00 C6 [00:44:58]RAPDU: 09 00 01 D9 E8 1A 67 00 00 00 00 90 00 [00:44:58]wFMCommunicate OK [00:44:58]SAM_PROTO_GetShiftState done [00:44:58]FM_GetShiftState done [00:44:58]req_shift_opened done [00:44:58]requested_item shift.open_date is exist - process it [00:44:58]req_shift_open_date [00:44:58]req_shift_open_date done [00:44:58]produce_requested_data done [00:44:58]produce_requested_data return {"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60083,"shift.num":530,"shift.opened":1,"shift.open_date":1729816793} [00:44:58]process_action_free get_value [00:44:58]json_value_free [00:44:58]json_value_free done [00:44:58]process_json_proto returns [00:44:58]Send response to host [00:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60083,"shift.num":530,"shift.opened":1,"shift.open_date":1729816793}}} [00:44:58]free response buf [00:44:58]execute_script done [00:44:58]execute_script returns [00:44:58]free content buf [00:44:58]Sock 7.Close socket [00:44:58]Sock 7.Thread stoped [00:44:58]accept exits with 9 [00:44:58]New connection [00:44:58]New thread 3067252068 created [00:44:58]Thread 3067108708 joined [00:44:58]Waiting for new connection... [00:44:58] Sock 9.Parse request [00:44:58]Sock 9.Check first char [00:44:58]Sock 9.First char is OK [00:44:58]request: POST /json_proto HTTP/1.0 [00:44:58]Method: POST [00:44:58]URL: /json_proto [00:44:58]Method is POST - this is cgi request [00:44:58]url: /json_proto [00:44:58]query_string will be loaded in cgi processing [00:44:58]execute_cgi json_proto POST (null) [00:44:58]execute_cgi path=json_proto method=POST [00:44:58]POST find Content-Length [00:44:58]Host: 172.17.42.196:8080 [00:44:58]Content-Length: 331 [00:44:58]Content-Type: application/json [00:44:58] [00:44:58]POST finish read [00:44:58]Found Content-Length = 331 [00:44:58]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:44:58]execute_script... [00:44:58]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:44:58]POST & json_proto [00:44:58]process_json_proto [00:44:58]json parsed OK: [00:44:58]protocol is kg_v1.0 [00:44:58]action value=get_value [00:44:58]process_action get_value [00:44:58]cmd_get_value [00:44:58]process_action get_value done [00:44:58]requested_data is exist [00:44:58]produce_requested_data [00:44:58]requested_item fm.sale.total is exist - process it [00:44:58]SAM_PROTO_GetFMData [00:44:58]wFMCommunicate request_size=4 [00:44:58]MH_SAM_APDU [00:44:58]CAPDU: 80 13 03 00 [00:44:58]Write to MH i2c: E2 08 00 C8 34 80 13 03 00 00 00 00 00 7B [00:44:59]Write i2c OK [00:44:59]MH_I2C_Read... [00:44:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:44:59]Read from MH i2c: E2 [00:44:59]MH_I2C_Read... [00:44:59]Read from MH i2c: E2 FD 00 [00:44:59]MH_I2C_Read... [00:44:59]Read from MH i2c: E2 FD 00 C8 34 00 C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 6B [00:44:59]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 8E E6 00 00 69 04 A0 00 6F 04 04 00 FE E5 00 00 B1 04 04 00 FB 98 AA 6C 70 04 04 00 30 6B 01 59 72 04 04 00 CB 2D A9 13 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 43 92 8A 0B 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 FE 1E F6 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 00 B1 04 03 00 1C B2 D6 70 04 03 00 DC 8B D3 72 04 03 00 40 26 03 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 04 CD 16 EF 03 09 00 F6 03 90 00 [00:44:59]wFMCommunicate OK [00:44:59]wFMCommunicate request_size=4 [00:44:59]MH_SAM_APDU [00:44:59]CAPDU: 80 17 00 00 [00:44:59]Write to MH i2c: E2 08 00 C9 34 80 17 00 00 00 00 00 00 7D [00:44:59]Write i2c OK [00:44:59]MH_I2C_Read... [00:44:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:44:59]Read from MH i2c: E2 [00:44:59]MH_I2C_Read... [00:44:59]Read from MH i2c: E2 FD 00 [00:44:59]MH_I2C_Read... [00:44:59]Read from MH i2c: E2 FD 00 C9 34 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 EA [00:44:59]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 59 E6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:44:59]wFMCommunicate OK [00:44:59]wFMCommunicate request_size=4 [00:44:59]MH_SAM_APDU [00:44:59]CAPDU: 80 17 00 00 [00:44:59]Write to MH i2c: E2 08 00 CA 34 80 17 00 00 00 00 00 00 7E [00:44:59]Write i2c OK [00:44:59]MH_I2C_Read... [00:45:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:00]Read from MH i2c: E2 [00:45:00]MH_I2C_Read... [00:45:00]Read from MH i2c: E2 FD 00 [00:45:00]MH_I2C_Read... [00:45:00]Read from MH i2c: E2 FD 00 CA 34 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2C [00:45:00]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:45:00]wFMCommunicate OK [00:45:00]wFMCommunicate request_size=4 [00:45:00]MH_SAM_APDU [00:45:00]CAPDU: 80 17 00 00 [00:45:00]Write to MH i2c: E2 08 00 CB 34 80 17 00 00 00 00 00 00 7F [00:45:00]Write i2c OK [00:45:00]MH_I2C_Read... [00:45:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:00]Read from MH i2c: E2 [00:45:00]MH_I2C_Read... [00:45:00]Read from MH i2c: E2 FD 00 [00:45:00]MH_I2C_Read... [00:45:00]Read from MH i2c: E2 FD 00 CB 34 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FA [00:45:00]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:45:00]wFMCommunicate OK [00:45:00]wFMCommunicate request_size=4 [00:45:00]MH_SAM_APDU [00:45:00]CAPDU: 80 17 00 00 [00:45:00]Write to MH i2c: E2 08 00 CC 34 80 17 00 00 00 00 00 00 80 [00:45:00]Write i2c OK [00:45:00]MH_I2C_Read... [00:45:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:45:00]Read from MH i2c: E2 [00:45:00]MH_I2C_Read... [00:45:00]Read from MH i2c: E2 DF 00 [00:45:00]MH_I2C_Read... [00:45:00]Read from MH i2c: E2 DF 00 CC 34 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 60 [00:45:00]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:45:00]wFMCommunicate OK [00:45:00]SAM_PROTO_GetFMData done [00:45:00]requested_item fm.sale_refund.total is exist - process it [00:45:00]requested_item fm.buy.total is exist - process it [00:45:00]requested_item shift.sale.total is exist - process it [00:45:00]SAM_PROTO_GetShiftData [00:45:00]wFMCommunicate request_size=4 [00:45:00]MH_SAM_APDU [00:45:00]CAPDU: 80 13 02 00 [00:45:00]Write to MH i2c: E2 08 00 CD 34 80 13 02 00 00 00 00 00 7F [00:45:00]Write i2c OK [00:45:00]MH_I2C_Read... [00:45:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:45:01]Read from MH i2c: E2 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: E2 FD 00 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: E2 FD 00 CD 34 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 F2 [00:45:01]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:45:01]wFMCommunicate OK [00:45:01]wFMCommunicate request_size=4 [00:45:01]MH_SAM_APDU [00:45:01]CAPDU: 80 17 00 00 [00:45:01]Write to MH i2c: E2 08 00 CE 34 80 17 00 00 00 00 00 00 82 [00:45:01]Write i2c OK [00:45:01]MH_I2C_Read... [00:45:01]OFD Sender: No OFD packet to send [00:45:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:01]Read from MH i2c: E2 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: E2 FD 00 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: E2 FD 00 CE 34 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 8A [00:45:01]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:45:01]wFMCommunicate OK [00:45:01]wFMCommunicate request_size=4 [00:45:01]MH_SAM_APDU [00:45:01]CAPDU: 80 17 00 00 [00:45:01]Write to MH i2c: E2 08 00 CF 34 80 17 00 00 00 00 00 00 83 [00:45:01]Write i2c OK [00:45:01]MH_I2C_Read... [00:45:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:01]Read from MH i2c: E2 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: E2 FD 00 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: E2 FD 00 CF 34 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 55 [00:45:01]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:45:01]wFMCommunicate OK [00:45:01]wFMCommunicate request_size=4 [00:45:01]MH_SAM_APDU [00:45:01]CAPDU: 80 17 00 00 [00:45:01]Write to MH i2c: E2 08 00 D0 34 80 17 00 00 00 00 00 00 84 [00:45:01]Write i2c OK [00:45:01]MH_I2C_Read... [00:45:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:45:01]Read from MH i2c: E2 [00:45:02]MH_I2C_Read... [00:45:02]Read from MH i2c: E2 FD 00 [00:45:02]MH_I2C_Read... [00:45:02]Read from MH i2c: E2 FD 00 D0 34 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 F6 [00:45:02]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:45:02]wFMCommunicate OK [00:45:02]wFMCommunicate request_size=4 [00:45:02]MH_SAM_APDU [00:45:02]CAPDU: 80 17 00 00 [00:45:02]Write to MH i2c: E2 08 00 D1 34 80 17 00 00 00 00 00 00 85 [00:45:02]Write i2c OK [00:45:02]MH_I2C_Read... [00:45:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:45:02]Read from MH i2c: E2 [00:45:02]MH_I2C_Read... [00:45:02]Read from MH i2c: E2 BD 00 [00:45:02]MH_I2C_Read... [00:45:02]Read from MH i2c: E2 BD 00 D1 34 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 6B [00:45:02]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:45:02]wFMCommunicate OK [00:45:02]SAM_PROTO_GetShiftData done [00:45:02]requested_item shift.sale.total_cash is exist - process it [00:45:02]requested_item shift.sale_refund.total is exist - process it [00:45:02]requested_item shift.sale_refund.total_cash is exist - process it [00:45:02]requested_item shift.buy.total is exist - process it [00:45:02]requested_item shift.buy.total_cash is exist - process it [00:45:02]produce_requested_data done [00:45:02]produce_requested_data return {"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.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:45:02]process_action_free get_value [00:45:02]json_value_free [00:45:02]json_value_free done [00:45:02]process_json_proto returns [00:45:02]Send response to host [00:45:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18231196.11,"fm.sale_refund.total":140703.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:45:02]free response buf [00:45:02]execute_script done [00:45:02]execute_script returns [00:45:02]free content buf [00:45:02]Sock 9.Close socket [00:45:02]Sock 9.Thread stoped [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00: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:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:04]accept exits with 7 [01:04:04]New connection [01:04:04]New thread 3067108708 created [01:04:04]Thread 3067252068 joined [01:04:04]Waiting for new connection... [01:04:04] Sock 7.Parse request [01:04:04]Sock 7.Check first char [01:04:04]Sock 7.First char is OK [01:04:04]request: GET /testengine HTTP/1.1 [01:04:04]Method: GET [01:04:04]URL: /testengine [01:04:04]Method is GET - find url and querystring [01:04:04]No ? found - this is static page request [01:04:04]url: /testengine [01:04:04]check /htdocs/testengine [01:04:04]accept exits with 9 [01:04:04]New connection [01:04:04]New thread 3067252068 created [01:04:04]Waiting for new connection... [01:04:04] Sock 9.Parse request [01:04:04]Sock 9.Check first char [01:04:04]file exist [01:04:04]serve_file /htdocs/testengine/index.html [01:04:04]read remaining request lines [01:04:04]Host: 172.17.42.196:8080 [01:04:04]Connection: keep-alive [01:04:04]Upgrade-Insecure-Requests: 1 [01:04:04]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 [01:04:04]Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 [01:04:04]Accept-Encoding: gzip, deflate [01:04:04]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [01:04:04] [01:04:04]open file /htdocs/testengine/index.html [01:04:04]send HTTP headers [01:04:04]send file content [01:04:04]Finished. Sent 1003 bytes [01:04:04]close file [01:04:04]Sock 7.Close socket [01:04:04]Sock 7.Thread stoped [01:04:04]Sock 9.First char is OK [01:04:04]request: GET /testengine/css/app.915bc88f.css HTTP/1.1 [01:04:04]Method: GET [01:04:04]URL: /testengine/css/app.915bc88f.css [01:04:04]Method is GET - find url and querystring [01:04:04]No ? found - this is static page request [01:04:04]url: /testengine/css/app.915bc88f.css [01:04:04]check /htdocs/testengine/css/app.915bc88f.css [01:04:04]file exist [01:04:04]serve_file /htdocs/testengine/css/app.915bc88f.css [01:04:04]read remaining request lines [01:04:04]Host: 172.17.42.196:8080 [01:04:04]Connection: keep-alive [01:04:04]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 [01:04:04]Accept: text/css,*/*;q=0.1 [01:04:04]Referer: http://172.17.42.196:8080/testengine [01:04:04]Accept-Encoding: gzip, deflate [01:04:04]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [01:04:04] [01:04:04]open file /htdocs/testengine/css/app.915bc88f.css [01:04:04]send HTTP headers [01:04:04]send file content [01:04:04]Finished. Sent 1227 bytes [01:04:04]close file [01:04:04]Sock 9.Close socket [01:04:04]Sock 9.Thread stoped [01:04:04]accept exits with 10 [01:04:04]New connection [01:04:04]New thread 3066965348 created [01:04:04]Thread 3067108708 joined [01:04:04]Thread 3067252068 joined [01:04:04]Waiting for new connection... [01:04:04] Sock 10.Parse request [01:04:04]Sock 10.Check first char [01:04:04]accept exits with 7 [01:04:04]New connection [01:04:04]New thread 3067252068 created [01:04:04]Waiting for new connection... [01:04:04]accept exits with 9 [01:04:04]New connection [01:04:04]New thread 3067108708 created [01:04:04]Waiting for new connection... [01:04:04] Sock 9.Parse request [01:04:04]Sock 9.Check first char [01:04:04]Sock 9.First char is OK [01:04:04]request: GET /testengine/js/chunk-vendors.8f546e50.js HTTP/1.1 [01:04:04]Method: GET [01:04:04]URL: /testengine/js/chunk-vendors.8f546e50.js [01:04:04]Method is GET - find url and querystring [01:04:04]No ? found - this is static page request [01:04:04]url: /testengine/js/chunk-vendors.8f546e50.js [01:04:04]check /htdocs/testengine/js/chunk-vendors.8f546e50.js [01:04:04] Sock 7.Parse request [01:04:04]Sock 7.Check first char [01:04:04]Sock 7.First char is OK [01:04:04]request: GET /testengine/js/app.a9c38288.js HTTP/1.1 [01:04:04]Method: GET [01:04:04]URL: /testengine/js/app.a9c38288.js [01:04:04]Method is GET - find url and querystring [01:04:04]No ? found - this is static page request [01:04:04]url: /testengine/js/app.a9c38288.js [01:04:04]check /htdocs/testengine/js/app.a9c38288.js [01:04:04]Sock 10.First char is OK [01:04:04]request: GET /testengine/css/chunk-vendors.1a13a212.css HTTP/1.1 [01:04:04]Method: GET [01:04:04]URL: /testengine/css/chunk-vendors.1a13a212.css [01:04:04]Method is GET - find url and querystring [01:04:04]No ? found - this is static page request [01:04:04]url: /testengine/css/chunk-vendors.1a13a212.css [01:04:04]check /htdocs/testengine/css/chunk-vendors.1a13a212.css [01:04:04]file exist [01:04:04]serve_file /htdocs/testengine/css/chunk-vendors.1a13a212.css [01:04:04]read remaining request lines [01:04:04]Host: 172.17.42.196:8080 [01:04:04]Connection: keep-alive [01:04:04]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 [01:04:04]Accept: text/css,*/*;q=0.1 [01:04:04]Referer: http://172.17.42.196:8080/testengine [01:04:04]Accept-Encoding: gzip, deflate [01:04:04]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [01:04:04] [01:04:04]open file /htdocs/testengine/css/chunk-vendors.1a13a212.css [01:04:04]send HTTP headers [01:04:04]send file content [01:04:04]Finished. Sent 140 bytes [01:04:04]close file [01:04:04]Sock 10.Close socket [01:04:04]Sock 10.Thread stoped [01:04:04]file exist [01:04:04]serve_file /htdocs/testengine/js/app.a9c38288.js [01:04:04]read remaining request lines [01:04:04]Host: 172.17.42.196:8080 [01:04:04]Connection: keep-alive [01:04:04]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 [01:04:04]Accept: */* [01:04:04]Referer: http://172.17.42.196:8080/testengine [01:04:04]Accept-Encoding: gzip, deflate [01:04:04]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [01:04:04] [01:04:04]open file /htdocs/testengine/js/app.a9c38288.js [01:04:04]send HTTP headers [01:04:04]send file content [01:04:04]file exist [01:04:04]serve_file /htdocs/testengine/js/chunk-vendors.8f546e50.js [01:04:04]read remaining request lines [01:04:04]Host: 172.17.42.196:8080 [01:04:04]Connection: keep-alive [01:04:04]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 [01:04:04]Accept: */* [01:04:04]Referer: http://172.17.42.196:8080/testengine [01:04:04]Accept-Encoding: gzip, deflate [01:04:04]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [01:04:04] [01:04:04]open file /htdocs/testengine/js/chunk-vendors.8f546e50.js [01:04:04]send HTTP headers [01:04:04]send file content [01:04:04]Finished. Sent 102400 bytes [01:04:04]close file [01:04:04]Sock 7.Close socket [01:04:04]Sock 7.Thread stoped [01:04:04]Finished. Sent 165537 bytes [01:04:04]close file [01:04:04]Sock 9.Close socket [01:04:04]Sock 9.Thread stoped [01:04:05]accept exits with 11 [01:04:05]New connection [01:04:05]New thread 3066821988 created [01:04:05]Thread 3066965348 joined [01:04:05]Thread 3067108708 joined [01:04:05]Thread 3067252068 joined [01:04:05]Waiting for new connection... [01:04:05] Sock 11.Parse request [01:04:05]Sock 11.Check first char [01:04:05]Sock 11.First char is OK [01:04:05]request: GET /testengine/favicon.ico HTTP/1.1 [01:04:05]Method: GET [01:04:05]URL: /testengine/favicon.ico [01:04:05]Method is GET - find url and querystring [01:04:05]No ? found - this is static page request [01:04:05]url: /testengine/favicon.ico [01:04:05]check /htdocs/testengine/favicon.ico [01:04:05]file exist [01:04:05]serve_file /htdocs/testengine/favicon.ico [01:04:05]read remaining request lines [01:04:05]Host: 172.17.42.196:8080 [01:04:05]Connection: keep-alive [01:04:05]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 [01:04:05]Accept: image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8 [01:04:05]Referer: http://172.17.42.196:8080/testengine [01:04:05]Accept-Encoding: gzip, deflate [01:04:05]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [01:04:05] [01:04:05]open file /htdocs/testengine/favicon.ico [01:04:05]send HTTP headers [01:04:05]send file content [01:04:05]Finished. Sent 4286 bytes [01:04:05]close file [01:04:05]Sock 11.Close socket [01:04:05]Sock 11.Thread stoped [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:25]ConnectInit Can't connect to host [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:25:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:43]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:58]OFD Sender: No OFD packet to send [01:27:03]OFD Sender: No OFD packet to send [01:27:08]OFD Sender: No OFD packet to send [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:58]OFD Sender: No OFD packet to send [01:28:03]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:43]ConnectInit Can't connect to host [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:11]ConnectInit Can't connect to host [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16: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: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: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:44]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send