[03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]accept exits with 7 [03:50:39]New connection [03:50:39]New thread 3066785124 created [03:50:39]Thread 3066641764 joined [03:50:39]Waiting for new connection... [03:50:39] Sock 7.Parse request [03:50:39]Sock 7.Check first char [03:50:39]Sock 7.First char is OK [03:50:39]request: POST /json_proto HTTP/1.0 [03:50:39]Method: POST [03:50:39]URL: /json_proto [03:50:39]Method is POST - this is cgi request [03:50:39]url: /json_proto [03:50:39]query_string will be loaded in cgi processing [03:50:39]execute_cgi json_proto POST (null) [03:50:39]execute_cgi path=json_proto method=POST [03:50:39]POST find Content-Length [03:50:39]Host: 172.17.49.132:8080 [03:50:39]Content-Length: 623 [03:50:39]Content-Type: application/json [03:50:39] [03:50:39]POST finish read [03:50:39]Found Content-Length = 623 [03:50:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136536", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:50:39]execute_script... [03:50:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136536", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:50:39]POST & json_proto [03:50:39]process_json_proto [03:50:39]json parsed OK: [03:50:39]protocol is kg_v1.0 [03:50:39]action value=close_receipt [03:50:39]process_action close_receipt [03:50:39]cmd_close_receipt [03:50:39]MH_GetDate [03:50:39]Write to MH i2c: F0 00 00 7C 34 9F [03:50:39]Write i2c OK [03:50:39]MH_I2C_Read... [03:50:39]Read from MH i2c: F0 [03:50:39]MH_I2C_Read... [03:50:39]Read from MH i2c: F0 09 00 [03:50:39]MH_I2C_Read... [03:50:39]Read from MH i2c: F0 09 00 7C 34 00 16 C0 A5 66 E7 4B C0 64 DF [03:50:39]GetLastDocTimeStamp 1722136667 [03:50:39]current date 1722138646 [03:50:39]FM_GetShiftState [03:50:39]SAM_PROTO_GetShiftState [03:50:39]wFMCommunicate request_size=4 [03:50:39]MH_SAM_APDU [03:50:39]CAPDU: 80 13 01 00 [03:50:39]Write to MH i2c: E2 08 00 7D 34 80 13 01 00 00 00 00 00 2E [03:50:39]Write i2c OK [03:50:39]MH_I2C_Read... [03:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:50:39]Read from MH i2c: E2 [03:50:39]MH_I2C_Read... [03:50:39]Read from MH i2c: E2 0E 00 [03:50:39]MH_I2C_Read... [03:50:39]Read from MH i2c: E2 0E 00 7D 34 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 6B [03:50:39]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [03:50:39]wFMCommunicate OK [03:50:39]SAM_PROTO_GetShiftState done [03:50:39]FM_GetShiftState done [03:50:39]opened in 1722127251 [03:50:39]opened+sec_in_day 1722213651 [03:50:39]quantity*price = 14000 [03:50:39]sum+1 = 14001 [03:50:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 19 28.07.2024 03:50 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69136 ФПД: 233033700978615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T035046&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69136&fm=233033700978615&tin=02508201610067®Number=0000000000092638&sum=14000 0 [03:50:40]StoreToDocumentArchive [03:50:40]shift 429 fd 69136 [03:50:40]save to /storage/0429/doc_00069136 [03:50:40]save last doc name /storage/0429/doc_00069136 to /storage/kkm_last_doc_name [03:50:40]save OK [03:50:40]Clear old archive folders... [03:50:40]ProcessDocumentItem done err = 0, tmpTLVsize=275 [03:50:40]tlvbuf is 00A16AF0 [03:50:40]SAM_PROTO_ClearQueue [03:50:40]wFMCommunicate request_size=4 [03:50:40]MH_SAM_APDU [03:50:40]CAPDU: 80 09 00 00 [03:50:40]Write to MH i2c: E2 08 00 8A 34 80 09 00 00 00 00 00 00 30 [03:50:40]Write i2c OK [03:50:40]MH_I2C_Read... [03:50:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:50:40]Read from MH i2c: E2 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: E2 03 00 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: E2 03 00 8A 34 00 90 00 32 [03:50:40]RAPDU: 90 00 [03:50:40]wFMCommunicate OK [03:50:40]SAM_PROTO_ClearQueue done [03:50:40]KKMCreateOFDPacket [03:50:40]OFDProtocolAddRootSTLVToBuf [03:50:40]FM_MakeSignedData [03:50:40]FM_MakeSignedData [03:50:40]SAM_PROTO_SignData [03:50:40]wFMCommunicate request_size=4 [03:50:40]MH_SAM_APDU [03:50:40]CAPDU: 80 0D 01 02 [03:50:40]Write to MH i2c: E2 08 00 8B 34 80 0D 01 02 00 00 00 00 38 [03:50:40]Write i2c OK [03:50:40]MH_I2C_Read... [03:50:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:50:40]Read from MH i2c: E2 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: E2 03 00 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: E2 03 00 8B 34 00 90 00 33 [03:50:40]RAPDU: 90 00 [03:50:40]wFMCommunicate OK [03:50:40]wFMCommunicate request_size=255 [03:50:40]MH_SAM_APDU [03:50: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 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 16 C0 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 [03:50:40]Write to MH i2c: E2 02 01 8C 34 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 16 C0 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 00 00 6D [03:50:40]Write i2c OK [03:50:40]MH_I2C_Read... [03:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:50:40]Read from MH i2c: E2 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: E2 03 00 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: E2 03 00 8C 34 00 90 00 34 [03:50:40]RAPDU: 90 00 [03:50:40]wFMCommunicate OK [03:50:40]wFMCommunicate request_size=34 [03:50:40]MH_SAM_APDU [03:50:40]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 10 0E 01 00 35 04 06 00 D3 F1 62 F7 AF B7 [03:50:40]Write to MH i2c: E2 25 00 8D 34 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 10 0E 01 00 35 04 06 00 D3 F1 62 F7 AF B7 00 00 A7 [03:50:40]Write i2c OK [03:50:40]MH_I2C_Read... [03:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:50:40]Read from MH i2c: E2 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: E2 03 00 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: E2 03 00 8D 34 00 90 00 35 [03:50:40]RAPDU: 90 00 [03:50:40]wFMCommunicate OK [03:50:40]wFMCommunicate request_size=4 [03:50:40]MH_SAM_APDU [03:50:40]CAPDU: 80 0D 03 02 [03:50:40]Write to MH i2c: E2 08 00 8E 34 80 0D 03 02 00 00 00 00 3D [03:50:40]Write i2c OK [03:50:40]MH_I2C_Read... [03:50:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:50:40]Read from MH i2c: E2 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: E2 0B 00 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: E2 0B 00 8E 34 00 66 65 75 11 DE 46 8D F0 90 00 30 [03:50:40]RAPDU: 66 65 75 11 DE 46 8D F0 90 00 [03:50:40]wFMCommunicate OK [03:50:40]SAM_PROTO_SignData done [03:50:40]FM_MakeSignedData done [03:50:40]CreateOFDProtocolMessage [03:50:40]wFMCommunicate request_size=4 [03:50:40]MH_SAM_APDU [03:50:40]CAPDU: 80 11 00 00 [03:50:40]Write to MH i2c: E2 08 00 8F 34 80 11 00 00 00 00 00 00 3D [03:50:40]Write i2c OK [03:50:40]MH_I2C_Read... [03:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:50:40]Read from MH i2c: E2 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: E2 17 00 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: E2 17 00 8F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 99 [03:50:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [03:50:40]wFMCommunicate OK [03:50:40]CreateOFDProtocolMessage done [03:50:40]OFDSenderStorePacket 69136 [03:50:40]StoreOFDPacket docnum=69136 [03:50:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 2F F2 1F 01 24 42 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 16 C0 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 10 0E 01 00 35 04 06 00 D3 F1 62 F7 AF B7 66 65 75 11 DE 46 8D F0 [03:50:40]CheckFolder [03:50:40]dirname=/storage/ofd_packets [03:50:40]CheckFolder done [03:50:40]ProducePacketName [03:50:40]name=ofd_packets/00069136 [03:50:40]NVStorageSaveData ofd_packets/00069136 [03:50:40]File name is /storage/ofd_packets/00069136 [03:50:40]Write 325 bytes [03:50:40]NVStorageSaveData done [03:50:40]OFDSenderStorePacket done [03:50:40]KKMCreateOFDPacket done [03:50:40]NVStorageSaveData kkm_last_timestamp [03:50:40]File name is /storage/kkm_last_timestamp [03:50:40]Write 4 bytes [03:50:40]NVStorageSaveData done [03:50:40]ExternCall_PrintAddStr [03:50:40]wPrintStart [03:50:40]Write to MH i2c: 01 00 00 90 34 C4 [03:50:40]Write i2c OK [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: 01 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: 01 07 00 [03:50:40]MH_I2C_Read... [03:50:40]Read from MH i2c: 01 07 00 90 34 00 00 00 00 00 FF 0F D9 [03:50:40]RasterBufferAndPrint [03:50:40]line Счет N : (3)136536 [03:50:40]line ИНН: 02508201610067 [03:50:40]line Контрольно-Кассовый Чек [03:50:40]line ПРОДАЖА [03:50:40]line Товар: 48743587 [03:50:40]line Сигареты Winston XStyle Silver [03:50:40]line 1.000 * 140.00 [03:50:40]line = 140.00 [03:50:40]line НДС 12% НСП 1% [03:50:40]line > о реализуемом товаре [03:50:40]line ИТОГО: 140.00 [03:50:40]line НСП 1% : 1.24 [03:50:40]line НДС 12% : 14.87 [03:50:40]line Наличными: 140.00 [03:50:40]line Безнал.: 0.00 [03:50:40]line Место: АЗС № 125 "Партнер Нефть" [03:50:40]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [03:50:40]line СНО: Общий режим [03:50:40]line Чек 19 28.07.2024 03:50 [03:50:40]line Смена: 429 ФФД: 1.0 [03:50:40]line ЗНМ: 0300000049 [03:50:40]line РНМ: 0000000000092638 [03:50:40]line Версия ККМ: 001 [03:50:40]line ФМ: 0000000000874949 [03:50:40]line ФД: 69136 [03:50:40]line ФПД: 233033700978615 [03:50:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T035046&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69136&fm=233033700978615&tin=02508201610067®Number=0000000000092638&sum=14000 [03:50:41]line 0 [03:50:41]written 0, free lines is 4095 [03:50:41]OFD Sender: Processing packet 69136 [packets to send 19, broken 18] [03:50:41]ProducePacketName [03:50:41]name=ofd_packets/00069136 [03:50:41]OFD Sender: To server: pG, [03:50:41]CommunicateWithHost lk.salyk.kg:30040 [03:50:41]ConnectInit lk.salyk.kg [03:50:41]Connected sock=10 [03:50:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 2F F2 1F 01 24 42 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 16 C0 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 10 0E 01 00 35 04 06 00 D3 F1 62 F7 AF B7 66 65 75 11 DE 46 8D F0 [03:50:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 08 F7 47 00 28 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 10 0E 01 00 F4 03 04 00 86 66 A5 66 B6 04 01 00 00 E7 46 D5 0A 94 88 8E 1E [03:50:41]CommunicateWithHost err = 0 [03:50:41]CheckOFDResponse [03:50:41]1017 (14) - 77093643461234 [03:50:41]1041 (16) - 0000000000874949 [03:50:41]1040 (4) - 69136 [03:50:41]1012 (4) - 27.07.2024 21:28 [03:50:41]1206 (1) - 0 [03:50:41]OFD Sender: Remove packet 69136 [03:50:41]ProducePacketName [03:50:41]name=ofd_packets/00069136 [03:50:41]NVStorageDeleteData [03:50:41]Write to MH i2c: 01 00 00 B9 34 ED [03:50:41]Write i2c OK [03:50:41]MH_I2C_Read... [03:50:41]Read from MH i2c: 01 [03:50:41]MH_I2C_Read... [03:50:41]Read from MH i2c: 01 07 00 [03:50:41]MH_I2C_Read... [03:50:41]Read from MH i2c: 01 07 00 B9 34 00 00 00 00 00 0C 0D 0D [03:50:41]RasterBufferAndPrint [03:50:41]line [03:50:41]line [03:50:41]line [03:50:41]line [03:50:41]line [03:50:41]written 0, free lines is 3349 [03:50:41]MH_Cut [03:50:41]Write to MH i2c: D1 01 00 C0 34 01 C6 [03:50:41]Write i2c OK [03:50:41]MH_I2C_Read... [03:50:41]Read from MH i2c: D1 [03:50:41]MH_I2C_Read... [03:50:41]Read from MH i2c: D1 01 00 [03:50:41]MH_I2C_Read... [03:50:41]Read from MH i2c: D1 01 00 C0 34 00 C5 [03:50:41]Write to MH i2c: 01 00 00 C1 34 F5 [03:50:41]Write i2c OK [03:50:41]MH_I2C_Read... [03:50:41]OFD Sender: No OFD packet to send [03:50:42]*** Cut start [03:50:42]*** Partial cut [03:50:42]*** CUTSNS_PIN = 1 [03:50:42]*** CUTSNS_PIN = 0 [03:50:42]*** Brake cut motor [03:50:42]Read from MH i2c: 01 [03:50:42]MH_I2C_Read... [03:50:42]*** Stop cut motor [03:50:42]*** Cut end [03:50:42]Read from MH i2c: 01 07 00 [03:50:42]MH_I2C_Read... [03:50:42]Read from MH i2c: 01 07 00 C1 34 00 00 00 00 00 FF 0F 0A [03:50:42]process_action close_receipt done [03:50:42]requested_data is exist [03:50:42]produce_requested_data [03:50:42]requested_item fm.sn is exist - process it [03:50:42]wFMCommunicate request_size=4 [03:50:42]MH_SAM_APDU [03:50:42]CAPDU: 80 11 00 00 [03:50:42]Write to MH i2c: E2 08 00 C2 34 80 11 00 00 00 00 00 00 70 [03:50:42]Write i2c OK [03:50:42]MH_I2C_Read... [03:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:50:42]Read from MH i2c: E2 [03:50:42]MH_I2C_Read... [03:50:42]Read from MH i2c: E2 17 00 [03:50:42]MH_I2C_Read... [03:50:42]Read from MH i2c: E2 17 00 C2 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 CC [03:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [03:50:42]wFMCommunicate OK [03:50:42]requested_item fd.num is exist - process it [03:50:42]SAM_PROTO_GetFieldsCounters [03:50:42]wFMCommunicate request_size=4 [03:50:42]MH_SAM_APDU [03:50:42]CAPDU: 80 13 00 00 [03:50:42]Write to MH i2c: E2 08 00 C3 34 80 13 00 00 00 00 00 00 73 [03:50:42]Write i2c OK [03:50:42]MH_I2C_Read... [03:50:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:50:42]Read from MH i2c: E2 [03:50:42]MH_I2C_Read... [03:50:42]Read from MH i2c: E2 62 00 [03:50:42]MH_I2C_Read... [03:50:42]Read from MH i2c: E2 62 00 C3 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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 10 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [03:50: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 10 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:50:42]wFMCommunicate OK [03:50:42]SAM_PROTO_GetFieldsCounters done [03:50:42]requested_item shift.num is exist - process it [03:50:42]requested_item shift.opened is exist - process it [03:50:42]req_shift_opened [03:50:42]FM_GetShiftState [03:50:42]SAM_PROTO_GetShiftState [03:50:42]wFMCommunicate request_size=4 [03:50:42]MH_SAM_APDU [03:50:42]CAPDU: 80 13 01 00 [03:50:42]Write to MH i2c: E2 08 00 C4 34 80 13 01 00 00 00 00 00 75 [03:50:42]Write i2c OK [03:50:42]MH_I2C_Read... [03:50:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:50:42]Read from MH i2c: E2 [03:50:42]MH_I2C_Read... [03:50:42]Read from MH i2c: E2 0E 00 [03:50:42]MH_I2C_Read... [03:50:42]Read from MH i2c: E2 0E 00 C4 34 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 B2 [03:50:42]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [03:50:42]wFMCommunicate OK [03:50:42]SAM_PROTO_GetShiftState done [03:50:42]FM_GetShiftState done [03:50:42]req_shift_opened done [03:50:42]requested_item shift.open_date is exist - process it [03:50:42]req_shift_open_date [03:50:42]req_shift_open_date done [03:50:42]produce_requested_data done [03:50:42]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69136,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [03:50:42]process_action_free close_receipt [03:50:42]json_value_free [03:50:42]json_value_free done [03:50:42]process_json_proto returns [03:50:42]Send response to host [03:50:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69136,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [03:50:42]free response buf [03:50:42]execute_script done [03:50:42]execute_script returns [03:50:42]free content buf [03:50:42]Sock 7.Close socket [03:50:42]Sock 7.Thread stoped [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:16]accept exits with 9 [04:54:16]New connection [04:54:16]New thread 3066641764 created [04:54:16]Thread 3066785124 joined [04:54:16]Waiting for new connection... [04:54:16] Sock 9.Parse request [04:54:16]Sock 9.Check first char [04:54:16]Sock 9.First char is OK [04:54:16]request: POST /json_proto HTTP/1.0 [04:54:16]Method: POST [04:54:16]URL: /json_proto [04:54:16]Method is POST - this is cgi request [04:54:16]url: /json_proto [04:54:16]query_string will be loaded in cgi processing [04:54:16]execute_cgi json_proto POST (null) [04:54:16]execute_cgi path=json_proto method=POST [04:54:16]POST find Content-Length [04:54:16]Host: 172.17.49.132:8080 [04:54:16]Content-Length: 1935 [04:54:16]Content-Type: application/json [04:54:16] [04:54:16]POST finish read [04:54:16]Found Content-Length = 1935 [04:54:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136537", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602486000565", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u0435\u043D\u044C\u043A\u0430\u044F 0,5\u043B", "price" : 545.00, "quantity" : 1.000, "sum" : 545.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1089.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:16]execute_script... [04:54:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136537", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602486000565", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u0435\u043D\u044C\u043A\u0430\u044F 0,5\u043B", "price" : 545.00, "quantity" : 1.000, "sum" : 545.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1089.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:17]POST & json_proto [04:54:17]process_json_proto [04:54:17]json parsed OK: [04:54:17]protocol is kg_v1.0 [04:54:17]action value=close_receipt [04:54:17]process_action close_receipt [04:54:17]cmd_close_receipt [04:54:17]MH_GetDate [04:54:17]Write to MH i2c: F0 00 00 C5 34 E8 [04:54:17]Write i2c OK [04:54:17]MH_I2C_Read... [04:54:17]Read from MH i2c: F0 [04:54:17]MH_I2C_Read... [04:54:17]Read from MH i2c: F0 09 00 [04:54:17]MH_I2C_Read... [04:54:17]Read from MH i2c: F0 09 00 C5 34 00 00 CF A5 66 E7 4B C0 64 21 [04:54:17]GetLastDocTimeStamp 1722138646 [04:54:17]current date 1722142464 [04:54:17]FM_GetShiftState [04:54:17]SAM_PROTO_GetShiftState [04:54:17]wFMCommunicate request_size=4 [04:54:17]MH_SAM_APDU [04:54:17]CAPDU: 80 13 01 00 [04:54:17]Write to MH i2c: E2 08 00 C6 34 80 13 01 00 00 00 00 00 77 [04:54:17]Write i2c OK [04:54:17]MH_I2C_Read... [04:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:17]Read from MH i2c: E2 [04:54:17]MH_I2C_Read... [04:54:17]Read from MH i2c: E2 0E 00 [04:54:17]MH_I2C_Read... [04:54:17]Read from MH i2c: E2 0E 00 C6 34 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 B4 [04:54:17]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [04:54:17]wFMCommunicate OK [04:54:17]SAM_PROTO_GetShiftState done [04:54:17]FM_GetShiftState done [04:54:17]opened in 1722127251 [04:54:17]opened+sec_in_day 1722213651 [04:54:17]quantity*price = 14000 [04:54:17]sum+1 = 14001 [04:54:17]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230607 Сигареты Richmond Bronze Edition 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4602486000565 Водка Беленькая 0,5л 1.000 * 545.00 = 545.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1089.00 НСП 1% : 9.64 НДС 12% : 115.64 Наличными: 1089.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 20 28.07.2024 04:54 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69137 ФПД: 43955424337773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T045424&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69137&fm=43955424337773&tin=02508201610067®Number=0000000000092638&sum=108900 0 [04:54:18]StoreToDocumentArchive [04:54:18]shift 429 fd 69137 [04:54:18]save to /storage/0429/doc_00069137 [04:54:18]save last doc name /storage/0429/doc_00069137 to /storage/kkm_last_doc_name [04:54:18]save OK [04:54:18]Clear old archive folders... [04:54:18]ProcessDocumentItem done err = 0, tmpTLVsize=804 [04:54:18]tlvbuf is 00AED360 [04:54:18]SAM_PROTO_ClearQueue [04:54:18]wFMCommunicate request_size=4 [04:54:18]MH_SAM_APDU [04:54:18]CAPDU: 80 09 00 00 [04:54:18]Write to MH i2c: E2 08 00 D3 34 80 09 00 00 00 00 00 00 79 [04:54:18]Write i2c OK [04:54:18]MH_I2C_Read... [04:54:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:54:18]Read from MH i2c: E2 [04:54:18]MH_I2C_Read... [04:54:18]Read from MH i2c: E2 03 00 [04:54:18]MH_I2C_Read... [04:54:18]Read from MH i2c: E2 03 00 D3 34 00 90 00 7B [04:54:18]RAPDU: 90 00 [04:54:18]wFMCommunicate OK [04:54:18]SAM_PROTO_ClearQueue done [04:54:18]KKMCreateOFDPacket [04:54:18]OFDProtocolAddRootSTLVToBuf [04:54:18]FM_MakeSignedData [04:54:18]FM_MakeSignedData [04:54:18]SAM_PROTO_SignData [04:54:18]wFMCommunicate request_size=4 [04:54:18]MH_SAM_APDU [04:54:18]CAPDU: 80 0D 01 02 [04:54:18]Write to MH i2c: E2 08 00 D4 34 80 0D 01 02 00 00 00 00 81 [04:54:18]Write i2c OK [04:54:18]MH_I2C_Read... [04:54:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:54:18]Read from MH i2c: E2 [04:54:18]MH_I2C_Read... [04:54:18]Read from MH i2c: E2 03 00 [04:54:18]MH_I2C_Read... [04:54:18]Read from MH i2c: E2 03 00 D4 34 00 90 00 7C [04:54:18]RAPDU: 90 00 [04:54:18]wFMCommunicate OK [04:54:18]wFMCommunicate request_size=255 [04:54:18]MH_SAM_APDU [04:54:18]CAPDU: 80 0D 02 02 FA 03 00 24 03 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF [04:54:18]Write to MH i2c: E2 02 01 D5 34 80 0D 02 02 FA 00 03 00 24 03 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF 00 00 A1 [04:54:18]Write i2c OK [04:54:18]MH_I2C_Read... [04:54:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:19]Read from MH i2c: E2 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: E2 03 00 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: E2 03 00 D5 34 00 90 00 7D [04:54:19]RAPDU: 90 00 [04:54:19]wFMCommunicate OK [04:54:19]wFMCommunicate request_size=255 [04:54:19]MH_SAM_APDU [04:54:19]CAPDU: 80 0D 02 02 FA D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 [04:54:19]Write to MH i2c: E2 02 01 D6 34 80 0D 02 02 FA 00 D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 00 C9 [04:54:19]Write i2c OK [04:54:19]MH_I2C_Read... [04:54:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:19]Read from MH i2c: E2 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: E2 03 00 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: E2 03 00 D6 34 00 90 00 7E [04:54:19]RAPDU: 90 00 [04:54:19]wFMCommunicate OK [04:54:19]wFMCommunicate request_size=255 [04:54:19]MH_SAM_APDU [04:54:19]CAPDU: 80 0D 02 02 FA 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 30 32 34 38 36 30 30 30 35 36 35 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 B5 D0 BD D1 8C D0 BA D0 B0 D1 8F 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 D4 00 00 00 00 13 04 06 00 E4 D4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 2D 00 00 00 00 07 04 06 00 64 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 00 CF A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 [04:54:19]Write to MH i2c: E2 02 01 D7 34 80 0D 02 02 FA 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 30 32 34 38 36 30 30 30 35 36 35 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 B5 D0 BD D1 8C D0 BA D0 B0 D1 8F 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 D4 00 00 00 00 13 04 06 00 E4 D4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 2D 00 00 00 00 07 04 06 00 64 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 00 CF A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 00 00 84 [04:54:19]Write i2c OK [04:54:19]MH_I2C_Read... [04:54:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:19]Read from MH i2c: E2 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: E2 03 00 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: E2 03 00 D7 34 00 90 00 7F [04:54:19]RAPDU: 90 00 [04:54:19]wFMCommunicate OK [04:54:19]wFMCommunicate request_size=63 [04:54:19]MH_SAM_APDU [04:54:19]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 11 0E 01 00 35 04 06 00 27 FA 2B 74 1F 6D [04:54:19]Write to MH i2c: E2 42 00 D8 34 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 11 0E 01 00 35 04 06 00 27 FA 2B 74 1F 6D 00 00 48 [04:54:19]Write i2c OK [04:54:19]MH_I2C_Read... [04:54:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:19]Read from MH i2c: E2 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: E2 03 00 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: E2 03 00 D8 34 00 90 00 80 [04:54:19]RAPDU: 90 00 [04:54:19]wFMCommunicate OK [04:54:19]wFMCommunicate request_size=4 [04:54:19]MH_SAM_APDU [04:54:19]CAPDU: 80 0D 03 02 [04:54:19]Write to MH i2c: E2 08 00 D9 34 80 0D 03 02 00 00 00 00 88 [04:54:19]Write i2c OK [04:54:19]MH_I2C_Read... [04:54:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:54:19]Read from MH i2c: E2 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: E2 0B 00 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: E2 0B 00 D9 34 00 48 9F C6 66 68 10 1F 4E 90 00 81 [04:54:19]RAPDU: 48 9F C6 66 68 10 1F 4E 90 00 [04:54:19]wFMCommunicate OK [04:54:19]SAM_PROTO_SignData done [04:54:19]FM_MakeSignedData done [04:54:19]CreateOFDProtocolMessage [04:54:19]wFMCommunicate request_size=4 [04:54:19]MH_SAM_APDU [04:54:19]CAPDU: 80 11 00 00 [04:54:19]Write to MH i2c: E2 08 00 DA 34 80 11 00 00 00 00 00 00 88 [04:54:19]Write i2c OK [04:54:19]MH_I2C_Read... [04:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:19]Read from MH i2c: E2 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: E2 17 00 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: E2 17 00 DA 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E4 [04:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [04:54:19]wFMCommunicate OK [04:54:19]CreateOFDProtocolMessage done [04:54:19]OFDSenderStorePacket 69137 [04:54:19]StoreOFDPacket docnum=69137 [04:54:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 38 03 00 00 C6 B2 30 03 EF 70 5A 03 01 00 03 00 24 03 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 30 32 34 38 36 30 30 30 35 36 35 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 B5 D0 BD D1 8C D0 BA D0 B0 D1 8F 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 D4 00 00 00 00 13 04 06 00 E4 D4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 2D 00 00 00 00 07 04 06 00 64 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 00 CF A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 11 0E 01 00 35 04 06 00 27 FA 2B 74 1F 6D 48 9F C6 66 68 10 1F 4E [04:54:19]CheckFolder [04:54:19]dirname=/storage/ofd_packets [04:54:19]CheckFolder done [04:54:19]ProducePacketName [04:54:19]name=ofd_packets/00069137 [04:54:19]NVStorageSaveData ofd_packets/00069137 [04:54:19]File name is /storage/ofd_packets/00069137 [04:54:19]Write 854 bytes [04:54:19]NVStorageSaveData done [04:54:19]OFDSenderStorePacket done [04:54:19]KKMCreateOFDPacket done [04:54:19]NVStorageSaveData kkm_last_timestamp [04:54:19]File name is /storage/kkm_last_timestamp [04:54:19]Write 4 bytes [04:54:19]NVStorageSaveData done [04:54:19]ExternCall_PrintAddStr [04:54:19]wPrintStart [04:54:19]Write to MH i2c: 01 00 00 DB 34 0F [04:54:19]Write i2c OK [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: 01 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: 01 07 00 [04:54:19]MH_I2C_Read... [04:54:19]Read from MH i2c: 01 07 00 DB 34 00 00 00 00 00 FF 0F 24 [04:54:19]RasterBufferAndPrint [04:54:19]line Счет N : (3)136537 [04:54:19]line ИНН: 02508201610067 [04:54:19]line Контрольно-Кассовый Чек [04:54:19]line ПРОДАЖА [04:54:19]line Товар: 48743570 [04:54:19]line Сигареты Winston XStyle Blue [04:54:19]line 1.000 * 140.00 [04:54:19]line = 140.00 [04:54:19]line НДС 12% НСП 1% [04:54:19]line > о реализуемом товаре [04:54:19]line Товар: 46230607 [04:54:19]line Сигареты Richmond Bronze Edition [04:54:19]line 1.000 * 150.00 [04:54:19]line = 150.00 [04:54:19]line НДС 12% НСП 1% [04:54:19]line > о реализуемом товаре [04:54:19]line Товар: 5449000006271 [04:54:19]line Напиток Фанта 1л [04:54:19]line 1.000 * 125.00 [04:54:19]line = 125.00 [04:54:19]line НДС 12% НСП 1% [04:54:19]line > о реализуемом товаре [04:54:20]line Товар: 5449000054227 [04:54:20]line Напиток Кока-Кола 1л [04:54:20]line 1.000 * 125.00 [04:54:20]line = 125.00 [04:54:20]line НДС 12% НСП 1% [04:54:20]line > о реализуемом товаре [04:54:20]line Товар: 2000031750019 [04:54:20]line Пакет Партнер Нефть [04:54:20]line 1.000 * 4.00 [04:54:20]line = 4.00 [04:54:20]line НДС 12% НСП 1% [04:54:20]line > о реализуемом товаре [04:54:20]line Товар: 4602486000565 [04:54:20]line Водка Беленькая 0,5л [04:54:20]line 1.000 * 545.00 [04:54:20]line = 545.00 [04:54:20]line НДС 12% НСП 1% [04:54:20]line > о реализуемом товаре [04:54:20]line ИТОГО: 1089.00 [04:54:20]line НСП 1% : 9.64 [04:54:20]line НДС 12% : 115.64 [04:54:20]line Наличными: 1089.00 [04:54:20]line Безнал.: 0.00 [04:54:20]line Место: АЗС № 125 "Партнер Нефть" [04:54:20]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [04:54:20]line СНО: Общий режим [04:54:20]line Чек 20 28.07.2024 04:54 [04:54:20]line Смена: 429 ФФД: 1.0 [04:54:20]line ЗНМ: 0300000049 [04:54:20]line РНМ: 0000000000092638 [04:54:20]line Версия ККМ: 001 [04:54:20]line ФМ: 0000000000874949 [04:54:20]line ФД: 69137 [04:54:20]line ФПД: 43955424337773 [04:54:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T045424&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69137&fm=43955424337773&tin=02508201610067®Number=0000000000092638&sum=108900 [04:54:20]OFD Sender: Processing packet 69137 [packets to send 19, broken 18] [04:54:20]ProducePacketName [04:54:20]name=ofd_packets/00069137 [04:54:20]OFD Sender: To server: pG, [04:54:20]CommunicateWithHost lk.salyk.kg:30040 [04:54:20]ConnectInit lk.salyk.kg [04:54:20]line 0 [04:54:20]written 0, free lines is 4095 [04:54:20]Connected sock=10 [04:54: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 39 34 39 38 03 00 00 C6 B2 30 03 EF 70 5A 03 01 00 03 00 24 03 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 30 32 34 38 36 30 30 30 35 36 35 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 B5 D0 BD D1 8C D0 BA D0 B0 D1 8F 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 D4 00 00 00 00 13 04 06 00 E4 D4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 2D 00 00 00 00 07 04 06 00 64 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 00 CF A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 11 0E 01 00 35 04 06 00 27 FA 2B 74 1F 6D 48 9F C6 66 68 10 1F 4E [04:54:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 22 DB 47 00 28 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 11 0E 01 00 F4 03 04 00 72 75 A5 66 B6 04 01 00 00 E9 EF 1B E6 84 51 73 9B [04:54:20]CommunicateWithHost err = 0 [04:54:20]CheckOFDResponse [04:54:20]1017 (14) - 77093643461234 [04:54:20]1041 (16) - 0000000000874949 [04:54:20]1040 (4) - 69137 [04:54:20]1012 (4) - 27.07.2024 22:32 [04:54:20]1206 (1) - 0 [04:54:20]OFD Sender: Remove packet 69137 [04:54:20]ProducePacketName [04:54:20]name=ofd_packets/00069137 [04:54:20]NVStorageDeleteData [04:54:20]Write to MH i2c: 01 00 00 22 35 57 [04:54:20]Write i2c OK [04:54:20]MH_I2C_Read... [04:54:20]Read from MH i2c: 01 [04:54:20]MH_I2C_Read... [04:54:20]Read from MH i2c: 01 07 00 [04:54:20]MH_I2C_Read... [04:54:20]Read from MH i2c: 01 07 00 22 35 00 00 00 00 00 61 0B CA [04:54:20]RasterBufferAndPrint [04:54:20]line [04:54:20]line [04:54:20]line [04:54:20]line [04:54:20]line [04:54:20]written 0, free lines is 2927 [04:54:20]MH_Cut [04:54:20]Write to MH i2c: D1 01 00 29 35 01 30 [04:54:20]Write i2c OK [04:54:20]MH_I2C_Read... [04:54:20]Read from MH i2c: D1 [04:54:20]MH_I2C_Read... [04:54:20]Read from MH i2c: D1 01 00 [04:54:20]MH_I2C_Read... [04:54:20]Read from MH i2c: D1 01 00 29 35 00 2F [04:54:20]Write to MH i2c: 01 00 00 2A 35 5F [04:54:20]Write i2c OK [04:54:20]MH_I2C_Read... [04:54:20]OFD Sender: No OFD packet to send [04:54:21]*** Cut start [04:54:21]*** Partial cut [04:54:21]*** CUTSNS_PIN = 1 [04:54:21]*** CUTSNS_PIN = 0 [04:54:22]*** Brake cut motor [04:54:22]Read from MH i2c: 01 [04:54:22]MH_I2C_Read... [04:54:22]*** Stop cut motor [04:54:22]*** Cut end [04:54:22]Read from MH i2c: 01 07 00 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: 01 07 00 2A 35 00 00 00 00 00 FF 0F 74 [04:54:22]process_action close_receipt done [04:54:22]requested_data is exist [04:54:22]produce_requested_data [04:54:22]requested_item fm.sn is exist - process it [04:54:22]wFMCommunicate request_size=4 [04:54:22]MH_SAM_APDU [04:54:22]CAPDU: 80 11 00 00 [04:54:22]Write to MH i2c: E2 08 00 2B 35 80 11 00 00 00 00 00 00 DA [04:54:22]Write i2c OK [04:54:22]MH_I2C_Read... [04:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:22]Read from MH i2c: E2 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 17 00 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 17 00 2B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 36 [04:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [04:54:22]wFMCommunicate OK [04:54:22]requested_item fd.num is exist - process it [04:54:22]SAM_PROTO_GetFieldsCounters [04:54:22]wFMCommunicate request_size=4 [04:54:22]MH_SAM_APDU [04:54:22]CAPDU: 80 13 00 00 [04:54:22]Write to MH i2c: E2 08 00 2C 35 80 13 00 00 00 00 00 00 DD [04:54:22]Write i2c OK [04:54:22]MH_I2C_Read... [04:54:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:54:22]Read from MH i2c: E2 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 62 00 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 62 00 2C 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 11 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [04:54: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 11 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:54:22]wFMCommunicate OK [04:54:22]SAM_PROTO_GetFieldsCounters done [04:54:22]requested_item shift.num is exist - process it [04:54:22]requested_item shift.opened is exist - process it [04:54:22]req_shift_opened [04:54:22]FM_GetShiftState [04:54:22]SAM_PROTO_GetShiftState [04:54:22]wFMCommunicate request_size=4 [04:54:22]MH_SAM_APDU [04:54:22]CAPDU: 80 13 01 00 [04:54:22]Write to MH i2c: E2 08 00 2D 35 80 13 01 00 00 00 00 00 DF [04:54:22]Write i2c OK [04:54:22]MH_I2C_Read... [04:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:22]Read from MH i2c: E2 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 0E 00 [04:54:22]MH_I2C_Read... [04:54:22]Read from MH i2c: E2 0E 00 2D 35 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 1C [04:54:22]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [04:54:22]wFMCommunicate OK [04:54:22]SAM_PROTO_GetShiftState done [04:54:22]FM_GetShiftState done [04:54:22]req_shift_opened done [04:54:22]requested_item shift.open_date is exist - process it [04:54:22]req_shift_open_date [04:54:22]req_shift_open_date done [04:54:22]produce_requested_data done [04:54:22]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69137,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [04:54:22]process_action_free close_receipt [04:54:22]json_value_free [04:54:22]json_value_free done [04:54:22]process_json_proto returns [04:54:22]Send response to host [04:54:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69137,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [04:54:22]free response buf [04:54:22]execute_script done [04:54:22]execute_script returns [04:54:22]free content buf [04:54:22]Sock 9.Close socket [04:54:22]Sock 9.Thread stoped [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:33]accept exits with 7 [05:00:33]New connection [05:00:33]New thread 3066785124 created [05:00:33]Thread 3066641764 joined [05:00:33]Waiting for new connection... [05:00:33] Sock 7.Parse request [05:00:33]Sock 7.Check first char [05:00:33]Sock 7.First char is OK [05:00:33]request: POST /json_proto HTTP/1.0 [05:00:33]Method: POST [05:00:33]URL: /json_proto [05:00:33]Method is POST - this is cgi request [05:00:33]url: /json_proto [05:00:33]query_string will be loaded in cgi processing [05:00:33]execute_cgi json_proto POST (null) [05:00:33]execute_cgi path=json_proto method=POST [05:00:33]POST find Content-Length [05:00:33]Host: 172.17.49.132:8080 [05:00:33]Content-Length: 1255 [05:00:33]Content-Type: application/json [05:00:33] [05:00:33]POST finish read [05:00:33]Found Content-Length = 1255 [05:00:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136538", "tax_sys" : 0, "items" : [ { "code": "4607015232592", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:33]execute_script... [05:00:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136538", "tax_sys" : 0, "items" : [ { "code": "4607015232592", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:33]POST & json_proto [05:00:33]process_json_proto [05:00:33]json parsed OK: [05:00:33]protocol is kg_v1.0 [05:00:33]action value=close_receipt [05:00:33]process_action close_receipt [05:00:33]cmd_close_receipt [05:00:33]MH_GetDate [05:00:33]Write to MH i2c: F0 00 00 2E 35 52 [05:00:33]Write i2c OK [05:00:33]MH_I2C_Read... [05:00:33]Read from MH i2c: F0 [05:00:33]MH_I2C_Read... [05:00:33]Read from MH i2c: F0 09 00 [05:00:33]MH_I2C_Read... [05:00:33]Read from MH i2c: F0 09 00 2E 35 00 79 D0 A5 66 E7 4B C0 64 05 [05:00:33]GetLastDocTimeStamp 1722142464 [05:00:33]current date 1722142841 [05:00:33]FM_GetShiftState [05:00:33]SAM_PROTO_GetShiftState [05:00:33]wFMCommunicate request_size=4 [05:00:33]MH_SAM_APDU [05:00:33]CAPDU: 80 13 01 00 [05:00:33]Write to MH i2c: E2 08 00 2F 35 80 13 01 00 00 00 00 00 E1 [05:00:33]Write i2c OK [05:00:33]MH_I2C_Read... [05:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:33]Read from MH i2c: E2 [05:00:33]MH_I2C_Read... [05:00:33]Read from MH i2c: E2 0E 00 [05:00:33]MH_I2C_Read... [05:00:33]Read from MH i2c: E2 0E 00 2F 35 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 1E [05:00:33]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [05:00:33]wFMCommunicate OK [05:00:33]SAM_PROTO_GetShiftState done [05:00:33]FM_GetShiftState done [05:00:33]opened in 1722127251 [05:00:33]opened+sec_in_day 1722213651 [05:00:33]quantity*price = 9500 [05:00:33]sum+1 = 9501 [05:00:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010087 Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 0.00 Безнал.: 190.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 21 28.07.2024 05:00 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69138 ФПД: 114212140904906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T050041&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69138&fm=114212140904906&tin=02508201610067®Number=0000000000092638&sum=19000 0 [05:00:35]StoreToDocumentArchive [05:00:35]shift 429 fd 69138 [05:00:35]save to /storage/0429/doc_00069138 [05:00:35]save last doc name /storage/0429/doc_00069138 to /storage/kkm_last_doc_name [05:00:35]save OK [05:00:35]Clear old archive folders... [05:00:35]ProcessDocumentItem done err = 0, tmpTLVsize=440 [05:00:35]tlvbuf is 00A26410 [05:00:35]SAM_PROTO_ClearQueue [05:00:35]wFMCommunicate request_size=4 [05:00:35]MH_SAM_APDU [05:00:35]CAPDU: 80 09 00 00 [05:00:35]Write to MH i2c: E2 08 00 3C 35 80 09 00 00 00 00 00 00 E3 [05:00:35]Write i2c OK [05:00:35]MH_I2C_Read... [05:00:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:00:35]Read from MH i2c: E2 [05:00:35]MH_I2C_Read... [05:00:35]Read from MH i2c: E2 03 00 [05:00:35]MH_I2C_Read... [05:00:35]Read from MH i2c: E2 03 00 3C 35 00 90 00 E5 [05:00:35]RAPDU: 90 00 [05:00:35]wFMCommunicate OK [05:00:35]SAM_PROTO_ClearQueue done [05:00:35]KKMCreateOFDPacket [05:00:35]OFDProtocolAddRootSTLVToBuf [05:00:35]FM_MakeSignedData [05:00:35]FM_MakeSignedData [05:00:35]SAM_PROTO_SignData [05:00:35]wFMCommunicate request_size=4 [05:00:35]MH_SAM_APDU [05:00:35]CAPDU: 80 0D 01 02 [05:00:35]Write to MH i2c: E2 08 00 3D 35 80 0D 01 02 00 00 00 00 EB [05:00:35]Write i2c OK [05:00:35]MH_I2C_Read... [05:00:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:00:35]Read from MH i2c: E2 [05:00:35]MH_I2C_Read... [05:00:35]Read from MH i2c: E2 03 00 [05:00:35]MH_I2C_Read... [05:00:35]Read from MH i2c: E2 03 00 3D 35 00 90 00 E6 [05:00:35]RAPDU: 90 00 [05:00:35]wFMCommunicate OK [05:00:35]wFMCommunicate request_size=255 [05:00:35]MH_SAM_APDU [05:00:35]CAPDU: 80 0D 02 02 FA 03 00 B8 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB 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 32 30 30 D0 B3 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 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 [05:00:35]Write to MH i2c: E2 02 01 3E 35 80 0D 02 02 FA 00 03 00 B8 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB 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 32 30 30 D0 B3 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 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 32 [05:00:35]Write i2c OK [05:00:35]MH_I2C_Read... [05:00:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:35]Read from MH i2c: E2 [05:00:35]MH_I2C_Read... [05:00:35]Read from MH i2c: E2 03 00 [05:00:35]MH_I2C_Read... [05:00:35]Read from MH i2c: E2 03 00 3E 35 00 90 00 E7 [05:00:35]RAPDU: 90 00 [05:00:35]wFMCommunicate OK [05:00:35]wFMCommunicate request_size=199 [05:00:35]MH_SAM_APDU [05:00:35]CAPDU: 80 0D 02 02 C2 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 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 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 79 D0 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 12 0E 01 00 35 04 06 00 67 E0 16 16 71 CA [05:00:35]Write to MH i2c: E2 CA 00 3F 35 80 0D 02 02 C2 00 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 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 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 79 D0 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 12 0E 01 00 35 04 06 00 67 E0 16 16 71 CA 00 00 4D [05:00:35]Write i2c OK [05:00:35]MH_I2C_Read... [05:00:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:35]Read from MH i2c: E2 [05:00:35]MH_I2C_Read... [05:00:35]Read from MH i2c: E2 03 00 [05:00:35]MH_I2C_Read... [05:00:35]Read from MH i2c: E2 03 00 3F 35 00 90 00 E8 [05:00:35]RAPDU: 90 00 [05:00:35]wFMCommunicate OK [05:00:35]wFMCommunicate request_size=4 [05:00:35]MH_SAM_APDU [05:00:35]CAPDU: 80 0D 03 02 [05:00:35]Write to MH i2c: E2 08 00 40 35 80 0D 03 02 00 00 00 00 F0 [05:00:35]Write i2c OK [05:00:35]MH_I2C_Read... [05:00:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:00:35]Read from MH i2c: E2 [05:00:35]MH_I2C_Read... [05:00:35]Read from MH i2c: E2 0B 00 [05:00:35]MH_I2C_Read... [05:00:35]Read from MH i2c: E2 0B 00 40 35 00 01 FB C8 88 D4 67 0C 6E 90 00 F2 [05:00:35]RAPDU: 01 FB C8 88 D4 67 0C 6E 90 00 [05:00:35]wFMCommunicate OK [05:00:35]SAM_PROTO_SignData done [05:00:35]FM_MakeSignedData done [05:00:35]CreateOFDProtocolMessage [05:00:35]wFMCommunicate request_size=4 [05:00:35]MH_SAM_APDU [05:00:35]CAPDU: 80 11 00 00 [05:00:35]Write to MH i2c: E2 08 00 41 35 80 11 00 00 00 00 00 00 F0 [05:00:35]Write i2c OK [05:00:35]MH_I2C_Read... [05:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:35]Read from MH i2c: E2 [05:00:35]MH_I2C_Read... [05:00:35]Read from MH i2c: E2 17 00 [05:00:35]MH_I2C_Read... [05:00:35]Read from MH i2c: E2 17 00 41 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 4C [05:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:00:35]wFMCommunicate OK [05:00:35]CreateOFDProtocolMessage done [05:00:35]OFDSenderStorePacket 69138 [05:00:35]StoreOFDPacket docnum=69138 [05:00:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 CC 01 00 00 38 E9 C4 01 20 B2 5A 03 01 00 03 00 B8 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB 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 32 30 30 D0 B3 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 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 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 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 79 D0 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 12 0E 01 00 35 04 06 00 67 E0 16 16 71 CA 01 FB C8 88 D4 67 0C 6E [05:00:36]CheckFolder [05:00:36]dirname=/storage/ofd_packets [05:00:36]CheckFolder done [05:00:36]ProducePacketName [05:00:36]name=ofd_packets/00069138 [05:00:36]NVStorageSaveData ofd_packets/00069138 [05:00:36]File name is /storage/ofd_packets/00069138 [05:00:36]Write 490 bytes [05:00:36]NVStorageSaveData done [05:00:36]OFDSenderStorePacket done [05:00:36]KKMCreateOFDPacket done [05:00:36]NVStorageSaveData kkm_last_timestamp [05:00:36]File name is /storage/kkm_last_timestamp [05:00:36]Write 4 bytes [05:00:36]NVStorageSaveData done [05:00:36]ExternCall_PrintAddStr [05:00:36]wPrintStart [05:00:36]Write to MH i2c: 01 00 00 42 35 77 [05:00:36]Write i2c OK [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: 01 [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: 01 07 00 [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: 01 07 00 42 35 00 00 00 00 00 FF 0F 8C [05:00:36]RasterBufferAndPrint [05:00:36]line Счет N : (3)136538 [05:00:36]line ИНН: 02508201610067 [05:00:36]line Контрольно-Кассовый Чек [05:00:36]line ПРОДАЖА [05:00:36]line Товар: 4607015232592 [05:00:36]line Вафли Яшкино с вареной сгущенкой 200г [05:00:36]line 1.000 * 95.00 [05:00:36]line = 95.00 [05:00:36]line НДС 12% НСП 1% [05:00:36]line > о реализуемом товаре [05:00:36]line Товар: 4700003010087 [05:00:36]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [05:00:36]line 1.000 * 95.00 [05:00:36]line = 95.00 [05:00:36]line НДС 12% НСП 1% [05:00:36]line > о реализуемом товаре [05:00:36]line ИТОГО: 190.00 [05:00:36]line НСП 1% : 1.68 [05:00:36]line НДС 12% : 20.18 [05:00:36]line Наличными: 0.00 [05:00:36]line Безнал.: 190.00 [05:00:36]line Место: АЗС № 125 "Партнер Нефть" [05:00:36]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [05:00:36]line СНО: Общий режим [05:00:36]line Чек 21 28.07.2024 05:00 [05:00:36]line Смена: 429 ФФД: 1.0 [05:00:36]line ЗНМ: 0300000049 [05:00:36]line РНМ: 0000000000092638 [05:00:36]line Версия ККМ: 001 [05:00:36]line Платежная система: АКБ Кыргызстан [05:00:36]line ФМ: 0000000000874949 [05:00:36]line ФД: 69138 [05:00:36]line ФПД: 114212140904906 [05:00:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T050041&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69138&fm=114212140904906&tin=02508201610067®Number=0000000000092638&sum=19000 [05:00:36]line 0 [05:00:36]written 0, free lines is 4095 [05:00:36]OFD Sender: Processing packet 69138 [packets to send 19, broken 18] [05:00:36]ProducePacketName [05:00:36]name=ofd_packets/00069138 [05:00:36]OFD Sender: To server: pG, [05:00:36]CommunicateWithHost lk.salyk.kg:30040 [05:00:36]ConnectInit lk.salyk.kg [05:00:36]Connected sock=9 [05:00: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 39 34 39 CC 01 00 00 38 E9 C4 01 20 B2 5A 03 01 00 03 00 B8 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB 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 32 30 30 D0 B3 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 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 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 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 79 D0 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 12 0E 01 00 35 04 06 00 67 E0 16 16 71 CA 01 FB C8 88 D4 67 0C 6E [05:00:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 99 74 47 00 07 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 12 0E 01 00 F4 03 04 00 EA 76 A5 66 B6 04 01 00 00 5C 1B AA 13 BA 88 61 20 [05:00:36]CommunicateWithHost err = 0 [05:00:36]CheckOFDResponse [05:00:36]1017 (14) - 77093643461234 [05:00:36]1041 (16) - 0000000000874949 [05:00:36]1040 (4) - 69138 [05:00:36]1012 (4) - 27.07.2024 22:38 [05:00:36]1206 (1) - 0 [05:00:36]OFD Sender: Remove packet 69138 [05:00:36]ProducePacketName [05:00:36]name=ofd_packets/00069138 [05:00:36]NVStorageDeleteData [05:00:36]Write to MH i2c: 01 00 00 74 35 A9 [05:00:36]Write i2c OK [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: 01 [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: 01 07 00 [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: 01 07 00 74 35 00 00 00 00 00 8F 0C 4B [05:00:36]RasterBufferAndPrint [05:00:36]line [05:00:36]line [05:00:36]line [05:00:36]line [05:00:36]line [05:00:36]written 0, free lines is 3224 [05:00:36]MH_Cut [05:00:36]Write to MH i2c: D1 01 00 7B 35 01 82 [05:00:36]Write i2c OK [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: D1 [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: D1 01 00 [05:00:36]MH_I2C_Read... [05:00:36]Read from MH i2c: D1 01 00 7B 35 00 81 [05:00:36]Write to MH i2c: 01 00 00 7C 35 B1 [05:00:36]Write i2c OK [05:00:36]MH_I2C_Read... [05:00:37]OFD Sender: No OFD packet to send [05:00:37]*** Cut start [05:00:37]*** Partial cut [05:00:37]*** CUTSNS_PIN = 1 [05:00:37]*** CUTSNS_PIN = 0 [05:00:37]*** Brake cut motor [05:00:37]Read from MH i2c: 01 [05:00:38]MH_I2C_Read... [05:00:38]*** Stop cut motor [05:00:38]*** Cut end [05:00:38]Read from MH i2c: 01 07 00 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: 01 07 00 7C 35 00 00 00 00 00 FF 0F C6 [05:00:38]process_action close_receipt done [05:00:38]requested_data is exist [05:00:38]produce_requested_data [05:00:38]requested_item fm.sn is exist - process it [05:00:38]wFMCommunicate request_size=4 [05:00:38]MH_SAM_APDU [05:00:38]CAPDU: 80 11 00 00 [05:00:38]Write to MH i2c: E2 08 00 7D 35 80 11 00 00 00 00 00 00 2C [05:00:38]Write i2c OK [05:00:38]MH_I2C_Read... [05:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:38]Read from MH i2c: E2 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 17 00 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 17 00 7D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 88 [05:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:00:38]wFMCommunicate OK [05:00:38]requested_item fd.num is exist - process it [05:00:38]SAM_PROTO_GetFieldsCounters [05:00:38]wFMCommunicate request_size=4 [05:00:38]MH_SAM_APDU [05:00:38]CAPDU: 80 13 00 00 [05:00:38]Write to MH i2c: E2 08 00 7E 35 80 13 00 00 00 00 00 00 2F [05:00:38]Write i2c OK [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 [05:00:38]MH_I2C_Read... [05:00:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:00:38]Read from MH i2c: E2 62 00 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 62 00 7E 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 12 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [05:00: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 12 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:00:38]wFMCommunicate OK [05:00:38]SAM_PROTO_GetFieldsCounters done [05:00:38]requested_item shift.num is exist - process it [05:00:38]requested_item shift.opened is exist - process it [05:00:38]req_shift_opened [05:00:38]FM_GetShiftState [05:00:38]SAM_PROTO_GetShiftState [05:00:38]wFMCommunicate request_size=4 [05:00:38]MH_SAM_APDU [05:00:38]CAPDU: 80 13 01 00 [05:00:38]Write to MH i2c: E2 08 00 7F 35 80 13 01 00 00 00 00 00 31 [05:00:38]Write i2c OK [05:00:38]MH_I2C_Read... [05:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:38]Read from MH i2c: E2 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 0E 00 [05:00:38]MH_I2C_Read... [05:00:38]Read from MH i2c: E2 0E 00 7F 35 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 6E [05:00:38]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [05:00:38]wFMCommunicate OK [05:00:38]SAM_PROTO_GetShiftState done [05:00:38]FM_GetShiftState done [05:00:38]req_shift_opened done [05:00:38]requested_item shift.open_date is exist - process it [05:00:38]req_shift_open_date [05:00:38]req_shift_open_date done [05:00:38]produce_requested_data done [05:00:38]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69138,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [05:00:38]process_action_free close_receipt [05:00:38]json_value_free [05:00:38]json_value_free done [05:00:38]process_json_proto returns [05:00:38]Send response to host [05:00:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69138,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [05:00:38]free response buf [05:00:38]execute_script done [05:00:38]execute_script returns [05:00:38]free content buf [05:00:38]Sock 7.Close socket [05:00:38]Sock 7.Thread stoped [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:51]accept exits with 10 [05:07:51]New connection [05:07:51]New thread 3066641764 created [05:07:51] Sock 10.Parse request [05:07:51]Thread 3066785124 joined [05:07:51]Sock 10.Check first char [05:07:51]Waiting for new connection... [05:07:51]Sock 10.First char is OK [05:07:51]request: POST /json_proto HTTP/1.0 [05:07:51]Method: POST [05:07:51]URL: /json_proto [05:07:51]Method is POST - this is cgi request [05:07:51]url: /json_proto [05:07:51]query_string will be loaded in cgi processing [05:07:51]execute_cgi json_proto POST (null) [05:07:51]execute_cgi path=json_proto method=POST [05:07:51]POST find Content-Length [05:07:51]Host: 172.17.49.132:8080 [05:07:51]Content-Length: 1044 [05:07:51]Content-Type: application/json [05:07:51] [05:07:51]POST finish read [05:07:51]Found Content-Length = 1044 [05:07:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136539", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\u043B", "price" : 630.00, "quantity" : 1.000, "sum" : 630.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 770.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:07:51]execute_script... [05:07:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136539", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\u043B", "price" : 630.00, "quantity" : 1.000, "sum" : 630.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 770.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:07:51]POST & json_proto [05:07:51]process_json_proto [05:07:51]json parsed OK: [05:07:51]protocol is kg_v1.0 [05:07:51]action value=close_receipt [05:07:51]process_action close_receipt [05:07:51]cmd_close_receipt [05:07:51]MH_GetDate [05:07:51]Write to MH i2c: F0 00 00 80 35 A4 [05:07:51]Write i2c OK [05:07:51]MH_I2C_Read... [05:07:51]Read from MH i2c: F0 [05:07:51]MH_I2C_Read... [05:07:51]Read from MH i2c: F0 09 00 [05:07:51]MH_I2C_Read... [05:07:51]Read from MH i2c: F0 09 00 80 35 00 2F D2 A5 66 E7 4B C0 64 0F [05:07:51]GetLastDocTimeStamp 1722142841 [05:07:51]current date 1722143279 [05:07:51]FM_GetShiftState [05:07:51]SAM_PROTO_GetShiftState [05:07:51]wFMCommunicate request_size=4 [05:07:51]MH_SAM_APDU [05:07:51]CAPDU: 80 13 01 00 [05:07:51]Write to MH i2c: E2 08 00 81 35 80 13 01 00 00 00 00 00 33 [05:07:51]Write i2c OK [05:07:51]MH_I2C_Read... [05:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:07:52]Read from MH i2c: E2 [05:07:52]MH_I2C_Read... [05:07:52]Read from MH i2c: E2 0E 00 [05:07:52]MH_I2C_Read... [05:07:52]Read from MH i2c: E2 0E 00 81 35 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 70 [05:07:52]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [05:07:52]wFMCommunicate OK [05:07:52]SAM_PROTO_GetShiftState done [05:07:52]FM_GetShiftState done [05:07:52]opened in 1722127251 [05:07:52]opened+sec_in_day 1722213651 [05:07:52]quantity*price = 63000 [05:07:52]sum+1 = 63001 [05:07:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 770.00 НСП 1% : 6.81 НДС 12% : 81.77 Наличными: 0.00 Безнал.: 770.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 22 28.07.2024 05:07 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69139 ФПД: 187045249823574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T050759&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69139&fm=187045249823574&tin=02508201610067®Number=0000000000092638&sum=77000 0 [05:07:53]StoreToDocumentArchive [05:07:53]shift 429 fd 69139 [05:07:53]save to /storage/0429/doc_00069139 [05:07:53]save last doc name /storage/0429/doc_00069139 to /storage/kkm_last_doc_name [05:07:53]save OK [05:07:53]Clear old archive folders... [05:07:53]ProcessDocumentItem done err = 0, tmpTLVsize=369 [05:07:53]tlvbuf is B6D7F2E0 [05:07:53]SAM_PROTO_ClearQueue [05:07:53]wFMCommunicate request_size=4 [05:07:53]MH_SAM_APDU [05:07:53]CAPDU: 80 09 00 00 [05:07:53]Write to MH i2c: E2 08 00 8E 35 80 09 00 00 00 00 00 00 35 [05:07:53]Write i2c OK [05:07:53]MH_I2C_Read... [05:07:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:07:53]Read from MH i2c: E2 [05:07:53]MH_I2C_Read... [05:07:53]Read from MH i2c: E2 03 00 [05:07:53]MH_I2C_Read... [05:07:53]Read from MH i2c: E2 03 00 8E 35 00 90 00 37 [05:07:53]RAPDU: 90 00 [05:07:53]wFMCommunicate OK [05:07:53]SAM_PROTO_ClearQueue done [05:07:53]KKMCreateOFDPacket [05:07:53]OFDProtocolAddRootSTLVToBuf [05:07:53]FM_MakeSignedData [05:07:53]FM_MakeSignedData [05:07:53]SAM_PROTO_SignData [05:07:53]wFMCommunicate request_size=4 [05:07:53]MH_SAM_APDU [05:07:53]CAPDU: 80 0D 01 02 [05:07:53]Write to MH i2c: E2 08 00 8F 35 80 0D 01 02 00 00 00 00 3D [05:07:53]Write i2c OK [05:07:53]MH_I2C_Read... [05:07:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:07:53]Read from MH i2c: E2 [05:07:53]MH_I2C_Read... [05:07:53]Read from MH i2c: E2 03 00 [05:07:53]MH_I2C_Read... [05:07:53]Read from MH i2c: E2 03 00 8F 35 00 90 00 38 [05:07:53]RAPDU: 90 00 [05:07:53]wFMCommunicate OK [05:07:53]wFMCommunicate request_size=255 [05:07:53]MH_SAM_APDU [05:07:53]CAPDU: 80 0D 02 02 FA 03 00 71 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 [05:07:53]Write to MH i2c: E2 02 01 90 35 80 0D 02 02 FA 00 03 00 71 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 00 00 C8 [05:07:53]Write i2c OK [05:07:53]MH_I2C_Read... [05:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:07:53]Read from MH i2c: E2 [05:07:53]MH_I2C_Read... [05:07:53]Read from MH i2c: E2 03 00 [05:07:53]MH_I2C_Read... [05:07:53]Read from MH i2c: E2 03 00 90 35 00 90 00 39 [05:07:53]RAPDU: 90 00 [05:07:53]wFMCommunicate OK [05:07:53]wFMCommunicate request_size=128 [05:07:53]MH_SAM_APDU [05:07:53]CAPDU: 80 0D 02 02 7B F3 03 06 00 F1 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 2F D2 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 13 0E 01 00 35 04 06 00 AA 1D DD AC 33 56 [05:07:53]Write to MH i2c: E2 83 00 91 35 80 0D 02 02 7B 00 F3 03 06 00 F1 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 2F D2 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 13 0E 01 00 35 04 06 00 AA 1D DD AC 33 56 00 00 48 [05:07:53]Write i2c OK [05:07:53]MH_I2C_Read... [05:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:07:53]Read from MH i2c: E2 [05:07:53]MH_I2C_Read... [05:07:53]Read from MH i2c: E2 03 00 [05:07:53]MH_I2C_Read... [05:07:53]Read from MH i2c: E2 03 00 91 35 00 90 00 3A [05:07:53]RAPDU: 90 00 [05:07:53]wFMCommunicate OK [05:07:53]wFMCommunicate request_size=4 [05:07:53]MH_SAM_APDU [05:07:53]CAPDU: 80 0D 03 02 [05:07:53]Write to MH i2c: E2 08 00 92 35 80 0D 03 02 00 00 00 00 42 [05:07:53]Write i2c OK [05:07:53]MH_I2C_Read... [05:07:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:07:53]Read from MH i2c: E2 [05:07:53]MH_I2C_Read... [05:07:53]Read from MH i2c: E2 0B 00 [05:07:53]MH_I2C_Read... [05:07:53]Read from MH i2c: E2 0B 00 92 35 00 A9 E0 F0 2F 23 A8 1C 3F 90 00 11 [05:07:53]RAPDU: A9 E0 F0 2F 23 A8 1C 3F 90 00 [05:07:53]wFMCommunicate OK [05:07:53]SAM_PROTO_SignData done [05:07:53]FM_MakeSignedData done [05:07:53]CreateOFDProtocolMessage [05:07:53]wFMCommunicate request_size=4 [05:07:53]MH_SAM_APDU [05:07:53]CAPDU: 80 11 00 00 [05:07:53]Write to MH i2c: E2 08 00 93 35 80 11 00 00 00 00 00 00 42 [05:07:53]Write i2c OK [05:07:53]MH_I2C_Read... [05:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:07:53]Read from MH i2c: E2 [05:07:53]MH_I2C_Read... [05:07:53]Read from MH i2c: E2 17 00 [05:07:53]MH_I2C_Read... [05:07:53]Read from MH i2c: E2 17 00 93 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9E [05:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:07:53]wFMCommunicate OK [05:07:53]CreateOFDProtocolMessage done [05:07:53]OFDSenderStorePacket 69139 [05:07:53]StoreOFDPacket docnum=69139 [05:07:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 85 01 00 00 FF 02 7D 01 7B 4E 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 2F D2 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 13 0E 01 00 35 04 06 00 AA 1D DD AC 33 56 A9 E0 F0 2F 23 A8 1C 3F [05:07:53]CheckFolder [05:07:53]dirname=/storage/ofd_packets [05:07:53]CheckFolder done [05:07:53]ProducePacketName [05:07:53]name=ofd_packets/00069139 [05:07:53]NVStorageSaveData ofd_packets/00069139 [05:07:53]File name is /storage/ofd_packets/00069139 [05:07:53]Write 419 bytes [05:07:53]NVStorageSaveData done [05:07:53]OFDSenderStorePacket done [05:07:53]KKMCreateOFDPacket done [05:07:53]NVStorageSaveData kkm_last_timestamp [05:07:53]File name is /storage/kkm_last_timestamp [05:07:53]Write 4 bytes [05:07:53]NVStorageSaveData done [05:07:53]ExternCall_PrintAddStr [05:07:53]wPrintStart [05:07:53]Write to MH i2c: 01 00 00 94 35 C9 [05:07:53]Write i2c OK [05:07:54]MH_I2C_Read... [05:07:54]OFD Sender: Processing packet 69139 [packets to send 19, broken 18] [05:07:54]ProducePacketName [05:07:54]name=ofd_packets/00069139 [05:07:54]OFD Sender: To server: pG, [05:07:54]CommunicateWithHost lk.salyk.kg:30040 [05:07:54]ConnectInit lk.salyk.kg [05:07:54]Read from MH i2c: 01 [05:07:54]MH_I2C_Read... [05:07:54]Read from MH i2c: 01 07 00 [05:07:54]MH_I2C_Read... [05:07:54]Read from MH i2c: 01 07 00 94 35 00 00 00 00 00 FF 0F DE [05:07:54]RasterBufferAndPrint [05:07:54]line Счет N : (3)136539 [05:07:54]line ИНН: 02508201610067 [05:07:54]line Контрольно-Кассовый Чек [05:07:54]line ПРОДАЖА [05:07:54]line Товар: 4700002083334 [05:07:54]line Водка Level 0,7л [05:07:54]line 1.000 * 630.00 [05:07:54]line = 630.00 [05:07:54]line НДС 12% НСП 1% [05:07:54]line > о реализуемом товаре [05:07:54]line Товар: 48743587 [05:07:54]line Сигареты Winston XStyle Silver [05:07:54]line 1.000 * 140.00 [05:07:54]line = 140.00 [05:07:54]line НДС 12% НСП 1% [05:07:54]line > о реализуемом товаре [05:07:54]line ИТОГО: 770.00 [05:07:54]line НСП 1% : 6.81 [05:07:54]line НДС 12% : 81.77 [05:07:54]line Наличными: 0.00 [05:07:54]line Безнал.: 770.00 [05:07:54]line Место: АЗС № 125 "Партнер Нефть" [05:07:54]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [05:07:54]line СНО: Общий режим [05:07:54]line Чек 22 28.07.2024 05:07 [05:07:54]line Смена: 429 ФФД: 1.0 [05:07:54]line ЗНМ: 0300000049 [05:07:54]line РНМ: 0000000000092638 [05:07:54]line Версия ККМ: 001 [05:07:54]line Платежная система: АКБ Кыргызстан [05:07:54]line ФМ: 0000000000874949 [05:07:54]line ФД: 69139 [05:07:54]line ФПД: 187045249823574 [05:07:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T050759&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69139&fm=187045249823574&tin=02508201610067®Number=0000000000092638&sum=77000 [05:07:54]line 0 [05:07:54]written 0, free lines is 4095 [05:07:54]Connected sock=7 [05:07: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 39 34 39 85 01 00 00 FF 02 7D 01 7B 4E 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 2F D2 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 13 0E 01 00 35 04 06 00 AA 1D DD AC 33 56 A9 E0 F0 2F 23 A8 1C 3F [05:07:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 FC 81 47 00 B5 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 13 0E 01 00 F4 03 04 00 A0 78 A5 66 B6 04 01 00 00 4E 69 2C E5 DF F0 4C 0C [05:07:54]CommunicateWithHost err = 0 [05:07:54]CheckOFDResponse [05:07:54]1017 (14) - 77093643461234 [05:07:54]1041 (16) - 0000000000874949 [05:07:54]1040 (4) - 69139 [05:07:54]1012 (4) - 27.07.2024 22:45 [05:07:54]1206 (1) - 0 [05:07:54]OFD Sender: Remove packet 69139 [05:07:54]ProducePacketName [05:07:54]name=ofd_packets/00069139 [05:07:54]NVStorageDeleteData [05:07:54]Write to MH i2c: 01 00 00 C5 35 FA [05:07:54]Write i2c OK [05:07:54]MH_I2C_Read... [05:07:54]Read from MH i2c: 01 [05:07:54]MH_I2C_Read... [05:07:54]Read from MH i2c: 01 07 00 [05:07:54]MH_I2C_Read... [05:07:54]Read from MH i2c: 01 07 00 C5 35 00 00 00 00 00 A4 0C B1 [05:07:54]RasterBufferAndPrint [05:07:54]line [05:07:54]line [05:07:54]line [05:07:54]line [05:07:54]line [05:07:54]written 0, free lines is 3242 [05:07:54]MH_Cut [05:07:54]Write to MH i2c: D1 01 00 CC 35 01 D3 [05:07:54]Write i2c OK [05:07:54]MH_I2C_Read... [05:07:54]Read from MH i2c: D1 [05:07:54]MH_I2C_Read... [05:07:54]Read from MH i2c: D1 01 00 [05:07:54]MH_I2C_Read... [05:07:54]Read from MH i2c: D1 01 00 CC 35 00 D2 [05:07:54]Write to MH i2c: 01 00 00 CD 35 02 [05:07:54]Write i2c OK [05:07:54]MH_I2C_Read... [05:07:54]OFD Sender: No OFD packet to send [05:07:55]*** Cut start [05:07:55]*** Partial cut [05:07:55]*** CUTSNS_PIN = 1 [05:07:55]*** CUTSNS_PIN = 0 [05:07:55]*** Brake cut motor [05:07:55]Read from MH i2c: 01 [05:07:55]MH_I2C_Read... [05:07:55]*** Stop cut motor [05:07:55]*** Cut end [05:07:55]Read from MH i2c: 01 07 00 [05:07:55]MH_I2C_Read... [05:07:55]Read from MH i2c: 01 07 00 CD 35 00 00 00 00 00 FF 0F 17 [05:07:55]process_action close_receipt done [05:07:55]requested_data is exist [05:07:55]produce_requested_data [05:07:55]requested_item fm.sn is exist - process it [05:07:55]wFMCommunicate request_size=4 [05:07:55]MH_SAM_APDU [05:07:55]CAPDU: 80 11 00 00 [05:07:55]Write to MH i2c: E2 08 00 CE 35 80 11 00 00 00 00 00 00 7D [05:07:55]Write i2c OK [05:07:55]MH_I2C_Read... [05:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:07:56]Read from MH i2c: E2 [05:07:56]MH_I2C_Read... [05:07:56]Read from MH i2c: E2 17 00 [05:07:56]MH_I2C_Read... [05:07:56]Read from MH i2c: E2 17 00 CE 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D9 [05:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:07:56]wFMCommunicate OK [05:07:56]requested_item fd.num is exist - process it [05:07:56]SAM_PROTO_GetFieldsCounters [05:07:56]wFMCommunicate request_size=4 [05:07:56]MH_SAM_APDU [05:07:56]CAPDU: 80 13 00 00 [05:07:56]Write to MH i2c: E2 08 00 CF 35 80 13 00 00 00 00 00 00 80 [05:07:56]Write i2c OK [05:07:56]MH_I2C_Read... [05:07:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:07:56]Read from MH i2c: E2 [05:07:56]MH_I2C_Read... [05:07:56]Read from MH i2c: E2 62 00 [05:07:56]MH_I2C_Read... [05:07:56]Read from MH i2c: E2 62 00 CF 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 13 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [05:07: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 13 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:07:56]wFMCommunicate OK [05:07:56]SAM_PROTO_GetFieldsCounters done [05:07:56]requested_item shift.num is exist - process it [05:07:56]requested_item shift.opened is exist - process it [05:07:56]req_shift_opened [05:07:56]FM_GetShiftState [05:07:56]SAM_PROTO_GetShiftState [05:07:56]wFMCommunicate request_size=4 [05:07:56]MH_SAM_APDU [05:07:56]CAPDU: 80 13 01 00 [05:07:56]Write to MH i2c: E2 08 00 D0 35 80 13 01 00 00 00 00 00 82 [05:07:56]Write i2c OK [05:07:56]MH_I2C_Read... [05:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:07:56]Read from MH i2c: E2 [05:07:56]MH_I2C_Read... [05:07:56]Read from MH i2c: E2 0E 00 [05:07:56]MH_I2C_Read... [05:07:56]Read from MH i2c: E2 0E 00 D0 35 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 BF [05:07:56]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [05:07:56]wFMCommunicate OK [05:07:56]SAM_PROTO_GetShiftState done [05:07:56]FM_GetShiftState done [05:07:56]req_shift_opened done [05:07:56]requested_item shift.open_date is exist - process it [05:07:56]req_shift_open_date [05:07:56]req_shift_open_date done [05:07:56]produce_requested_data done [05:07:56]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69139,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [05:07:56]process_action_free close_receipt [05:07:56]json_value_free [05:07:56]json_value_free done [05:07:56]process_json_proto returns [05:07:56]Send response to host [05:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69139,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [05:07:56]free response buf [05:07:56]execute_script done [05:07:56]execute_script returns [05:07:56]free content buf [05:07:56]Sock 10.Close socket [05:07:56]Sock 10.Thread stoped [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:29:59]accept exits with 9 [05:29:59]New connection [05:29:59]New thread 3066785124 created [05:29:59]Thread 3066641764 joined [05:29:59]Waiting for new connection... [05:29:59] Sock 9.Parse request [05:29:59]Sock 9.Check first char [05:29:59]Sock 9.First char is OK [05:29:59]request: POST /json_proto HTTP/1.0 [05:29:59]Method: POST [05:29:59]URL: /json_proto [05:29:59]Method is POST - this is cgi request [05:29:59]url: /json_proto [05:29:59]query_string will be loaded in cgi processing [05:29:59]execute_cgi json_proto POST (null) [05:29:59]execute_cgi path=json_proto method=POST [05:29:59]POST find Content-Length [05:29:59]Host: 172.17.49.132:8080 [05:29:59]Content-Length: 696 [05:29:59]Content-Type: application/json [05:29:59] [05:29:59]POST finish read [05:29:59]Found Content-Length = 696 [05:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136540", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:29:59]execute_script... [05:29: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)136540", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:29:59]POST & json_proto [05:29:59]process_json_proto [05:29:59]json parsed OK: [05:29:59]protocol is kg_v1.0 [05:29:59]action value=close_receipt [05:29:59]process_action close_receipt [05:29:59]cmd_close_receipt [05:29:59]MH_GetDate [05:29:59]Write to MH i2c: F0 00 00 D1 35 F5 [05:29:59]Write i2c OK [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: F0 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: F0 09 00 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: F0 09 00 D1 35 00 5F D7 A5 66 E7 4B C0 64 95 [05:29:59]GetLastDocTimeStamp 1722143279 [05:29:59]current date 1722144607 [05:29:59]FM_GetShiftState [05:29:59]SAM_PROTO_GetShiftState [05:29:59]wFMCommunicate request_size=4 [05:29:59]MH_SAM_APDU [05:29:59]CAPDU: 80 13 01 00 [05:29:59]Write to MH i2c: E2 08 00 D2 35 80 13 01 00 00 00 00 00 84 [05:29:59]Write i2c OK [05:29:59]MH_I2C_Read... [05:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:29:59]Read from MH i2c: E2 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: E2 0E 00 [05:29:59]MH_I2C_Read... [05:29:59]Read from MH i2c: E2 0E 00 D2 35 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 C1 [05:29:59]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [05:29:59]wFMCommunicate OK [05:29:59]SAM_PROTO_GetShiftState done [05:29:59]FM_GetShiftState done [05:29:59]opened in 1722127251 [05:29:59]opened+sec_in_day 1722213651 [05:29:59]quantity*price = 11000 [05:29:59]sum+1 = 11001 [05:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 23 28.07.2024 05:30 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69140 ФПД: 164541256110501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T053007&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69140&fm=164541256110501&tin=02508201610067®Number=0000000000092638&sum=11000 0 [05:30:00]StoreToDocumentArchive [05:30:00]shift 429 fd 69140 [05:30:00]save to /storage/0429/doc_00069140 [05:30:00]save last doc name /storage/0429/doc_00069140 to /storage/kkm_last_doc_name [05:30:00]save OK [05:30:00]Clear old archive folders... [05:30:00]ProcessDocumentItem done err = 0, tmpTLVsize=296 [05:30:00]tlvbuf is B6D7F670 [05:30:00]SAM_PROTO_ClearQueue [05:30:00]wFMCommunicate request_size=4 [05:30:00]MH_SAM_APDU [05:30:00]CAPDU: 80 09 00 00 [05:30:00]Write to MH i2c: E2 08 00 DF 35 80 09 00 00 00 00 00 00 86 [05:30:00]Write i2c OK [05:30:00]MH_I2C_Read... [05:30:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:30:00]Read from MH i2c: E2 [05:30:00]MH_I2C_Read... [05:30:00]Read from MH i2c: E2 03 00 [05:30:00]MH_I2C_Read... [05:30:00]Read from MH i2c: E2 03 00 DF 35 00 90 00 88 [05:30:00]RAPDU: 90 00 [05:30:00]wFMCommunicate OK [05:30:00]SAM_PROTO_ClearQueue done [05:30:00]KKMCreateOFDPacket [05:30:00]OFDProtocolAddRootSTLVToBuf [05:30:00]FM_MakeSignedData [05:30:00]FM_MakeSignedData [05:30:00]SAM_PROTO_SignData [05:30:00]wFMCommunicate request_size=4 [05:30:00]MH_SAM_APDU [05:30:00]CAPDU: 80 0D 01 02 [05:30:00]Write to MH i2c: E2 08 00 E0 35 80 0D 01 02 00 00 00 00 8E [05:30:00]Write i2c OK [05:30:00]MH_I2C_Read... [05:30:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 03 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 03 00 E0 35 00 90 00 89 [05:30:01]RAPDU: 90 00 [05:30:01]wFMCommunicate OK [05:30:01]wFMCommunicate request_size=255 [05:30:01]MH_SAM_APDU [05:30: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 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5F D7 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [05:30:01]Write to MH i2c: E2 02 01 E1 35 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5F D7 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 12 [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]OFD Sender: No OFD packet to send [05:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 03 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 03 00 E1 35 00 90 00 8A [05:30:01]RAPDU: 90 00 [05:30:01]wFMCommunicate OK [05:30:01]wFMCommunicate request_size=55 [05:30:01]MH_SAM_APDU [05:30:01]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 14 0E 01 00 35 04 06 00 95 A6 3F 1F 11 A5 [05:30:01]Write to MH i2c: E2 3A 00 E2 35 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 14 0E 01 00 35 04 06 00 95 A6 3F 1F 11 A5 00 00 68 [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 03 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 03 00 E2 35 00 90 00 8B [05:30:01]RAPDU: 90 00 [05:30:01]wFMCommunicate OK [05:30:01]wFMCommunicate request_size=4 [05:30:01]MH_SAM_APDU [05:30:01]CAPDU: 80 0D 03 02 [05:30:01]Write to MH i2c: E2 08 00 E3 35 80 0D 03 02 00 00 00 00 93 [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 0B 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 0B 00 E3 35 00 47 C9 4E 7B F9 54 89 BE 90 00 01 [05:30:01]RAPDU: 47 C9 4E 7B F9 54 89 BE 90 00 [05:30:01]wFMCommunicate OK [05:30:01]SAM_PROTO_SignData done [05:30:01]FM_MakeSignedData done [05:30:01]CreateOFDProtocolMessage [05:30:01]wFMCommunicate request_size=4 [05:30:01]MH_SAM_APDU [05:30:01]CAPDU: 80 11 00 00 [05:30:01]Write to MH i2c: E2 08 00 E4 35 80 11 00 00 00 00 00 00 93 [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:01]Read from MH i2c: E2 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 17 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: E2 17 00 E4 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 EF [05:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:30:01]wFMCommunicate OK [05:30:01]CreateOFDProtocolMessage done [05:30:01]OFDSenderStorePacket 69140 [05:30:01]StoreOFDPacket docnum=69140 [05:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3C 01 00 00 93 B7 34 01 1B 88 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5F D7 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 14 0E 01 00 35 04 06 00 95 A6 3F 1F 11 A5 47 C9 4E 7B F9 54 89 BE [05:30:01]CheckFolder [05:30:01]dirname=/storage/ofd_packets [05:30:01]CheckFolder done [05:30:01]ProducePacketName [05:30:01]name=ofd_packets/00069140 [05:30:01]NVStorageSaveData ofd_packets/00069140 [05:30:01]File name is /storage/ofd_packets/00069140 [05:30:01]Write 346 bytes [05:30:01]NVStorageSaveData done [05:30:01]OFDSenderStorePacket done [05:30:01]KKMCreateOFDPacket done [05:30:01]NVStorageSaveData kkm_last_timestamp [05:30:01]File name is /storage/kkm_last_timestamp [05:30:01]Write 4 bytes [05:30:01]NVStorageSaveData done [05:30:01]ExternCall_PrintAddStr [05:30:01]wPrintStart [05:30:01]Write to MH i2c: 01 00 00 E5 35 1A [05:30:01]Write i2c OK [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: 01 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: 01 07 00 [05:30:01]MH_I2C_Read... [05:30:01]Read from MH i2c: 01 07 00 E5 35 00 00 00 00 00 FF 0F 2F [05:30:01]RasterBufferAndPrint [05:30:01]line Счет N : (3)136540 [05:30:01]line ИНН: 02508201610067 [05:30:01]line Контрольно-Кассовый Чек [05:30:01]line ПРОДАЖА [05:30:01]line Товар: 4870202521261 [05:30:01]line Напиток MAXI чай 1,2 лесные ягоды [05:30:01]line 1.000 * 110.00 [05:30:01]line = 110.00 [05:30:01]line НДС 12% НСП 1% [05:30:01]line > о реализуемом товаре [05:30:01]line ИТОГО: 110.00 [05:30:01]line НСП 1% : 0.97 [05:30:01]line НДС 12% : 11.68 [05:30:01]line Наличными: 110.00 [05:30:01]line Безнал.: 0.00 [05:30:01]line Место: АЗС № 125 "Партнер Нефть" [05:30:01]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [05:30:01]line СНО: Общий режим [05:30:01]line Чек 23 28.07.2024 05:30 [05:30:01]line Смена: 429 ФФД: 1.0 [05:30:01]line ЗНМ: 0300000049 [05:30:01]line РНМ: 0000000000092638 [05:30:01]line Версия ККМ: 001 [05:30:01]line ФМ: 0000000000874949 [05:30:01]line ФД: 69140 [05:30:01]line ФПД: 164541256110501 [05:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T053007&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69140&fm=164541256110501&tin=02508201610067®Number=0000000000092638&sum=11000 [05:30:01]line 0 [05:30:01]OFD Sender: Processing packet 69140 [packets to send 19, broken 18] [05:30:01]ProducePacketName [05:30:01]name=ofd_packets/00069140 [05:30:01]OFD Sender: To server: pG, [05:30:01]CommunicateWithHost lk.salyk.kg:30040 [05:30:01]ConnectInit lk.salyk.kg [05:30:01]written 0, free lines is 4095 [05:30:01]Connected sock=10 [05:30: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 39 34 39 3C 01 00 00 93 B7 34 01 1B 88 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5F D7 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 14 0E 01 00 35 04 06 00 95 A6 3F 1F 11 A5 47 C9 4E 7B F9 54 89 BE [05:30:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 50 28 47 00 E8 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 14 0E 01 00 F4 03 04 00 CF 7D A5 66 B6 04 01 00 00 8B 6E ED C0 62 84 9C 9B [05:30:02]CommunicateWithHost err = 0 [05:30:02]CheckOFDResponse [05:30:02]1017 (14) - 77093643461234 [05:30:02]1041 (16) - 0000000000874949 [05:30:02]1040 (4) - 69140 [05:30:02]1012 (4) - 27.07.2024 23:07 [05:30:02]1206 (1) - 0 [05:30:02]OFD Sender: Remove packet 69140 [05:30:02]ProducePacketName [05:30:02]name=ofd_packets/00069140 [05:30:02]NVStorageDeleteData [05:30:02]Write to MH i2c: 01 00 00 0E 36 44 [05:30:02]Write i2c OK [05:30:02]MH_I2C_Read... [05:30:02]Read from MH i2c: 01 [05:30:02]MH_I2C_Read... [05:30:02]Read from MH i2c: 01 07 00 [05:30:02]MH_I2C_Read... [05:30:02]Read from MH i2c: 01 07 00 0E 36 00 00 00 00 00 01 0D 59 [05:30:02]RasterBufferAndPrint [05:30:02]line [05:30:02]line [05:30:02]line [05:30:02]line [05:30:02]line [05:30:02]written 0, free lines is 3338 [05:30:02]MH_Cut [05:30:02]Write to MH i2c: D1 01 00 15 36 01 1D [05:30:02]Write i2c OK [05:30:02]MH_I2C_Read... [05:30:02]Read from MH i2c: D1 [05:30:02]MH_I2C_Read... [05:30:02]Read from MH i2c: D1 01 00 [05:30:02]MH_I2C_Read... [05:30:02]Read from MH i2c: D1 01 00 15 36 00 1C [05:30:02]Write to MH i2c: 01 00 00 16 36 4C [05:30:02]Write i2c OK [05:30:02]MH_I2C_Read... [05:30:02]OFD Sender: No OFD packet to send [05:30:02]*** Cut start [05:30:02]*** Partial cut [05:30:02]*** CUTSNS_PIN = 1 [05:30:02]*** CUTSNS_PIN = 0 [05:30:03]*** Brake cut motor [05:30:03]Read from MH i2c: 01 [05:30:03]MH_I2C_Read... [05:30:03]*** Stop cut motor [05:30:03]*** Cut end [05:30:03]Read from MH i2c: 01 07 00 [05:30:03]MH_I2C_Read... [05:30:03]Read from MH i2c: 01 07 00 16 36 00 00 00 00 00 FF 0F 61 [05:30:03]process_action close_receipt done [05:30:03]requested_data is exist [05:30:03]produce_requested_data [05:30:03]requested_item fm.sn is exist - process it [05:30:03]wFMCommunicate request_size=4 [05:30:03]MH_SAM_APDU [05:30:03]CAPDU: 80 11 00 00 [05:30:03]Write to MH i2c: E2 08 00 17 36 80 11 00 00 00 00 00 00 C7 [05:30:03]Write i2c OK [05:30:03]MH_I2C_Read... [05:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:03]Read from MH i2c: E2 [05:30:03]MH_I2C_Read... [05:30:03]Read from MH i2c: E2 17 00 [05:30:03]MH_I2C_Read... [05:30:03]Read from MH i2c: E2 17 00 17 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 23 [05:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:30:03]wFMCommunicate OK [05:30:03]requested_item fd.num is exist - process it [05:30:03]SAM_PROTO_GetFieldsCounters [05:30:03]wFMCommunicate request_size=4 [05:30:03]MH_SAM_APDU [05:30:03]CAPDU: 80 13 00 00 [05:30:03]Write to MH i2c: E2 08 00 18 36 80 13 00 00 00 00 00 00 CA [05:30:03]Write i2c OK [05:30:03]MH_I2C_Read... [05:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:30:03]Read from MH i2c: E2 [05:30:03]MH_I2C_Read... [05:30:03]Read from MH i2c: E2 62 00 [05:30:03]MH_I2C_Read... [05:30:03]Read from MH i2c: E2 62 00 18 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 14 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [05:30: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 14 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:30:03]wFMCommunicate OK [05:30:03]SAM_PROTO_GetFieldsCounters done [05:30:03]requested_item shift.num is exist - process it [05:30:03]requested_item shift.opened is exist - process it [05:30:03]req_shift_opened [05:30:03]FM_GetShiftState [05:30:03]SAM_PROTO_GetShiftState [05:30:03]wFMCommunicate request_size=4 [05:30:03]MH_SAM_APDU [05:30:03]CAPDU: 80 13 01 00 [05:30:03]Write to MH i2c: E2 08 00 19 36 80 13 01 00 00 00 00 00 CC [05:30:03]Write i2c OK [05:30:03]MH_I2C_Read... [05:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:03]Read from MH i2c: E2 [05:30:03]MH_I2C_Read... [05:30:03]Read from MH i2c: E2 0E 00 [05:30:03]MH_I2C_Read... [05:30:03]Read from MH i2c: E2 0E 00 19 36 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 09 [05:30:03]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [05:30:03]wFMCommunicate OK [05:30:03]SAM_PROTO_GetShiftState done [05:30:03]FM_GetShiftState done [05:30:03]req_shift_opened done [05:30:03]requested_item shift.open_date is exist - process it [05:30:03]req_shift_open_date [05:30:03]req_shift_open_date done [05:30:03]produce_requested_data done [05:30:03]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69140,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [05:30:03]process_action_free close_receipt [05:30:03]json_value_free [05:30:03]json_value_free done [05:30:03]process_json_proto returns [05:30:03]Send response to host [05:30:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69140,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [05:30:03]free response buf [05:30:03]execute_script done [05:30:03]execute_script returns [05:30:03]free content buf [05:30:03]Sock 9.Close socket [05:30:03]Sock 9.Thread stoped [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:43]accept exits with 7 [05:31:43]New connection [05:31:43]New thread 3066641764 created [05:31:43]Thread 3066785124 joined [05:31:43]Waiting for new connection... [05:31:43] Sock 7.Parse request [05:31:43]Sock 7.Check first char [05:31:43]Sock 7.First char is OK [05:31:43]request: POST /json_proto HTTP/1.0 [05:31:43]Method: POST [05:31:43]URL: /json_proto [05:31:43]Method is POST - this is cgi request [05:31:43]url: /json_proto [05:31:43]query_string will be loaded in cgi processing [05:31:43]execute_cgi json_proto POST (null) [05:31:43]execute_cgi path=json_proto method=POST [05:31:43]POST find Content-Length [05:31:43]Host: 172.17.49.132:8080 [05:31:43]Content-Length: 1396 [05:31:43]Content-Type: application/json [05:31:43] [05:31:43]POST finish read [05:31:43]Found Content-Length = 1396 [05:31:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136541", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 665.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:31:43]execute_script... [05:31:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136541", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 665.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:31:43]POST & json_proto [05:31:43]process_json_proto [05:31:43]json parsed OK: [05:31:43]protocol is kg_v1.0 [05:31:43]action value=close_receipt [05:31:43]process_action close_receipt [05:31:43]cmd_close_receipt [05:31:43]MH_GetDate [05:31:43]Write to MH i2c: F0 00 00 1A 36 3F [05:31:43]Write i2c OK [05:31:43]MH_I2C_Read... [05:31:43]Read from MH i2c: F0 [05:31:43]MH_I2C_Read... [05:31:43]Read from MH i2c: F0 09 00 [05:31:43]MH_I2C_Read... [05:31:43]Read from MH i2c: F0 09 00 1A 36 00 C6 D7 A5 66 E7 4B C0 64 46 [05:31:43]GetLastDocTimeStamp 1722144607 [05:31:43]current date 1722144710 [05:31:43]FM_GetShiftState [05:31:43]SAM_PROTO_GetShiftState [05:31:43]wFMCommunicate request_size=4 [05:31:43]MH_SAM_APDU [05:31:43]CAPDU: 80 13 01 00 [05:31:43]Write to MH i2c: E2 08 00 1B 36 80 13 01 00 00 00 00 00 CE [05:31:43]Write i2c OK [05:31:43]MH_I2C_Read... [05:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:43]Read from MH i2c: E2 [05:31:43]MH_I2C_Read... [05:31:43]Read from MH i2c: E2 0E 00 [05:31:43]MH_I2C_Read... [05:31:43]Read from MH i2c: E2 0E 00 1B 36 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 0B [05:31:43]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [05:31:43]wFMCommunicate OK [05:31:43]SAM_PROTO_GetShiftState done [05:31:43]FM_GetShiftState done [05:31:43]opened in 1722127251 [05:31:43]opened+sec_in_day 1722213651 [05:31:43]quantity*price = 11000 [05:31:43]sum+1 = 11001 [05:31:43]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870145004753 Напиток Garage hard lemon ст 0,4л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700001610012 Пиво Арпа 0,5л 2.000 * 145.00 = 290.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48744119 Сигареты Winston Xstyle Dual 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 665.00 НСП 1% : 5.88 НДС 12% : 70.62 Наличными: 665.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 24 28.07.2024 05:31 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69141 ФПД: 197375987229906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T053151&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69141&fm=197375987229906&tin=02508201610067®Number=0000000000092638&sum=66500 0 [05:31:44]StoreToDocumentArchive [05:31:44]shift 429 fd 69141 [05:31:44]save to /storage/0429/doc_00069141 [05:31:44]save last doc name /storage/0429/doc_00069141 to /storage/kkm_last_doc_name [05:31:44]save OK [05:31:44]Clear old archive folders... [05:31:44]ProcessDocumentItem done err = 0, tmpTLVsize=606 [05:31:44]tlvbuf is B6F2C5E0 [05:31:44]SAM_PROTO_ClearQueue [05:31:44]wFMCommunicate request_size=4 [05:31:44]MH_SAM_APDU [05:31:44]CAPDU: 80 09 00 00 [05:31:44]Write to MH i2c: E2 08 00 28 36 80 09 00 00 00 00 00 00 D0 [05:31:44]Write i2c OK [05:31:44]MH_I2C_Read... [05:31:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:31:44]Read from MH i2c: E2 [05:31:44]MH_I2C_Read... [05:31:44]Read from MH i2c: E2 03 00 [05:31:44]MH_I2C_Read... [05:31:44]Read from MH i2c: E2 03 00 28 36 00 90 00 D2 [05:31:44]RAPDU: 90 00 [05:31:44]wFMCommunicate OK [05:31:44]SAM_PROTO_ClearQueue done [05:31:44]KKMCreateOFDPacket [05:31:44]OFDProtocolAddRootSTLVToBuf [05:31:44]FM_MakeSignedData [05:31:44]FM_MakeSignedData [05:31:44]SAM_PROTO_SignData [05:31:44]wFMCommunicate request_size=4 [05:31:44]MH_SAM_APDU [05:31:44]CAPDU: 80 0D 01 02 [05:31:44]Write to MH i2c: E2 08 00 29 36 80 0D 01 02 00 00 00 00 D8 [05:31:44]Write i2c OK [05:31:44]MH_I2C_Read... [05:31:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:31:45]Read from MH i2c: E2 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 03 00 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 03 00 29 36 00 90 00 D3 [05:31:45]RAPDU: 90 00 [05:31:45]wFMCommunicate OK [05:31:45]wFMCommunicate request_size=255 [05:31:45]MH_SAM_APDU [05:31:45]CAPDU: 80 0D 02 02 FA 03 00 5E 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 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 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B [05:31:45]Write to MH i2c: E2 02 01 2A 36 80 0D 02 02 FA 00 03 00 5E 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 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 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 00 94 [05:31:45]Write i2c OK [05:31:45]MH_I2C_Read... [05:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:45]Read from MH i2c: E2 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 03 00 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 03 00 2A 36 00 90 00 D4 [05:31:45]RAPDU: 90 00 [05:31:45]wFMCommunicate OK [05:31:45]wFMCommunicate request_size=255 [05:31:45]MH_SAM_APDU [05:31:45]CAPDU: 80 0D 02 02 FA 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 1B 00 00 00 00 07 04 06 [05:31:45]Write to MH i2c: E2 02 01 2B 36 80 0D 02 02 FA 00 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 1B 00 00 00 00 07 04 06 00 00 38 [05:31:45]Write i2c OK [05:31:45]MH_I2C_Read... [05:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:45]Read from MH i2c: E2 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 03 00 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 03 00 2B 36 00 90 00 D5 [05:31:45]RAPDU: 90 00 [05:31:45]wFMCommunicate OK [05:31:45]wFMCommunicate request_size=115 [05:31:45]MH_SAM_APDU [05:31:45]CAPDU: 80 0D 02 02 6E 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 C7 D7 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 15 0E 01 00 35 04 06 00 B3 83 2D 9B 24 D2 [05:31:45]Write to MH i2c: E2 76 00 2C 36 80 0D 02 02 6E 00 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 C7 D7 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 15 0E 01 00 35 04 06 00 B3 83 2D 9B 24 D2 00 00 3C [05:31:45]Write i2c OK [05:31:45]MH_I2C_Read... [05:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:45]Read from MH i2c: E2 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 03 00 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 03 00 2C 36 00 90 00 D6 [05:31:45]RAPDU: 90 00 [05:31:45]wFMCommunicate OK [05:31:45]wFMCommunicate request_size=4 [05:31:45]MH_SAM_APDU [05:31:45]CAPDU: 80 0D 03 02 [05:31:45]Write to MH i2c: E2 08 00 2D 36 80 0D 03 02 00 00 00 00 DE [05:31:45]Write i2c OK [05:31:45]MH_I2C_Read... [05:31:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:31:45]Read from MH i2c: E2 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 0B 00 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 0B 00 2D 36 00 46 AF 46 DE 40 99 3E 97 90 00 A6 [05:31:45]RAPDU: 46 AF 46 DE 40 99 3E 97 90 00 [05:31:45]wFMCommunicate OK [05:31:45]SAM_PROTO_SignData done [05:31:45]FM_MakeSignedData done [05:31:45]CreateOFDProtocolMessage [05:31:45]wFMCommunicate request_size=4 [05:31:45]MH_SAM_APDU [05:31:45]CAPDU: 80 11 00 00 [05:31:45]Write to MH i2c: E2 08 00 2E 36 80 11 00 00 00 00 00 00 DE [05:31:45]Write i2c OK [05:31:45]MH_I2C_Read... [05:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:31:45]Read from MH i2c: E2 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 17 00 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: E2 17 00 2E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3A [05:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:31:45]wFMCommunicate OK [05:31:45]CreateOFDProtocolMessage done [05:31:45]OFDSenderStorePacket 69141 [05:31:45]StoreOFDPacket docnum=69141 [05:31:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 72 02 00 00 EC DA 6A 02 89 17 5A 03 01 00 03 00 5E 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 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 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 C7 D7 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 15 0E 01 00 35 04 06 00 B3 83 2D 9B 24 D2 46 AF 46 DE 40 99 3E 97 [05:31:45]CheckFolder [05:31:45]dirname=/storage/ofd_packets [05:31:45]CheckFolder done [05:31:45]ProducePacketName [05:31:45]name=ofd_packets/00069141 [05:31:45]NVStorageSaveData ofd_packets/00069141 [05:31:45]File name is /storage/ofd_packets/00069141 [05:31:45]Write 656 bytes [05:31:45]NVStorageSaveData done [05:31:45]OFDSenderStorePacket done [05:31:45]KKMCreateOFDPacket done [05:31:45]NVStorageSaveData kkm_last_timestamp [05:31:45]File name is /storage/kkm_last_timestamp [05:31:45]Write 4 bytes [05:31:45]NVStorageSaveData done [05:31:45]ExternCall_PrintAddStr [05:31:45]wPrintStart [05:31:45]Write to MH i2c: 01 00 00 2F 36 65 [05:31:45]Write i2c OK [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: 01 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: 01 07 00 [05:31:45]MH_I2C_Read... [05:31:45]Read from MH i2c: 01 07 00 2F 36 00 00 00 00 00 FF 0F 7A [05:31:45]RasterBufferAndPrint [05:31:45]line Счет N : (3)136541 [05:31:45]line ИНН: 02508201610067 [05:31:45]line Контрольно-Кассовый Чек [05:31:45]line ПРОДАЖА [05:31:45]line Товар: 4870022003305 [05:31:45]line Напиток Gorilla эн нат ж/б 0,5/0,45л [05:31:45]line 1.000 * 110.00 [05:31:45]line = 110.00 [05:31:45]line НДС 12% НСП 1% [05:31:45]line > о реализуемом товаре [05:31:45]line Товар: 4870145004753 [05:31:46]line Напиток Garage hard lemon ст 0,4л [05:31:46]line 1.000 * 120.00 [05:31:46]line = 120.00 [05:31:46]line НДС 12% НСП 1% [05:31:46]line > о реализуемом товаре [05:31:46]line Товар: 4700001610012 [05:31:46]line Пиво Арпа 0,5л [05:31:46]line 2.000 * 145.00 [05:31:46]line = 290.00 [05:31:46]line НДС 12% НСП 1% [05:31:46]line > о реализуемом товаре [05:31:46]line Товар: 48744119 [05:31:46]line Сигареты Winston Xstyle Dual [05:31:46]line 1.000 * 145.00 [05:31:46]line = 145.00 [05:31:46]line НДС 12% НСП 1% [05:31:46]line > о реализуемом товаре [05:31:46]line ИТОГО: 665.00 [05:31:46]line НСП 1% : 5.88 [05:31:46]line НДС 12% : 70.62 [05:31:46]line Наличными: 665.00 [05:31:46]line Безнал.: 0.00 [05:31:46]line Место: АЗС № 125 "Партнер Нефть" [05:31:46]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [05:31:46]line СНО: Общий режим [05:31:46]line Чек 24 28.07.2024 05:31 [05:31:46]line Смена: 429 ФФД: 1.0 [05:31:46]line ЗНМ: 0300000049 [05:31:46]line РНМ: 0000000000092638 [05:31:46]line Версия ККМ: 001 [05:31:46]line ФМ: 0000000000874949 [05:31:46]line ФД: 69141 [05:31:46]line ФПД: 197375987229906 [05:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T053151&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69141&fm=197375987229906&tin=02508201610067®Number=0000000000092638&sum=66500 [05:31:46]OFD Sender: Processing packet 69141 [packets to send 19, broken 18] [05:31:46]ProducePacketName [05:31:46]name=ofd_packets/00069141 [05:31:46]OFD Sender: To server: pG, [05:31:46]CommunicateWithHost lk.salyk.kg:30040 [05:31:46]ConnectInit lk.salyk.kg [05:31:46]line 0 [05:31:46]written 0, free lines is 4095 [05:31:46]Connected sock=9 [05:31:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 72 02 00 00 EC DA 6A 02 89 17 5A 03 01 00 03 00 5E 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 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 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 C7 D7 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 15 0E 01 00 35 04 06 00 B3 83 2D 9B 24 D2 46 AF 46 DE 40 99 3E 97 [05:31:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 00 0C 47 00 4A 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 15 0E 01 00 F4 03 04 00 38 7E A5 66 B6 04 01 00 00 D8 6E 36 93 66 57 AC 87 [05:31:46]CommunicateWithHost err = 0 [05:31:46]CheckOFDResponse [05:31:46]1017 (14) - 77093643461234 [05:31:46]1041 (16) - 0000000000874949 [05:31:46]1040 (4) - 69141 [05:31:46]1012 (4) - 27.07.2024 23:09 [05:31:46]1206 (1) - 0 [05:31:46]OFD Sender: Remove packet 69141 [05:31:46]ProducePacketName [05:31:46]name=ofd_packets/00069141 [05:31:46]NVStorageDeleteData [05:31:46]Write to MH i2c: 01 00 00 6B 36 A1 [05:31:46]Write i2c OK [05:31:46]MH_I2C_Read... [05:31:46]Read from MH i2c: 01 [05:31:46]MH_I2C_Read... [05:31:46]Read from MH i2c: 01 07 00 [05:31:46]MH_I2C_Read... [05:31:46]Read from MH i2c: 01 07 00 6B 36 00 00 00 00 00 0B 0C BF [05:31:46]RasterBufferAndPrint [05:31:46]line [05:31:46]line [05:31:46]line [05:31:46]line [05:31:46]line [05:31:46]written 0, free lines is 3093 [05:31:46]MH_Cut [05:31:46]Write to MH i2c: D1 01 00 72 36 01 7A [05:31:46]Write i2c OK [05:31:46]MH_I2C_Read... [05:31:46]Read from MH i2c: D1 [05:31:46]MH_I2C_Read... [05:31:46]Read from MH i2c: D1 01 00 [05:31:46]MH_I2C_Read... [05:31:46]Read from MH i2c: D1 01 00 72 36 00 79 [05:31:46]Write to MH i2c: 01 00 00 73 36 A9 [05:31:46]Write i2c OK [05:31:46]MH_I2C_Read... [05:31:47]OFD Sender: No OFD packet to send [05:31:47]*** Cut start [05:31:47]*** Partial cut [05:31:47]*** CUTSNS_PIN = 1 [05:31:47]*** CUTSNS_PIN = 0 [05:31:47]*** Brake cut motor [05:31:48]Read from MH i2c: 01 [05:31:48]MH_I2C_Read... [05:31:48]*** Stop cut motor [05:31:48]*** Cut end [05:31:48]Read from MH i2c: 01 07 00 [05:31:48]MH_I2C_Read... [05:31:48]Read from MH i2c: 01 07 00 73 36 00 00 00 00 00 FF 0F BE [05:31:48]process_action close_receipt done [05:31:48]requested_data is exist [05:31:48]produce_requested_data [05:31:48]requested_item fm.sn is exist - process it [05:31:48]wFMCommunicate request_size=4 [05:31:48]MH_SAM_APDU [05:31:48]CAPDU: 80 11 00 00 [05:31:48]Write to MH i2c: E2 08 00 74 36 80 11 00 00 00 00 00 00 24 [05:31:48]Write i2c OK [05:31:48]MH_I2C_Read... [05:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:31:48]Read from MH i2c: E2 [05:31:48]MH_I2C_Read... [05:31:48]Read from MH i2c: E2 17 00 [05:31:48]MH_I2C_Read... [05:31:48]Read from MH i2c: E2 17 00 74 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 80 [05:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:31:48]wFMCommunicate OK [05:31:48]requested_item fd.num is exist - process it [05:31:48]SAM_PROTO_GetFieldsCounters [05:31:48]wFMCommunicate request_size=4 [05:31:48]MH_SAM_APDU [05:31:48]CAPDU: 80 13 00 00 [05:31:48]Write to MH i2c: E2 08 00 75 36 80 13 00 00 00 00 00 00 27 [05:31:48]Write i2c OK [05:31:48]MH_I2C_Read... [05:31:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:31:48]Read from MH i2c: E2 [05:31:48]MH_I2C_Read... [05:31:48]Read from MH i2c: E2 62 00 [05:31:48]MH_I2C_Read... [05:31:48]Read from MH i2c: E2 62 00 75 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 15 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [05:31:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 15 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:31:48]wFMCommunicate OK [05:31:48]SAM_PROTO_GetFieldsCounters done [05:31:48]requested_item shift.num is exist - process it [05:31:48]requested_item shift.opened is exist - process it [05:31:48]req_shift_opened [05:31:48]FM_GetShiftState [05:31:48]SAM_PROTO_GetShiftState [05:31:48]wFMCommunicate request_size=4 [05:31:48]MH_SAM_APDU [05:31:48]CAPDU: 80 13 01 00 [05:31:48]Write to MH i2c: E2 08 00 76 36 80 13 01 00 00 00 00 00 29 [05:31:48]Write i2c OK [05:31:48]MH_I2C_Read... [05:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:48]Read from MH i2c: E2 [05:31:48]MH_I2C_Read... [05:31:48]Read from MH i2c: E2 0E 00 [05:31:48]MH_I2C_Read... [05:31:48]Read from MH i2c: E2 0E 00 76 36 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 66 [05:31:48]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [05:31:48]wFMCommunicate OK [05:31:48]SAM_PROTO_GetShiftState done [05:31:48]FM_GetShiftState done [05:31:48]req_shift_opened done [05:31:48]requested_item shift.open_date is exist - process it [05:31:48]req_shift_open_date [05:31:48]req_shift_open_date done [05:31:48]produce_requested_data done [05:31:48]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69141,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [05:31:48]process_action_free close_receipt [05:31:48]json_value_free [05:31:48]json_value_free done [05:31:48]process_json_proto returns [05:31:48]Send response to host [05:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69141,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [05:31:48]free response buf [05:31:48]execute_script done [05:31:48]execute_script returns [05:31:48]free content buf [05:31:48]Sock 7.Close socket [05:31:48]Sock 7.Thread stoped [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:28]accept exits with 10 [05:32:28]New connection [05:32:28]New thread 3066785124 created [05:32:28]Thread 3066641764 joined [05:32:28]Waiting for new connection... [05:32:28] Sock 10.Parse request [05:32:28]Sock 10.Check first char [05:32:28]Sock 10.First char is OK [05:32:28]request: POST /json_proto HTTP/1.0 [05:32:28]Method: POST [05:32:28]URL: /json_proto [05:32:28]Method is POST - this is cgi request [05:32:28]url: /json_proto [05:32:28]query_string will be loaded in cgi processing [05:32:28]execute_cgi json_proto POST (null) [05:32:28]execute_cgi path=json_proto method=POST [05:32:28]POST find Content-Length [05:32:28]Host: 172.17.49.132:8080 [05:32:28]Content-Length: 645 [05:32:28]Content-Type: application/json [05:32:28] [05:32:28]POST finish read [05:32:28]Found Content-Length = 645 [05:32:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136542", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:28]execute_script... [05:32: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)136542", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:28]POST & json_proto [05:32:28]process_json_proto [05:32:28]json parsed OK: [05:32:28]protocol is kg_v1.0 [05:32:28]action value=close_receipt [05:32:28]process_action close_receipt [05:32:28]cmd_close_receipt [05:32:28]MH_GetDate [05:32:28]Write to MH i2c: F0 00 00 77 36 9C [05:32:28]Write i2c OK [05:32:28]MH_I2C_Read... [05:32:28]Read from MH i2c: F0 [05:32:28]MH_I2C_Read... [05:32:28]Read from MH i2c: F0 09 00 [05:32:28]MH_I2C_Read... [05:32:28]Read from MH i2c: F0 09 00 77 36 00 F4 D7 A5 66 E7 4B C0 64 D1 [05:32:28]GetLastDocTimeStamp 1722144711 [05:32:28]current date 1722144756 [05:32:28]FM_GetShiftState [05:32:28]SAM_PROTO_GetShiftState [05:32:28]wFMCommunicate request_size=4 [05:32:28]MH_SAM_APDU [05:32:28]CAPDU: 80 13 01 00 [05:32:28]Write to MH i2c: E2 08 00 78 36 80 13 01 00 00 00 00 00 2B [05:32:28]Write i2c OK [05:32:28]MH_I2C_Read... [05:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:28]Read from MH i2c: E2 [05:32:28]MH_I2C_Read... [05:32:28]Read from MH i2c: E2 0E 00 [05:32:28]MH_I2C_Read... [05:32:28]Read from MH i2c: E2 0E 00 78 36 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 68 [05:32:28]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [05:32:28]wFMCommunicate OK [05:32:28]SAM_PROTO_GetShiftState done [05:32:28]FM_GetShiftState done [05:32:28]opened in 1722127251 [05:32:28]opened+sec_in_day 1722213651 [05:32:28]quantity*price = 6500 [05:32:28]sum+1 = 6501 [05:32:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 25 28.07.2024 05:32 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69142 ФПД: 95172836340471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T053236&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69142&fm=95172836340471&tin=02508201610067®Number=0000000000092638&sum=6500 0 [05:32:30]StoreToDocumentArchive [05:32:30]shift 429 fd 69142 [05:32:30]save to /storage/0429/doc_00069142 [05:32:30]save last doc name /storage/0429/doc_00069142 to /storage/kkm_last_doc_name [05:32:30]save OK [05:32:30]Clear old archive folders... [05:32:30]ProcessDocumentItem done err = 0, tmpTLVsize=272 [05:32:30]tlvbuf is 00AE61A0 [05:32:30]SAM_PROTO_ClearQueue [05:32:30]wFMCommunicate request_size=4 [05:32:30]MH_SAM_APDU [05:32:30]CAPDU: 80 09 00 00 [05:32:30]Write to MH i2c: E2 08 00 85 36 80 09 00 00 00 00 00 00 2D [05:32:30]Write i2c OK [05:32:30]MH_I2C_Read... [05:32:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:32:30]Read from MH i2c: E2 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: E2 03 00 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: E2 03 00 85 36 00 90 00 2F [05:32:30]RAPDU: 90 00 [05:32:30]wFMCommunicate OK [05:32:30]SAM_PROTO_ClearQueue done [05:32:30]KKMCreateOFDPacket [05:32:30]OFDProtocolAddRootSTLVToBuf [05:32:30]FM_MakeSignedData [05:32:30]FM_MakeSignedData [05:32:30]SAM_PROTO_SignData [05:32:30]wFMCommunicate request_size=4 [05:32:30]MH_SAM_APDU [05:32:30]CAPDU: 80 0D 01 02 [05:32:30]Write to MH i2c: E2 08 00 86 36 80 0D 01 02 00 00 00 00 35 [05:32:30]Write i2c OK [05:32:30]MH_I2C_Read... [05:32:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:32:30]Read from MH i2c: E2 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: E2 03 00 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: E2 03 00 86 36 00 90 00 30 [05:32:30]RAPDU: 90 00 [05:32:30]wFMCommunicate OK [05:32:30]wFMCommunicate request_size=255 [05:32:30]MH_SAM_APDU [05:32:30]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F4 D7 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 [05:32:30]Write to MH i2c: E2 02 01 87 36 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F4 D7 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 00 00 21 [05:32:30]Write i2c OK [05:32:30]MH_I2C_Read... [05:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:30]Read from MH i2c: E2 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: E2 03 00 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: E2 03 00 87 36 00 90 00 31 [05:32:30]RAPDU: 90 00 [05:32:30]wFMCommunicate OK [05:32:30]wFMCommunicate request_size=31 [05:32:30]MH_SAM_APDU [05:32:30]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 34 39 10 04 04 00 16 0E 01 00 35 04 06 00 56 8F 27 1A 32 F7 [05:32:30]Write to MH i2c: E2 22 00 88 36 80 0D 02 02 1A 00 30 30 38 37 34 39 34 39 10 04 04 00 16 0E 01 00 35 04 06 00 56 8F 27 1A 32 F7 00 00 E0 [05:32:30]Write i2c OK [05:32:30]MH_I2C_Read... [05:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:30]Read from MH i2c: E2 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: E2 03 00 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: E2 03 00 88 36 00 90 00 32 [05:32:30]RAPDU: 90 00 [05:32:30]wFMCommunicate OK [05:32:30]wFMCommunicate request_size=4 [05:32:30]MH_SAM_APDU [05:32:30]CAPDU: 80 0D 03 02 [05:32:30]Write to MH i2c: E2 08 00 89 36 80 0D 03 02 00 00 00 00 3A [05:32:30]Write i2c OK [05:32:30]MH_I2C_Read... [05:32:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:32:30]Read from MH i2c: E2 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: E2 0B 00 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: E2 0B 00 89 36 00 43 5F B7 02 1C E5 C5 C5 90 00 21 [05:32:30]RAPDU: 43 5F B7 02 1C E5 C5 C5 90 00 [05:32:30]wFMCommunicate OK [05:32:30]SAM_PROTO_SignData done [05:32:30]FM_MakeSignedData done [05:32:30]CreateOFDProtocolMessage [05:32:30]wFMCommunicate request_size=4 [05:32:30]MH_SAM_APDU [05:32:30]CAPDU: 80 11 00 00 [05:32:30]Write to MH i2c: E2 08 00 8A 36 80 11 00 00 00 00 00 00 3A [05:32:30]Write i2c OK [05:32:30]MH_I2C_Read... [05:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:30]Read from MH i2c: E2 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: E2 17 00 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: E2 17 00 8A 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 96 [05:32:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:32:30]wFMCommunicate OK [05:32:30]CreateOFDProtocolMessage done [05:32:30]OFDSenderStorePacket 69142 [05:32:30]StoreOFDPacket docnum=69142 [05:32:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 24 01 00 00 9F F5 1C 01 03 02 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F4 D7 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 16 0E 01 00 35 04 06 00 56 8F 27 1A 32 F7 43 5F B7 02 1C E5 C5 C5 [05:32:30]CheckFolder [05:32:30]dirname=/storage/ofd_packets [05:32:30]CheckFolder done [05:32:30]ProducePacketName [05:32:30]name=ofd_packets/00069142 [05:32:30]NVStorageSaveData ofd_packets/00069142 [05:32:30]File name is /storage/ofd_packets/00069142 [05:32:30]Write 322 bytes [05:32:30]NVStorageSaveData done [05:32:30]OFDSenderStorePacket done [05:32:30]KKMCreateOFDPacket done [05:32:30]NVStorageSaveData kkm_last_timestamp [05:32:30]File name is /storage/kkm_last_timestamp [05:32:30]OFD Sender: Processing packet 69142 [packets to send 19, broken 18] [05:32:30]ProducePacketName [05:32:30]name=ofd_packets/00069142 [05:32:30]OFD Sender: To server: pG, [05:32:30]CommunicateWithHost lk.salyk.kg:30040 [05:32:30]ConnectInit lk.salyk.kg [05:32:30]Write 4 bytes [05:32:30]NVStorageSaveData done [05:32:30]ExternCall_PrintAddStr [05:32:30]wPrintStart [05:32:30]Write to MH i2c: 01 00 00 8B 36 C1 [05:32:30]Write i2c OK [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: 01 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: 01 07 00 [05:32:30]MH_I2C_Read... [05:32:30]Read from MH i2c: 01 07 00 8B 36 00 00 00 00 00 FF 0F D6 [05:32:30]RasterBufferAndPrint [05:32:30]line Счет N : (3)136542 [05:32:30]line ИНН: 02508201610067 [05:32:30]line Контрольно-Кассовый Чек [05:32:30]line ПРОДАЖА [05:32:30]line Товар: 47011656 [05:32:30]line Водка Пшеничная 0,1л [05:32:30]line 1.000 * 65.00 [05:32:30]line = 65.00 [05:32:30]line НДС 12% НСП 1% [05:32:30]line > о реализуемом товаре [05:32:30]line ИТОГО: 65.00 [05:32:30]line НСП 1% : 0.57 [05:32:30]line НДС 12% : 6.90 [05:32:30]line Наличными: 65.00 [05:32:30]line Безнал.: 0.00 [05:32:30]line Место: АЗС № 125 "Партнер Нефть" [05:32:30]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [05:32:30]line СНО: Общий режим [05:32:30]line Чек 25 28.07.2024 05:32 [05:32:30]line Смена: 429 ФФД: 1.0 [05:32:30]line ЗНМ: 0300000049 [05:32:30]line РНМ: 0000000000092638 [05:32:30]line Версия ККМ: 001 [05:32:30]line ФМ: 0000000000874949 [05:32:30]line ФД: 69142 [05:32:30]line ФПД: 95172836340471 [05:32:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T053236&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69142&fm=95172836340471&tin=02508201610067®Number=0000000000092638&sum=6500 [05:32:30]line 0 [05:32:30]Connected sock=11 [05:32: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 39 34 39 24 01 00 00 9F F5 1C 01 03 02 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F4 D7 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 16 0E 01 00 35 04 06 00 56 8F 27 1A 32 F7 43 5F B7 02 1C E5 C5 C5 [05:32:30]written 0, free lines is 4095 [05:32:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 81 24 47 00 79 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 39 34 39 10 04 04 00 16 0E 01 00 F4 03 04 00 64 7E A5 66 B6 04 01 00 00 6B F3 54 75 DF BB 62 EF [05:32:31]CommunicateWithHost err = 0 [05:32:31]CheckOFDResponse [05:32:31]1017 (14) - 77093643461234 [05:32:31]1041 (16) - 0000000000874949 [05:32:31]1040 (4) - 69142 [05:32:31]1012 (4) - 27.07.2024 23:10 [05:32:31]1206 (1) - 0 [05:32:31]OFD Sender: Remove packet 69142 [05:32:31]ProducePacketName [05:32:31]name=ofd_packets/00069142 [05:32:31]NVStorageDeleteData [05:32:31]Write to MH i2c: 01 00 00 B3 36 E9 [05:32:31]Write i2c OK [05:32:31]MH_I2C_Read... [05:32:31]Read from MH i2c: 01 [05:32:31]MH_I2C_Read... [05:32:31]Read from MH i2c: 01 07 00 [05:32:31]MH_I2C_Read... [05:32:31]Read from MH i2c: 01 07 00 B3 36 00 00 00 00 00 0C 0D 09 [05:32:31]RasterBufferAndPrint [05:32:31]line [05:32:31]line [05:32:31]line [05:32:31]line [05:32:31]line [05:32:31]written 0, free lines is 3346 [05:32:31]MH_Cut [05:32:31]Write to MH i2c: D1 01 00 BA 36 01 C2 [05:32:31]Write i2c OK [05:32:31]MH_I2C_Read... [05:32:31]Read from MH i2c: D1 [05:32:31]MH_I2C_Read... [05:32:31]Read from MH i2c: D1 01 00 [05:32:31]MH_I2C_Read... [05:32:31]Read from MH i2c: D1 01 00 BA 36 00 C1 [05:32:31]Write to MH i2c: 01 00 00 BB 36 F1 [05:32:31]Write i2c OK [05:32:31]MH_I2C_Read... [05:32:31]OFD Sender: No OFD packet to send [05:32:31]*** Cut start [05:32:31]*** Partial cut [05:32:31]*** CUTSNS_PIN = 1 [05:32:32]*** CUTSNS_PIN = 0 [05:32:32]*** Brake cut motor [05:32:32]Read from MH i2c: 01 [05:32:32]MH_I2C_Read... [05:32:32]*** Stop cut motor [05:32:32]*** Cut end [05:32:32]Read from MH i2c: 01 07 00 [05:32:32]MH_I2C_Read... [05:32:32]Read from MH i2c: 01 07 00 BB 36 00 00 00 00 00 FF 0F 06 [05:32:32]process_action close_receipt done [05:32:32]requested_data is exist [05:32:32]produce_requested_data [05:32:32]requested_item fm.sn is exist - process it [05:32:32]wFMCommunicate request_size=4 [05:32:32]MH_SAM_APDU [05:32:32]CAPDU: 80 11 00 00 [05:32:32]Write to MH i2c: E2 08 00 BC 36 80 11 00 00 00 00 00 00 6C [05:32:32]Write i2c OK [05:32:32]MH_I2C_Read... [05:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:32]Read from MH i2c: E2 [05:32:32]MH_I2C_Read... [05:32:32]Read from MH i2c: E2 17 00 [05:32:32]MH_I2C_Read... [05:32:32]Read from MH i2c: E2 17 00 BC 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C8 [05:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:32:32]wFMCommunicate OK [05:32:32]requested_item fd.num is exist - process it [05:32:32]SAM_PROTO_GetFieldsCounters [05:32:32]wFMCommunicate request_size=4 [05:32:32]MH_SAM_APDU [05:32:32]CAPDU: 80 13 00 00 [05:32:32]Write to MH i2c: E2 08 00 BD 36 80 13 00 00 00 00 00 00 6F [05:32:32]Write i2c OK [05:32:32]MH_I2C_Read... [05:32:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:32:32]Read from MH i2c: E2 [05:32:32]MH_I2C_Read... [05:32:32]Read from MH i2c: E2 62 00 [05:32:32]MH_I2C_Read... [05:32:32]Read from MH i2c: E2 62 00 BD 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 16 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [05:32: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 16 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:32:32]wFMCommunicate OK [05:32:32]SAM_PROTO_GetFieldsCounters done [05:32:32]requested_item shift.num is exist - process it [05:32:32]requested_item shift.opened is exist - process it [05:32:32]req_shift_opened [05:32:32]FM_GetShiftState [05:32:32]SAM_PROTO_GetShiftState [05:32:32]wFMCommunicate request_size=4 [05:32:32]MH_SAM_APDU [05:32:32]CAPDU: 80 13 01 00 [05:32:32]Write to MH i2c: E2 08 00 BE 36 80 13 01 00 00 00 00 00 71 [05:32:32]Write i2c OK [05:32:32]MH_I2C_Read... [05:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:32]Read from MH i2c: E2 [05:32:32]MH_I2C_Read... [05:32:32]Read from MH i2c: E2 0E 00 [05:32:32]MH_I2C_Read... [05:32:32]Read from MH i2c: E2 0E 00 BE 36 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 AE [05:32:32]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [05:32:32]wFMCommunicate OK [05:32:32]SAM_PROTO_GetShiftState done [05:32:32]FM_GetShiftState done [05:32:32]req_shift_opened done [05:32:32]requested_item shift.open_date is exist - process it [05:32:32]req_shift_open_date [05:32:32]req_shift_open_date done [05:32:32]produce_requested_data done [05:32:32]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69142,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [05:32:32]process_action_free close_receipt [05:32:32]json_value_free [05:32:32]json_value_free done [05:32:32]process_json_proto returns [05:32:32]Send response to host [05:32:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69142,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [05:32:32]free response buf [05:32:32]execute_script done [05:32:32]execute_script returns [05:32:32]free content buf [05:32:32]Sock 10.Close socket [05:32:32]Sock 10.Thread stoped [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]accept exits with 7 [06:21:38]New connection [06:21:38]New thread 3066641764 created [06:21:38]Thread 3066785124 joined [06:21:38]Waiting for new connection... [06:21:38] Sock 7.Parse request [06:21:38]Sock 7.Check first char [06:21:38]Sock 7.First char is OK [06:21:38]request: POST /json_proto HTTP/1.0 [06:21:38]Method: POST [06:21:38]URL: /json_proto [06:21:38]Method is POST - this is cgi request [06:21:38]url: /json_proto [06:21:38]query_string will be loaded in cgi processing [06:21:38]execute_cgi json_proto POST (null) [06:21:38]execute_cgi path=json_proto method=POST [06:21:38]POST find Content-Length [06:21:38]Host: 172.17.49.132:8080 [06:21:38]Content-Length: 676 [06:21:38]Content-Type: application/json [06:21:38] [06:21:38]POST finish read [06:21:38]Found Content-Length = 676 [06:21:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136543", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:38]execute_script... [06:21:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136543", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:38]POST & json_proto [06:21:38]process_json_proto [06:21:38]json parsed OK: [06:21:38]protocol is kg_v1.0 [06:21:38]action value=close_receipt [06:21:38]process_action close_receipt [06:21:38]cmd_close_receipt [06:21:38]MH_GetDate [06:21:38]Write to MH i2c: F0 00 00 BF 36 E4 [06:21:38]Write i2c OK [06:21:38]MH_I2C_Read... [06:21:38]Read from MH i2c: F0 [06:21:38]MH_I2C_Read... [06:21:38]Read from MH i2c: F0 09 00 [06:21:38]MH_I2C_Read... [06:21:38]Read from MH i2c: F0 09 00 BF 36 00 7A E3 A5 66 E7 4B C0 64 AB [06:21:38]GetLastDocTimeStamp 1722144756 [06:21:38]current date 1722147706 [06:21:38]FM_GetShiftState [06:21:38]SAM_PROTO_GetShiftState [06:21:38]wFMCommunicate request_size=4 [06:21:38]MH_SAM_APDU [06:21:38]CAPDU: 80 13 01 00 [06:21:38]Write to MH i2c: E2 08 00 C0 36 80 13 01 00 00 00 00 00 73 [06:21:38]Write i2c OK [06:21:38]MH_I2C_Read... [06:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:21:38]Read from MH i2c: E2 [06:21:38]MH_I2C_Read... [06:21:38]Read from MH i2c: E2 0E 00 [06:21:38]MH_I2C_Read... [06:21:38]Read from MH i2c: E2 0E 00 C0 36 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 B0 [06:21:38]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [06:21:38]wFMCommunicate OK [06:21:38]SAM_PROTO_GetShiftState done [06:21:38]FM_GetShiftState done [06:21:38]opened in 1722127251 [06:21:38]opened+sec_in_day 1722213651 [06:21:38]quantity*price = 11000 [06:21:38]sum+1 = 11001 [06:21:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 26 28.07.2024 06:21 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69143 ФПД: 209658510883867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T062146&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69143&fm=209658510883867&tin=02508201610067®Number=0000000000092638&sum=11000 0 [06:21:39]StoreToDocumentArchive [06:21:39]shift 429 fd 69143 [06:21:39]save to /storage/0429/doc_00069143 [06:21:39]save last doc name /storage/0429/doc_00069143 to /storage/kkm_last_doc_name [06:21:39]save OK [06:21:39]Clear old archive folders... [06:21:39]ProcessDocumentItem done err = 0, tmpTLVsize=284 [06:21:39]tlvbuf is 00A26670 [06:21:39]SAM_PROTO_ClearQueue [06:21:39]wFMCommunicate request_size=4 [06:21:39]MH_SAM_APDU [06:21:39]CAPDU: 80 09 00 00 [06:21:39]Write to MH i2c: E2 08 00 CD 36 80 09 00 00 00 00 00 00 75 [06:21:39]Write i2c OK [06:21:39]MH_I2C_Read... [06:21:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:21:39]Read from MH i2c: E2 [06:21:39]MH_I2C_Read... [06:21:39]Read from MH i2c: E2 03 00 [06:21:39]MH_I2C_Read... [06:21:39]Read from MH i2c: E2 03 00 CD 36 00 90 00 77 [06:21:39]RAPDU: 90 00 [06:21:39]wFMCommunicate OK [06:21:39]SAM_PROTO_ClearQueue done [06:21:39]KKMCreateOFDPacket [06:21:39]OFDProtocolAddRootSTLVToBuf [06:21:39]FM_MakeSignedData [06:21:39]FM_MakeSignedData [06:21:39]SAM_PROTO_SignData [06:21:39]wFMCommunicate request_size=4 [06:21:39]MH_SAM_APDU [06:21:39]CAPDU: 80 0D 01 02 [06:21:39]Write to MH i2c: E2 08 00 CE 36 80 0D 01 02 00 00 00 00 7D [06:21:39]Write i2c OK [06:21:39]MH_I2C_Read... [06:21:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:21:40]Read from MH i2c: E2 [06:21:40]MH_I2C_Read... [06:21:40]Read from MH i2c: E2 03 00 [06:21:40]MH_I2C_Read... [06:21:40]Read from MH i2c: E2 03 00 CE 36 00 90 00 78 [06:21:40]RAPDU: 90 00 [06:21:40]wFMCommunicate OK [06:21:40]wFMCommunicate request_size=255 [06:21:40]MH_SAM_APDU [06:21:40]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 7A E3 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 [06:21:40]Write to MH i2c: E2 02 01 CF 36 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 7A E3 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 00 00 B7 [06:21:40]Write i2c OK [06:21:40]MH_I2C_Read... [06:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:21:40]Read from MH i2c: E2 [06:21:40]MH_I2C_Read... [06:21:40]Read from MH i2c: E2 03 00 [06:21:40]MH_I2C_Read... [06:21:40]Read from MH i2c: E2 03 00 CF 36 00 90 00 79 [06:21:40]RAPDU: 90 00 [06:21:40]wFMCommunicate OK [06:21:40]wFMCommunicate request_size=43 [06:21:40]MH_SAM_APDU [06:21:40]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 17 0E 01 00 35 04 06 00 BE AE ED 10 BC 1B [06:21:40]Write to MH i2c: E2 2E 00 D0 36 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 17 0E 01 00 35 04 06 00 BE AE ED 10 BC 1B 00 00 D7 [06:21:40]Write i2c OK [06:21:40]MH_I2C_Read... [06:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:21:40]Read from MH i2c: E2 [06:21:40]MH_I2C_Read... [06:21:40]Read from MH i2c: E2 03 00 [06:21:40]MH_I2C_Read... [06:21:40]Read from MH i2c: E2 03 00 D0 36 00 90 00 7A [06:21:40]RAPDU: 90 00 [06:21:40]wFMCommunicate OK [06:21:40]wFMCommunicate request_size=4 [06:21:40]MH_SAM_APDU [06:21:40]CAPDU: 80 0D 03 02 [06:21:40]Write to MH i2c: E2 08 00 D1 36 80 0D 03 02 00 00 00 00 82 [06:21:40]Write i2c OK [06:21:40]MH_I2C_Read... [06:21:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:21:40]Read from MH i2c: E2 [06:21:40]MH_I2C_Read... [06:21:40]Read from MH i2c: E2 0B 00 [06:21:40]MH_I2C_Read... [06:21:40]Read from MH i2c: E2 0B 00 D1 36 00 2D 50 0A 78 1B 07 FA CF 90 00 6D [06:21:40]RAPDU: 2D 50 0A 78 1B 07 FA CF 90 00 [06:21:40]wFMCommunicate OK [06:21:40]SAM_PROTO_SignData done [06:21:40]FM_MakeSignedData done [06:21:40]CreateOFDProtocolMessage [06:21:40]wFMCommunicate request_size=4 [06:21:40]MH_SAM_APDU [06:21:40]CAPDU: 80 11 00 00 [06:21:40]Write to MH i2c: E2 08 00 D2 36 80 11 00 00 00 00 00 00 82 [06:21:40]Write i2c OK [06:21:40]MH_I2C_Read... [06:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:21:40]Read from MH i2c: E2 [06:21:40]MH_I2C_Read... [06:21:40]Read from MH i2c: E2 17 00 [06:21:40]MH_I2C_Read... [06:21:40]Read from MH i2c: E2 17 00 D2 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 DE [06:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [06:21:40]wFMCommunicate OK [06:21:40]CreateOFDProtocolMessage done [06:21:40]OFDSenderStorePacket 69143 [06:21:40]StoreOFDPacket docnum=69143 [06:21:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 30 01 00 00 F1 57 28 01 6D F6 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 7A E3 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 17 0E 01 00 35 04 06 00 BE AE ED 10 BC 1B 2D 50 0A 78 1B 07 FA CF [06:21:40]CheckFolder [06:21:40]dirname=/storage/ofd_packets [06:21:40]CheckFolder done [06:21:40]ProducePacketName [06:21:40]name=ofd_packets/00069143 [06:21:40]NVStorageSaveData ofd_packets/00069143 [06:21:40]File name is /storage/ofd_packets/00069143 [06:21:40]Write 334 bytes [06:21:40]NVStorageSaveData done [06:21:40]OFDSenderStorePacket done [06:21:40]KKMCreateOFDPacket done [06:21:40]NVStorageSaveData kkm_last_timestamp [06:21:40]File name is /storage/kkm_last_timestamp [06:21:40]Write 4 bytes [06:21:40]NVStorageSaveData done [06:21:40]ExternCall_PrintAddStr [06:21:40]wPrintStart [06:21:40]Write to MH i2c: 01 00 00 D3 36 09 [06:21:40]Write i2c OK [06:21:40]MH_I2C_Read... [06:21:40]Read from MH i2c: 01 [06:21:40]MH_I2C_Read... [06:21:40]Read from MH i2c: 01 07 00 [06:21:40]MH_I2C_Read... [06:21:40]Read from MH i2c: 01 07 00 D3 36 00 00 00 00 00 FF 0F 1E [06:21:40]RasterBufferAndPrint [06:21:40]line Счет N : (3)136543 [06:21:40]line ИНН: 02508201610067 [06:21:40]line Контрольно-Кассовый Чек [06:21:40]line ПРОДАЖА [06:21:40]line Товар: 4700003241276 [06:21:40]line Напиток Молочный ТАН 1л [06:21:40]line 1.000 * 110.00 [06:21:40]line = 110.00 [06:21:40]line НДС 12% НСП 1% [06:21:40]line > о реализуемом товаре [06:21:40]line ИТОГО: 110.00 [06:21:40]line НСП 1% : 0.97 [06:21:40]line НДС 12% : 11.68 [06:21:40]line Наличными: 110.00 [06:21:40]line Безнал.: 0.00 [06:21:40]line Место: АЗС № 125 "Партнер Нефть" [06:21:40]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [06:21:40]line СНО: Общий режим [06:21:40]line Чек 26 28.07.2024 06:21 [06:21:40]line Смена: 429 ФФД: 1.0 [06:21:40]line ЗНМ: 0300000049 [06:21:40]line РНМ: 0000000000092638 [06:21:40]line Версия ККМ: 001 [06:21:40]line ФМ: 0000000000874949 [06:21:40]line ФД: 69143 [06:21:40]line ФПД: 209658510883867 [06:21:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T062146&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69143&fm=209658510883867&tin=02508201610067®Number=0000000000092638&sum=11000 [06:21:40]OFD Sender: Processing packet 69143 [packets to send 19, broken 18] [06:21:40]ProducePacketName [06:21:40]name=ofd_packets/00069143 [06:21:40]OFD Sender: To server: pG, [06:21:40]CommunicateWithHost lk.salyk.kg:30040 [06:21:40]ConnectInit lk.salyk.kg [06:21:40]line 0 [06:21:40]written 0, free lines is 4095 [06:21:40]Connected sock=10 [06:21: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 39 34 39 30 01 00 00 F1 57 28 01 6D F6 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 7A E3 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 17 0E 01 00 35 04 06 00 BE AE ED 10 BC 1B 2D 50 0A 78 1B 07 FA CF [06:21:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 68 64 47 00 65 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 17 0E 01 00 F4 03 04 00 EA 89 A5 66 B6 04 01 00 00 D9 28 73 30 64 8E 7C 0E [06:21:41]CommunicateWithHost err = 0 [06:21:41]CheckOFDResponse [06:21:41]1017 (14) - 77093643461234 [06:21:41]1041 (16) - 0000000000874949 [06:21:41]1040 (4) - 69143 [06:21:41]1012 (4) - 27.07.2024 23:59 [06:21:41]1206 (1) - 0 [06:21:41]OFD Sender: Remove packet 69143 [06:21:41]ProducePacketName [06:21:41]name=ofd_packets/00069143 [06:21:41]NVStorageDeleteData [06:21:41]Write to MH i2c: 01 00 00 FB 36 31 [06:21:41]Write i2c OK [06:21:41]MH_I2C_Read... [06:21:41]Read from MH i2c: 01 [06:21:41]MH_I2C_Read... [06:21:41]Read from MH i2c: 01 07 00 [06:21:41]MH_I2C_Read... [06:21:41]Read from MH i2c: 01 07 00 FB 36 00 00 00 00 00 26 0D 6B [06:21:41]RasterBufferAndPrint [06:21:41]line [06:21:41]line [06:21:41]line [06:21:41]line [06:21:41]line [06:21:41]written 0, free lines is 3375 [06:21:41]MH_Cut [06:21:41]Write to MH i2c: D1 01 00 02 37 01 0B [06:21:41]Write i2c OK [06:21:41]MH_I2C_Read... [06:21:41]Read from MH i2c: D1 [06:21:41]MH_I2C_Read... [06:21:41]Read from MH i2c: D1 01 00 [06:21:41]MH_I2C_Read... [06:21:41]Read from MH i2c: D1 01 00 02 37 00 0A [06:21:41]Write to MH i2c: 01 00 00 03 37 3A [06:21:41]Write i2c OK [06:21:41]MH_I2C_Read... [06:21:41]OFD Sender: No OFD packet to send [06:21:41]*** Cut start [06:21:41]*** Partial cut [06:21:41]*** CUTSNS_PIN = 1 [06:21:41]*** CUTSNS_PIN = 0 [06:21:42]*** Brake cut motor [06:21:42]Read from MH i2c: 01 [06:21:42]MH_I2C_Read... [06:21:42]*** Stop cut motor [06:21:42]*** Cut end [06:21:42]Read from MH i2c: 01 07 00 [06:21:42]MH_I2C_Read... [06:21:42]Read from MH i2c: 01 07 00 03 37 00 00 00 00 00 FF 0F 4F [06:21:42]process_action close_receipt done [06:21:42]requested_data is exist [06:21:42]produce_requested_data [06:21:42]requested_item fm.sn is exist - process it [06:21:42]wFMCommunicate request_size=4 [06:21:42]MH_SAM_APDU [06:21:42]CAPDU: 80 11 00 00 [06:21:42]Write to MH i2c: E2 08 00 04 37 80 11 00 00 00 00 00 00 B5 [06:21:42]Write i2c OK [06:21:42]MH_I2C_Read... [06:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:21:42]Read from MH i2c: E2 [06:21:42]MH_I2C_Read... [06:21:42]Read from MH i2c: E2 17 00 [06:21:42]MH_I2C_Read... [06:21:42]Read from MH i2c: E2 17 00 04 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 11 [06:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [06:21:42]wFMCommunicate OK [06:21:42]requested_item fd.num is exist - process it [06:21:42]SAM_PROTO_GetFieldsCounters [06:21:42]wFMCommunicate request_size=4 [06:21:42]MH_SAM_APDU [06:21:42]CAPDU: 80 13 00 00 [06:21:42]Write to MH i2c: E2 08 00 05 37 80 13 00 00 00 00 00 00 B8 [06:21:42]Write i2c OK [06:21:42]MH_I2C_Read... [06:21:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:21:42]Read from MH i2c: E2 [06:21:42]MH_I2C_Read... [06:21:42]Read from MH i2c: E2 62 00 [06:21:42]MH_I2C_Read... [06:21:42]Read from MH i2c: E2 62 00 05 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 17 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [06:21: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 17 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:21:42]wFMCommunicate OK [06:21:42]SAM_PROTO_GetFieldsCounters done [06:21:42]requested_item shift.num is exist - process it [06:21:42]requested_item shift.opened is exist - process it [06:21:42]req_shift_opened [06:21:42]FM_GetShiftState [06:21:42]SAM_PROTO_GetShiftState [06:21:42]wFMCommunicate request_size=4 [06:21:42]MH_SAM_APDU [06:21:42]CAPDU: 80 13 01 00 [06:21:42]Write to MH i2c: E2 08 00 06 37 80 13 01 00 00 00 00 00 BA [06:21:42]Write i2c OK [06:21:42]MH_I2C_Read... [06:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:21:42]Read from MH i2c: E2 [06:21:42]MH_I2C_Read... [06:21:42]Read from MH i2c: E2 0E 00 [06:21:42]MH_I2C_Read... [06:21:42]Read from MH i2c: E2 0E 00 06 37 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F7 [06:21:42]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [06:21:42]wFMCommunicate OK [06:21:42]SAM_PROTO_GetShiftState done [06:21:42]FM_GetShiftState done [06:21:42]req_shift_opened done [06:21:42]requested_item shift.open_date is exist - process it [06:21:42]req_shift_open_date [06:21:42]req_shift_open_date done [06:21:42]produce_requested_data done [06:21:42]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69143,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [06:21:42]process_action_free close_receipt [06:21:42]json_value_free [06:21:42]json_value_free done [06:21:42]process_json_proto returns [06:21:42]Send response to host [06:21:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69143,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [06:21:42]free response buf [06:21:42]execute_script done [06:21:42]execute_script returns [06:21:42]free content buf [06:21:42]Sock 7.Close socket [06:21:42]Sock 7.Thread stoped [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:18]accept exits with 9 [06:24:18]New connection [06:24:18]New thread 3066785124 created [06:24:18]Thread 3066641764 joined [06:24:18]Waiting for new connection... [06:24:18] Sock 9.Parse request [06:24:18]Sock 9.Check first char [06:24:18]Sock 9.First char is OK [06:24:18]request: POST /json_proto HTTP/1.0 [06:24:18]Method: POST [06:24:18]URL: /json_proto [06:24:18]Method is POST - this is cgi request [06:24:18]url: /json_proto [06:24:18]query_string will be loaded in cgi processing [06:24:18]execute_cgi json_proto POST (null) [06:24:18]execute_cgi path=json_proto method=POST [06:24:18]POST find Content-Length [06:24:18]Host: 172.17.49.132:8080 [06:24:18]Content-Length: 1105 [06:24:18]Content-Type: application/json [06:24:18] [06:24:18]POST finish read [06:24:18]Found Content-Length = 1105 [06:24:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136544", "tax_sys" : 0, "items" : [ { "code": "4700001610043", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 1,5\u043B \u041F\u042D\u0422", "price" : 325.00, "quantity" : 1.000, "sum" : 325.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:24:18]execute_script... [06:24: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)136544", "tax_sys" : 0, "items" : [ { "code": "4700001610043", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 1,5\u043B \u041F\u042D\u0422", "price" : 325.00, "quantity" : 1.000, "sum" : 325.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:24:18]POST & json_proto [06:24:18]process_json_proto [06:24:18]json parsed OK: [06:24:18]protocol is kg_v1.0 [06:24:18]action value=close_receipt [06:24:18]process_action close_receipt [06:24:18]cmd_close_receipt [06:24:18]MH_GetDate [06:24:18]Write to MH i2c: F0 00 00 07 37 2D [06:24:18]Write i2c OK [06:24:18]MH_I2C_Read... [06:24:18]Read from MH i2c: F0 [06:24:18]MH_I2C_Read... [06:24:18]Read from MH i2c: F0 09 00 [06:24:18]MH_I2C_Read... [06:24:18]Read from MH i2c: F0 09 00 07 37 00 19 E4 A5 66 E7 4B C0 64 94 [06:24:18]GetLastDocTimeStamp 1722147706 [06:24:18]current date 1722147865 [06:24:18]FM_GetShiftState [06:24:18]SAM_PROTO_GetShiftState [06:24:18]wFMCommunicate request_size=4 [06:24:18]MH_SAM_APDU [06:24:18]CAPDU: 80 13 01 00 [06:24:18]Write to MH i2c: E2 08 00 08 37 80 13 01 00 00 00 00 00 BC [06:24:18]Write i2c OK [06:24:18]MH_I2C_Read... [06:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:18]Read from MH i2c: E2 [06:24:18]MH_I2C_Read... [06:24:18]Read from MH i2c: E2 0E 00 [06:24:18]MH_I2C_Read... [06:24:18]Read from MH i2c: E2 0E 00 08 37 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F9 [06:24:18]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [06:24:18]wFMCommunicate OK [06:24:18]SAM_PROTO_GetShiftState done [06:24:18]FM_GetShiftState done [06:24:18]opened in 1722127251 [06:24:18]opened+sec_in_day 1722213651 [06:24:18]quantity*price = 32500 [06:24:18]sum+1 = 32501 [06:24:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 450.00 НСП 1% : 3.99 НДС 12% : 47.78 Наличными: 0.00 Безнал.: 450.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 27 28.07.2024 06:24 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69144 ФПД: 237863954454742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T062425&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69144&fm=237863954454742&tin=02508201610067®Number=0000000000092638&sum=45000 0 [06:24:19]StoreToDocumentArchive [06:24:19]shift 429 fd 69144 [06:24:19]save to /storage/0429/doc_00069144 [06:24:19]save last doc name /storage/0429/doc_00069144 to /storage/kkm_last_doc_name [06:24:19]save OK [06:24:19]Clear old archive folders... [06:24:19]ProcessDocumentItem done err = 0, tmpTLVsize=386 [06:24:19]tlvbuf is 00A26320 [06:24:19]SAM_PROTO_ClearQueue [06:24:19]wFMCommunicate request_size=4 [06:24:19]MH_SAM_APDU [06:24:19]CAPDU: 80 09 00 00 [06:24:19]Write to MH i2c: E2 08 00 15 37 80 09 00 00 00 00 00 00 BE [06:24:19]Write i2c OK [06:24:19]MH_I2C_Read... [06:24:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:24:19]Read from MH i2c: E2 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: E2 03 00 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: E2 03 00 15 37 00 90 00 C0 [06:24:19]RAPDU: 90 00 [06:24:19]wFMCommunicate OK [06:24:19]SAM_PROTO_ClearQueue done [06:24:19]KKMCreateOFDPacket [06:24:19]OFDProtocolAddRootSTLVToBuf [06:24:19]FM_MakeSignedData [06:24:19]FM_MakeSignedData [06:24:19]SAM_PROTO_SignData [06:24:19]wFMCommunicate request_size=4 [06:24:19]MH_SAM_APDU [06:24:19]CAPDU: 80 0D 01 02 [06:24:19]Write to MH i2c: E2 08 00 16 37 80 0D 01 02 00 00 00 00 C6 [06:24:19]Write i2c OK [06:24:19]MH_I2C_Read... [06:24:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:24:19]Read from MH i2c: E2 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: E2 03 00 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: E2 03 00 16 37 00 90 00 C1 [06:24:19]RAPDU: 90 00 [06:24:19]wFMCommunicate OK [06:24:19]wFMCommunicate request_size=255 [06:24:19]MH_SAM_APDU [06:24:19]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 F4 7E 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 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 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [06:24:19]Write to MH i2c: E2 02 01 17 37 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 F4 7E 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 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 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 69 [06:24:19]Write i2c OK [06:24:19]MH_I2C_Read... [06:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:19]Read from MH i2c: E2 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: E2 03 00 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: E2 03 00 17 37 00 90 00 C2 [06:24:19]RAPDU: 90 00 [06:24:19]wFMCommunicate OK [06:24:19]wFMCommunicate request_size=145 [06:24:19]MH_SAM_APDU [06:24:19]CAPDU: 80 0D 02 02 8C 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 19 E4 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 18 0E 01 00 35 04 06 00 D8 56 04 82 98 D6 [06:24:19]Write to MH i2c: E2 94 00 18 37 80 0D 02 02 8C 00 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 19 E4 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 18 0E 01 00 35 04 06 00 D8 56 04 82 98 D6 00 00 FD [06:24:19]Write i2c OK [06:24:19]MH_I2C_Read... [06:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:19]Read from MH i2c: E2 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: E2 03 00 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: E2 03 00 18 37 00 90 00 C3 [06:24:19]RAPDU: 90 00 [06:24:19]wFMCommunicate OK [06:24:19]wFMCommunicate request_size=4 [06:24:19]MH_SAM_APDU [06:24:19]CAPDU: 80 0D 03 02 [06:24:19]Write to MH i2c: E2 08 00 19 37 80 0D 03 02 00 00 00 00 CB [06:24:19]Write i2c OK [06:24:19]MH_I2C_Read... [06:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:24:19]Read from MH i2c: E2 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: E2 0B 00 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: E2 0B 00 19 37 00 46 69 32 56 CF C5 83 EB 90 00 05 [06:24:19]RAPDU: 46 69 32 56 CF C5 83 EB 90 00 [06:24:19]wFMCommunicate OK [06:24:19]SAM_PROTO_SignData done [06:24:19]FM_MakeSignedData done [06:24:19]CreateOFDProtocolMessage [06:24:19]wFMCommunicate request_size=4 [06:24:19]MH_SAM_APDU [06:24:19]CAPDU: 80 11 00 00 [06:24:19]Write to MH i2c: E2 08 00 1A 37 80 11 00 00 00 00 00 00 CB [06:24:19]Write i2c OK [06:24:19]MH_I2C_Read... [06:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:19]Read from MH i2c: E2 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: E2 17 00 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: E2 17 00 1A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 27 [06:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [06:24:19]wFMCommunicate OK [06:24:19]CreateOFDProtocolMessage done [06:24:19]OFDSenderStorePacket 69144 [06:24:19]StoreOFDPacket docnum=69144 [06:24:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 96 01 00 00 41 BB 8E 01 07 93 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 F4 7E 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 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 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 19 E4 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 18 0E 01 00 35 04 06 00 D8 56 04 82 98 D6 46 69 32 56 CF C5 83 EB [06:24:19]CheckFolder [06:24:19]dirname=/storage/ofd_packets [06:24:19]CheckFolder done [06:24:19]ProducePacketName [06:24:19]name=ofd_packets/00069144 [06:24:19]NVStorageSaveData ofd_packets/00069144 [06:24:19]File name is /storage/ofd_packets/00069144 [06:24:19]Write 436 bytes [06:24:19]NVStorageSaveData done [06:24:19]OFDSenderStorePacket done [06:24:19]KKMCreateOFDPacket done [06:24:19]NVStorageSaveData kkm_last_timestamp [06:24:19]File name is /storage/kkm_last_timestamp [06:24:19]Write 4 bytes [06:24:20]NVStorageSaveData done [06:24:20]ExternCall_PrintAddStr [06:24:20]wPrintStart [06:24:20]Write to MH i2c: 01 00 00 1B 37 52 [06:24:20]OFD Sender: Processing packet 69144 [packets to send 19, broken 18] [06:24:20]ProducePacketName [06:24:20]name=ofd_packets/00069144 [06:24:20]OFD Sender: To server: pG, [06:24:20]CommunicateWithHost lk.salyk.kg:30040 [06:24:20]ConnectInit lk.salyk.kg [06:24:20]Write i2c OK [06:24:20]MH_I2C_Read... [06:24:20]Read from MH i2c: 01 [06:24:20]MH_I2C_Read... [06:24:20]Read from MH i2c: 01 07 00 [06:24:20]MH_I2C_Read... [06:24:20]Read from MH i2c: 01 07 00 1B 37 00 00 00 00 00 FF 0F 67 [06:24:20]RasterBufferAndPrint [06:24:20]line Счет N : (3)136544 [06:24:20]line ИНН: 02508201610067 [06:24:20]line Контрольно-Кассовый Чек [06:24:20]line ПРОДАЖА [06:24:20]line Товар: 4700001610043 [06:24:20]line Пиво Арпа 1,5л ПЭТ [06:24:20]line 1.000 * 325.00 [06:24:20]line = 325.00 [06:24:20]line НДС 12% НСП 1% [06:24:20]line > о реализуемом товаре [06:24:20]line Товар: 2000036190018 [06:24:20]line Кофе Американо XL(GABB TRADE) [06:24:20]line 1.000 * 125.00 [06:24:20]line = 125.00 [06:24:20]line НДС 12% НСП 1% [06:24:20]line > о реализуемом товаре [06:24:20]line ИТОГО: 450.00 [06:24:20]line НСП 1% : 3.99 [06:24:20]line НДС 12% : 47.78 [06:24:20]line Наличными: 0.00 [06:24:20]line Безнал.: 450.00 [06:24:20]line Место: АЗС № 125 "Партнер Нефть" [06:24:20]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [06:24:20]line СНО: Общий режим [06:24:20]line Чек 27 28.07.2024 06:24 [06:24:20]line Смена: 429 ФФД: 1.0 [06:24:20]line ЗНМ: 0300000049 [06:24:20]line РНМ: 0000000000092638 [06:24:20]line Версия ККМ: 001 [06:24:20]line Платежная система: АКБ Кыргызстан [06:24:20]line ФМ: 0000000000874949 [06:24:20]line ФД: 69144 [06:24:20]line ФПД: 237863954454742 [06:24:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T062425&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69144&fm=237863954454742&tin=02508201610067®Number=0000000000092638&sum=45000 [06:24:20]line 0 [06:24:20]written 0, free lines is 4095 [06:24:20]Connected sock=10 [06:24: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 39 34 39 96 01 00 00 41 BB 8E 01 07 93 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 F4 7E 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 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 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 19 E4 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 18 0E 01 00 35 04 06 00 D8 56 04 82 98 D6 46 69 32 56 CF C5 83 EB [06:24:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 8D C3 47 00 AB 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 18 0E 01 00 F4 03 04 00 8A 8A A5 66 B6 04 01 00 00 46 AC BD 0D DF 52 B5 3F [06:24:20]CommunicateWithHost err = 0 [06:24:20]CheckOFDResponse [06:24:20]1017 (14) - 77093643461234 [06:24:20]1041 (16) - 0000000000874949 [06:24:20]1040 (4) - 69144 [06:24:20]1012 (4) - 28.07.2024 00:02 [06:24:20]1206 (1) - 0 [06:24:20]OFD Sender: Remove packet 69144 [06:24:20]ProducePacketName [06:24:20]name=ofd_packets/00069144 [06:24:20]NVStorageDeleteData [06:24:20]Write to MH i2c: 01 00 00 4C 37 83 [06:24:20]Write i2c OK [06:24:20]MH_I2C_Read... [06:24:20]Read from MH i2c: 01 [06:24:20]MH_I2C_Read... [06:24:20]Read from MH i2c: 01 07 00 [06:24:20]MH_I2C_Read... [06:24:20]Read from MH i2c: 01 07 00 4C 37 00 00 00 00 00 AA 0C 40 [06:24:20]RasterBufferAndPrint [06:24:20]line [06:24:20]line [06:24:20]line [06:24:20]line [06:24:20]line [06:24:20]written 0, free lines is 3251 [06:24:20]MH_Cut [06:24:20]Write to MH i2c: D1 01 00 53 37 01 5C [06:24:20]Write i2c OK [06:24:20]MH_I2C_Read... [06:24:20]Read from MH i2c: D1 [06:24:20]MH_I2C_Read... [06:24:20]Read from MH i2c: D1 01 00 [06:24:20]MH_I2C_Read... [06:24:20]Read from MH i2c: D1 01 00 53 37 00 5B [06:24:20]Write to MH i2c: 01 00 00 54 37 8B [06:24:20]Write i2c OK [06:24:20]MH_I2C_Read... [06:24:21]OFD Sender: No OFD packet to send [06:24:21]*** Cut start [06:24:21]*** Partial cut [06:24:21]*** CUTSNS_PIN = 1 [06:24:21]*** CUTSNS_PIN = 0 [06:24:21]*** Brake cut motor [06:24:22]Read from MH i2c: 01 [06:24:22]MH_I2C_Read... [06:24:22]*** Stop cut motor [06:24:22]*** Cut end [06:24:22]Read from MH i2c: 01 07 00 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: 01 07 00 54 37 00 00 00 00 00 FF 0F A0 [06:24:22]process_action close_receipt done [06:24:22]requested_data is exist [06:24:22]produce_requested_data [06:24:22]requested_item fm.sn is exist - process it [06:24:22]wFMCommunicate request_size=4 [06:24:22]MH_SAM_APDU [06:24:22]CAPDU: 80 11 00 00 [06:24:22]Write to MH i2c: E2 08 00 55 37 80 11 00 00 00 00 00 00 06 [06:24:22]Write i2c OK [06:24:22]MH_I2C_Read... [06:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:22]Read from MH i2c: E2 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: E2 17 00 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: E2 17 00 55 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 62 [06:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [06:24:22]wFMCommunicate OK [06:24:22]requested_item fd.num is exist - process it [06:24:22]SAM_PROTO_GetFieldsCounters [06:24:22]wFMCommunicate request_size=4 [06:24:22]MH_SAM_APDU [06:24:22]CAPDU: 80 13 00 00 [06:24:22]Write to MH i2c: E2 08 00 56 37 80 13 00 00 00 00 00 00 09 [06:24:22]Write i2c OK [06:24:22]MH_I2C_Read... [06:24:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:24:22]Read from MH i2c: E2 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: E2 62 00 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: E2 62 00 56 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 18 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [06:24: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 18 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:24:22]wFMCommunicate OK [06:24:22]SAM_PROTO_GetFieldsCounters done [06:24:22]requested_item shift.num is exist - process it [06:24:22]requested_item shift.opened is exist - process it [06:24:22]req_shift_opened [06:24:22]FM_GetShiftState [06:24:22]SAM_PROTO_GetShiftState [06:24:22]wFMCommunicate request_size=4 [06:24:22]MH_SAM_APDU [06:24:22]CAPDU: 80 13 01 00 [06:24:22]Write to MH i2c: E2 08 00 57 37 80 13 01 00 00 00 00 00 0B [06:24:22]Write i2c OK [06:24:22]MH_I2C_Read... [06:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:22]Read from MH i2c: E2 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: E2 0E 00 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: E2 0E 00 57 37 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 48 [06:24:22]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [06:24:22]wFMCommunicate OK [06:24:22]SAM_PROTO_GetShiftState done [06:24:22]FM_GetShiftState done [06:24:22]req_shift_opened done [06:24:22]requested_item shift.open_date is exist - process it [06:24:22]req_shift_open_date [06:24:22]req_shift_open_date done [06:24:22]produce_requested_data done [06:24:22]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69144,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [06:24:22]process_action_free close_receipt [06:24:22]json_value_free [06:24:22]json_value_free done [06:24:22]process_json_proto returns [06:24:22]Send response to host [06:24:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69144,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [06:24:22]free response buf [06:24:22]execute_script done [06:24:22]execute_script returns [06:24:22]free content buf [06:24:22]Sock 9.Close socket [06:24:22]Sock 9.Thread stoped [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:40]accept exits with 7 [06:24:40]New connection [06:24:40]New thread 3066641764 created [06:24:40]Thread 3066785124 joined [06:24:40]Waiting for new connection... [06:24:40] Sock 7.Parse request [06:24:40]Sock 7.Check first char [06:24:40]Sock 7.First char is OK [06:24:40]request: POST /json_proto HTTP/1.0 [06:24:40]Method: POST [06:24:40]URL: /json_proto [06:24:40]Method is POST - this is cgi request [06:24:40]url: /json_proto [06:24:40]query_string will be loaded in cgi processing [06:24:40]execute_cgi json_proto POST (null) [06:24:40]execute_cgi path=json_proto method=POST [06:24:40]POST find Content-Length [06:24:40]Host: 172.17.49.132:8080 [06:24:40]Content-Length: 672 [06:24:40]Content-Type: application/json [06:24:40] [06:24:40]POST finish read [06:24:40]Found Content-Length = 672 [06:24:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136545", "tax_sys" : 0, "items" : [ { "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "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" ] } } [06:24:40]execute_script... [06:24:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136545", "tax_sys" : 0, "items" : [ { "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "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" ] } } [06:24:40]POST & json_proto [06:24:40]process_json_proto [06:24:40]json parsed OK: [06:24:40]protocol is kg_v1.0 [06:24:40]action value=close_receipt [06:24:40]process_action close_receipt [06:24:40]cmd_close_receipt [06:24:40]MH_GetDate [06:24:40]Write to MH i2c: F0 00 00 58 37 7E [06:24:40]Write i2c OK [06:24:40]MH_I2C_Read... [06:24:40]Read from MH i2c: F0 [06:24:40]MH_I2C_Read... [06:24:40]Read from MH i2c: F0 09 00 [06:24:40]MH_I2C_Read... [06:24:40]Read from MH i2c: F0 09 00 58 37 00 30 E4 A5 66 E7 4B C0 64 FC [06:24:40]GetLastDocTimeStamp 1722147865 [06:24:40]current date 1722147888 [06:24:40]FM_GetShiftState [06:24:40]SAM_PROTO_GetShiftState [06:24:40]wFMCommunicate request_size=4 [06:24:40]MH_SAM_APDU [06:24:40]CAPDU: 80 13 01 00 [06:24:40]Write to MH i2c: E2 08 00 59 37 80 13 01 00 00 00 00 00 0D [06:24:40]Write i2c OK [06:24:40]MH_I2C_Read... [06:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:40]Read from MH i2c: E2 [06:24:40]MH_I2C_Read... [06:24:40]Read from MH i2c: E2 0E 00 [06:24:40]MH_I2C_Read... [06:24:40]Read from MH i2c: E2 0E 00 59 37 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 4A [06:24:40]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [06:24:40]wFMCommunicate OK [06:24:40]SAM_PROTO_GetShiftState done [06:24:40]FM_GetShiftState done [06:24:40]opened in 1722127251 [06:24:40]opened+sec_in_day 1722213651 [06:24:40]quantity*price = 13000 [06:24:40]sum+1 = 13001 [06:24:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 28 28.07.2024 06:24 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69145 ФПД: 155131158008277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T062448&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69145&fm=155131158008277&tin=02508201610067®Number=0000000000092638&sum=13000 0 [06:24:41]StoreToDocumentArchive [06:24:41]shift 429 fd 69145 [06:24:41]save to /storage/0429/doc_00069145 [06:24:41]save last doc name /storage/0429/doc_00069145 to /storage/kkm_last_doc_name [06:24:41]save OK [06:24:41]Clear old archive folders... [06:24:41]ProcessDocumentItem done err = 0, tmpTLVsize=284 [06:24:41]tlvbuf is 00A6AD00 [06:24:41]SAM_PROTO_ClearQueue [06:24:41]wFMCommunicate request_size=4 [06:24:41]MH_SAM_APDU [06:24:41]CAPDU: 80 09 00 00 [06:24:41]Write to MH i2c: E2 08 00 66 37 80 09 00 00 00 00 00 00 0F [06:24:41]Write i2c OK [06:24:41]MH_I2C_Read... [06:24:41]Read from MH i2c: E2 [06:24:41]MH_I2C_Read... [06:24:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:24:41]Read from MH i2c: E2 03 00 [06:24:41]MH_I2C_Read... [06:24:41]Read from MH i2c: E2 03 00 66 37 00 90 00 11 [06:24:41]RAPDU: 90 00 [06:24:41]wFMCommunicate OK [06:24:41]SAM_PROTO_ClearQueue done [06:24:41]KKMCreateOFDPacket [06:24:41]OFDProtocolAddRootSTLVToBuf [06:24:41]FM_MakeSignedData [06:24:41]FM_MakeSignedData [06:24:41]SAM_PROTO_SignData [06:24:41]wFMCommunicate request_size=4 [06:24:41]MH_SAM_APDU [06:24:41]CAPDU: 80 0D 01 02 [06:24:41]Write to MH i2c: E2 08 00 67 37 80 0D 01 02 00 00 00 00 17 [06:24:41]Write i2c OK [06:24:41]MH_I2C_Read... [06:24:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:24:41]Read from MH i2c: E2 [06:24:41]MH_I2C_Read... [06:24:41]Read from MH i2c: E2 03 00 [06:24:41]MH_I2C_Read... [06:24:41]Read from MH i2c: E2 03 00 67 37 00 90 00 12 [06:24:41]RAPDU: 90 00 [06:24:41]wFMCommunicate OK [06:24:41]wFMCommunicate request_size=255 [06:24:41]MH_SAM_APDU [06:24:41]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 1C 00 00 00 F4 03 04 00 30 E4 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 [06:24:41]Write to MH i2c: E2 02 01 68 37 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 1C 00 00 00 F4 03 04 00 30 E4 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 00 00 5E [06:24:41]Write i2c OK [06:24:41]MH_I2C_Read... [06:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:42]Read from MH i2c: E2 [06:24:42]MH_I2C_Read... [06:24:42]Read from MH i2c: E2 03 00 [06:24:42]MH_I2C_Read... [06:24:42]Read from MH i2c: E2 03 00 68 37 00 90 00 13 [06:24:42]RAPDU: 90 00 [06:24:42]wFMCommunicate OK [06:24:42]wFMCommunicate request_size=43 [06:24:42]MH_SAM_APDU [06:24:42]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 19 0E 01 00 35 04 06 00 8D 17 49 91 11 D5 [06:24:42]Write to MH i2c: E2 2E 00 69 37 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 19 0E 01 00 35 04 06 00 8D 17 49 91 11 D5 00 00 97 [06:24:42]Write i2c OK [06:24:42]MH_I2C_Read... [06:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:42]Read from MH i2c: E2 [06:24:42]MH_I2C_Read... [06:24:42]Read from MH i2c: E2 03 00 [06:24:42]MH_I2C_Read... [06:24:42]Read from MH i2c: E2 03 00 69 37 00 90 00 14 [06:24:42]RAPDU: 90 00 [06:24:42]wFMCommunicate OK [06:24:42]wFMCommunicate request_size=4 [06:24:42]MH_SAM_APDU [06:24:42]CAPDU: 80 0D 03 02 [06:24:42]Write to MH i2c: E2 08 00 6A 37 80 0D 03 02 00 00 00 00 1C [06:24:42]Write i2c OK [06:24:42]MH_I2C_Read... [06:24:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:24:42]Read from MH i2c: E2 [06:24:42]MH_I2C_Read... [06:24:42]Read from MH i2c: E2 0B 00 [06:24:42]MH_I2C_Read... [06:24:42]Read from MH i2c: E2 0B 00 6A 37 00 E2 01 D4 35 1B A1 69 71 90 00 9F [06:24:42]RAPDU: E2 01 D4 35 1B A1 69 71 90 00 [06:24:42]wFMCommunicate OK [06:24:42]SAM_PROTO_SignData done [06:24:42]FM_MakeSignedData done [06:24:42]CreateOFDProtocolMessage [06:24:42]wFMCommunicate request_size=4 [06:24:42]MH_SAM_APDU [06:24:42]CAPDU: 80 11 00 00 [06:24:42]Write to MH i2c: E2 08 00 6B 37 80 11 00 00 00 00 00 00 1C [06:24:42]Write i2c OK [06:24:42]MH_I2C_Read... [06:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:42]Read from MH i2c: E2 [06:24:42]MH_I2C_Read... [06:24:42]Read from MH i2c: E2 17 00 [06:24:42]MH_I2C_Read... [06:24:42]Read from MH i2c: E2 17 00 6B 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 78 [06:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [06:24:42]wFMCommunicate OK [06:24:42]CreateOFDProtocolMessage done [06:24:42]OFDSenderStorePacket 69145 [06:24:42]StoreOFDPacket docnum=69145 [06:24:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 30 01 00 00 12 66 28 01 A2 B0 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 1C 00 00 00 F4 03 04 00 30 E4 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 19 0E 01 00 35 04 06 00 8D 17 49 91 11 D5 E2 01 D4 35 1B A1 69 71 [06:24:42]CheckFolder [06:24:42]dirname=/storage/ofd_packets [06:24:42]CheckFolder done [06:24:42]ProducePacketName [06:24:42]name=ofd_packets/00069145 [06:24:42]NVStorageSaveData ofd_packets/00069145 [06:24:42]File name is /storage/ofd_packets/00069145 [06:24:42]Write 334 bytes [06:24:42]NVStorageSaveData done [06:24:42]OFDSenderStorePacket done [06:24:42]KKMCreateOFDPacket done [06:24:42]NVStorageSaveData kkm_last_timestamp [06:24:42]File name is /storage/kkm_last_timestamp [06:24:42]Write 4 bytes [06:24:42]NVStorageSaveData done [06:24:42]ExternCall_PrintAddStr [06:24:42]wPrintStart [06:24:42]Write to MH i2c: 01 00 00 6C 37 A3 [06:24:42]Write i2c OK [06:24:42]MH_I2C_Read... [06:24:42]Read from MH i2c: 01 [06:24:42]MH_I2C_Read... [06:24:42]Read from MH i2c: 01 07 00 [06:24:42]MH_I2C_Read... [06:24:42]Read from MH i2c: 01 07 00 6C 37 00 00 00 00 00 FF 0F B8 [06:24:42]RasterBufferAndPrint [06:24:42]line Счет N : (3)136545 [06:24:42]line ИНН: 02508201610067 [06:24:42]line Контрольно-Кассовый Чек [06:24:42]line ПРОДАЖА [06:24:42]line Товар: 4620006995702 [06:24:42]line Водка Зеленая Марка 0,1л [06:24:42]line 1.000 * 130.00 [06:24:42]line = 130.00 [06:24:42]line НДС 12% НСП 1% [06:24:42]line > о реализуемом товаре [06:24:42]line ИТОГО: 130.00 [06:24:42]line НСП 1% : 1.15 [06:24:42]line НДС 12% : 13.80 [06:24:42]line Наличными: 130.00 [06:24:42]line Безнал.: 0.00 [06:24:42]line Место: АЗС № 125 "Партнер Нефть" [06:24:42]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [06:24:42]line СНО: Общий режим [06:24:42]line Чек 28 28.07.2024 06:24 [06:24:42]line Смена: 429 ФФД: 1.0 [06:24:42]line ЗНМ: 0300000049 [06:24:42]line РНМ: 0000000000092638 [06:24:42]line Версия ККМ: 001 [06:24:42]line ФМ: 0000000000874949 [06:24:42]line ФД: 69145 [06:24:42]line ФПД: 155131158008277 [06:24:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T062448&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69145&fm=155131158008277&tin=02508201610067®Number=0000000000092638&sum=13000 [06:24:42]OFD Sender: Processing packet 69145 [packets to send 19, broken 18] [06:24:42]ProducePacketName [06:24:42]name=ofd_packets/00069145 [06:24:42]OFD Sender: To server: pG, [06:24:42]CommunicateWithHost lk.salyk.kg:30040 [06:24:42]ConnectInit lk.salyk.kg [06:24:42]line 0 [06:24:42]written 0, free lines is 4095 [06:24:42]Connected sock=11 [06:24: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 39 34 39 30 01 00 00 12 66 28 01 A2 B0 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 1C 00 00 00 F4 03 04 00 30 E4 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 19 0E 01 00 35 04 06 00 8D 17 49 91 11 D5 E2 01 D4 35 1B A1 69 71 [06:24:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 7F 0E 47 00 92 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 19 0E 01 00 F4 03 04 00 A0 8A A5 66 B6 04 01 00 00 D9 68 9E 98 E9 CD BA BB [06:24:42]CommunicateWithHost err = 0 [06:24:42]CheckOFDResponse [06:24:42]1017 (14) - 77093643461234 [06:24:42]1041 (16) - 0000000000874949 [06:24:42]1040 (4) - 69145 [06:24:42]1012 (4) - 28.07.2024 00:02 [06:24:42]1206 (1) - 0 [06:24:42]OFD Sender: Remove packet 69145 [06:24:42]ProducePacketName [06:24:42]name=ofd_packets/00069145 [06:24:42]NVStorageDeleteData [06:24:43]Write to MH i2c: 01 00 00 94 37 CB [06:24:43]Write i2c OK [06:24:43]MH_I2C_Read... [06:24:43]Read from MH i2c: 01 [06:24:43]MH_I2C_Read... [06:24:43]Read from MH i2c: 01 07 00 [06:24:43]MH_I2C_Read... [06:24:43]Read from MH i2c: 01 07 00 94 37 00 00 00 00 00 23 0D 02 [06:24:43]RasterBufferAndPrint [06:24:43]line [06:24:43]line [06:24:43]line [06:24:43]line [06:24:43]line [06:24:43]written 0, free lines is 3370 [06:24:43]MH_Cut [06:24:43]Write to MH i2c: D1 01 00 9B 37 01 A4 [06:24:43]Write i2c OK [06:24:43]MH_I2C_Read... [06:24:43]Read from MH i2c: D1 [06:24:43]MH_I2C_Read... [06:24:43]Read from MH i2c: D1 01 00 [06:24:43]MH_I2C_Read... [06:24:43]Read from MH i2c: D1 01 00 9B 37 00 A3 [06:24:43]Write to MH i2c: 01 00 00 9C 37 D3 [06:24:43]Write i2c OK [06:24:43]MH_I2C_Read... [06:24:43]OFD Sender: No OFD packet to send [06:24:43]*** Cut start [06:24:43]*** Partial cut [06:24:43]*** CUTSNS_PIN = 1 [06:24:43]*** CUTSNS_PIN = 0 [06:24:44]*** Brake cut motor [06:24:44]Read from MH i2c: 01 [06:24:44]MH_I2C_Read... [06:24:44]*** Stop cut motor [06:24:44]*** Cut end [06:24:44]Read from MH i2c: 01 07 00 [06:24:44]MH_I2C_Read... [06:24:44]Read from MH i2c: 01 07 00 9C 37 00 00 00 00 00 FF 0F E8 [06:24:44]process_action close_receipt done [06:24:44]requested_data is exist [06:24:44]produce_requested_data [06:24:44]requested_item fm.sn is exist - process it [06:24:44]wFMCommunicate request_size=4 [06:24:44]MH_SAM_APDU [06:24:44]CAPDU: 80 11 00 00 [06:24:44]Write to MH i2c: E2 08 00 9D 37 80 11 00 00 00 00 00 00 4E [06:24:44]Write i2c OK [06:24:44]MH_I2C_Read... [06:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:44]Read from MH i2c: E2 [06:24:44]MH_I2C_Read... [06:24:44]Read from MH i2c: E2 17 00 [06:24:44]MH_I2C_Read... [06:24:44]Read from MH i2c: E2 17 00 9D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AA [06:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [06:24:44]wFMCommunicate OK [06:24:44]requested_item fd.num is exist - process it [06:24:44]SAM_PROTO_GetFieldsCounters [06:24:44]wFMCommunicate request_size=4 [06:24:44]MH_SAM_APDU [06:24:44]CAPDU: 80 13 00 00 [06:24:44]Write to MH i2c: E2 08 00 9E 37 80 13 00 00 00 00 00 00 51 [06:24:44]Write i2c OK [06:24:44]MH_I2C_Read... [06:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:24:44]Read from MH i2c: E2 [06:24:44]MH_I2C_Read... [06:24:44]Read from MH i2c: E2 62 00 [06:24:44]MH_I2C_Read... [06:24:44]Read from MH i2c: E2 62 00 9E 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 19 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [06:24: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 19 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:24:44]wFMCommunicate OK [06:24:44]SAM_PROTO_GetFieldsCounters done [06:24:44]requested_item shift.num is exist - process it [06:24:44]requested_item shift.opened is exist - process it [06:24:44]req_shift_opened [06:24:44]FM_GetShiftState [06:24:44]SAM_PROTO_GetShiftState [06:24:44]wFMCommunicate request_size=4 [06:24:44]MH_SAM_APDU [06:24:44]CAPDU: 80 13 01 00 [06:24:44]Write to MH i2c: E2 08 00 9F 37 80 13 01 00 00 00 00 00 53 [06:24:44]Write i2c OK [06:24:44]MH_I2C_Read... [06:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:44]Read from MH i2c: E2 [06:24:44]MH_I2C_Read... [06:24:44]Read from MH i2c: E2 0E 00 [06:24:44]MH_I2C_Read... [06:24:44]Read from MH i2c: E2 0E 00 9F 37 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 90 [06:24:44]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [06:24:44]wFMCommunicate OK [06:24:44]SAM_PROTO_GetShiftState done [06:24:44]FM_GetShiftState done [06:24:44]req_shift_opened done [06:24:44]requested_item shift.open_date is exist - process it [06:24:44]req_shift_open_date [06:24:44]req_shift_open_date done [06:24:44]produce_requested_data done [06:24:44]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69145,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [06:24:44]process_action_free close_receipt [06:24:44]json_value_free [06:24:44]json_value_free done [06:24:44]process_json_proto returns [06:24:44]Send response to host [06:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69145,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [06:24:44]free response buf [06:24:44]execute_script done [06:24:44]execute_script returns [06:24:44]free content buf [06:24:44]Sock 7.Close socket [06:24:44]Sock 7.Thread stoped [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:47]accept exits with 9 [07:07:47]New connection [07:07:47]New thread 3066785124 created [07:07:47]Thread 3066641764 joined [07:07:47]Waiting for new connection... [07:07:47] Sock 9.Parse request [07:07:47]Sock 9.Check first char [07:07:47]Sock 9.First char is OK [07:07:47]request: POST /json_proto HTTP/1.0 [07:07:47]Method: POST [07:07:47]URL: /json_proto [07:07:47]Method is POST - this is cgi request [07:07:47]url: /json_proto [07:07:47]query_string will be loaded in cgi processing [07:07:47]execute_cgi json_proto POST (null) [07:07:47]execute_cgi path=json_proto method=POST [07:07:47]POST find Content-Length [07:07:47]Host: 172.17.49.132:8080 [07:07:47]Content-Length: 623 [07:07:47]Content-Type: application/json [07:07:47] [07:07:47]POST finish read [07:07:47]Found Content-Length = 623 [07:07:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136546", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:47]execute_script... [07:07:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136546", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:47]POST & json_proto [07:07:47]process_json_proto [07:07:47]json parsed OK: [07:07:47]protocol is kg_v1.0 [07:07:47]action value=close_receipt [07:07:47]process_action close_receipt [07:07:47]cmd_close_receipt [07:07:47]MH_GetDate [07:07:47]Write to MH i2c: F0 00 00 A0 37 C6 [07:07:47]Write i2c OK [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: F0 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: F0 09 00 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: F0 09 00 A0 37 00 4B EE A5 66 E7 4B C0 64 69 [07:07:47]GetLastDocTimeStamp 1722147888 [07:07:47]current date 1722150475 [07:07:47]FM_GetShiftState [07:07:47]SAM_PROTO_GetShiftState [07:07:47]wFMCommunicate request_size=4 [07:07:47]MH_SAM_APDU [07:07:47]CAPDU: 80 13 01 00 [07:07:47]Write to MH i2c: E2 08 00 A1 37 80 13 01 00 00 00 00 00 55 [07:07:47]Write i2c OK [07:07:47]MH_I2C_Read... [07:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:47]Read from MH i2c: E2 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 0E 00 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 0E 00 A1 37 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 92 [07:07:47]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [07:07:47]wFMCommunicate OK [07:07:47]SAM_PROTO_GetShiftState done [07:07:47]FM_GetShiftState done [07:07:47]opened in 1722127251 [07:07:47]opened+sec_in_day 1722213651 [07:07:47]quantity*price = 42500 [07:07:47]sum+1 = 42501 [07:07:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 425.00 НСП 1% : 3.76 НДС 12% : 45.13 Наличными: 425.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 29 28.07.2024 07:07 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69146 ФПД: 186264676916971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T070755&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69146&fm=186264676916971&tin=02508201610067®Number=0000000000092638&sum=42500 0 [07:07:48]StoreToDocumentArchive [07:07:48]shift 429 fd 69146 [07:07:48]save to /storage/0429/doc_00069146 [07:07:48]save last doc name /storage/0429/doc_00069146 to /storage/kkm_last_doc_name [07:07:48]save OK [07:07:48]Clear old archive folders... [07:07:48]ProcessDocumentItem done err = 0, tmpTLVsize=267 [07:07:48]tlvbuf is 00B6A4A0 [07:07:48]SAM_PROTO_ClearQueue [07:07:48]wFMCommunicate request_size=4 [07:07:48]MH_SAM_APDU [07:07:48]CAPDU: 80 09 00 00 [07:07:48]Write to MH i2c: E2 08 00 AE 37 80 09 00 00 00 00 00 00 57 [07:07:48]Write i2c OK [07:07:48]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 AE 37 00 90 00 59 [07:07:49]RAPDU: 90 00 [07:07:49]wFMCommunicate OK [07:07:49]SAM_PROTO_ClearQueue done [07:07:49]KKMCreateOFDPacket [07:07:49]OFDProtocolAddRootSTLVToBuf [07:07:49]FM_MakeSignedData [07:07:49]FM_MakeSignedData [07:07:49]SAM_PROTO_SignData [07:07:49]wFMCommunicate request_size=4 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 0D 01 02 [07:07:49]Write to MH i2c: E2 08 00 AF 37 80 0D 01 02 00 00 00 00 5F [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 AF 37 00 90 00 5A [07:07:49]RAPDU: 90 00 [07:07:49]wFMCommunicate OK [07:07:49]wFMCommunicate request_size=255 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4B EE A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [07:07:49]Write to MH i2c: E2 02 01 B0 37 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4B EE A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 55 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 B0 37 00 90 00 5B [07:07:49]RAPDU: 90 00 [07:07:49]wFMCommunicate OK [07:07:49]wFMCommunicate request_size=26 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 0D 02 02 15 39 34 39 10 04 04 00 1A 0E 01 00 35 04 06 00 A9 68 1F E6 DE EB [07:07:49]Write to MH i2c: E2 1D 00 B1 37 80 0D 02 02 15 00 39 34 39 10 04 04 00 1A 0E 01 00 35 04 06 00 A9 68 1F E6 DE EB 00 00 91 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 B1 37 00 90 00 5C [07:07:49]RAPDU: 90 00 [07:07:49]wFMCommunicate OK [07:07:49]wFMCommunicate request_size=4 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 0D 03 02 [07:07:49]Write to MH i2c: E2 08 00 B2 37 80 0D 03 02 00 00 00 00 64 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 0B 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 0B 00 B2 37 00 7D A4 6D F8 80 7A 27 43 90 00 4F [07:07:49]RAPDU: 7D A4 6D F8 80 7A 27 43 90 00 [07:07:49]wFMCommunicate OK [07:07:49]SAM_PROTO_SignData done [07:07:49]FM_MakeSignedData done [07:07:49]CreateOFDProtocolMessage [07:07:49]wFMCommunicate request_size=4 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 11 00 00 [07:07:49]Write to MH i2c: E2 08 00 B3 37 80 11 00 00 00 00 00 00 64 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 17 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 17 00 B3 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C0 [07:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [07:07:49]wFMCommunicate OK [07:07:49]CreateOFDProtocolMessage done [07:07:49]OFDSenderStorePacket 69146 [07:07:49]StoreOFDPacket docnum=69146 [07:07:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 1F 01 00 00 2F 42 17 01 E0 23 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4B EE A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1A 0E 01 00 35 04 06 00 A9 68 1F E6 DE EB 7D A4 6D F8 80 7A 27 43 [07:07:49]CheckFolder [07:07:49]dirname=/storage/ofd_packets [07:07:49]CheckFolder done [07:07:49]ProducePacketName [07:07:49]name=ofd_packets/00069146 [07:07:49]NVStorageSaveData ofd_packets/00069146 [07:07:49]File name is /storage/ofd_packets/00069146 [07:07:49]Write 317 bytes [07:07:49]NVStorageSaveData done [07:07:49]OFDSenderStorePacket done [07:07:49]KKMCreateOFDPacket done [07:07:49]NVStorageSaveData kkm_last_timestamp [07:07:49]File name is /storage/kkm_last_timestamp [07:07:49]Write 4 bytes [07:07:49]NVStorageSaveData done [07:07:49]ExternCall_PrintAddStr [07:07:49]wPrintStart [07:07:49]Write to MH i2c: 01 00 00 B4 37 EB [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: 01 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: 01 07 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: 01 07 00 B4 37 00 00 00 00 00 FF 0F 00 [07:07:49]RasterBufferAndPrint [07:07:49]line Счет N : (3)136546 [07:07:49]line ИНН: 02508201610067 [07:07:49]line Контрольно-Кассовый Чек [07:07:49]line ПРОДАЖА [07:07:49]line Товар: 4700003150486 [07:07:49]line Водка Ороон 0,5 [07:07:49]line 1.000 * 425.00 [07:07:49]line = 425.00 [07:07:49]line НДС 12% НСП 1% [07:07:49]line > о реализуемом товаре [07:07:49]line ИТОГО: 425.00 [07:07:49]line НСП 1% : 3.76 [07:07:49]line НДС 12% : 45.13 [07:07:49]line Наличными: 425.00 [07:07:49]line Безнал.: 0.00 [07:07:49]line Место: АЗС № 125 "Партнер Нефть" [07:07:49]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [07:07:49]line СНО: Общий режим [07:07:49]line Чек 29 28.07.2024 07:07 [07:07:49]line Смена: 429 ФФД: 1.0 [07:07:49]line ЗНМ: 0300000049 [07:07:49]line РНМ: 0000000000092638 [07:07:49]line Версия ККМ: 001 [07:07:49]line ФМ: 0000000000874949 [07:07:49]line ФД: 69146 [07:07:49]line ФПД: 186264676916971 [07:07:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T070755&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69146&fm=186264676916971&tin=02508201610067®Number=0000000000092638&sum=42500 [07:07:49]line 0 [07:07:49]OFD Sender: Processing packet 69146 [packets to send 19, broken 18] [07:07:49]ProducePacketName [07:07:49]name=ofd_packets/00069146 [07:07:49]OFD Sender: To server: pG, [07:07:49]CommunicateWithHost lk.salyk.kg:30040 [07:07:49]ConnectInit lk.salyk.kg [07:07:49]written 0, free lines is 4095 [07:07:49]Connected sock=10 [07:07: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 39 34 39 1F 01 00 00 2F 42 17 01 E0 23 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4B EE A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1A 0E 01 00 35 04 06 00 A9 68 1F E6 DE EB 7D A4 6D F8 80 7A 27 43 [07:07:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CC 87 47 00 66 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1A 0E 01 00 F4 03 04 00 BC 94 A5 66 B6 04 01 00 00 D8 67 FE 4B 92 CE AF F4 [07:07:50]CommunicateWithHost err = 0 [07:07:50]CheckOFDResponse [07:07:50]1017 (14) - 77093643461234 [07:07:50]1041 (16) - 0000000000874949 [07:07:50]1040 (4) - 69146 [07:07:50]1012 (4) - 28.07.2024 00:45 [07:07:50]1206 (1) - 0 [07:07:50]OFD Sender: Remove packet 69146 [07:07:50]ProducePacketName [07:07:50]name=ofd_packets/00069146 [07:07:50]NVStorageDeleteData [07:07:50]Write to MH i2c: 01 00 00 DC 37 13 [07:07:50]Write i2c OK [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: 01 [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: 01 07 00 [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: 01 07 00 DC 37 00 00 00 00 00 14 0D 3B [07:07:50]RasterBufferAndPrint [07:07:50]line [07:07:50]line [07:07:50]line [07:07:50]line [07:07:50]line [07:07:50]written 0, free lines is 3354 [07:07:50]MH_Cut [07:07:50]Write to MH i2c: D1 01 00 E3 37 01 EC [07:07:50]Write i2c OK [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: D1 [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: D1 01 00 [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: D1 01 00 E3 37 00 EB [07:07:50]Write to MH i2c: 01 00 00 E4 37 1B [07:07:50]Write i2c OK [07:07:50]MH_I2C_Read... [07:07:50]OFD Sender: No OFD packet to send [07:07:50]*** Cut start [07:07:50]*** Partial cut [07:07:50]*** CUTSNS_PIN = 1 [07:07:50]*** CUTSNS_PIN = 0 [07:07:51]*** Brake cut motor [07:07:51]Read from MH i2c: 01 [07:07:51]MH_I2C_Read... [07:07:51]*** Stop cut motor [07:07:51]*** Cut end [07:07:51]Read from MH i2c: 01 07 00 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: 01 07 00 E4 37 00 00 00 00 00 FF 0F 30 [07:07:51]process_action close_receipt done [07:07:51]requested_data is exist [07:07:51]produce_requested_data [07:07:51]requested_item fm.sn is exist - process it [07:07:51]wFMCommunicate request_size=4 [07:07:51]MH_SAM_APDU [07:07:51]CAPDU: 80 11 00 00 [07:07:51]Write to MH i2c: E2 08 00 E5 37 80 11 00 00 00 00 00 00 96 [07:07:51]Write i2c OK [07:07:51]MH_I2C_Read... [07:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:51]Read from MH i2c: E2 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 17 00 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 17 00 E5 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F2 [07:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [07:07:51]wFMCommunicate OK [07:07:51]requested_item fd.num is exist - process it [07:07:51]SAM_PROTO_GetFieldsCounters [07:07:51]wFMCommunicate request_size=4 [07:07:51]MH_SAM_APDU [07:07:51]CAPDU: 80 13 00 00 [07:07:51]Write to MH i2c: E2 08 00 E6 37 80 13 00 00 00 00 00 00 99 [07:07:51]Write i2c OK [07:07:51]MH_I2C_Read... [07:07:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:51]Read from MH i2c: E2 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 62 00 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 62 00 E6 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [07:07:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:07:51]wFMCommunicate OK [07:07:51]SAM_PROTO_GetFieldsCounters done [07:07:51]requested_item shift.num is exist - process it [07:07:51]requested_item shift.opened is exist - process it [07:07:51]req_shift_opened [07:07:51]FM_GetShiftState [07:07:51]SAM_PROTO_GetShiftState [07:07:51]wFMCommunicate request_size=4 [07:07:51]MH_SAM_APDU [07:07:51]CAPDU: 80 13 01 00 [07:07:51]Write to MH i2c: E2 08 00 E7 37 80 13 01 00 00 00 00 00 9B [07:07:51]Write i2c OK [07:07:51]MH_I2C_Read... [07:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:51]Read from MH i2c: E2 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 0E 00 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 0E 00 E7 37 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 D8 [07:07:51]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [07:07:51]wFMCommunicate OK [07:07:51]SAM_PROTO_GetShiftState done [07:07:51]FM_GetShiftState done [07:07:51]req_shift_opened done [07:07:51]requested_item shift.open_date is exist - process it [07:07:51]req_shift_open_date [07:07:51]req_shift_open_date done [07:07:51]produce_requested_data done [07:07:51]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69146,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [07:07:51]process_action_free close_receipt [07:07:51]json_value_free [07:07:51]json_value_free done [07:07:51]process_json_proto returns [07:07:51]Send response to host [07:07:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69146,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [07:07:51]free response buf [07:07:51]execute_script done [07:07:51]execute_script returns [07:07:51]free content buf [07:07:51]Sock 9.Close socket [07:07:51]Sock 9.Thread stoped [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:50]accept exits with 7 [07:16:50]New connection [07:16:50]New thread 3066641764 created [07:16:50]Thread 3066785124 joined [07:16:50]Waiting for new connection... [07:16:50] Sock 7.Parse request [07:16:50]Sock 7.Check first char [07:16:50]Sock 7.First char is OK [07:16:50]request: POST /json_proto HTTP/1.0 [07:16:50]Method: POST [07:16:50]URL: /json_proto [07:16:50]Method is POST - this is cgi request [07:16:50]url: /json_proto [07:16:50]query_string will be loaded in cgi processing [07:16:50]execute_cgi json_proto POST (null) [07:16:50]execute_cgi path=json_proto method=POST [07:16:50]POST find Content-Length [07:16:50]Host: 172.17.49.132:8080 [07:16:50]Content-Length: 667 [07:16:50]Content-Type: application/json [07:16:50] [07:16:50]POST finish read [07:16:50]Found Content-Length = 667 [07:16:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136547", "tax_sys" : 0, "items" : [ { "code": "4700002086281", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:50]execute_script... [07:16:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136547", "tax_sys" : 0, "items" : [ { "code": "4700002086281", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:50]POST & json_proto [07:16:50]process_json_proto [07:16:50]json parsed OK: [07:16:50]protocol is kg_v1.0 [07:16:50]action value=close_receipt [07:16:50]process_action close_receipt [07:16:50]cmd_close_receipt [07:16:50]MH_GetDate [07:16:50]Write to MH i2c: F0 00 00 E8 37 0E [07:16:50]Write i2c OK [07:16:50]MH_I2C_Read... [07:16:50]Read from MH i2c: F0 [07:16:50]MH_I2C_Read... [07:16:50]Read from MH i2c: F0 09 00 [07:16:50]MH_I2C_Read... [07:16:50]Read from MH i2c: F0 09 00 E8 37 00 6A F0 A5 66 E7 4B C0 64 D2 [07:16:50]GetLastDocTimeStamp 1722150475 [07:16:50]current date 1722151018 [07:16:50]FM_GetShiftState [07:16:50]SAM_PROTO_GetShiftState [07:16:50]wFMCommunicate request_size=4 [07:16:50]MH_SAM_APDU [07:16:50]CAPDU: 80 13 01 00 [07:16:50]Write to MH i2c: E2 08 00 E9 37 80 13 01 00 00 00 00 00 9D [07:16:50]Write i2c OK [07:16:50]MH_I2C_Read... [07:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:50]Read from MH i2c: E2 [07:16:50]MH_I2C_Read... [07:16:50]Read from MH i2c: E2 0E 00 [07:16:50]MH_I2C_Read... [07:16:50]Read from MH i2c: E2 0E 00 E9 37 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 DA [07:16:50]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [07:16:50]wFMCommunicate OK [07:16:50]SAM_PROTO_GetShiftState done [07:16:50]FM_GetShiftState done [07:16:50]opened in 1722127251 [07:16:50]opened+sec_in_day 1722213651 [07:16:50]quantity*price = 20000 [07:16:50]sum+1 = 20001 [07:16:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 30 28.07.2024 07:16 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69147 ФПД: 207126696195578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T071658&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69147&fm=207126696195578&tin=02508201610067®Number=0000000000092638&sum=20000 0 [07:16:52]StoreToDocumentArchive [07:16:52]shift 429 fd 69147 [07:16:52]save to /storage/0429/doc_00069147 [07:16:52]save last doc name /storage/0429/doc_00069147 to /storage/kkm_last_doc_name [07:16:52]save OK [07:16:52]Clear old archive folders... [07:16:52]ProcessDocumentItem done err = 0, tmpTLVsize=283 [07:16:52]tlvbuf is 00B43D00 [07:16:52]SAM_PROTO_ClearQueue [07:16:52]wFMCommunicate request_size=4 [07:16:52]MH_SAM_APDU [07:16:52]CAPDU: 80 09 00 00 [07:16:52]Write to MH i2c: E2 08 00 F6 37 80 09 00 00 00 00 00 00 9F [07:16:52]Write i2c OK [07:16:52]MH_I2C_Read... [07:16:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:52]Read from MH i2c: E2 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: E2 03 00 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: E2 03 00 F6 37 00 90 00 A1 [07:16:52]RAPDU: 90 00 [07:16:52]wFMCommunicate OK [07:16:52]SAM_PROTO_ClearQueue done [07:16:52]KKMCreateOFDPacket [07:16:52]OFDProtocolAddRootSTLVToBuf [07:16:52]FM_MakeSignedData [07:16:52]FM_MakeSignedData [07:16:52]SAM_PROTO_SignData [07:16:52]wFMCommunicate request_size=4 [07:16:52]MH_SAM_APDU [07:16:52]CAPDU: 80 0D 01 02 [07:16:52]Write to MH i2c: E2 08 00 F7 37 80 0D 01 02 00 00 00 00 A7 [07:16:52]Write i2c OK [07:16:52]MH_I2C_Read... [07:16:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:52]Read from MH i2c: E2 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: E2 03 00 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: E2 03 00 F7 37 00 90 00 A2 [07:16:52]RAPDU: 90 00 [07:16:52]wFMCommunicate OK [07:16:52]wFMCommunicate request_size=255 [07:16:52]MH_SAM_APDU [07:16:52]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 32 38 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6A F0 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 [07:16:52]Write to MH i2c: E2 02 01 F8 37 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 32 38 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6A F0 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 00 00 49 [07:16:52]Write i2c OK [07:16:52]MH_I2C_Read... [07:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:52]Read from MH i2c: E2 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: E2 03 00 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: E2 03 00 F8 37 00 90 00 A3 [07:16:52]RAPDU: 90 00 [07:16:52]wFMCommunicate OK [07:16:52]wFMCommunicate request_size=42 [07:16:52]MH_SAM_APDU [07:16:52]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1B 0E 01 00 35 04 06 00 BC 61 71 26 75 FA [07:16:52]Write to MH i2c: E2 2D 00 F9 37 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1B 0E 01 00 35 04 06 00 BC 61 71 26 75 FA 00 00 D5 [07:16:52]Write i2c OK [07:16:52]MH_I2C_Read... [07:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:52]Read from MH i2c: E2 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: E2 03 00 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: E2 03 00 F9 37 00 90 00 A4 [07:16:52]RAPDU: 90 00 [07:16:52]wFMCommunicate OK [07:16:52]wFMCommunicate request_size=4 [07:16:52]MH_SAM_APDU [07:16:52]CAPDU: 80 0D 03 02 [07:16:52]Write to MH i2c: E2 08 00 FA 37 80 0D 03 02 00 00 00 00 AC [07:16:52]Write i2c OK [07:16:52]MH_I2C_Read... [07:16:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:52]Read from MH i2c: E2 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: E2 0B 00 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: E2 0B 00 FA 37 00 CD BF 29 5F AD 68 2E 4B 90 00 4F [07:16:52]RAPDU: CD BF 29 5F AD 68 2E 4B 90 00 [07:16:52]wFMCommunicate OK [07:16:52]SAM_PROTO_SignData done [07:16:52]FM_MakeSignedData done [07:16:52]CreateOFDProtocolMessage [07:16:52]wFMCommunicate request_size=4 [07:16:52]MH_SAM_APDU [07:16:52]CAPDU: 80 11 00 00 [07:16:52]Write to MH i2c: E2 08 00 FB 37 80 11 00 00 00 00 00 00 AC [07:16:52]Write i2c OK [07:16:52]MH_I2C_Read... [07:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:52]Read from MH i2c: E2 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: E2 17 00 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: E2 17 00 FB 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 08 [07:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [07:16:52]wFMCommunicate OK [07:16:52]CreateOFDProtocolMessage done [07:16:52]OFDSenderStorePacket 69147 [07:16:52]StoreOFDPacket docnum=69147 [07:16:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2F 01 00 00 70 55 27 01 6C 13 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 32 38 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6A F0 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1B 0E 01 00 35 04 06 00 BC 61 71 26 75 FA CD BF 29 5F AD 68 2E 4B [07:16:52]CheckFolder [07:16:52]dirname=/storage/ofd_packets [07:16:52]CheckFolder done [07:16:52]ProducePacketName [07:16:52]name=ofd_packets/00069147 [07:16:52]NVStorageSaveData ofd_packets/00069147 [07:16:52]File name is /storage/ofd_packets/00069147 [07:16:52]Write 333 bytes [07:16:52]NVStorageSaveData done [07:16:52]OFDSenderStorePacket done [07:16:52]KKMCreateOFDPacket done [07:16:52]NVStorageSaveData kkm_last_timestamp [07:16:52]File name is /storage/kkm_last_timestamp [07:16:52]Write 4 bytes [07:16:52]NVStorageSaveData done [07:16:52]ExternCall_PrintAddStr [07:16:52]wPrintStart [07:16:52]Write to MH i2c: 01 00 00 FC 37 33 [07:16:52]Write i2c OK [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: 01 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: 01 07 00 [07:16:52]MH_I2C_Read... [07:16:52]Read from MH i2c: 01 07 00 FC 37 00 00 00 00 00 FF 0F 48 [07:16:52]RasterBufferAndPrint [07:16:52]line Счет N : (3)136547 [07:16:52]line ИНН: 02508201610067 [07:16:52]line Контрольно-Кассовый Чек [07:16:52]line ПРОДАЖА [07:16:52]line Товар: 4700002086281 [07:16:52]line Водка Белое золото 0,24л [07:16:52]line 1.000 * 200.00 [07:16:52]line = 200.00 [07:16:52]line НДС 12% НСП 1% [07:16:52]line > о реализуемом товаре [07:16:52]line ИТОГО: 200.00 [07:16:52]line НСП 1% : 1.77 [07:16:52]line НДС 12% : 21.24 [07:16:52]line Наличными: 200.00 [07:16:52]line Безнал.: 0.00 [07:16:52]line Место: АЗС № 125 "Партнер Нефть" [07:16:52]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [07:16:52]line СНО: Общий режим [07:16:52]line Чек 30 28.07.2024 07:16 [07:16:52]line Смена: 429 ФФД: 1.0 [07:16:52]line ЗНМ: 0300000049 [07:16:52]line РНМ: 0000000000092638 [07:16:52]line Версия ККМ: 001 [07:16:52]line ФМ: 0000000000874949 [07:16:52]line ФД: 69147 [07:16:52]line ФПД: 207126696195578 [07:16:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T071658&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69147&fm=207126696195578&tin=02508201610067®Number=0000000000092638&sum=20000 [07:16:52]OFD Sender: Processing packet 69147 [packets to send 19, broken 18] [07:16:52]ProducePacketName [07:16:52]name=ofd_packets/00069147 [07:16:52]OFD Sender: To server: pG, [07:16:52]CommunicateWithHost lk.salyk.kg:30040 [07:16:52]ConnectInit lk.salyk.kg [07:16:52]line 0 [07:16:52]written 0, free lines is 4095 [07:16:53]Connected sock=10 [07:16:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2F 01 00 00 70 55 27 01 6C 13 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 32 38 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6A F0 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1B 0E 01 00 35 04 06 00 BC 61 71 26 75 FA CD BF 29 5F AD 68 2E 4B [07:16:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 BC DC 47 00 38 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1B 0E 01 00 F4 03 04 00 DB 96 A5 66 B6 04 01 00 00 33 CB 2C A8 C8 A2 03 CD [07:16:53]CommunicateWithHost err = 0 [07:16:53]CheckOFDResponse [07:16:53]1017 (14) - 77093643461234 [07:16:53]1041 (16) - 0000000000874949 [07:16:53]1040 (4) - 69147 [07:16:53]1012 (4) - 28.07.2024 00:54 [07:16:53]1206 (1) - 0 [07:16:53]OFD Sender: Remove packet 69147 [07:16:53]ProducePacketName [07:16:53]name=ofd_packets/00069147 [07:16:53]NVStorageDeleteData [07:16:53]Write to MH i2c: 01 00 00 24 38 5C [07:16:53]Write i2c OK [07:16:53]MH_I2C_Read... [07:16:53]Read from MH i2c: 01 [07:16:53]MH_I2C_Read... [07:16:53]Read from MH i2c: 01 07 00 [07:16:53]MH_I2C_Read... [07:16:53]Read from MH i2c: 01 07 00 24 38 00 00 00 00 00 1C 0D 8C [07:16:53]RasterBufferAndPrint [07:16:53]line [07:16:53]line [07:16:53]line [07:16:53]line [07:16:53]line [07:16:53]written 0, free lines is 3362 [07:16:53]MH_Cut [07:16:53]Write to MH i2c: D1 01 00 2B 38 01 35 [07:16:53]Write i2c OK [07:16:53]MH_I2C_Read... [07:16:53]Read from MH i2c: D1 [07:16:53]MH_I2C_Read... [07:16:53]Read from MH i2c: D1 01 00 [07:16:53]MH_I2C_Read... [07:16:53]Read from MH i2c: D1 01 00 2B 38 00 34 [07:16:53]Write to MH i2c: 01 00 00 2C 38 64 [07:16:53]Write i2c OK [07:16:53]MH_I2C_Read... [07:16:53]OFD Sender: No OFD packet to send [07:16:54]*** Cut start [07:16:54]*** Partial cut [07:16:54]*** CUTSNS_PIN = 1 [07:16:54]*** CUTSNS_PIN = 0 [07:16:54]*** Brake cut motor [07:16:54]Read from MH i2c: 01 [07:16:54]MH_I2C_Read... [07:16:54]*** Stop cut motor [07:16:54]*** Cut end [07:16:54]Read from MH i2c: 01 07 00 [07:16:54]MH_I2C_Read... [07:16:54]Read from MH i2c: 01 07 00 2C 38 00 00 00 00 00 FF 0F 79 [07:16:54]process_action close_receipt done [07:16:54]requested_data is exist [07:16:54]produce_requested_data [07:16:54]requested_item fm.sn is exist - process it [07:16:54]wFMCommunicate request_size=4 [07:16:54]MH_SAM_APDU [07:16:54]CAPDU: 80 11 00 00 [07:16:54]Write to MH i2c: E2 08 00 2D 38 80 11 00 00 00 00 00 00 DF [07:16:54]Write i2c OK [07:16:54]MH_I2C_Read... [07:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:54]Read from MH i2c: E2 [07:16:54]MH_I2C_Read... [07:16:54]Read from MH i2c: E2 17 00 [07:16:54]MH_I2C_Read... [07:16:54]Read from MH i2c: E2 17 00 2D 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3B [07:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [07:16:54]wFMCommunicate OK [07:16:54]requested_item fd.num is exist - process it [07:16:54]SAM_PROTO_GetFieldsCounters [07:16:54]wFMCommunicate request_size=4 [07:16:54]MH_SAM_APDU [07:16:54]CAPDU: 80 13 00 00 [07:16:54]Write to MH i2c: E2 08 00 2E 38 80 13 00 00 00 00 00 00 E2 [07:16:54]Write i2c OK [07:16:54]MH_I2C_Read... [07:16:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:54]Read from MH i2c: E2 [07:16:54]MH_I2C_Read... [07:16:54]Read from MH i2c: E2 62 00 [07:16:54]MH_I2C_Read... [07:16:54]Read from MH i2c: E2 62 00 2E 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [07:16:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:16:54]wFMCommunicate OK [07:16:54]SAM_PROTO_GetFieldsCounters done [07:16:54]requested_item shift.num is exist - process it [07:16:54]requested_item shift.opened is exist - process it [07:16:54]req_shift_opened [07:16:54]FM_GetShiftState [07:16:54]SAM_PROTO_GetShiftState [07:16:54]wFMCommunicate request_size=4 [07:16:54]MH_SAM_APDU [07:16:54]CAPDU: 80 13 01 00 [07:16:54]Write to MH i2c: E2 08 00 2F 38 80 13 01 00 00 00 00 00 E4 [07:16:54]Write i2c OK [07:16:54]MH_I2C_Read... [07:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:54]Read from MH i2c: E2 [07:16:54]MH_I2C_Read... [07:16:54]Read from MH i2c: E2 0E 00 [07:16:54]MH_I2C_Read... [07:16:54]Read from MH i2c: E2 0E 00 2F 38 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 21 [07:16:54]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [07:16:54]wFMCommunicate OK [07:16:54]SAM_PROTO_GetShiftState done [07:16:54]FM_GetShiftState done [07:16:54]req_shift_opened done [07:16:54]requested_item shift.open_date is exist - process it [07:16:54]req_shift_open_date [07:16:54]req_shift_open_date done [07:16:54]produce_requested_data done [07:16:54]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69147,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [07:16:54]process_action_free close_receipt [07:16:54]json_value_free [07:16:54]json_value_free done [07:16:54]process_json_proto returns [07:16:54]Send response to host [07:16:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69147,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [07:16:54]free response buf [07:16:54]execute_script done [07:16:54]execute_script returns [07:16:54]free content buf [07:16:54]Sock 7.Close socket [07:16:54]Sock 7.Thread stoped [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:34]accept exits with 9 [07:19:34]New connection [07:19:34]New thread 3066785124 created [07:19:34]Thread 3066641764 joined [07:19:34]Waiting for new connection... [07:19:34] Sock 9.Parse request [07:19:34]Sock 9.Check first char [07:19:34]Sock 9.First char is OK [07:19:34]request: POST /json_proto HTTP/1.0 [07:19:34]Method: POST [07:19:34]URL: /json_proto [07:19:34]Method is POST - this is cgi request [07:19:34]url: /json_proto [07:19:34]query_string will be loaded in cgi processing [07:19:34]execute_cgi json_proto POST (null) [07:19:34]execute_cgi path=json_proto method=POST [07:19:34]POST find Content-Length [07:19:34]Host: 172.17.49.132:8080 [07:19:34]Content-Length: 623 [07:19:34]Content-Type: application/json [07:19:34] [07:19:34]POST finish read [07:19:34]Found Content-Length = 623 [07:19:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136549", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:34]execute_script... [07:19: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)136549", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:34]POST & json_proto [07:19:34]process_json_proto [07:19:34]json parsed OK: [07:19:34]protocol is kg_v1.0 [07:19:34]action value=close_receipt [07:19:34]process_action close_receipt [07:19:34]cmd_close_receipt [07:19:34]MH_GetDate [07:19:34]Write to MH i2c: F0 00 00 30 38 57 [07:19:34]Write i2c OK [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: F0 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: F0 09 00 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: F0 09 00 30 38 00 0E F1 A5 66 E7 4B C0 64 C0 [07:19:34]GetLastDocTimeStamp 1722151018 [07:19:34]current date 1722151182 [07:19:34]FM_GetShiftState [07:19:34]SAM_PROTO_GetShiftState [07:19:34]wFMCommunicate request_size=4 [07:19:34]MH_SAM_APDU [07:19:34]CAPDU: 80 13 01 00 [07:19:34]Write to MH i2c: E2 08 00 31 38 80 13 01 00 00 00 00 00 E6 [07:19:34]Write i2c OK [07:19:34]MH_I2C_Read... [07:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:34]Read from MH i2c: E2 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: E2 0E 00 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: E2 0E 00 31 38 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 23 [07:19:34]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [07:19:34]wFMCommunicate OK [07:19:34]SAM_PROTO_GetShiftState done [07:19:34]FM_GetShiftState done [07:19:34]opened in 1722127251 [07:19:34]opened+sec_in_day 1722213651 [07:19:34]quantity*price = 14000 [07:19:34]sum+1 = 14001 [07:19:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 31 28.07.2024 07:19 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69148 ФПД: 96996510353999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T071942&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69148&fm=96996510353999&tin=02508201610067®Number=0000000000092638&sum=14000 0 [07:19:36]StoreToDocumentArchive [07:19:36]shift 429 fd 69148 [07:19:36]save to /storage/0429/doc_00069148 [07:19:36]save last doc name /storage/0429/doc_00069148 to /storage/kkm_last_doc_name [07:19:36]save OK [07:19:36]Clear old archive folders... [07:19:36]ProcessDocumentItem done err = 0, tmpTLVsize=275 [07:19:36]tlvbuf is 00B43B60 [07:19:36]SAM_PROTO_ClearQueue [07:19:36]wFMCommunicate request_size=4 [07:19:36]MH_SAM_APDU [07:19:36]CAPDU: 80 09 00 00 [07:19:36]Write to MH i2c: E2 08 00 3E 38 80 09 00 00 00 00 00 00 E8 [07:19:36]Write i2c OK [07:19:36]MH_I2C_Read... [07:19:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:19:36]Read from MH i2c: E2 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: E2 03 00 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: E2 03 00 3E 38 00 90 00 EA [07:19:36]RAPDU: 90 00 [07:19:36]wFMCommunicate OK [07:19:36]SAM_PROTO_ClearQueue done [07:19:36]KKMCreateOFDPacket [07:19:36]OFDProtocolAddRootSTLVToBuf [07:19:36]FM_MakeSignedData [07:19:36]FM_MakeSignedData [07:19:36]SAM_PROTO_SignData [07:19:36]wFMCommunicate request_size=4 [07:19:36]MH_SAM_APDU [07:19:36]CAPDU: 80 0D 01 02 [07:19:36]Write to MH i2c: E2 08 00 3F 38 80 0D 01 02 00 00 00 00 F0 [07:19:36]Write i2c OK [07:19:36]MH_I2C_Read... [07:19:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:36]Read from MH i2c: E2 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: E2 03 00 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: E2 03 00 3F 38 00 90 00 EB [07:19:36]RAPDU: 90 00 [07:19:36]wFMCommunicate OK [07:19:36]wFMCommunicate request_size=255 [07:19:36]MH_SAM_APDU [07:19:36]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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 0E F1 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 [07:19:36]Write to MH i2c: E2 02 01 40 38 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 0E F1 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 00 00 5A [07:19:36]Write i2c OK [07:19:36]MH_I2C_Read... [07:19:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:36]Read from MH i2c: E2 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: E2 03 00 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: E2 03 00 40 38 00 90 00 EC [07:19:36]RAPDU: 90 00 [07:19:36]wFMCommunicate OK [07:19:36]wFMCommunicate request_size=34 [07:19:36]MH_SAM_APDU [07:19:36]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1C 0E 01 00 35 04 06 00 58 37 C2 8B 4A 4F [07:19:36]Write to MH i2c: E2 25 00 41 38 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1C 0E 01 00 35 04 06 00 58 37 C2 8B 4A 4F 00 00 5D [07:19:36]Write i2c OK [07:19:36]MH_I2C_Read... [07:19:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:36]Read from MH i2c: E2 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: E2 03 00 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: E2 03 00 41 38 00 90 00 ED [07:19:36]RAPDU: 90 00 [07:19:36]wFMCommunicate OK [07:19:36]wFMCommunicate request_size=4 [07:19:36]MH_SAM_APDU [07:19:36]CAPDU: 80 0D 03 02 [07:19:36]Write to MH i2c: E2 08 00 42 38 80 0D 03 02 00 00 00 00 F5 [07:19:36]Write i2c OK [07:19:36]MH_I2C_Read... [07:19:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:36]Read from MH i2c: E2 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: E2 0B 00 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: E2 0B 00 42 38 00 1A EC CC 0B 86 A5 52 17 90 00 67 [07:19:36]RAPDU: 1A EC CC 0B 86 A5 52 17 90 00 [07:19:36]wFMCommunicate OK [07:19:36]SAM_PROTO_SignData done [07:19:36]FM_MakeSignedData done [07:19:36]CreateOFDProtocolMessage [07:19:36]wFMCommunicate request_size=4 [07:19:36]MH_SAM_APDU [07:19:36]CAPDU: 80 11 00 00 [07:19:36]Write to MH i2c: E2 08 00 43 38 80 11 00 00 00 00 00 00 F5 [07:19:36]Write i2c OK [07:19:36]MH_I2C_Read... [07:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:36]Read from MH i2c: E2 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: E2 17 00 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: E2 17 00 43 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 51 [07:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [07:19:36]wFMCommunicate OK [07:19:36]CreateOFDProtocolMessage done [07:19:36]OFDSenderStorePacket 69148 [07:19:36]StoreOFDPacket docnum=69148 [07:19:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 6A 0A 1F 01 8A B1 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 0E F1 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1C 0E 01 00 35 04 06 00 58 37 C2 8B 4A 4F 1A EC CC 0B 86 A5 52 17 [07:19:36]CheckFolder [07:19:36]dirname=/storage/ofd_packets [07:19:36]CheckFolder done [07:19:36]ProducePacketName [07:19:36]name=ofd_packets/00069148 [07:19:36]NVStorageSaveData ofd_packets/00069148 [07:19:36]File name is /storage/ofd_packets/00069148 [07:19:36]Write 325 bytes [07:19:36]NVStorageSaveData done [07:19:36]OFDSenderStorePacket done [07:19:36]KKMCreateOFDPacket done [07:19:36]NVStorageSaveData kkm_last_timestamp [07:19:36]File name is /storage/kkm_last_timestamp [07:19:36]Write 4 bytes [07:19:36]NVStorageSaveData done [07:19:36]ExternCall_PrintAddStr [07:19:36]wPrintStart [07:19:36]Write to MH i2c: 01 00 00 44 38 7C [07:19:36]Write i2c OK [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: 01 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: 01 07 00 [07:19:36]MH_I2C_Read... [07:19:36]Read from MH i2c: 01 07 00 44 38 00 00 00 00 00 FF 0F 91 [07:19:36]RasterBufferAndPrint [07:19:36]line Счет N : (3)136549 [07:19:36]line ИНН: 02508201610067 [07:19:36]line Контрольно-Кассовый Чек [07:19:36]line ПРОДАЖА [07:19:36]line Товар: 48743587 [07:19:36]line Сигареты Winston XStyle Silver [07:19:36]line 1.000 * 140.00 [07:19:36]line = 140.00 [07:19:36]line НДС 12% НСП 1% [07:19:36]line > о реализуемом товаре [07:19:36]line ИТОГО: 140.00 [07:19:36]line НСП 1% : 1.24 [07:19:36]line НДС 12% : 14.87 [07:19:36]line Наличными: 140.00 [07:19:36]line Безнал.: 0.00 [07:19:36]line Место: АЗС № 125 "Партнер Нефть" [07:19:36]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [07:19:36]line СНО: Общий режим [07:19:36]line Чек 31 28.07.2024 07:19 [07:19:36]line Смена: 429 ФФД: 1.0 [07:19:36]line ЗНМ: 0300000049 [07:19:36]line РНМ: 0000000000092638 [07:19:36]line Версия ККМ: 001 [07:19:36]line ФМ: 0000000000874949 [07:19:36]line ФД: 69148 [07:19:36]line ФПД: 96996510353999 [07:19:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T071942&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69148&fm=96996510353999&tin=02508201610067®Number=0000000000092638&sum=14000 [07:19:36]line 0 [07:19:36]written 0, free lines is 4095 [07:19:36]OFD Sender: Processing packet 69148 [packets to send 19, broken 18] [07:19:36]ProducePacketName [07:19:36]name=ofd_packets/00069148 [07:19:36]OFD Sender: To server: pG, [07:19:36]CommunicateWithHost lk.salyk.kg:30040 [07:19:36]ConnectInit lk.salyk.kg [07:19:37]Connected sock=10 [07:19:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 6A 0A 1F 01 8A B1 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 0E F1 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1C 0E 01 00 35 04 06 00 58 37 C2 8B 4A 4F 1A EC CC 0B 86 A5 52 17 [07:19:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 66 EE 47 00 A6 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1C 0E 01 00 F4 03 04 00 7F 97 A5 66 B6 04 01 00 00 1C 53 5B F8 4F D4 F4 D8 [07:19:37]CommunicateWithHost err = 0 [07:19:37]CheckOFDResponse [07:19:37]1017 (14) - 77093643461234 [07:19:37]1041 (16) - 0000000000874949 [07:19:37]1040 (4) - 69148 [07:19:37]1012 (4) - 28.07.2024 00:57 [07:19:37]1206 (1) - 0 [07:19:37]OFD Sender: Remove packet 69148 [07:19:37]ProducePacketName [07:19:37]name=ofd_packets/00069148 [07:19:37]NVStorageDeleteData [07:19:37]Write to MH i2c: 01 00 00 6D 38 A5 [07:19:37]Write i2c OK [07:19:37]MH_I2C_Read... [07:19:37]Read from MH i2c: 01 [07:19:37]MH_I2C_Read... [07:19:37]Read from MH i2c: 01 07 00 [07:19:37]MH_I2C_Read... [07:19:37]Read from MH i2c: 01 07 00 6D 38 00 00 00 00 00 F7 0C AF [07:19:37]RasterBufferAndPrint [07:19:37]line [07:19:37]line [07:19:37]line [07:19:37]line [07:19:37]line [07:19:37]written 0, free lines is 3325 [07:19:37]MH_Cut [07:19:37]Write to MH i2c: D1 01 00 74 38 01 7E [07:19:37]Write i2c OK [07:19:37]MH_I2C_Read... [07:19:37]Read from MH i2c: D1 [07:19:37]MH_I2C_Read... [07:19:37]Read from MH i2c: D1 01 00 [07:19:37]MH_I2C_Read... [07:19:37]Read from MH i2c: D1 01 00 74 38 00 7D [07:19:37]Write to MH i2c: 01 00 00 75 38 AD [07:19:37]Write i2c OK [07:19:37]MH_I2C_Read... [07:19:37]OFD Sender: No OFD packet to send [07:19:38]*** Cut start [07:19:38]*** Partial cut [07:19:38]*** CUTSNS_PIN = 1 [07:19:38]*** CUTSNS_PIN = 0 [07:19:38]*** Brake cut motor [07:19:38]Read from MH i2c: 01 [07:19:38]MH_I2C_Read... [07:19:38]*** Stop cut motor [07:19:38]*** Cut end [07:19:38]Read from MH i2c: 01 07 00 [07:19:38]MH_I2C_Read... [07:19:38]Read from MH i2c: 01 07 00 75 38 00 00 00 00 00 FF 0F C2 [07:19:38]process_action close_receipt done [07:19:38]requested_data is exist [07:19:38]produce_requested_data [07:19:38]requested_item fm.sn is exist - process it [07:19:38]wFMCommunicate request_size=4 [07:19:38]MH_SAM_APDU [07:19:38]CAPDU: 80 11 00 00 [07:19:38]Write to MH i2c: E2 08 00 76 38 80 11 00 00 00 00 00 00 28 [07:19:38]Write i2c OK [07:19:38]MH_I2C_Read... [07:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:38]Read from MH i2c: E2 [07:19:38]MH_I2C_Read... [07:19:38]Read from MH i2c: E2 17 00 [07:19:38]MH_I2C_Read... [07:19:38]Read from MH i2c: E2 17 00 76 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 84 [07:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [07:19:38]wFMCommunicate OK [07:19:38]requested_item fd.num is exist - process it [07:19:38]SAM_PROTO_GetFieldsCounters [07:19:38]wFMCommunicate request_size=4 [07:19:38]MH_SAM_APDU [07:19:38]CAPDU: 80 13 00 00 [07:19:38]Write to MH i2c: E2 08 00 77 38 80 13 00 00 00 00 00 00 2B [07:19:38]Write i2c OK [07:19:38]MH_I2C_Read... [07:19:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:38]Read from MH i2c: E2 [07:19:38]MH_I2C_Read... [07:19:38]Read from MH i2c: E2 62 00 [07:19:38]MH_I2C_Read... [07:19:38]Read from MH i2c: E2 62 00 77 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [07:19: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:19:38]wFMCommunicate OK [07:19:38]SAM_PROTO_GetFieldsCounters done [07:19:38]requested_item shift.num is exist - process it [07:19:38]requested_item shift.opened is exist - process it [07:19:38]req_shift_opened [07:19:38]FM_GetShiftState [07:19:38]SAM_PROTO_GetShiftState [07:19:38]wFMCommunicate request_size=4 [07:19:38]MH_SAM_APDU [07:19:38]CAPDU: 80 13 01 00 [07:19:38]Write to MH i2c: E2 08 00 78 38 80 13 01 00 00 00 00 00 2D [07:19:38]Write i2c OK [07:19:38]MH_I2C_Read... [07:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:38]Read from MH i2c: E2 [07:19:38]MH_I2C_Read... [07:19:38]Read from MH i2c: E2 0E 00 [07:19:38]MH_I2C_Read... [07:19:38]Read from MH i2c: E2 0E 00 78 38 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 6A [07:19:38]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [07:19:38]wFMCommunicate OK [07:19:38]SAM_PROTO_GetShiftState done [07:19:38]FM_GetShiftState done [07:19:38]req_shift_opened done [07:19:38]requested_item shift.open_date is exist - process it [07:19:38]req_shift_open_date [07:19:38]req_shift_open_date done [07:19:38]produce_requested_data done [07:19:38]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69148,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [07:19:38]process_action_free close_receipt [07:19:38]json_value_free [07:19:38]json_value_free done [07:19:38]process_json_proto returns [07:19:38]Send response to host [07:19:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69148,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [07:19:38]free response buf [07:19:38]execute_script done [07:19:38]execute_script returns [07:19:38]free content buf [07:19:38]Sock 9.Close socket [07:19:38]Sock 9.Thread stoped [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:53]accept exits with 7 [07:28:53]New connection [07:28:53]New thread 3066641764 created [07:28:53]Thread 3066785124 joined [07:28:53]Waiting for new connection... [07:28:53] Sock 7.Parse request [07:28:53]Sock 7.Check first char [07:28:53]Sock 7.First char is OK [07:28:53]request: POST /json_proto HTTP/1.0 [07:28:53]Method: POST [07:28:53]URL: /json_proto [07:28:53]Method is POST - this is cgi request [07:28:53]url: /json_proto [07:28:53]query_string will be loaded in cgi processing [07:28:53]execute_cgi json_proto POST (null) [07:28:53]execute_cgi path=json_proto method=POST [07:28:53]POST find Content-Length [07:28:53]Host: 172.17.49.132:8080 [07:28:53]Content-Length: 623 [07:28:53]Content-Type: application/json [07:28:53] [07:28:53]POST finish read [07:28:53]Found Content-Length = 623 [07:28:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136550", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:53]execute_script... [07:28: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)136550", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:53]POST & json_proto [07:28:53]process_json_proto [07:28:53]json parsed OK: [07:28:53]protocol is kg_v1.0 [07:28:53]action value=close_receipt [07:28:53]process_action close_receipt [07:28:53]cmd_close_receipt [07:28:53]MH_GetDate [07:28:53]Write to MH i2c: F0 00 00 79 38 A0 [07:28:53]Write i2c OK [07:28:53]MH_I2C_Read... [07:28:53]Read from MH i2c: F0 [07:28:53]MH_I2C_Read... [07:28:53]Read from MH i2c: F0 09 00 [07:28:53]MH_I2C_Read... [07:28:53]Read from MH i2c: F0 09 00 79 38 00 3D F3 A5 66 E7 4B C0 64 3A [07:28:53]GetLastDocTimeStamp 1722151182 [07:28:53]current date 1722151741 [07:28:53]FM_GetShiftState [07:28:53]SAM_PROTO_GetShiftState [07:28:53]wFMCommunicate request_size=4 [07:28:53]MH_SAM_APDU [07:28:53]CAPDU: 80 13 01 00 [07:28:53]Write to MH i2c: E2 08 00 7A 38 80 13 01 00 00 00 00 00 2F [07:28:53]Write i2c OK [07:28:53]MH_I2C_Read... [07:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:53]Read from MH i2c: E2 [07:28:53]MH_I2C_Read... [07:28:53]Read from MH i2c: E2 0E 00 [07:28:53]MH_I2C_Read... [07:28:53]Read from MH i2c: E2 0E 00 7A 38 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 6C [07:28:53]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [07:28:53]wFMCommunicate OK [07:28:53]SAM_PROTO_GetShiftState done [07:28:53]FM_GetShiftState done [07:28:53]opened in 1722127251 [07:28:53]opened+sec_in_day 1722213651 [07:28:53]quantity*price = 14000 [07:28:53]sum+1 = 14001 [07:28:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 32 28.07.2024 07:29 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69149 ФПД: 128194447800954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T072901&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69149&fm=128194447800954&tin=02508201610067®Number=0000000000092638&sum=14000 0 [07:28:54]StoreToDocumentArchive [07:28:54]shift 429 fd 69149 [07:28:54]save to /storage/0429/doc_00069149 [07:28:54]save last doc name /storage/0429/doc_00069149 to /storage/kkm_last_doc_name [07:28:54]save OK [07:28:54]Clear old archive folders... [07:28:54]ProcessDocumentItem done err = 0, tmpTLVsize=275 [07:28:54]tlvbuf is 00AB06A0 [07:28:54]SAM_PROTO_ClearQueue [07:28:54]wFMCommunicate request_size=4 [07:28:54]MH_SAM_APDU [07:28:54]CAPDU: 80 09 00 00 [07:28:54]Write to MH i2c: E2 08 00 87 38 80 09 00 00 00 00 00 00 31 [07:28:54]Write i2c OK [07:28:54]MH_I2C_Read... [07:28:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:55]Read from MH i2c: E2 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: E2 03 00 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: E2 03 00 87 38 00 90 00 33 [07:28:55]RAPDU: 90 00 [07:28:55]wFMCommunicate OK [07:28:55]SAM_PROTO_ClearQueue done [07:28:55]KKMCreateOFDPacket [07:28:55]OFDProtocolAddRootSTLVToBuf [07:28:55]FM_MakeSignedData [07:28:55]FM_MakeSignedData [07:28:55]SAM_PROTO_SignData [07:28:55]wFMCommunicate request_size=4 [07:28:55]MH_SAM_APDU [07:28:55]CAPDU: 80 0D 01 02 [07:28:55]Write to MH i2c: E2 08 00 88 38 80 0D 01 02 00 00 00 00 39 [07:28:55]Write i2c OK [07:28:55]MH_I2C_Read... [07:28:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:55]Read from MH i2c: E2 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: E2 03 00 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: E2 03 00 88 38 00 90 00 34 [07:28:55]RAPDU: 90 00 [07:28:55]wFMCommunicate OK [07:28:55]wFMCommunicate request_size=255 [07:28:55]MH_SAM_APDU [07:28:55]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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3D F3 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 [07:28:55]Write to MH i2c: E2 02 01 89 38 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3D F3 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 00 00 D5 [07:28:55]Write i2c OK [07:28:55]MH_I2C_Read... [07:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:55]Read from MH i2c: E2 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: E2 03 00 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: E2 03 00 89 38 00 90 00 35 [07:28:55]RAPDU: 90 00 [07:28:55]wFMCommunicate OK [07:28:55]wFMCommunicate request_size=34 [07:28:55]MH_SAM_APDU [07:28:55]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1D 0E 01 00 35 04 06 00 74 97 98 85 FA 7A [07:28:55]Write to MH i2c: E2 25 00 8A 38 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1D 0E 01 00 35 04 06 00 74 97 98 85 FA 7A 00 00 CE [07:28:55]Write i2c OK [07:28:55]MH_I2C_Read... [07:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:55]Read from MH i2c: E2 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: E2 03 00 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: E2 03 00 8A 38 00 90 00 36 [07:28:55]RAPDU: 90 00 [07:28:55]wFMCommunicate OK [07:28:55]wFMCommunicate request_size=4 [07:28:55]MH_SAM_APDU [07:28:55]CAPDU: 80 0D 03 02 [07:28:55]Write to MH i2c: E2 08 00 8B 38 80 0D 03 02 00 00 00 00 3E [07:28:55]Write i2c OK [07:28:55]MH_I2C_Read... [07:28:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:55]Read from MH i2c: E2 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: E2 0B 00 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: E2 0B 00 8B 38 00 FA 94 05 18 FA CD DF F6 90 00 86 [07:28:55]RAPDU: FA 94 05 18 FA CD DF F6 90 00 [07:28:55]wFMCommunicate OK [07:28:55]SAM_PROTO_SignData done [07:28:55]FM_MakeSignedData done [07:28:55]CreateOFDProtocolMessage [07:28:55]wFMCommunicate request_size=4 [07:28:55]MH_SAM_APDU [07:28:55]CAPDU: 80 11 00 00 [07:28:55]Write to MH i2c: E2 08 00 8C 38 80 11 00 00 00 00 00 00 3E [07:28:55]Write i2c OK [07:28:55]MH_I2C_Read... [07:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:55]Read from MH i2c: E2 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: E2 17 00 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: E2 17 00 8C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9A [07:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [07:28:55]wFMCommunicate OK [07:28:55]CreateOFDProtocolMessage done [07:28:55]OFDSenderStorePacket 69149 [07:28:55]StoreOFDPacket docnum=69149 [07:28:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 FA 41 1F 01 85 C7 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3D F3 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1D 0E 01 00 35 04 06 00 74 97 98 85 FA 7A FA 94 05 18 FA CD DF F6 [07:28:55]CheckFolder [07:28:55]dirname=/storage/ofd_packets [07:28:55]CheckFolder done [07:28:55]ProducePacketName [07:28:55]name=ofd_packets/00069149 [07:28:55]NVStorageSaveData ofd_packets/00069149 [07:28:55]File name is /storage/ofd_packets/00069149 [07:28:55]Write 325 bytes [07:28:55]NVStorageSaveData done [07:28:55]OFDSenderStorePacket done [07:28:55]KKMCreateOFDPacket done [07:28:55]NVStorageSaveData kkm_last_timestamp [07:28:55]File name is /storage/kkm_last_timestamp [07:28:55]Write 4 bytes [07:28:55]NVStorageSaveData done [07:28:55]ExternCall_PrintAddStr [07:28:55]wPrintStart [07:28:55]Write to MH i2c: 01 00 00 8D 38 C5 [07:28:55]Write i2c OK [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: 01 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: 01 07 00 [07:28:55]MH_I2C_Read... [07:28:55]Read from MH i2c: 01 07 00 8D 38 00 00 00 00 00 FF 0F DA [07:28:55]RasterBufferAndPrint [07:28:55]line Счет N : (3)136550 [07:28:55]line ИНН: 02508201610067 [07:28:55]line Контрольно-Кассовый Чек [07:28:55]line ПРОДАЖА [07:28:55]line Товар: 48743587 [07:28:55]line Сигареты Winston XStyle Silver [07:28:55]line 1.000 * 140.00 [07:28:55]line = 140.00 [07:28:55]line НДС 12% НСП 1% [07:28:55]line > о реализуемом товаре [07:28:55]line ИТОГО: 140.00 [07:28:55]line НСП 1% : 1.24 [07:28:55]line НДС 12% : 14.87 [07:28:55]line Наличными: 140.00 [07:28:55]line Безнал.: 0.00 [07:28:55]line Место: АЗС № 125 "Партнер Нефть" [07:28:55]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [07:28:55]line СНО: Общий режим [07:28:55]line Чек 32 28.07.2024 07:29 [07:28:55]line Смена: 429 ФФД: 1.0 [07:28:55]line ЗНМ: 0300000049 [07:28:55]line РНМ: 0000000000092638 [07:28:55]line Версия ККМ: 001 [07:28:55]line ФМ: 0000000000874949 [07:28:55]line ФД: 69149 [07:28:55]line ФПД: 128194447800954 [07:28:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T072901&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69149&fm=128194447800954&tin=02508201610067®Number=0000000000092638&sum=14000 [07:28:55]line 0 [07:28:55]OFD Sender: Processing packet 69149 [packets to send 19, broken 18] [07:28:55]ProducePacketName [07:28:55]name=ofd_packets/00069149 [07:28:55]OFD Sender: To server: pG, [07:28:55]CommunicateWithHost lk.salyk.kg:30040 [07:28:55]ConnectInit lk.salyk.kg [07:28:55]written 0, free lines is 4095 [07:28:55]Connected sock=10 [07:28: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 39 34 39 27 01 00 00 FA 41 1F 01 85 C7 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3D F3 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1D 0E 01 00 35 04 06 00 74 97 98 85 FA 7A FA 94 05 18 FA CD DF F6 [07:28:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 69 88 47 00 A3 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1D 0E 01 00 F4 03 04 00 AE 99 A5 66 B6 04 01 00 00 DB 3A 90 97 99 FD DB 2A [07:28:56]CommunicateWithHost err = 0 [07:28:56]CheckOFDResponse [07:28:56]1017 (14) - 77093643461234 [07:28:56]1041 (16) - 0000000000874949 [07:28:56]1040 (4) - 69149 [07:28:56]1012 (4) - 28.07.2024 01:06 [07:28:56]1206 (1) - 0 [07:28:56]OFD Sender: Remove packet 69149 [07:28:56]ProducePacketName [07:28:56]name=ofd_packets/00069149 [07:28:56]NVStorageDeleteData [07:28:56]Write to MH i2c: 01 00 00 B6 38 EE [07:28:56]Write i2c OK [07:28:56]MH_I2C_Read... [07:28:56]Read from MH i2c: 01 [07:28:56]MH_I2C_Read... [07:28:56]Read from MH i2c: 01 07 00 [07:28:56]MH_I2C_Read... [07:28:56]Read from MH i2c: 01 07 00 B6 38 00 00 00 00 00 00 0D 02 [07:28:56]RasterBufferAndPrint [07:28:56]line [07:28:56]line [07:28:56]line [07:28:56]line [07:28:56]line [07:28:56]written 0, free lines is 3334 [07:28:56]MH_Cut [07:28:56]Write to MH i2c: D1 01 00 BD 38 01 C7 [07:28:56]Write i2c OK [07:28:56]MH_I2C_Read... [07:28:56]Read from MH i2c: D1 [07:28:56]MH_I2C_Read... [07:28:56]Read from MH i2c: D1 01 00 [07:28:56]MH_I2C_Read... [07:28:56]Read from MH i2c: D1 01 00 BD 38 00 C6 [07:28:56]Write to MH i2c: 01 00 00 BE 38 F6 [07:28:56]Write i2c OK [07:28:56]MH_I2C_Read... [07:28:56]OFD Sender: No OFD packet to send [07:28:56]*** Cut start [07:28:56]*** Partial cut [07:28:56]*** CUTSNS_PIN = 1 [07:28:57]*** CUTSNS_PIN = 0 [07:28:57]*** Brake cut motor [07:28:57]Read from MH i2c: 01 [07:28:57]MH_I2C_Read... [07:28:57]*** Stop cut motor [07:28:57]*** Cut end [07:28:57]Read from MH i2c: 01 07 00 [07:28:57]MH_I2C_Read... [07:28:57]Read from MH i2c: 01 07 00 BE 38 00 00 00 00 00 FF 0F 0B [07:28:57]process_action close_receipt done [07:28:57]requested_data is exist [07:28:57]produce_requested_data [07:28:57]requested_item fm.sn is exist - process it [07:28:57]wFMCommunicate request_size=4 [07:28:57]MH_SAM_APDU [07:28:57]CAPDU: 80 11 00 00 [07:28:57]Write to MH i2c: E2 08 00 BF 38 80 11 00 00 00 00 00 00 71 [07:28:57]Write i2c OK [07:28:57]MH_I2C_Read... [07:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:57]Read from MH i2c: E2 [07:28:57]MH_I2C_Read... [07:28:57]Read from MH i2c: E2 17 00 [07:28:57]MH_I2C_Read... [07:28:57]Read from MH i2c: E2 17 00 BF 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 CD [07:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [07:28:57]wFMCommunicate OK [07:28:57]requested_item fd.num is exist - process it [07:28:57]SAM_PROTO_GetFieldsCounters [07:28:57]wFMCommunicate request_size=4 [07:28:57]MH_SAM_APDU [07:28:57]CAPDU: 80 13 00 00 [07:28:57]Write to MH i2c: E2 08 00 C0 38 80 13 00 00 00 00 00 00 74 [07:28:57]Write i2c OK [07:28:57]MH_I2C_Read... [07:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:57]Read from MH i2c: E2 [07:28:57]MH_I2C_Read... [07:28:57]Read from MH i2c: E2 62 00 [07:28:57]MH_I2C_Read... [07:28:57]Read from MH i2c: E2 62 00 C0 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [07:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:28:57]wFMCommunicate OK [07:28:57]SAM_PROTO_GetFieldsCounters done [07:28:57]requested_item shift.num is exist - process it [07:28:57]requested_item shift.opened is exist - process it [07:28:57]req_shift_opened [07:28:57]FM_GetShiftState [07:28:57]SAM_PROTO_GetShiftState [07:28:57]wFMCommunicate request_size=4 [07:28:57]MH_SAM_APDU [07:28:57]CAPDU: 80 13 01 00 [07:28:57]Write to MH i2c: E2 08 00 C1 38 80 13 01 00 00 00 00 00 76 [07:28:57]Write i2c OK [07:28:57]MH_I2C_Read... [07:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:57]Read from MH i2c: E2 [07:28:57]MH_I2C_Read... [07:28:57]Read from MH i2c: E2 0E 00 [07:28:57]MH_I2C_Read... [07:28:57]Read from MH i2c: E2 0E 00 C1 38 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 B3 [07:28:57]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [07:28:57]wFMCommunicate OK [07:28:57]SAM_PROTO_GetShiftState done [07:28:57]FM_GetShiftState done [07:28:57]req_shift_opened done [07:28:57]requested_item shift.open_date is exist - process it [07:28:57]req_shift_open_date [07:28:57]req_shift_open_date done [07:28:57]produce_requested_data done [07:28:57]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69149,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [07:28:57]process_action_free close_receipt [07:28:57]json_value_free [07:28:57]json_value_free done [07:28:57]process_json_proto returns [07:28:57]Send response to host [07:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69149,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [07:28:57]free response buf [07:28:57]execute_script done [07:28:57]execute_script returns [07:28:57]free content buf [07:28:57]Sock 7.Close socket [07:28:57]Sock 7.Thread stoped [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:01]accept exits with 9 [07:53:01]New connection [07:53:01]New thread 3066785124 created [07:53:01]Thread 3066641764 joined [07:53:01]Waiting for new connection... [07:53:01] Sock 9.Parse request [07:53:01]Sock 9.Check first char [07:53:01]Sock 9.First char is OK [07:53:01]request: POST /json_proto HTTP/1.0 [07:53:01]Method: POST [07:53:01]URL: /json_proto [07:53:01]Method is POST - this is cgi request [07:53:01]url: /json_proto [07:53:01]query_string will be loaded in cgi processing [07:53:01]execute_cgi json_proto POST (null) [07:53:01]execute_cgi path=json_proto method=POST [07:53:01]POST find Content-Length [07:53:01]Host: 172.17.49.132:8080 [07:53:01]Content-Length: 629 [07:53:01]Content-Type: application/json [07:53:01] [07:53:01]POST finish read [07:53:01]Found Content-Length = 629 [07:53:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136551", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "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" ] } } [07:53:01]execute_script... [07:53:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136551", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "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" ] } } [07:53:01]POST & json_proto [07:53:01]process_json_proto [07:53:01]json parsed OK: [07:53:01]protocol is kg_v1.0 [07:53:01]action value=close_receipt [07:53:01]process_action close_receipt [07:53:01]cmd_close_receipt [07:53:01]MH_GetDate [07:53:01]Write to MH i2c: F0 00 00 C2 38 E9 [07:53:01]Write i2c OK [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: F0 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: F0 09 00 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: F0 09 00 C2 38 00 E5 F8 A5 66 E7 4B C0 64 30 [07:53:01]GetLastDocTimeStamp 1722151741 [07:53:01]current date 1722153189 [07:53:01]FM_GetShiftState [07:53:01]SAM_PROTO_GetShiftState [07:53:01]wFMCommunicate request_size=4 [07:53:01]MH_SAM_APDU [07:53:01]CAPDU: 80 13 01 00 [07:53:01]Write to MH i2c: E2 08 00 C3 38 80 13 01 00 00 00 00 00 78 [07:53:01]Write i2c OK [07:53:01]MH_I2C_Read... [07:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:01]Read from MH i2c: E2 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: E2 0E 00 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: E2 0E 00 C3 38 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 B5 [07:53:01]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [07:53:01]wFMCommunicate OK [07:53:01]SAM_PROTO_GetShiftState done [07:53:01]FM_GetShiftState done [07:53:01]opened in 1722127251 [07:53:01]opened+sec_in_day 1722213651 [07:53:01]quantity*price = 24000 [07:53:01]sum+1 = 24001 [07:53:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 33 28.07.2024 07:53 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69150 ФПД: 116565863950270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075309&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69150&fm=116565863950270&tin=02508201610067®Number=0000000000092638&sum=24000 0 [07:53:03]StoreToDocumentArchive [07:53:03]shift 429 fd 69150 [07:53:03]save to /storage/0429/doc_00069150 [07:53:03]save last doc name /storage/0429/doc_00069150 to /storage/kkm_last_doc_name [07:53:03]save OK [07:53:03]Clear old archive folders... [07:53:03]ProcessDocumentItem done err = 0, tmpTLVsize=269 [07:53:03]tlvbuf is 00B6A520 [07:53:03]SAM_PROTO_ClearQueue [07:53:03]wFMCommunicate request_size=4 [07:53:03]MH_SAM_APDU [07:53:03]CAPDU: 80 09 00 00 [07:53:03]Write to MH i2c: E2 08 00 D0 38 80 09 00 00 00 00 00 00 7A [07:53:03]Write i2c OK [07:53:03]MH_I2C_Read... [07:53:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:03]Read from MH i2c: E2 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: E2 03 00 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: E2 03 00 D0 38 00 90 00 7C [07:53:03]RAPDU: 90 00 [07:53:03]wFMCommunicate OK [07:53:03]SAM_PROTO_ClearQueue done [07:53:03]KKMCreateOFDPacket [07:53:03]OFDProtocolAddRootSTLVToBuf [07:53:03]FM_MakeSignedData [07:53:03]FM_MakeSignedData [07:53:03]SAM_PROTO_SignData [07:53:03]wFMCommunicate request_size=4 [07:53:03]MH_SAM_APDU [07:53:03]CAPDU: 80 0D 01 02 [07:53:03]Write to MH i2c: E2 08 00 D1 38 80 0D 01 02 00 00 00 00 82 [07:53:03]Write i2c OK [07:53:03]MH_I2C_Read... [07:53:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:03]Read from MH i2c: E2 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: E2 03 00 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: E2 03 00 D1 38 00 90 00 7D [07:53:03]RAPDU: 90 00 [07:53:03]wFMCommunicate OK [07:53:03]wFMCommunicate request_size=255 [07:53:03]MH_SAM_APDU [07:53:03]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 21 00 00 00 F4 03 04 00 E5 F8 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [07:53:03]Write to MH i2c: E2 02 01 D2 38 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 21 00 00 00 F4 03 04 00 E5 F8 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 C3 [07:53:03]Write i2c OK [07:53:03]MH_I2C_Read... [07:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:03]Read from MH i2c: E2 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: E2 03 00 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: E2 03 00 D2 38 00 90 00 7E [07:53:03]RAPDU: 90 00 [07:53:03]wFMCommunicate OK [07:53:03]wFMCommunicate request_size=28 [07:53:03]MH_SAM_APDU [07:53:03]CAPDU: 80 0D 02 02 17 37 34 39 34 39 10 04 04 00 1E 0E 01 00 35 04 06 00 6A 04 1A E9 E7 BE [07:53:03]Write to MH i2c: E2 1F 00 D3 38 80 0D 02 02 17 00 37 34 39 34 39 10 04 04 00 1E 0E 01 00 35 04 06 00 6A 04 1A E9 E7 BE 00 00 5E [07:53:03]Write i2c OK [07:53:03]MH_I2C_Read... [07:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:03]Read from MH i2c: E2 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: E2 03 00 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: E2 03 00 D3 38 00 90 00 7F [07:53:03]RAPDU: 90 00 [07:53:03]wFMCommunicate OK [07:53:03]wFMCommunicate request_size=4 [07:53:03]MH_SAM_APDU [07:53:03]CAPDU: 80 0D 03 02 [07:53:03]Write to MH i2c: E2 08 00 D4 38 80 0D 03 02 00 00 00 00 87 [07:53:03]Write i2c OK [07:53:03]MH_I2C_Read... [07:53:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:03]Read from MH i2c: E2 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: E2 0B 00 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: E2 0B 00 D4 38 00 88 C4 32 29 5C C7 A2 57 90 00 4B [07:53:03]RAPDU: 88 C4 32 29 5C C7 A2 57 90 00 [07:53:03]wFMCommunicate OK [07:53:03]SAM_PROTO_SignData done [07:53:03]FM_MakeSignedData done [07:53:03]CreateOFDProtocolMessage [07:53:03]wFMCommunicate request_size=4 [07:53:03]MH_SAM_APDU [07:53:03]CAPDU: 80 11 00 00 [07:53:03]Write to MH i2c: E2 08 00 D5 38 80 11 00 00 00 00 00 00 87 [07:53:03]Write i2c OK [07:53:03]MH_I2C_Read... [07:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:03]Read from MH i2c: E2 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: E2 17 00 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: E2 17 00 D5 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E3 [07:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [07:53:03]wFMCommunicate OK [07:53:03]CreateOFDProtocolMessage done [07:53:03]OFDSenderStorePacket 69150 [07:53:03]StoreOFDPacket docnum=69150 [07:53:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 21 01 00 00 AC 50 19 01 51 CD 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 21 00 00 00 F4 03 04 00 E5 F8 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1E 0E 01 00 35 04 06 00 6A 04 1A E9 E7 BE 88 C4 32 29 5C C7 A2 57 [07:53:03]CheckFolder [07:53:03]dirname=/storage/ofd_packets [07:53:03]CheckFolder done [07:53:03]ProducePacketName [07:53:03]name=ofd_packets/00069150 [07:53:03]NVStorageSaveData ofd_packets/00069150 [07:53:03]File name is /storage/ofd_packets/00069150 [07:53:03]Write 319 bytes [07:53:03]NVStorageSaveData done [07:53:03]OFDSenderStorePacket done [07:53:03]KKMCreateOFDPacket done [07:53:03]NVStorageSaveData kkm_last_timestamp [07:53:03]File name is /storage/kkm_last_timestamp [07:53:03]Write 4 bytes [07:53:03]NVStorageSaveData done [07:53:03]ExternCall_PrintAddStr [07:53:03]wPrintStart [07:53:03]Write to MH i2c: 01 00 00 D6 38 0E [07:53:03]Write i2c OK [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: 01 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: 01 07 00 [07:53:03]MH_I2C_Read... [07:53:03]Read from MH i2c: 01 07 00 D6 38 00 00 00 00 00 FF 0F 23 [07:53:03]RasterBufferAndPrint [07:53:03]line Счет N : (3)136551 [07:53:03]line ИНН: 02508201610067 [07:53:03]line Контрольно-Кассовый Чек [07:53:03]line ПРОДАЖА [07:53:03]line Товар: 4620006996716 [07:53:03]line Водка Талка 0,1л [07:53:03]line 2.000 * 120.00 [07:53:03]line = 240.00 [07:53:03]line НДС 12% НСП 1% [07:53:03]line > о реализуемом товаре [07:53:03]line ИТОГО: 240.00 [07:53:03]line НСП 1% : 2.12 [07:53:03]line НДС 12% : 25.49 [07:53:03]line Наличными: 240.00 [07:53:03]line Безнал.: 0.00 [07:53:03]line Место: АЗС № 125 "Партнер Нефть" [07:53:03]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [07:53:03]line СНО: Общий режим [07:53:03]line Чек 33 28.07.2024 07:53 [07:53:03]line Смена: 429 ФФД: 1.0 [07:53:03]line ЗНМ: 0300000049 [07:53:03]line РНМ: 0000000000092638 [07:53:03]line Версия ККМ: 001 [07:53:03]line ФМ: 0000000000874949 [07:53:03]line ФД: 69150 [07:53:03]line ФПД: 116565863950270 [07:53:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T075309&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69150&fm=116565863950270&tin=02508201610067®Number=0000000000092638&sum=24000 [07:53:03]OFD Sender: Processing packet 69150 [packets to send 19, broken 18] [07:53:03]ProducePacketName [07:53:03]name=ofd_packets/00069150 [07:53:03]OFD Sender: To server: pG, [07:53:03]CommunicateWithHost lk.salyk.kg:30040 [07:53:03]ConnectInit lk.salyk.kg [07:53:03]line 0 [07:53:03]written 0, free lines is 4095 [07:53:04]Connected sock=10 [07:53: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 39 34 39 21 01 00 00 AC 50 19 01 51 CD 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 21 00 00 00 F4 03 04 00 E5 F8 A5 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1E 0E 01 00 35 04 06 00 6A 04 1A E9 E7 BE 88 C4 32 29 5C C7 A2 57 [07:53:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CC 06 47 00 53 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1E 0E 01 00 F4 03 04 00 56 9F A5 66 B6 04 01 00 00 69 58 EC ED 22 0F 2E 94 [07:53:04]CommunicateWithHost err = 0 [07:53:04]CheckOFDResponse [07:53:04]1017 (14) - 77093643461234 [07:53:04]1041 (16) - 0000000000874949 [07:53:04]1040 (4) - 69150 [07:53:04]1012 (4) - 28.07.2024 01:31 [07:53:04]1206 (1) - 0 [07:53:04]OFD Sender: Remove packet 69150 [07:53:04]ProducePacketName [07:53:04]name=ofd_packets/00069150 [07:53:04]NVStorageDeleteData [07:53:04]Write to MH i2c: 01 00 00 FE 38 36 [07:53:04]Write i2c OK [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: 01 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: 01 07 00 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: 01 07 00 FE 38 00 00 00 00 00 23 0D 6D [07:53:04]RasterBufferAndPrint [07:53:04]line [07:53:04]line [07:53:04]line [07:53:04]line [07:53:04]line [07:53:04]written 0, free lines is 3372 [07:53:04]MH_Cut [07:53:04]Write to MH i2c: D1 01 00 05 39 01 10 [07:53:04]Write i2c OK [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: D1 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: D1 01 00 [07:53:04]MH_I2C_Read... [07:53:04]Read from MH i2c: D1 01 00 05 39 00 0F [07:53:04]Write to MH i2c: 01 00 00 06 39 3F [07:53:04]Write i2c OK [07:53:04]MH_I2C_Read... [07:53:04]OFD Sender: No OFD packet to send [07:53:05]*** Cut start [07:53:05]*** Partial cut [07:53:05]*** CUTSNS_PIN = 1 [07:53:05]*** CUTSNS_PIN = 0 [07:53:05]*** Brake cut motor [07:53:05]Read from MH i2c: 01 [07:53:05]MH_I2C_Read... [07:53:05]*** Stop cut motor [07:53:05]*** Cut end [07:53:05]Read from MH i2c: 01 07 00 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: 01 07 00 06 39 00 00 00 00 00 FF 0F 54 [07:53:05]process_action close_receipt done [07:53:05]requested_data is exist [07:53:05]produce_requested_data [07:53:05]requested_item fm.sn is exist - process it [07:53:05]wFMCommunicate request_size=4 [07:53:05]MH_SAM_APDU [07:53:05]CAPDU: 80 11 00 00 [07:53:05]Write to MH i2c: E2 08 00 07 39 80 11 00 00 00 00 00 00 BA [07:53:05]Write i2c OK [07:53:05]MH_I2C_Read... [07:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:05]Read from MH i2c: E2 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: E2 17 00 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: E2 17 00 07 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 16 [07:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [07:53:05]wFMCommunicate OK [07:53:05]requested_item fd.num is exist - process it [07:53:05]SAM_PROTO_GetFieldsCounters [07:53:05]wFMCommunicate request_size=4 [07:53:05]MH_SAM_APDU [07:53:05]CAPDU: 80 13 00 00 [07:53:05]Write to MH i2c: E2 08 00 08 39 80 13 00 00 00 00 00 00 BD [07:53:05]Write i2c OK [07:53:05]MH_I2C_Read... [07:53:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:05]Read from MH i2c: E2 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: E2 62 00 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: E2 62 00 08 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [07:53: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:53:05]wFMCommunicate OK [07:53:05]SAM_PROTO_GetFieldsCounters done [07:53:05]requested_item shift.num is exist - process it [07:53:05]requested_item shift.opened is exist - process it [07:53:05]req_shift_opened [07:53:05]FM_GetShiftState [07:53:05]SAM_PROTO_GetShiftState [07:53:05]wFMCommunicate request_size=4 [07:53:05]MH_SAM_APDU [07:53:05]CAPDU: 80 13 01 00 [07:53:05]Write to MH i2c: E2 08 00 09 39 80 13 01 00 00 00 00 00 BF [07:53:05]Write i2c OK [07:53:05]MH_I2C_Read... [07:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:05]Read from MH i2c: E2 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: E2 0E 00 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: E2 0E 00 09 39 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 FC [07:53:05]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [07:53:05]wFMCommunicate OK [07:53:05]SAM_PROTO_GetShiftState done [07:53:05]FM_GetShiftState done [07:53:05]req_shift_opened done [07:53:05]requested_item shift.open_date is exist - process it [07:53:05]req_shift_open_date [07:53:05]req_shift_open_date done [07:53:05]produce_requested_data done [07:53:05]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69150,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [07:53:05]process_action_free close_receipt [07:53:05]json_value_free [07:53:05]json_value_free done [07:53:05]process_json_proto returns [07:53:05]Send response to host [07:53:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69150,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [07:53:05]free response buf [07:53:05]execute_script done [07:53:05]execute_script returns [07:53:05]free content buf [07:53:05]Sock 9.Close socket [07:53:05]Sock 9.Thread stoped [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:14]accept exits with 7 [08:56:14]New connection [08:56:14]New thread 3066641764 created [08:56:14]Thread 3066785124 joined [08:56:14]Waiting for new connection... [08:56:14] Sock 7.Parse request [08:56:14]Sock 7.Check first char [08:56:14]Sock 7.First char is OK [08:56:14]request: POST /json_proto HTTP/1.0 [08:56:14]Method: POST [08:56:14]URL: /json_proto [08:56:14]Method is POST - this is cgi request [08:56:14]url: /json_proto [08:56:14]query_string will be loaded in cgi processing [08:56:14]execute_cgi json_proto POST (null) [08:56:14]execute_cgi path=json_proto method=POST [08:56:14]POST find Content-Length [08:56:14]Host: 172.17.49.132:8080 [08:56:14]Content-Length: 1111 [08:56:14]Content-Type: application/json [08:56:14] [08:56:14]POST finish read [08:56:14]Found Content-Length = 1111 [08:56:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136552", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\u043B", "price" : 630.00, "quantity" : 1.000, "sum" : 630.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 779.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:14]execute_script... [08:56: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 : (3)136552", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\u043B", "price" : 630.00, "quantity" : 1.000, "sum" : 630.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 779.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:14]POST & json_proto [08:56:14]process_json_proto [08:56:14]json parsed OK: [08:56:14]protocol is kg_v1.0 [08:56:14]action value=close_receipt [08:56:14]process_action close_receipt [08:56:14]cmd_close_receipt [08:56:14]MH_GetDate [08:56:14]Write to MH i2c: F0 00 00 0A 39 32 [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: F0 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: F0 09 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: F0 09 00 0A 39 00 B6 07 A6 66 E7 4B C0 64 5A [08:56:14]GetLastDocTimeStamp 1722153189 [08:56:14]current date 1722156982 [08:56:14]FM_GetShiftState [08:56:14]SAM_PROTO_GetShiftState [08:56:14]wFMCommunicate request_size=4 [08:56:14]MH_SAM_APDU [08:56:14]CAPDU: 80 13 01 00 [08:56:14]Write to MH i2c: E2 08 00 0B 39 80 13 01 00 00 00 00 00 C1 [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:14]Read from MH i2c: E2 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 0E 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 0E 00 0B 39 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 FE [08:56:14]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [08:56:14]wFMCommunicate OK [08:56:14]SAM_PROTO_GetShiftState done [08:56:14]FM_GetShiftState done [08:56:14]opened in 1722127251 [08:56:14]opened+sec_in_day 1722213651 [08:56:14]quantity*price = 63000 [08:56:14]sum+1 = 63001 [08:56:14]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700001610012 Пиво Арпа 0,5л 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 779.00 НСП 1% : 6.88 НДС 12% : 82.72 Наличными: 779.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 34 28.07.2024 08:56 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69151 ФПД: 146749340054032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T085622&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69151&fm=146749340054032&tin=02508201610067®Number=0000000000092638&sum=77900 0 [08:56:15]StoreToDocumentArchive [08:56:15]shift 429 fd 69151 [08:56:15]save to /storage/0429/doc_00069151 [08:56:15]save last doc name /storage/0429/doc_00069151 to /storage/kkm_last_doc_name [08:56:15]save OK [08:56:15]Clear old archive folders... [08:56:15]ProcessDocumentItem done err = 0, tmpTLVsize=467 [08:56:15]tlvbuf is 00B6A190 [08:56:15]SAM_PROTO_ClearQueue [08:56:15]wFMCommunicate request_size=4 [08:56:15]MH_SAM_APDU [08:56:15]CAPDU: 80 09 00 00 [08:56:15]Write to MH i2c: E2 08 00 18 39 80 09 00 00 00 00 00 00 C3 [08:56:15]Write i2c OK [08:56:15]MH_I2C_Read... [08:56:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:15]Read from MH i2c: E2 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: E2 03 00 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: E2 03 00 18 39 00 90 00 C5 [08:56:15]RAPDU: 90 00 [08:56:15]wFMCommunicate OK [08:56:15]SAM_PROTO_ClearQueue done [08:56:15]KKMCreateOFDPacket [08:56:15]OFDProtocolAddRootSTLVToBuf [08:56:15]FM_MakeSignedData [08:56:15]FM_MakeSignedData [08:56:15]SAM_PROTO_SignData [08:56:15]wFMCommunicate request_size=4 [08:56:15]MH_SAM_APDU [08:56:15]CAPDU: 80 0D 01 02 [08:56:15]Write to MH i2c: E2 08 00 19 39 80 0D 01 02 00 00 00 00 CB [08:56:15]Write i2c OK [08:56:15]MH_I2C_Read... [08:56:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:15]Read from MH i2c: E2 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: E2 03 00 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: E2 03 00 19 39 00 90 00 C6 [08:56:15]RAPDU: 90 00 [08:56:15]wFMCommunicate OK [08:56:15]wFMCommunicate request_size=255 [08:56:15]MH_SAM_APDU [08:56:15]CAPDU: 80 0D 02 02 FA 03 00 D3 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 [08:56:15]Write to MH i2c: E2 02 01 1A 39 80 0D 02 02 FA 00 03 00 D3 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 00 00 69 [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 03 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 03 00 1A 39 00 90 00 C7 [08:56:16]RAPDU: 90 00 [08:56:16]wFMCommunicate OK [08:56:16]wFMCommunicate request_size=226 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 0D 02 02 DD 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 20 00 00 00 00 07 04 06 00 4C 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 B6 07 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1F 0E 01 00 35 04 06 00 85 77 BE 48 F2 10 [08:56:16]Write to MH i2c: E2 E5 00 1B 39 80 0D 02 02 DD 00 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 20 00 00 00 00 07 04 06 00 4C 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 B6 07 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1F 0E 01 00 35 04 06 00 85 77 BE 48 F2 10 00 00 10 [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 03 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 03 00 1B 39 00 90 00 C8 [08:56:16]RAPDU: 90 00 [08:56:16]wFMCommunicate OK [08:56:16]wFMCommunicate request_size=4 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 0D 03 02 [08:56:16]Write to MH i2c: E2 08 00 1C 39 80 0D 03 02 00 00 00 00 D0 [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 0B 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 0B 00 1C 39 00 55 47 57 6A A9 23 E1 16 90 00 F1 [08:56:16]RAPDU: 55 47 57 6A A9 23 E1 16 90 00 [08:56:16]wFMCommunicate OK [08:56:16]SAM_PROTO_SignData done [08:56:16]FM_MakeSignedData done [08:56:16]CreateOFDProtocolMessage [08:56:16]wFMCommunicate request_size=4 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 11 00 00 [08:56:16]Write to MH i2c: E2 08 00 1D 39 80 11 00 00 00 00 00 00 D0 [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 17 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 17 00 1D 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 2C [08:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:56:16]wFMCommunicate OK [08:56:16]CreateOFDProtocolMessage done [08:56:16]OFDSenderStorePacket 69151 [08:56:16]StoreOFDPacket docnum=69151 [08:56:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 E7 01 00 00 63 0A DF 01 F5 96 5A 03 01 00 03 00 D3 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 20 00 00 00 00 07 04 06 00 4C 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 B6 07 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1F 0E 01 00 35 04 06 00 85 77 BE 48 F2 10 55 47 57 6A A9 23 E1 16 [08:56:16]CheckFolder [08:56:16]dirname=/storage/ofd_packets [08:56:16]CheckFolder done [08:56:16]ProducePacketName [08:56:16]name=ofd_packets/00069151 [08:56:16]NVStorageSaveData ofd_packets/00069151 [08:56:16]File name is /storage/ofd_packets/00069151 [08:56:16]Write 517 bytes [08:56:16]NVStorageSaveData done [08:56:16]OFDSenderStorePacket done [08:56:16]KKMCreateOFDPacket done [08:56:16]NVStorageSaveData kkm_last_timestamp [08:56:16]File name is /storage/kkm_last_timestamp [08:56:16]Write 4 bytes [08:56:16]NVStorageSaveData done [08:56:16]ExternCall_PrintAddStr [08:56:16]wPrintStart [08:56:16]Write to MH i2c: 01 00 00 1E 39 57 [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: 01 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: 01 07 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: 01 07 00 1E 39 00 00 00 00 00 FF 0F 6C [08:56:16]RasterBufferAndPrint [08:56:16]line Счет N : (3)136552 [08:56:16]line ИНН: 02508201610067 [08:56:16]line Контрольно-Кассовый Чек [08:56:16]line ПРОДАЖА [08:56:16]line Товар: 4700002083334 [08:56:16]line Водка Level 0,7л [08:56:16]line 1.000 * 630.00 [08:56:16]line = 630.00 [08:56:16]line НДС 12% НСП 1% [08:56:16]line > о реализуемом товаре [08:56:16]line Товар: 4700001610012 [08:56:16]line Пиво Арпа 0,5л [08:56:16]line 1.000 * 145.00 [08:56:16]line = 145.00 [08:56:16]line НДС 12% НСП 1% [08:56:16]line > о реализуемом товаре [08:56:16]line Товар: 2000031750019 [08:56:16]line Пакет Партнер Нефть [08:56:16]line 1.000 * 4.00 [08:56:16]line = 4.00 [08:56:16]line НДС 12% НСП 1% [08:56:16]line > о реализуемом товаре [08:56:16]line ИТОГО: 779.00 [08:56:16]line НСП 1% : 6.88 [08:56:16]line НДС 12% : 82.72 [08:56:16]line Наличными: 779.00 [08:56:16]line Безнал.: 0.00 [08:56:16]line Место: АЗС № 125 "Партнер Нефть" [08:56:16]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [08:56:16]line СНО: Общий режим [08:56:16]line Чек 34 28.07.2024 08:56 [08:56:16]line Смена: 429 ФФД: 1.0 [08:56:16]line ЗНМ: 0300000049 [08:56:16]line РНМ: 0000000000092638 [08:56:16]line Версия ККМ: 001 [08:56:16]line ФМ: 0000000000874949 [08:56:16]line ФД: 69151 [08:56:16]line ФПД: 146749340054032 [08:56:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T085622&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69151&fm=146749340054032&tin=02508201610067®Number=0000000000092638&sum=77900 [08:56:16]line 0 [08:56:16]written 0, free lines is 4095 [08:56:16]OFD Sender: Processing packet 69151 [packets to send 19, broken 18] [08:56:16]ProducePacketName [08:56:16]name=ofd_packets/00069151 [08:56:16]OFD Sender: To server: pG, [08:56:16]CommunicateWithHost lk.salyk.kg:30040 [08:56:16]ConnectInit lk.salyk.kg [08:56:16]Connected sock=10 [08:56: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 39 34 39 E7 01 00 00 63 0A DF 01 F5 96 5A 03 01 00 03 00 D3 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 18 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 20 00 00 00 00 07 04 06 00 4C 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 B6 07 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1F 0E 01 00 35 04 06 00 85 77 BE 48 F2 10 55 47 57 6A A9 23 E1 16 [08:56:17]Write to MH i2c: 01 00 00 52 39 8B [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: 01 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: 01 07 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: 01 07 00 52 39 00 00 00 00 00 84 0C 22 [08:56:17]RasterBufferAndPrint [08:56:17]line [08:56:17]line [08:56:17]line [08:56:17]line [08:56:17]line [08:56:17]written 0, free lines is 3213 [08:56:17]MH_Cut [08:56:17]Write to MH i2c: D1 01 00 59 39 01 64 [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: D1 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: D1 01 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: D1 01 00 59 39 00 63 [08:56:17]Write to MH i2c: 01 00 00 5A 39 93 [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 21 36 47 00 59 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 39 34 39 10 04 04 00 1F 0E 01 00 F4 03 04 00 27 AE A5 66 B6 04 01 00 00 08 67 54 C9 35 E0 1D 21 [08:56:17]CommunicateWithHost err = 0 [08:56:17]CheckOFDResponse [08:56:17]1017 (14) - 77093643461234 [08:56:17]1041 (16) - 0000000000874949 [08:56:17]1040 (4) - 69151 [08:56:17]1012 (4) - 28.07.2024 02:34 [08:56:17]1206 (1) - 0 [08:56:17]OFD Sender: Remove packet 69151 [08:56:17]ProducePacketName [08:56:17]name=ofd_packets/00069151 [08:56:17]NVStorageDeleteData [08:56:17]OFD Sender: No OFD packet to send [08:56:18]*** Cut start [08:56:18]*** Partial cut [08:56:18]*** CUTSNS_PIN = 1 [08:56:18]*** CUTSNS_PIN = 0 [08:56:18]*** Brake cut motor [08:56:18]Read from MH i2c: 01 [08:56:18]MH_I2C_Read... [08:56:18]*** Stop cut motor [08:56:18]Read from MH i2c: 01 07 00 [08:56:18]MH_I2C_Read... [08:56:18]*** Cut end [08:56:18]Read from MH i2c: 01 07 00 5A 39 00 00 00 00 00 FF 0F A8 [08:56:18]process_action close_receipt done [08:56:18]requested_data is exist [08:56:18]produce_requested_data [08:56:18]requested_item fm.sn is exist - process it [08:56:18]wFMCommunicate request_size=4 [08:56:18]MH_SAM_APDU [08:56:18]CAPDU: 80 11 00 00 [08:56:18]Write to MH i2c: E2 08 00 5B 39 80 11 00 00 00 00 00 00 0E [08:56:18]Write i2c OK [08:56:18]MH_I2C_Read... [08:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:18]Read from MH i2c: E2 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: E2 17 00 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: E2 17 00 5B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 6A [08:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:56:18]wFMCommunicate OK [08:56:18]requested_item fd.num is exist - process it [08:56:18]SAM_PROTO_GetFieldsCounters [08:56:18]wFMCommunicate request_size=4 [08:56:18]MH_SAM_APDU [08:56:18]CAPDU: 80 13 00 00 [08:56:18]Write to MH i2c: E2 08 00 5C 39 80 13 00 00 00 00 00 00 11 [08:56:18]Write i2c OK [08:56:18]MH_I2C_Read... [08:56:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:18]Read from MH i2c: E2 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: E2 62 00 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: E2 62 00 5C 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [08:56: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:18]wFMCommunicate OK [08:56:18]SAM_PROTO_GetFieldsCounters done [08:56:18]requested_item shift.num is exist - process it [08:56:18]requested_item shift.opened is exist - process it [08:56:18]req_shift_opened [08:56:18]FM_GetShiftState [08:56:18]SAM_PROTO_GetShiftState [08:56:18]wFMCommunicate request_size=4 [08:56:18]MH_SAM_APDU [08:56:18]CAPDU: 80 13 01 00 [08:56:18]Write to MH i2c: E2 08 00 5D 39 80 13 01 00 00 00 00 00 13 [08:56:18]Write i2c OK [08:56:18]MH_I2C_Read... [08:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:18]Read from MH i2c: E2 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: E2 0E 00 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: E2 0E 00 5D 39 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 50 [08:56:18]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [08:56:18]wFMCommunicate OK [08:56:18]SAM_PROTO_GetShiftState done [08:56:18]FM_GetShiftState done [08:56:18]req_shift_opened done [08:56:18]requested_item shift.open_date is exist - process it [08:56:18]req_shift_open_date [08:56:18]req_shift_open_date done [08:56:18]produce_requested_data done [08:56:18]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69151,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [08:56:18]process_action_free close_receipt [08:56:18]json_value_free [08:56:18]json_value_free done [08:56:18]process_json_proto returns [08:56:18]Send response to host [08:56:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69151,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [08:56:18]free response buf [08:56:18]execute_script done [08:56:18]execute_script returns [08:56:18]free content buf [08:56:18]Sock 7.Close socket [08:56:18]Sock 7.Thread stoped [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:55]accept exits with 9 [09:04:55]New connection [09:04:55]New thread 3066785124 created [09:04:55]Thread 3066641764 joined [09:04:55]Waiting for new connection... [09:04:55] Sock 9.Parse request [09:04:55]Sock 9.Check first char [09:04:55]Sock 9.First char is OK [09:04:55]request: POST /json_proto HTTP/1.0 [09:04:55]Method: POST [09:04:55]URL: /json_proto [09:04:55]Method is POST - this is cgi request [09:04:55]url: /json_proto [09:04:55]query_string will be loaded in cgi processing [09:04:55]execute_cgi json_proto POST (null) [09:04:55]execute_cgi path=json_proto method=POST [09:04:55]POST find Content-Length [09:04:55]Host: 172.17.49.132:8080 [09:04:55]Content-Length: 630 [09:04:55]Content-Type: application/json [09:04:55] [09:04:55]POST finish read [09:04:55]Found Content-Length = 630 [09:04:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136553", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:55]execute_script... [09:04: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)136553", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:55]POST & json_proto [09:04:55]process_json_proto [09:04:55]json parsed OK: [09:04:55]protocol is kg_v1.0 [09:04:55]action value=close_receipt [09:04:55]process_action close_receipt [09:04:55]cmd_close_receipt [09:04:55]MH_GetDate [09:04:55]Write to MH i2c: F0 00 00 5E 39 86 [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: F0 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: F0 09 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: F0 09 00 5E 39 00 C0 09 A6 66 E7 4B C0 64 BA [09:04:55]GetLastDocTimeStamp 1722156982 [09:04:55]current date 1722157504 [09:04:55]FM_GetShiftState [09:04:55]SAM_PROTO_GetShiftState [09:04:55]wFMCommunicate request_size=4 [09:04:55]MH_SAM_APDU [09:04:55]CAPDU: 80 13 01 00 [09:04:55]Write to MH i2c: E2 08 00 5F 39 80 13 01 00 00 00 00 00 15 [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:55]Read from MH i2c: E2 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 0E 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 0E 00 5F 39 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 52 [09:04:55]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [09:04:55]wFMCommunicate OK [09:04:55]SAM_PROTO_GetShiftState done [09:04:55]FM_GetShiftState done [09:04:55]opened in 1722127251 [09:04:55]opened+sec_in_day 1722213651 [09:04:55]quantity*price = 5000 [09:04:55]sum+1 = 5001 [09:04:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 35 28.07.2024 09:05 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69152 ФПД: 136659427333928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T090504&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69152&fm=136659427333928&tin=02508201610067®Number=0000000000092638&sum=5000 0 [09:04:57]StoreToDocumentArchive [09:04:57]shift 429 fd 69152 [09:04:57]save to /storage/0429/doc_00069152 [09:04:57]save last doc name /storage/0429/doc_00069152 to /storage/kkm_last_doc_name [09:04:57]save OK [09:04:57]Clear old archive folders... [09:04:57]ProcessDocumentItem done err = 0, tmpTLVsize=269 [09:04:57]tlvbuf is 00B41BC0 [09:04:57]SAM_PROTO_ClearQueue [09:04:57]wFMCommunicate request_size=4 [09:04:57]MH_SAM_APDU [09:04:57]CAPDU: 80 09 00 00 [09:04:57]Write to MH i2c: E2 08 00 6C 39 80 09 00 00 00 00 00 00 17 [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 6C 39 00 90 00 19 [09:04:57]RAPDU: 90 00 [09:04:57]wFMCommunicate OK [09:04:57]SAM_PROTO_ClearQueue done [09:04:57]KKMCreateOFDPacket [09:04:57]OFDProtocolAddRootSTLVToBuf [09:04:57]FM_MakeSignedData [09:04:57]FM_MakeSignedData [09:04:57]SAM_PROTO_SignData [09:04:57]wFMCommunicate request_size=4 [09:04:57]MH_SAM_APDU [09:04:57]CAPDU: 80 0D 01 02 [09:04:57]Write to MH i2c: E2 08 00 6D 39 80 0D 01 02 00 00 00 00 1F [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 6D 39 00 90 00 1A [09:04:57]RAPDU: 90 00 [09:04:57]wFMCommunicate OK [09:04:57]wFMCommunicate request_size=255 [09:04:57]MH_SAM_APDU [09:04:57]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C0 09 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [09:04:57]Write to MH i2c: E2 02 01 6E 39 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C0 09 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 EC [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 6E 39 00 90 00 1B [09:04:57]RAPDU: 90 00 [09:04:57]wFMCommunicate OK [09:04:57]wFMCommunicate request_size=28 [09:04:57]MH_SAM_APDU [09:04:57]CAPDU: 80 0D 02 02 17 37 34 39 34 39 10 04 04 00 20 0E 01 00 35 04 06 00 7C 4A 80 9F 17 28 [09:04:57]Write to MH i2c: E2 1F 00 6F 39 80 0D 02 02 17 00 37 34 39 34 39 10 04 04 00 20 0E 01 00 35 04 06 00 7C 4A 80 9F 17 28 00 00 0B [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 03 00 6F 39 00 90 00 1C [09:04:57]RAPDU: 90 00 [09:04:57]wFMCommunicate OK [09:04:57]wFMCommunicate request_size=4 [09:04:57]MH_SAM_APDU [09:04:57]CAPDU: 80 0D 03 02 [09:04:57]Write to MH i2c: E2 08 00 70 39 80 0D 03 02 00 00 00 00 24 [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 0B 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 0B 00 70 39 00 13 A3 B7 FC D7 DE F1 3C 90 00 70 [09:04:57]RAPDU: 13 A3 B7 FC D7 DE F1 3C 90 00 [09:04:57]wFMCommunicate OK [09:04:57]SAM_PROTO_SignData done [09:04:57]FM_MakeSignedData done [09:04:57]CreateOFDProtocolMessage [09:04:57]wFMCommunicate request_size=4 [09:04:57]MH_SAM_APDU [09:04:57]CAPDU: 80 11 00 00 [09:04:57]Write to MH i2c: E2 08 00 71 39 80 11 00 00 00 00 00 00 24 [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:57]Read from MH i2c: E2 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 17 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: E2 17 00 71 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 80 [09:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:04:57]wFMCommunicate OK [09:04:57]CreateOFDProtocolMessage done [09:04:57]OFDSenderStorePacket 69152 [09:04:57]StoreOFDPacket docnum=69152 [09:04:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 21 01 00 00 99 42 19 01 7F 9E 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C0 09 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 20 0E 01 00 35 04 06 00 7C 4A 80 9F 17 28 13 A3 B7 FC D7 DE F1 3C [09:04:57]CheckFolder [09:04:57]dirname=/storage/ofd_packets [09:04:57]CheckFolder done [09:04:57]ProducePacketName [09:04:57]name=ofd_packets/00069152 [09:04:57]NVStorageSaveData ofd_packets/00069152 [09:04:57]File name is /storage/ofd_packets/00069152 [09:04:57]Write 319 bytes [09:04:57]NVStorageSaveData done [09:04:57]OFDSenderStorePacket done [09:04:57]KKMCreateOFDPacket done [09:04:57]NVStorageSaveData kkm_last_timestamp [09:04:57]File name is /storage/kkm_last_timestamp [09:04:57]Write 4 bytes [09:04:57]NVStorageSaveData done [09:04:57]ExternCall_PrintAddStr [09:04:57]wPrintStart [09:04:57]Write to MH i2c: 01 00 00 72 39 AB [09:04:57]Write i2c OK [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: 01 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: 01 07 00 [09:04:57]MH_I2C_Read... [09:04:57]Read from MH i2c: 01 07 00 72 39 00 00 00 00 00 FF 0F C0 [09:04:57]RasterBufferAndPrint [09:04:57]line Счет N : (3)136553 [09:04:57]line ИНН: 02508201610067 [09:04:57]line Контрольно-Кассовый Чек [09:04:57]line ПРОДАЖА [09:04:57]line Товар: 5449000066473 [09:04:57]line Вода Бонаква 1л [09:04:57]line 1.000 * 50.00 [09:04:57]line = 50.00 [09:04:57]line НДС 12% НСП 1% [09:04:57]line > о реализуемом товаре [09:04:57]line ИТОГО: 50.00 [09:04:57]line НСП 1% : 0.44 [09:04:57]line НДС 12% : 5.31 [09:04:57]line Наличными: 50.00 [09:04:57]line Безнал.: 0.00 [09:04:57]line Место: АЗС № 125 "Партнер Нефть" [09:04:57]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [09:04:57]line СНО: Общий режим [09:04:57]line Чек 35 28.07.2024 09:05 [09:04:57]line Смена: 429 ФФД: 1.0 [09:04:57]line ЗНМ: 0300000049 [09:04:57]line РНМ: 0000000000092638 [09:04:57]line Версия ККМ: 001 [09:04:57]line ФМ: 0000000000874949 [09:04:57]line ФД: 69152 [09:04:57]line ФПД: 136659427333928 [09:04:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T090504&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69152&fm=136659427333928&tin=02508201610067®Number=0000000000092638&sum=5000 [09:04:57]line 0 [09:04:57]OFD Sender: Processing packet 69152 [packets to send 19, broken 18] [09:04:57]ProducePacketName [09:04:57]name=ofd_packets/00069152 [09:04:57]OFD Sender: To server: pG, [09:04:57]CommunicateWithHost lk.salyk.kg:30040 [09:04:57]ConnectInit lk.salyk.kg [09:04:57]written 0, free lines is 4095 [09:04:58]Connected sock=10 [09:04: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 39 34 39 21 01 00 00 99 42 19 01 7F 9E 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C0 09 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 20 0E 01 00 35 04 06 00 7C 4A 80 9F 17 28 13 A3 B7 FC D7 DE F1 3C [09:04:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 1D E7 47 00 34 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 20 0E 01 00 F4 03 04 00 30 B0 A5 66 B6 04 01 00 00 34 FC 90 FB 00 49 C2 37 [09:04:58]CommunicateWithHost err = 0 [09:04:58]CheckOFDResponse [09:04:58]1017 (14) - 77093643461234 [09:04:58]1041 (16) - 0000000000874949 [09:04:58]1040 (4) - 69152 [09:04:58]1012 (4) - 28.07.2024 02:42 [09:04:58]1206 (1) - 0 [09:04:58]OFD Sender: Remove packet 69152 [09:04:58]ProducePacketName [09:04:58]name=ofd_packets/00069152 [09:04:58]NVStorageDeleteData [09:04:58]Write to MH i2c: 01 00 00 9A 39 D3 [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: 01 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: 01 07 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: 01 07 00 9A 39 00 00 00 00 00 0F 0D F6 [09:04:58]RasterBufferAndPrint [09:04:58]line [09:04:58]line [09:04:58]line [09:04:58]line [09:04:58]line [09:04:58]written 0, free lines is 3349 [09:04:58]MH_Cut [09:04:58]Write to MH i2c: D1 01 00 A1 39 01 AC [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: D1 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: D1 01 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: D1 01 00 A1 39 00 AB [09:04:58]Write to MH i2c: 01 00 00 A2 39 DB [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]OFD Sender: No OFD packet to send [09:04:59]*** Cut start [09:04:59]*** Partial cut [09:04:59]*** CUTSNS_PIN = 1 [09:04:59]*** CUTSNS_PIN = 0 [09:04:59]*** Brake cut motor [09:04:59]Read from MH i2c: 01 [09:04:59]MH_I2C_Read... [09:04:59]*** Stop cut motor [09:04:59]*** Cut end [09:04:59]Read from MH i2c: 01 07 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: 01 07 00 A2 39 00 00 00 00 00 FF 0F F0 [09:04:59]process_action close_receipt done [09:04:59]requested_data is exist [09:04:59]produce_requested_data [09:04:59]requested_item fm.sn is exist - process it [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 11 00 00 [09:04:59]Write to MH i2c: E2 08 00 A3 39 80 11 00 00 00 00 00 00 56 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:59]Read from MH i2c: E2 17 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 17 00 A3 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B2 [09:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:04:59]wFMCommunicate OK [09:04:59]requested_item fd.num is exist - process it [09:04:59]SAM_PROTO_GetFieldsCounters [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 13 00 00 [09:04:59]Write to MH i2c: E2 08 00 A4 39 80 13 00 00 00 00 00 00 59 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 62 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 62 00 A4 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [09:04: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:59]wFMCommunicate OK [09:04:59]SAM_PROTO_GetFieldsCounters done [09:04:59]requested_item shift.num is exist - process it [09:04:59]requested_item shift.opened is exist - process it [09:04:59]req_shift_opened [09:04:59]FM_GetShiftState [09:04:59]SAM_PROTO_GetShiftState [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 13 01 00 [09:04:59]Write to MH i2c: E2 08 00 A5 39 80 13 01 00 00 00 00 00 5B [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0E 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0E 00 A5 39 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 98 [09:04:59]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [09:04:59]wFMCommunicate OK [09:04:59]SAM_PROTO_GetShiftState done [09:04:59]FM_GetShiftState done [09:04:59]req_shift_opened done [09:04:59]requested_item shift.open_date is exist - process it [09:04:59]req_shift_open_date [09:04:59]req_shift_open_date done [09:04:59]produce_requested_data done [09:04:59]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69152,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [09:04:59]process_action_free close_receipt [09:04:59]json_value_free [09:04:59]json_value_free done [09:04:59]process_json_proto returns [09:04:59]Send response to host [09:04:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69152,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [09:04:59]free response buf [09:04:59]execute_script done [09:04:59]execute_script returns [09:04:59]free content buf [09:04:59]Sock 9.Close socket [09:04:59]Sock 9.Thread stoped [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:48]accept exits with 7 [09:15:48]New connection [09:15:48]New thread 3066641764 created [09:15:48]Thread 3066785124 joined [09:15:48]Waiting for new connection... [09:15:48] Sock 7.Parse request [09:15:48]Sock 7.Check first char [09:15:48]Sock 7.First char is OK [09:15:48]request: POST /json_proto HTTP/1.0 [09:15:48]Method: POST [09:15:48]URL: /json_proto [09:15:48]Method is POST - this is cgi request [09:15:48]url: /json_proto [09:15:48]query_string will be loaded in cgi processing [09:15:48]execute_cgi json_proto POST (null) [09:15:48]execute_cgi path=json_proto method=POST [09:15:48]POST find Content-Length [09:15:48]Host: 172.17.49.132:8080 [09:15:48]Content-Length: 672 [09:15:48]Content-Type: application/json [09:15:48] [09:15:48]POST finish read [09:15:48]Found Content-Length = 672 [09:15:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136554", "tax_sys" : 0, "items" : [ { "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:48]execute_script... [09:15: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)136554", "tax_sys" : 0, "items" : [ { "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:48]POST & json_proto [09:15:48]process_json_proto [09:15:48]json parsed OK: [09:15:48]protocol is kg_v1.0 [09:15:48]action value=close_receipt [09:15:48]process_action close_receipt [09:15:48]cmd_close_receipt [09:15:48]MH_GetDate [09:15:48]Write to MH i2c: F0 00 00 A6 39 CE [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: F0 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: F0 09 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: F0 09 00 A6 39 00 4D 0C A6 66 E7 4B C0 64 92 [09:15:48]GetLastDocTimeStamp 1722157504 [09:15:48]current date 1722158157 [09:15:48]FM_GetShiftState [09:15:48]SAM_PROTO_GetShiftState [09:15:48]wFMCommunicate request_size=4 [09:15:48]MH_SAM_APDU [09:15:48]CAPDU: 80 13 01 00 [09:15:48]Write to MH i2c: E2 08 00 A7 39 80 13 01 00 00 00 00 00 5D [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:48]Read from MH i2c: E2 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 0E 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 0E 00 A7 39 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 9A [09:15:48]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [09:15:48]wFMCommunicate OK [09:15:48]SAM_PROTO_GetShiftState done [09:15:48]FM_GetShiftState done [09:15:48]opened in 1722127251 [09:15:48]opened+sec_in_day 1722213651 [09:15:48]quantity*price = 4900 [09:15:48]sum+1 = 4901 [09:15:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 36 28.07.2024 09:15 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69153 ФПД: 68661940491547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091557&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69153&fm=68661940491547&tin=02508201610067®Number=0000000000092638&sum=4900 0 [09:15:49]StoreToDocumentArchive [09:15:49]shift 429 fd 69153 [09:15:49]save to /storage/0429/doc_00069153 [09:15:49]save last doc name /storage/0429/doc_00069153 to /storage/kkm_last_doc_name [09:15:49]save OK [09:15:49]Clear old archive folders... [09:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=287 [09:15:49]tlvbuf is 00A82CE0 [09:15:49]SAM_PROTO_ClearQueue [09:15:49]wFMCommunicate request_size=4 [09:15:49]MH_SAM_APDU [09:15:49]CAPDU: 80 09 00 00 [09:15:49]Write to MH i2c: E2 08 00 B4 39 80 09 00 00 00 00 00 00 5F [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 B4 39 00 90 00 61 [09:15:50]RAPDU: 90 00 [09:15:50]wFMCommunicate OK [09:15:50]SAM_PROTO_ClearQueue done [09:15:50]KKMCreateOFDPacket [09:15:50]OFDProtocolAddRootSTLVToBuf [09:15:50]FM_MakeSignedData [09:15:50]FM_MakeSignedData [09:15:50]SAM_PROTO_SignData [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 0D 01 02 [09:15:50]Write to MH i2c: E2 08 00 B5 39 80 0D 01 02 00 00 00 00 67 [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 B5 39 00 90 00 62 [09:15:50]RAPDU: 90 00 [09:15:50]wFMCommunicate OK [09:15:50]wFMCommunicate request_size=255 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4D 0C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [09:15:50]Write to MH i2c: E2 02 01 B6 39 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4D 0C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 47 [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 B6 39 00 90 00 63 [09:15:50]RAPDU: 90 00 [09:15:50]wFMCommunicate OK [09:15:50]wFMCommunicate request_size=46 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 0D 02 02 29 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 21 0E 01 00 35 04 06 00 3E 72 9A 92 95 1B [09:15:50]Write to MH i2c: E2 31 00 B7 39 80 0D 02 02 29 00 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 21 0E 01 00 35 04 06 00 3E 72 9A 92 95 1B 00 00 BE [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 03 00 B7 39 00 90 00 64 [09:15:50]RAPDU: 90 00 [09:15:50]wFMCommunicate OK [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 0D 03 02 [09:15:50]Write to MH i2c: E2 08 00 B8 39 80 0D 03 02 00 00 00 00 6C [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 0B 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 0B 00 B8 39 00 AB D5 AE 6D 99 20 8E 05 90 00 54 [09:15:50]RAPDU: AB D5 AE 6D 99 20 8E 05 90 00 [09:15:50]wFMCommunicate OK [09:15:50]SAM_PROTO_SignData done [09:15:50]FM_MakeSignedData done [09:15:50]CreateOFDProtocolMessage [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 11 00 00 [09:15:50]Write to MH i2c: E2 08 00 B9 39 80 11 00 00 00 00 00 00 6C [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 17 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 17 00 B9 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C8 [09:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:15:50]wFMCommunicate OK [09:15:50]CreateOFDProtocolMessage done [09:15:50]OFDSenderStorePacket 69153 [09:15:50]StoreOFDPacket docnum=69153 [09:15:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 33 01 00 00 32 02 2B 01 46 14 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4D 0C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 21 0E 01 00 35 04 06 00 3E 72 9A 92 95 1B AB D5 AE 6D 99 20 8E 05 [09:15:50]CheckFolder [09:15:50]dirname=/storage/ofd_packets [09:15:50]CheckFolder done [09:15:50]ProducePacketName [09:15:50]name=ofd_packets/00069153 [09:15:50]NVStorageSaveData ofd_packets/00069153 [09:15:50]File name is /storage/ofd_packets/00069153 [09:15:50]Write 337 bytes [09:15:50]NVStorageSaveData done [09:15:50]OFDSenderStorePacket done [09:15:50]KKMCreateOFDPacket done [09:15:50]NVStorageSaveData kkm_last_timestamp [09:15:50]File name is /storage/kkm_last_timestamp [09:15:50]Write 4 bytes [09:15:50]NVStorageSaveData done [09:15:50]ExternCall_PrintAddStr [09:15:50]wPrintStart [09:15:50]Write to MH i2c: 01 00 00 BA 39 F3 [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: 01 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: 01 07 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: 01 07 00 BA 39 00 00 00 00 00 FF 0F 08 [09:15:50]RasterBufferAndPrint [09:15:50]line Счет N : (3)136554 [09:15:50]line ИНН: 02508201610067 [09:15:50]line Контрольно-Кассовый Чек [09:15:50]line ПРОДАЖА [09:15:50]line Товар: 46214621 [09:15:50]line Р/ж mentos тутти-фрутти ролл 16г [09:15:50]line 1.000 * 49.00 [09:15:50]line = 49.00 [09:15:50]line НДС 12% НСП 1% [09:15:50]line > о реализуемом товаре [09:15:50]line ИТОГО: 49.00 [09:15:50]line НСП 1% : 0.43 [09:15:50]line НДС 12% : 5.20 [09:15:50]line Наличными: 49.00 [09:15:50]line Безнал.: 0.00 [09:15:50]line Место: АЗС № 125 "Партнер Нефть" [09:15:50]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [09:15:50]line СНО: Общий режим [09:15:50]line Чек 36 28.07.2024 09:15 [09:15:50]line Смена: 429 ФФД: 1.0 [09:15:50]line ЗНМ: 0300000049 [09:15:50]line РНМ: 0000000000092638 [09:15:50]line Версия ККМ: 001 [09:15:50]line ФМ: 0000000000874949 [09:15:50]line ФД: 69153 [09:15:50]line ФПД: 68661940491547 [09:15:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T091557&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69153&fm=68661940491547&tin=02508201610067®Number=0000000000092638&sum=4900 [09:15:50]line 0 [09:15:50]OFD Sender: Processing packet 69153 [packets to send 19, broken 18] [09:15:50]ProducePacketName [09:15:50]name=ofd_packets/00069153 [09:15:50]OFD Sender: To server: pG, [09:15:50]CommunicateWithHost lk.salyk.kg:30040 [09:15:50]ConnectInit lk.salyk.kg [09:15:50]written 0, free lines is 4095 [09:15:50]Connected sock=10 [09:15: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 39 34 39 33 01 00 00 32 02 2B 01 46 14 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 4D 0C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 21 0E 01 00 35 04 06 00 3E 72 9A 92 95 1B AB D5 AE 6D 99 20 8E 05 [09:15:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CA F9 47 00 0B 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 21 0E 01 00 F4 03 04 00 BD B2 A5 66 B6 04 01 00 00 32 91 F2 43 63 40 5D 3D [09:15:51]CommunicateWithHost err = 0 [09:15:51]CheckOFDResponse [09:15:51]1017 (14) - 77093643461234 [09:15:51]1041 (16) - 0000000000874949 [09:15:51]1040 (4) - 69153 [09:15:51]1012 (4) - 28.07.2024 02:53 [09:15:51]1206 (1) - 0 [09:15:51]OFD Sender: Remove packet 69153 [09:15:51]ProducePacketName [09:15:51]name=ofd_packets/00069153 [09:15:51]NVStorageDeleteData [09:15:51]Write to MH i2c: 01 00 00 E3 39 1C [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: 01 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: 01 07 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: 01 07 00 E3 39 00 00 00 00 00 EF 0C 1E [09:15:51]RasterBufferAndPrint [09:15:51]line [09:15:51]line [09:15:51]line [09:15:51]line [09:15:51]line [09:15:51]written 0, free lines is 3320 [09:15:51]MH_Cut [09:15:51]Write to MH i2c: D1 01 00 EA 39 01 F5 [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: D1 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: D1 01 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: D1 01 00 EA 39 00 F4 [09:15:51]Write to MH i2c: 01 00 00 EB 39 24 [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]OFD Sender: No OFD packet to send [09:15:51]*** Cut start [09:15:51]*** Partial cut [09:15:51]*** CUTSNS_PIN = 1 [09:15:52]*** CUTSNS_PIN = 0 [09:15:52]*** Brake cut motor [09:15:52]Read from MH i2c: 01 [09:15:52]MH_I2C_Read... [09:15:52]*** Stop cut motor [09:15:52]*** Cut end [09:15:52]Read from MH i2c: 01 07 00 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: 01 07 00 EB 39 00 00 00 00 00 FF 0F 39 [09:15:52]process_action close_receipt done [09:15:52]requested_data is exist [09:15:52]produce_requested_data [09:15:52]requested_item fm.sn is exist - process it [09:15:52]wFMCommunicate request_size=4 [09:15:52]MH_SAM_APDU [09:15:52]CAPDU: 80 11 00 00 [09:15:52]Write to MH i2c: E2 08 00 EC 39 80 11 00 00 00 00 00 00 9F [09:15:52]Write i2c OK [09:15:52]MH_I2C_Read... [09:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:52]Read from MH i2c: E2 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 17 00 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 17 00 EC 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 FB [09:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:15:52]wFMCommunicate OK [09:15:52]requested_item fd.num is exist - process it [09:15:52]SAM_PROTO_GetFieldsCounters [09:15:52]wFMCommunicate request_size=4 [09:15:52]MH_SAM_APDU [09:15:52]CAPDU: 80 13 00 00 [09:15:52]Write to MH i2c: E2 08 00 ED 39 80 13 00 00 00 00 00 00 A2 [09:15:52]Write i2c OK [09:15:52]MH_I2C_Read... [09:15:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:52]Read from MH i2c: E2 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 62 00 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 62 00 ED 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [09:15: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:52]wFMCommunicate OK [09:15:52]SAM_PROTO_GetFieldsCounters done [09:15:52]requested_item shift.num is exist - process it [09:15:52]requested_item shift.opened is exist - process it [09:15:52]req_shift_opened [09:15:52]FM_GetShiftState [09:15:52]SAM_PROTO_GetShiftState [09:15:52]wFMCommunicate request_size=4 [09:15:52]MH_SAM_APDU [09:15:52]CAPDU: 80 13 01 00 [09:15:52]Write to MH i2c: E2 08 00 EE 39 80 13 01 00 00 00 00 00 A4 [09:15:52]Write i2c OK [09:15:52]MH_I2C_Read... [09:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:52]Read from MH i2c: E2 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 0E 00 [09:15:52]MH_I2C_Read... [09:15:52]Read from MH i2c: E2 0E 00 EE 39 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 E1 [09:15:52]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [09:15:52]wFMCommunicate OK [09:15:52]SAM_PROTO_GetShiftState done [09:15:52]FM_GetShiftState done [09:15:52]req_shift_opened done [09:15:52]requested_item shift.open_date is exist - process it [09:15:52]req_shift_open_date [09:15:52]req_shift_open_date done [09:15:52]produce_requested_data done [09:15:52]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69153,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [09:15:52]process_action_free close_receipt [09:15:52]json_value_free [09:15:52]json_value_free done [09:15:52]process_json_proto returns [09:15:52]Send response to host [09:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69153,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [09:15:52]free response buf [09:15:52]execute_script done [09:15:52]execute_script returns [09:15:52]free content buf [09:15:52]Sock 7.Close socket [09:15:52]Sock 7.Thread stoped [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:49]accept exits with 9 [09:22:49]New connection [09:22:49]New thread 3066785124 created [09:22:49]Thread 3066641764 joined [09:22:49]Waiting for new connection... [09:22:49] Sock 9.Parse request [09:22:49]Sock 9.Check first char [09:22:49]Sock 9.First char is OK [09:22:49]request: POST /json_proto HTTP/1.0 [09:22:49]Method: POST [09:22:49]URL: /json_proto [09:22:49]Method is POST - this is cgi request [09:22:49]url: /json_proto [09:22:49]query_string will be loaded in cgi processing [09:22:49]execute_cgi json_proto POST (null) [09:22:49]execute_cgi path=json_proto method=POST [09:22:49]POST find Content-Length [09:22:49]Host: 172.17.49.132:8080 [09:22:49]Content-Length: 215 [09:22:49]Content-Type: application/json [09:22:49] [09:22:49]POST finish read [09:22:49]Found Content-Length = 215 [09:22:49]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" ] } } [09:22:49]execute_script... [09:22:49]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" ] } } [09:22:49]POST & json_proto [09:22:49]process_json_proto [09:22:49]json parsed OK: [09:22:49]protocol is kg_v1.0 [09:22:49]action value=get_value [09:22:49]process_action get_value [09:22:49]cmd_get_value [09:22:49]process_action get_value done [09:22:49]requested_data is exist [09:22:49]produce_requested_data [09:22:49]requested_item kkm.sn is exist - process it [09:22:49]requested_item kkm.ver is exist - process it [09:22:49]requested_item fm.sn is exist - process it [09:22:49]wFMCommunicate request_size=4 [09:22:49]MH_SAM_APDU [09:22:49]CAPDU: 80 11 00 00 [09:22:49]Write to MH i2c: E2 08 00 EF 39 80 11 00 00 00 00 00 00 A2 [09:22:49]Write i2c OK [09:22:49]MH_I2C_Read... [09:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:49]Read from MH i2c: E2 [09:22:49]MH_I2C_Read... [09:22:49]Read from MH i2c: E2 17 00 [09:22:49]MH_I2C_Read... [09:22:49]Read from MH i2c: E2 17 00 EF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 FE [09:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:22:49]wFMCommunicate OK [09:22:49]requested_item fd.num is exist - process it [09:22:49]SAM_PROTO_GetFieldsCounters [09:22:49]wFMCommunicate request_size=4 [09:22:49]MH_SAM_APDU [09:22:49]CAPDU: 80 13 00 00 [09:22:49]Write to MH i2c: E2 08 00 F0 39 80 13 00 00 00 00 00 00 A5 [09:22:49]Write i2c OK [09:22:49]MH_I2C_Read... [09:22:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:49]Read from MH i2c: E2 [09:22:49]MH_I2C_Read... [09:22:49]Read from MH i2c: E2 62 00 [09:22:49]MH_I2C_Read... [09:22:49]Read from MH i2c: E2 62 00 F0 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [09:22: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:49]wFMCommunicate OK [09:22:49]SAM_PROTO_GetFieldsCounters done [09:22:49]requested_item shift.num is exist - process it [09:22:49]requested_item shift.opened is exist - process it [09:22:49]req_shift_opened [09:22:49]FM_GetShiftState [09:22:49]SAM_PROTO_GetShiftState [09:22:49]wFMCommunicate request_size=4 [09:22:49]MH_SAM_APDU [09:22:49]CAPDU: 80 13 01 00 [09:22:49]Write to MH i2c: E2 08 00 F1 39 80 13 01 00 00 00 00 00 A7 [09:22:49]Write i2c OK [09:22:49]MH_I2C_Read... [09:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:49]Read from MH i2c: E2 [09:22:49]MH_I2C_Read... [09:22:49]Read from MH i2c: E2 0E 00 [09:22:49]MH_I2C_Read... [09:22:49]Read from MH i2c: E2 0E 00 F1 39 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 E4 [09:22:49]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [09:22:49]wFMCommunicate OK [09:22:49]SAM_PROTO_GetShiftState done [09:22:49]FM_GetShiftState done [09:22:49]req_shift_opened done [09:22:49]requested_item shift.open_date is exist - process it [09:22:49]req_shift_open_date [09:22:49]req_shift_open_date done [09:22:49]produce_requested_data done [09:22:49]produce_requested_data return {"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69153,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [09:22:49]process_action_free get_value [09:22:49]json_value_free [09:22:49]json_value_free done [09:22:49]process_json_proto returns [09:22:49]Send response to host [09:22:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69153,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [09:22:49]free response buf [09:22:49]execute_script done [09:22:49]execute_script returns [09:22:49]free content buf [09:22:49]Sock 9.Close socket [09:22:49]Sock 9.Thread stoped [09:22:49]accept exits with 7 [09:22:49]New connection [09:22:49]New thread 3066641764 created [09:22:49]Thread 3066785124 joined [09:22:49]Waiting for new connection... [09:22:49] Sock 7.Parse request [09:22:49]Sock 7.Check first char [09:22:49]Sock 7.First char is OK [09:22:49]request: POST /json_proto HTTP/1.0 [09:22:49]Method: POST [09:22:49]URL: /json_proto [09:22:49]Method is POST - this is cgi request [09:22:49]url: /json_proto [09:22:49]query_string will be loaded in cgi processing [09:22:49]execute_cgi json_proto POST (null) [09:22:49]execute_cgi path=json_proto method=POST [09:22:49]POST find Content-Length [09:22:49]Host: 172.17.49.132:8080 [09:22:49]Content-Length: 331 [09:22:49]Content-Type: application/json [09:22:49] [09:22:49]POST finish read [09:22:49]Found Content-Length = 331 [09:22:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:22:49]execute_script... [09:22: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" ] } } [09:22:50]POST & json_proto [09:22:50]process_json_proto [09:22:50]json parsed OK: [09:22:50]protocol is kg_v1.0 [09:22:50]action value=get_value [09:22:50]process_action get_value [09:22:50]cmd_get_value [09:22:50]process_action get_value done [09:22:50]requested_data is exist [09:22:50]produce_requested_data [09:22:50]requested_item fm.sale.total is exist - process it [09:22:50]SAM_PROTO_GetFMData [09:22:50]wFMCommunicate request_size=4 [09:22:50]MH_SAM_APDU [09:22:50]CAPDU: 80 13 03 00 [09:22:50]Write to MH i2c: E2 08 00 F2 39 80 13 03 00 00 00 00 00 AA [09:22:50]Write i2c OK [09:22:50]MH_I2C_Read... [09:22:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:22:50]Read from MH i2c: E2 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 FD 00 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 FD 00 F2 39 00 C5 04 85 04 C1 04 6E 04 04 00 C7 0A 01 00 69 04 A1 00 6F 04 04 00 8B 09 01 00 B1 04 04 00 25 F0 83 BA 70 04 04 00 D0 32 10 97 72 04 04 00 55 BD 73 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 0D CF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D9 72 A6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3C 01 00 00 B1 04 04 00 B8 63 54 03 70 04 04 00 6C F6 3F 03 72 04 03 00 4C 6D 14 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 1D 87 5A EF 03 09 90 00 DF [09:22:50]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C7 0A 01 00 69 04 A1 00 6F 04 04 00 8B 09 01 00 B1 04 04 00 25 F0 83 BA 70 04 04 00 D0 32 10 97 72 04 04 00 55 BD 73 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 0D CF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D9 72 A6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3C 01 00 00 B1 04 04 00 B8 63 54 03 70 04 04 00 6C F6 3F 03 72 04 03 00 4C 6D 14 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 1D 87 5A EF 03 09 90 00 [09:22:50]wFMCommunicate OK [09:22:50]wFMCommunicate request_size=4 [09:22:50]MH_SAM_APDU [09:22:50]CAPDU: 80 17 00 00 [09:22:50]Write to MH i2c: E2 08 00 F3 39 80 17 00 00 00 00 00 00 AC [09:22:50]Write i2c OK [09:22:50]MH_I2C_Read... [09:22:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:22:50]Read from MH i2c: E2 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 FD 00 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 FD 00 F3 39 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 25 8B 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 19 [09:22:50]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 25 8B 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [09:22:50]wFMCommunicate OK [09:22:50]wFMCommunicate request_size=4 [09:22:50]MH_SAM_APDU [09:22:50]CAPDU: 80 17 00 00 [09:22:50]Write to MH i2c: E2 08 00 F4 39 80 17 00 00 00 00 00 00 AD [09:22:50]Write i2c OK [09:22:50]MH_I2C_Read... [09:22:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:22:51]Read from MH i2c: E2 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 FD 00 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 FD 00 F4 39 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 BF [09:22:51]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [09:22:51]wFMCommunicate OK [09:22:51]wFMCommunicate request_size=4 [09:22:51]MH_SAM_APDU [09:22:51]CAPDU: 80 17 00 00 [09:22:51]Write to MH i2c: E2 08 00 F5 39 80 17 00 00 00 00 00 00 AE [09:22:51]Write i2c OK [09:22:51]MH_I2C_Read... [09:22:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:22:51]Read from MH i2c: E2 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 FD 00 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 FD 00 F5 39 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 3A [09:22:51]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [09:22:51]wFMCommunicate OK [09:22:51]wFMCommunicate request_size=4 [09:22:51]MH_SAM_APDU [09:22:51]CAPDU: 80 17 00 00 [09:22:51]Write to MH i2c: E2 08 00 F6 39 80 17 00 00 00 00 00 00 AF [09:22:51]Write i2c OK [09:22:51]MH_I2C_Read... [09:22:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [09:22:51]Read from MH i2c: E2 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 E2 00 [09:22:51]MH_I2C_Read... [09:22:51]Read from MH i2c: E2 E2 00 F6 39 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [09:22:51]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:22:51]wFMCommunicate OK [09:22:51]SAM_PROTO_GetFMData done [09:22:51]requested_item fm.sale_refund.total is exist - process it [09:22:51]requested_item fm.buy.total is exist - process it [09:22:51]requested_item shift.sale.total is exist - process it [09:22:51]SAM_PROTO_GetShiftData [09:22:51]wFMCommunicate request_size=4 [09:22:51]MH_SAM_APDU [09:22:51]CAPDU: 80 13 02 00 [09:22:51]Write to MH i2c: E2 08 00 F7 39 80 13 02 00 00 00 00 00 AE [09:22:51]Write i2c OK [09:22:51]MH_I2C_Read... [09:22:52]OFD Sender: No OFD packet to send [09:22:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:22:52]Read from MH i2c: E2 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 FD 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 FD 00 F7 39 00 AE 04 AA 04 AA 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 40 4F 11 70 04 03 00 E4 34 0A 72 04 03 00 5C 1A 07 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 93 D6 01 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 2E 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B5 [09:22:52]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 40 4F 11 70 04 03 00 E4 34 0A 72 04 03 00 5C 1A 07 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 93 D6 01 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 2E 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:22:52]wFMCommunicate OK [09:22:52]wFMCommunicate request_size=4 [09:22:52]MH_SAM_APDU [09:22:52]CAPDU: 80 17 00 00 [09:22:52]Write to MH i2c: E2 08 00 F8 39 80 17 00 00 00 00 00 00 B1 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:22:52]Read from MH i2c: E2 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 FD 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 FD 00 F8 39 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 D3 [09:22: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 [09:22:52]wFMCommunicate OK [09:22:52]wFMCommunicate request_size=4 [09:22:52]MH_SAM_APDU [09:22:52]CAPDU: 80 17 00 00 [09:22:52]Write to MH i2c: E2 08 00 F9 39 80 17 00 00 00 00 00 00 B2 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:22:52]Read from MH i2c: E2 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 FD 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 FD 00 F9 39 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 69 [09:22:52]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 [09:22:52]wFMCommunicate OK [09:22:52]wFMCommunicate request_size=4 [09:22:52]MH_SAM_APDU [09:22:52]CAPDU: 80 17 00 00 [09:22:52]Write to MH i2c: E2 08 00 FA 39 80 17 00 00 00 00 00 00 B3 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:22:52]Read from MH i2c: E2 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 FD 00 [09:22:52]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 FD 00 FA 39 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 25 [09:22: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 [09:22:53]wFMCommunicate OK [09:22:53]wFMCommunicate request_size=4 [09:22:53]MH_SAM_APDU [09:22:53]CAPDU: 80 17 00 00 [09:22:53]Write to MH i2c: E2 08 00 FB 39 80 17 00 00 00 00 00 00 B4 [09:22:53]Write i2c OK [09:22:53]MH_I2C_Read... [09:22:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:22:53]Read from MH i2c: E2 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 CB 00 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 CB 00 FB 39 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 9D [09:22: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 [09:22:53]wFMCommunicate OK [09:22:53]SAM_PROTO_GetShiftData done [09:22:53]requested_item shift.sale.total_cash is exist - process it [09:22:53]requested_item shift.sale_refund.total is exist - process it [09:22:53]requested_item shift.sale_refund.total_cash is exist - process it [09:22:53]requested_item shift.buy.total is exist - process it [09:22:53]requested_item shift.buy.total_cash is exist - process it [09:22:53]produce_requested_data done [09:22:53]produce_requested_data return {"fm.sale.total":31292088.69,"fm.sale_refund.total":558622.00,"fm.buy.total":0.00,"shift.sale.total":11344.00,"shift.sale.total_cash":6689.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} [09:22:53]process_action_free get_value [09:22:53]json_value_free [09:22:53]json_value_free done [09:22:53]process_json_proto returns [09:22:53]Send response to host [09:22:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31292088.69,"fm.sale_refund.total":558622.00,"fm.buy.total":0.00,"shift.sale.total":11344.00,"shift.sale.total_cash":6689.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}}} [09:22:53]free response buf [09:22:53]execute_script done [09:22:53]execute_script returns [09:22:53]free content buf [09:22:53]Sock 7.Close socket [09:22:53]Sock 7.Thread stoped [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:05]accept exits with 9 [09:42:05]New connection [09:42:05]New thread 3066785124 created [09:42:05]Thread 3066641764 joined [09:42:05]Waiting for new connection... [09:42:05] Sock 9.Parse request [09:42:05]Sock 9.Check first char [09:42:05]Sock 9.First char is OK [09:42:05]request: POST /json_proto HTTP/1.0 [09:42:05]Method: POST [09:42:05]URL: /json_proto [09:42:05]Method is POST - this is cgi request [09:42:05]url: /json_proto [09:42:05]query_string will be loaded in cgi processing [09:42:05]execute_cgi json_proto POST (null) [09:42:05]execute_cgi path=json_proto method=POST [09:42:05]POST find Content-Length [09:42:05]Host: 172.17.49.132:8080 [09:42:05]Content-Length: 823 [09:42:05]Content-Type: application/json [09:42:05] [09:42:05]POST finish read [09:42:05]Found Content-Length = 823 [09:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136555", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:05]execute_script... [09:42:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136555", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:05]POST & json_proto [09:42:05]process_json_proto [09:42:05]json parsed OK: [09:42:05]protocol is kg_v1.0 [09:42:05]action value=close_receipt [09:42:05]process_action close_receipt [09:42:05]cmd_close_receipt [09:42:05]MH_GetDate [09:42:05]Write to MH i2c: F0 00 00 FC 39 24 [09:42:05]Write i2c OK [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: F0 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: F0 09 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: F0 09 00 FC 39 00 76 12 A6 66 E7 4B C0 64 17 [09:42:05]GetLastDocTimeStamp 1722158157 [09:42:05]current date 1722159734 [09:42:05]FM_GetShiftState [09:42:05]SAM_PROTO_GetShiftState [09:42:05]wFMCommunicate request_size=4 [09:42:05]MH_SAM_APDU [09:42:05]CAPDU: 80 13 01 00 [09:42:05]Write to MH i2c: E2 08 00 FD 39 80 13 01 00 00 00 00 00 B3 [09:42:05]Write i2c OK [09:42:05]MH_I2C_Read... [09:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:05]Read from MH i2c: E2 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 0E 00 [09:42:05]MH_I2C_Read... [09:42:05]Read from MH i2c: E2 0E 00 FD 39 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F0 [09:42:05]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [09:42:05]wFMCommunicate OK [09:42:05]SAM_PROTO_GetShiftState done [09:42:05]FM_GetShiftState done [09:42:05]opened in 1722127251 [09:42:05]opened+sec_in_day 1722213651 [09:42:05]quantity*price = 15000 [09:42:05]sum+1 = 15001 [09:42:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 37 28.07.2024 09:42 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69154 ФПД: 135622766225315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094214&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69154&fm=135622766225315&tin=02508201610067®Number=0000000000092638&sum=15000 0 [09:42:06]StoreToDocumentArchive [09:42:06]shift 429 fd 69154 [09:42:06]save to /storage/0429/doc_00069154 [09:42:06]save last doc name /storage/0429/doc_00069154 to /storage/kkm_last_doc_name [09:42:06]save OK [09:42:06]Clear old archive folders... [09:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=274 [09:42:06]tlvbuf is 00AF9C30 [09:42:06]SAM_PROTO_ClearQueue [09:42:06]wFMCommunicate request_size=4 [09:42:06]MH_SAM_APDU [09:42:06]CAPDU: 80 09 00 00 [09:42:06]Write to MH i2c: E2 08 00 0A 3A 80 09 00 00 00 00 00 00 B6 [09:42:06]Write i2c OK [09:42:06]MH_I2C_Read... [09:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:07]Read from MH i2c: E2 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 03 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 03 00 0A 3A 00 90 00 B8 [09:42:07]RAPDU: 90 00 [09:42:07]wFMCommunicate OK [09:42:07]SAM_PROTO_ClearQueue done [09:42:07]KKMCreateOFDPacket [09:42:07]OFDProtocolAddRootSTLVToBuf [09:42:07]FM_MakeSignedData [09:42:07]FM_MakeSignedData [09:42:07]SAM_PROTO_SignData [09:42:07]wFMCommunicate request_size=4 [09:42:07]MH_SAM_APDU [09:42:07]CAPDU: 80 0D 01 02 [09:42:07]Write to MH i2c: E2 08 00 0B 3A 80 0D 01 02 00 00 00 00 BE [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:07]Read from MH i2c: E2 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 03 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 03 00 0B 3A 00 90 00 B9 [09:42:07]RAPDU: 90 00 [09:42:07]wFMCommunicate OK [09:42:07]wFMCommunicate request_size=255 [09:42:07]MH_SAM_APDU [09:42: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 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 76 12 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 [09:42:07]Write to MH i2c: E2 02 01 0C 3A 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 76 12 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 00 00 C5 [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:07]Read from MH i2c: E2 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 03 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 03 00 0C 3A 00 90 00 BA [09:42:07]RAPDU: 90 00 [09:42:07]wFMCommunicate OK [09:42:07]wFMCommunicate request_size=33 [09:42:07]MH_SAM_APDU [09:42:07]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 34 39 10 04 04 00 22 0E 01 00 35 04 06 00 7B 59 22 CD E7 A3 [09:42:07]Write to MH i2c: E2 24 00 0D 3A 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 34 39 10 04 04 00 22 0E 01 00 35 04 06 00 7B 59 22 CD E7 A3 00 00 D7 [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:07]Read from MH i2c: E2 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 03 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 03 00 0D 3A 00 90 00 BB [09:42:07]RAPDU: 90 00 [09:42:07]wFMCommunicate OK [09:42:07]wFMCommunicate request_size=4 [09:42:07]MH_SAM_APDU [09:42:07]CAPDU: 80 0D 03 02 [09:42:07]Write to MH i2c: E2 08 00 0E 3A 80 0D 03 02 00 00 00 00 C3 [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:07]Read from MH i2c: E2 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 0B 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 0B 00 0E 3A 00 64 15 87 D8 F8 6B 87 01 90 00 87 [09:42:07]RAPDU: 64 15 87 D8 F8 6B 87 01 90 00 [09:42:07]wFMCommunicate OK [09:42:07]SAM_PROTO_SignData done [09:42:07]FM_MakeSignedData done [09:42:07]CreateOFDProtocolMessage [09:42:07]wFMCommunicate request_size=4 [09:42:07]MH_SAM_APDU [09:42:07]CAPDU: 80 11 00 00 [09:42:07]Write to MH i2c: E2 08 00 0F 3A 80 11 00 00 00 00 00 00 C3 [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:07]Read from MH i2c: E2 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 17 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: E2 17 00 0F 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 1F [09:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:42:07]wFMCommunicate OK [09:42:07]CreateOFDProtocolMessage done [09:42:07]OFDSenderStorePacket 69154 [09:42:07]StoreOFDPacket docnum=69154 [09:42:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 26 01 00 00 73 A9 1E 01 13 98 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 76 12 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 22 0E 01 00 35 04 06 00 7B 59 22 CD E7 A3 64 15 87 D8 F8 6B 87 01 [09:42:07]CheckFolder [09:42:07]dirname=/storage/ofd_packets [09:42:07]CheckFolder done [09:42:07]ProducePacketName [09:42:07]name=ofd_packets/00069154 [09:42:07]NVStorageSaveData ofd_packets/00069154 [09:42:07]File name is /storage/ofd_packets/00069154 [09:42:07]Write 324 bytes [09:42:07]NVStorageSaveData done [09:42:07]OFDSenderStorePacket done [09:42:07]KKMCreateOFDPacket done [09:42:07]NVStorageSaveData kkm_last_timestamp [09:42:07]File name is /storage/kkm_last_timestamp [09:42:07]Write 4 bytes [09:42:07]NVStorageSaveData done [09:42:07]ExternCall_PrintAddStr [09:42:07]wPrintStart [09:42:07]Write to MH i2c: 01 00 00 10 3A 4A [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: 01 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: 01 07 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: 01 07 00 10 3A 00 00 00 00 00 FF 0F 5F [09:42:07]RasterBufferAndPrint [09:42:07]line Счет N : (3)136555 [09:42:07]line ИНН: 02508201610067 [09:42:07]line Контрольно-Кассовый Чек [09:42:07]line ПРОДАЖА [09:42:07]line Товар: 4640030091645 [09:42:07]line Сигареты ESSE Exchange M [09:42:07]line 1.000 * 150.00 [09:42:07]line = 150.00 [09:42:07]line НДС 12% НСП 1% [09:42:07]line > о реализуемом товаре [09:42:07]line ИТОГО: 150.00 [09:42:07]line НСП 1% : 1.33 [09:42:07]line НДС 12% : 15.93 [09:42:07]line Наличными: 0.00 [09:42:07]line Безнал.: 150.00 [09:42:07]line Место: АЗС № 125 "Партнер Нефть" [09:42:07]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [09:42:07]line СНО: Общий режим [09:42:07]line Чек 37 28.07.2024 09:42 [09:42:07]line Смена: 429 ФФД: 1.0 [09:42:07]line ЗНМ: 0300000049 [09:42:07]line РНМ: 0000000000092638 [09:42:07]line Версия ККМ: 001 [09:42:07]line Платежная система: АКБ Кыргызстан [09:42:07]line ФМ: 0000000000874949 [09:42:07]line ФД: 69154 [09:42:07]line ФПД: 135622766225315 [09:42:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T094214&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69154&fm=135622766225315&tin=02508201610067®Number=0000000000092638&sum=15000 [09:42:07]OFD Sender: Processing packet 69154 [packets to send 19, broken 18] [09:42:07]ProducePacketName [09:42:07]name=ofd_packets/00069154 [09:42:07]OFD Sender: To server: pG, [09:42:07]CommunicateWithHost lk.salyk.kg:30040 [09:42:07]ConnectInit lk.salyk.kg [09:42:07]line 0 [09:42:07]written 0, free lines is 4095 [09:42:07]Connected sock=10 [09:42: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 39 34 39 26 01 00 00 73 A9 1E 01 13 98 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 76 12 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 22 0E 01 00 35 04 06 00 7B 59 22 CD E7 A3 64 15 87 D8 F8 6B 87 01 [09:42:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 56 7D 47 00 08 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 22 0E 01 00 F4 03 04 00 E6 B8 A5 66 B6 04 01 00 00 29 23 32 78 7F 98 B1 A6 [09:42:08]CommunicateWithHost err = 0 [09:42:08]CheckOFDResponse [09:42:08]1017 (14) - 77093643461234 [09:42:08]1041 (16) - 0000000000874949 [09:42:08]1040 (4) - 69154 [09:42:08]1012 (4) - 28.07.2024 03:20 [09:42:08]1206 (1) - 0 [09:42:08]OFD Sender: Remove packet 69154 [09:42:08]ProducePacketName [09:42:08]name=ofd_packets/00069154 [09:42:08]NVStorageDeleteData [09:42:08]Write to MH i2c: 01 00 00 3A 3A 74 [09:42:08]Write i2c OK [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: 01 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: 01 07 00 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: 01 07 00 3A 3A 00 00 00 00 00 F2 0C 79 [09:42:08]RasterBufferAndPrint [09:42:08]line [09:42:08]line [09:42:08]line [09:42:08]line [09:42:08]line [09:42:08]written 0, free lines is 3325 [09:42:08]MH_Cut [09:42:08]Write to MH i2c: D1 01 00 41 3A 01 4D [09:42:08]Write i2c OK [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: D1 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: D1 01 00 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: D1 01 00 41 3A 00 4C [09:42:08]Write to MH i2c: 01 00 00 42 3A 7C [09:42:08]Write i2c OK [09:42:08]MH_I2C_Read... [09:42:08]OFD Sender: No OFD packet to send [09:42:08]*** Cut start [09:42:08]*** Partial cut [09:42:08]*** CUTSNS_PIN = 1 [09:42:09]*** CUTSNS_PIN = 0 [09:42:09]*** Brake cut motor [09:42:09]Read from MH i2c: 01 [09:42:09]MH_I2C_Read... [09:42:09]*** Stop cut motor [09:42:09]*** Cut end [09:42:09]Read from MH i2c: 01 07 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: 01 07 00 42 3A 00 00 00 00 00 FF 0F 91 [09:42:09]process_action close_receipt done [09:42:09]requested_data is exist [09:42:09]produce_requested_data [09:42:09]requested_item fm.sn is exist - process it [09:42:09]wFMCommunicate request_size=4 [09:42:09]MH_SAM_APDU [09:42:09]CAPDU: 80 11 00 00 [09:42:09]Write to MH i2c: E2 08 00 43 3A 80 11 00 00 00 00 00 00 F7 [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:09]Read from MH i2c: E2 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 17 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 17 00 43 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 53 [09:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:42:09]wFMCommunicate OK [09:42:09]requested_item fd.num is exist - process it [09:42:09]SAM_PROTO_GetFieldsCounters [09:42:09]wFMCommunicate request_size=4 [09:42:09]MH_SAM_APDU [09:42:09]CAPDU: 80 13 00 00 [09:42:09]Write to MH i2c: E2 08 00 44 3A 80 13 00 00 00 00 00 00 FA [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:09]Read from MH i2c: E2 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 62 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 62 00 44 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 22 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [09:42: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 22 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:09]wFMCommunicate OK [09:42:09]SAM_PROTO_GetFieldsCounters done [09:42:09]requested_item shift.num is exist - process it [09:42:09]requested_item shift.opened is exist - process it [09:42:09]req_shift_opened [09:42:09]FM_GetShiftState [09:42:09]SAM_PROTO_GetShiftState [09:42:09]wFMCommunicate request_size=4 [09:42:09]MH_SAM_APDU [09:42:09]CAPDU: 80 13 01 00 [09:42:09]Write to MH i2c: E2 08 00 45 3A 80 13 01 00 00 00 00 00 FC [09:42:09]Write i2c OK [09:42:09]MH_I2C_Read... [09:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:09]Read from MH i2c: E2 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 0E 00 [09:42:09]MH_I2C_Read... [09:42:09]Read from MH i2c: E2 0E 00 45 3A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 39 [09:42:09]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [09:42:09]wFMCommunicate OK [09:42:09]SAM_PROTO_GetShiftState done [09:42:09]FM_GetShiftState done [09:42:09]req_shift_opened done [09:42:09]requested_item shift.open_date is exist - process it [09:42:09]req_shift_open_date [09:42:09]req_shift_open_date done [09:42:09]produce_requested_data done [09:42:09]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69154,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [09:42:09]process_action_free close_receipt [09:42:09]json_value_free [09:42:09]json_value_free done [09:42:09]process_json_proto returns [09:42:09]Send response to host [09:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69154,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [09:42:09]free response buf [09:42:09]execute_script done [09:42:09]execute_script returns [09:42:09]free content buf [09:42:09]Sock 9.Close socket [09:42:09]Sock 9.Thread stoped [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]accept exits with 7 [09:57:19]New connection [09:57:19]New thread 3066641764 created [09:57:19]Thread 3066785124 joined [09:57:19]Waiting for new connection... [09:57:19] Sock 7.Parse request [09:57:19]Sock 7.Check first char [09:57:19]Sock 7.First char is OK [09:57:19]request: POST /json_proto HTTP/1.0 [09:57:19]Method: POST [09:57:19]URL: /json_proto [09:57:19]Method is POST - this is cgi request [09:57:19]url: /json_proto [09:57:19]query_string will be loaded in cgi processing [09:57:19]execute_cgi json_proto POST (null) [09:57:19]execute_cgi path=json_proto method=POST [09:57:19]POST find Content-Length [09:57:19]Host: 172.17.49.132:8080 [09:57:19]Content-Length: 1067 [09:57:19]Content-Type: application/json [09:57:19] [09:57:19]POST finish read [09:57:19]Found Content-Length = 1067 [09:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136556", "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": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:19]execute_script... [09:57:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136556", "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": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:19]POST & json_proto [09:57:19]process_json_proto [09:57:19]json parsed OK: [09:57:19]protocol is kg_v1.0 [09:57:19]action value=close_receipt [09:57:19]process_action close_receipt [09:57:19]cmd_close_receipt [09:57:19]MH_GetDate [09:57:19]Write to MH i2c: F0 00 00 46 3A 6F [09:57:19]Write i2c OK [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: F0 [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: F0 09 00 [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: F0 09 00 46 3A 00 07 16 A6 66 E7 4B C0 64 F7 [09:57:19]GetLastDocTimeStamp 1722159734 [09:57:19]current date 1722160647 [09:57:19]FM_GetShiftState [09:57:19]SAM_PROTO_GetShiftState [09:57:19]wFMCommunicate request_size=4 [09:57:19]MH_SAM_APDU [09:57:19]CAPDU: 80 13 01 00 [09:57:19]Write to MH i2c: E2 08 00 47 3A 80 13 01 00 00 00 00 00 FE [09:57:19]Write i2c OK [09:57:19]MH_I2C_Read... [09:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:19]Read from MH i2c: E2 [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: E2 0E 00 [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: E2 0E 00 47 3A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 3B [09:57:19]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [09:57:19]wFMCommunicate OK [09:57:19]SAM_PROTO_GetShiftState done [09:57:19]FM_GetShiftState done [09:57:19]opened in 1722127251 [09:57:19]opened+sec_in_day 1722213651 [09:57:19]quantity*price = 11500 [09:57:19]sum+1 = 11501 [09:57:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 0.00 Безнал.: 245.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 38 28.07.2024 09:57 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874949 ФД: 69155 ФПД: 171850854080988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095727&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69155&fm=171850854080988&tin=02508201610067®Number=0000000000092638&sum=24500 0 [09:57:20]StoreToDocumentArchive [09:57:20]shift 429 fd 69155 [09:57:20]save to /storage/0429/doc_00069155 [09:57:20]save last doc name /storage/0429/doc_00069155 to /storage/kkm_last_doc_name [09:57:20]save OK [09:57:20]Clear old archive folders... [09:57:20]ProcessDocumentItem done err = 0, tmpTLVsize=392 [09:57:20]tlvbuf is 00AE6480 [09:57:20]SAM_PROTO_ClearQueue [09:57:20]wFMCommunicate request_size=4 [09:57:20]MH_SAM_APDU [09:57:20]CAPDU: 80 09 00 00 [09:57:20]Write to MH i2c: E2 08 00 54 3A 80 09 00 00 00 00 00 00 00 [09:57:20]Write i2c OK [09:57:20]MH_I2C_Read... [09:57:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:20]Read from MH i2c: E2 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 03 00 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 03 00 54 3A 00 90 00 02 [09:57:20]RAPDU: 90 00 [09:57:20]wFMCommunicate OK [09:57:20]SAM_PROTO_ClearQueue done [09:57:20]KKMCreateOFDPacket [09:57:20]OFDProtocolAddRootSTLVToBuf [09:57:20]FM_MakeSignedData [09:57:20]FM_MakeSignedData [09:57:20]SAM_PROTO_SignData [09:57:20]wFMCommunicate request_size=4 [09:57:20]MH_SAM_APDU [09:57:20]CAPDU: 80 0D 01 02 [09:57:20]Write to MH i2c: E2 08 00 55 3A 80 0D 01 02 00 00 00 00 08 [09:57:20]Write i2c OK [09:57:20]MH_I2C_Read... [09:57:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:20]Read from MH i2c: E2 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 03 00 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 03 00 55 3A 00 90 00 03 [09:57:20]RAPDU: 90 00 [09:57:20]wFMCommunicate OK [09:57:20]wFMCommunicate request_size=255 [09:57:20]MH_SAM_APDU [09:57:20]CAPDU: 80 0D 02 02 FA 03 00 88 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 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [09:57:20]Write to MH i2c: E2 02 01 56 3A 80 0D 02 02 FA 00 03 00 88 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 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 FC [09:57:20]Write i2c OK [09:57:20]MH_I2C_Read... [09:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:20]Read from MH i2c: E2 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 03 00 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 03 00 56 3A 00 90 00 04 [09:57:20]RAPDU: 90 00 [09:57:20]wFMCommunicate OK [09:57:20]wFMCommunicate request_size=151 [09:57:20]MH_SAM_APDU [09:57:20]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 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 26 00 00 00 F4 03 04 00 07 16 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 23 0E 01 00 35 04 06 00 9C 4C 25 1C A1 DC [09:57:20]Write to MH i2c: E2 9A 00 57 3A 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 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 26 00 00 00 F4 03 04 00 07 16 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 23 0E 01 00 35 04 06 00 9C 4C 25 1C A1 DC 00 00 61 [09:57:20]Write i2c OK [09:57:20]MH_I2C_Read... [09:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:20]Read from MH i2c: E2 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 03 00 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 03 00 57 3A 00 90 00 05 [09:57:20]RAPDU: 90 00 [09:57:20]wFMCommunicate OK [09:57:20]wFMCommunicate request_size=4 [09:57:20]MH_SAM_APDU [09:57:20]CAPDU: 80 0D 03 02 [09:57:20]Write to MH i2c: E2 08 00 58 3A 80 0D 03 02 00 00 00 00 0D [09:57:20]Write i2c OK [09:57:20]MH_I2C_Read... [09:57:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:20]Read from MH i2c: E2 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 0B 00 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 0B 00 58 3A 00 19 E7 7B E6 70 C1 91 71 90 00 A2 [09:57:20]RAPDU: 19 E7 7B E6 70 C1 91 71 90 00 [09:57:20]wFMCommunicate OK [09:57:20]SAM_PROTO_SignData done [09:57:20]FM_MakeSignedData done [09:57:20]CreateOFDProtocolMessage [09:57:20]wFMCommunicate request_size=4 [09:57:20]MH_SAM_APDU [09:57:20]CAPDU: 80 11 00 00 [09:57:20]Write to MH i2c: E2 08 00 59 3A 80 11 00 00 00 00 00 00 0D [09:57:20]Write i2c OK [09:57:20]MH_I2C_Read... [09:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:20]Read from MH i2c: E2 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 17 00 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 17 00 59 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 69 [09:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:57:20]wFMCommunicate OK [09:57:20]CreateOFDProtocolMessage done [09:57:20]OFDSenderStorePacket 69155 [09:57:20]StoreOFDPacket docnum=69155 [09:57:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 9C 01 00 00 38 76 94 01 09 87 5A 03 01 00 03 00 88 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 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 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 26 00 00 00 F4 03 04 00 07 16 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 23 0E 01 00 35 04 06 00 9C 4C 25 1C A1 DC 19 E7 7B E6 70 C1 91 71 [09:57:20]CheckFolder [09:57:20]dirname=/storage/ofd_packets [09:57:20]CheckFolder done [09:57:20]ProducePacketName [09:57:20]name=ofd_packets/00069155 [09:57:20]NVStorageSaveData ofd_packets/00069155 [09:57:20]File name is /storage/ofd_packets/00069155 [09:57:20]Write 442 bytes [09:57:20]NVStorageSaveData done [09:57:20]OFDSenderStorePacket done [09:57:20]KKMCreateOFDPacket done [09:57:20]NVStorageSaveData kkm_last_timestamp [09:57:20]File name is /storage/kkm_last_timestamp [09:57:20]Write 4 bytes [09:57:20]NVStorageSaveData done [09:57:20]ExternCall_PrintAddStr [09:57:20]wPrintStart [09:57:20]Write to MH i2c: 01 00 00 5A 3A 94 [09:57:20]Write i2c OK [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: 01 [09:57:21]MH_I2C_Read... [09:57:21]OFD Sender: Processing packet 69155 [packets to send 19, broken 18] [09:57:21]ProducePacketName [09:57:21]name=ofd_packets/00069155 [09:57:21]OFD Sender: To server: pG, [09:57:21]CommunicateWithHost lk.salyk.kg:30040 [09:57:21]ConnectInit lk.salyk.kg [09:57:21]Read from MH i2c: 01 07 00 [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: 01 07 00 5A 3A 00 00 00 00 00 FF 0F A9 [09:57:21]RasterBufferAndPrint [09:57:21]line Счет N : (3)136556 [09:57:21]line ИНН: 02508201610067 [09:57:21]line Контрольно-Кассовый Чек [09:57:21]line ПРОДАЖА [09:57:21]line Товар: 2000036210013 [09:57:21]line Кофе Капучино (GABB TRADE) [09:57:21]line 1.000 * 115.00 [09:57:21]line = 115.00 [09:57:21]line НДС 12% НСП 1% [09:57:21]line > о реализуемом товаре [09:57:21]line Товар: 2000036220012 [09:57:21]line Кофе Капучино XL(GABB TRADE) [09:57:21]line 1.000 * 130.00 [09:57:21]line = 130.00 [09:57:21]line НДС 12% НСП 1% [09:57:21]line > о реализуемом товаре [09:57:21]line ИТОГО: 245.00 [09:57:21]line НСП 1% : 2.17 [09:57:21]line НДС 12% : 26.01 [09:57:21]line Наличными: 0.00 [09:57:21]line Безнал.: 245.00 [09:57:21]line Место: АЗС № 125 "Партнер Нефть" [09:57:21]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [09:57:21]line СНО: Общий режим [09:57:21]line Чек 38 28.07.2024 09:57 [09:57:21]line Смена: 429 ФФД: 1.0 [09:57:21]line ЗНМ: 0300000049 [09:57:21]line РНМ: 0000000000092638 [09:57:21]line Версия ККМ: 001 [09:57:21]line Платежная система: O! деньги [09:57:21]line ФМ: 0000000000874949 [09:57:21]line ФД: 69155 [09:57:21]line ФПД: 171850854080988 [09:57:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T095727&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69155&fm=171850854080988&tin=02508201610067®Number=0000000000092638&sum=24500 [09:57:21]line 0 [09:57:21]written 0, free lines is 4095 [09:57:21]Connected sock=10 [09:57:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 9C 01 00 00 38 76 94 01 09 87 5A 03 01 00 03 00 88 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 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 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 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 26 00 00 00 F4 03 04 00 07 16 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 23 0E 01 00 35 04 06 00 9C 4C 25 1C A1 DC 19 E7 7B E6 70 C1 91 71 [09:57:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 E0 DA 47 00 A2 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 23 0E 01 00 F4 03 04 00 77 BC A5 66 B6 04 01 00 00 D9 75 A7 28 69 91 D4 B8 [09:57:21]CommunicateWithHost err = 0 [09:57:21]CheckOFDResponse [09:57:21]1017 (14) - 77093643461234 [09:57:21]1041 (16) - 0000000000874949 [09:57:21]1040 (4) - 69155 [09:57:21]1012 (4) - 28.07.2024 03:35 [09:57:21]1206 (1) - 0 [09:57:21]OFD Sender: Remove packet 69155 [09:57:21]ProducePacketName [09:57:21]name=ofd_packets/00069155 [09:57:21]NVStorageDeleteData [09:57:21]Write to MH i2c: 01 00 00 8B 3A C5 [09:57:21]Write i2c OK [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: 01 [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: 01 07 00 [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: 01 07 00 8B 3A 00 00 00 00 00 B9 0C 91 [09:57:21]RasterBufferAndPrint [09:57:21]line [09:57:21]line [09:57:21]line [09:57:21]line [09:57:21]line [09:57:21]written 0, free lines is 3266 [09:57:21]MH_Cut [09:57:21]Write to MH i2c: D1 01 00 92 3A 01 9E [09:57:21]Write i2c OK [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: D1 [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: D1 01 00 [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: D1 01 00 92 3A 00 9D [09:57:21]Write to MH i2c: 01 00 00 93 3A CD [09:57:21]Write i2c OK [09:57:21]MH_I2C_Read... [09:57:22]OFD Sender: No OFD packet to send [09:57:22]*** Cut start [09:57:22]*** Partial cut [09:57:22]*** CUTSNS_PIN = 1 [09:57:22]*** CUTSNS_PIN = 0 [09:57:22]*** Brake cut motor [09:57:23]Read from MH i2c: 01 [09:57:23]MH_I2C_Read... [09:57:23]*** Stop cut motor [09:57:23]*** Cut end [09:57:23]Read from MH i2c: 01 07 00 [09:57:23]MH_I2C_Read... [09:57:23]Read from MH i2c: 01 07 00 93 3A 00 00 00 00 00 FF 0F E2 [09:57:23]process_action close_receipt done [09:57:23]requested_data is exist [09:57:23]produce_requested_data [09:57:23]requested_item fm.sn is exist - process it [09:57:23]wFMCommunicate request_size=4 [09:57:23]MH_SAM_APDU [09:57:23]CAPDU: 80 11 00 00 [09:57:23]Write to MH i2c: E2 08 00 94 3A 80 11 00 00 00 00 00 00 48 [09:57:23]Write i2c OK [09:57:23]MH_I2C_Read... [09:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:23]Read from MH i2c: E2 [09:57:23]MH_I2C_Read... [09:57:23]Read from MH i2c: E2 17 00 [09:57:23]MH_I2C_Read... [09:57:23]Read from MH i2c: E2 17 00 94 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A4 [09:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:57:23]wFMCommunicate OK [09:57:23]requested_item fd.num is exist - process it [09:57:23]SAM_PROTO_GetFieldsCounters [09:57:23]wFMCommunicate request_size=4 [09:57:23]MH_SAM_APDU [09:57:23]CAPDU: 80 13 00 00 [09:57:23]Write to MH i2c: E2 08 00 95 3A 80 13 00 00 00 00 00 00 4B [09:57:23]Write i2c OK [09:57:23]MH_I2C_Read... [09:57:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:23]Read from MH i2c: E2 [09:57:23]MH_I2C_Read... [09:57:23]Read from MH i2c: E2 62 00 [09:57:23]MH_I2C_Read... [09:57:23]Read from MH i2c: E2 62 00 95 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 23 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [09:57:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 23 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:23]wFMCommunicate OK [09:57:23]SAM_PROTO_GetFieldsCounters done [09:57:23]requested_item shift.num is exist - process it [09:57:23]requested_item shift.opened is exist - process it [09:57:23]req_shift_opened [09:57:23]FM_GetShiftState [09:57:23]SAM_PROTO_GetShiftState [09:57:23]wFMCommunicate request_size=4 [09:57:23]MH_SAM_APDU [09:57:23]CAPDU: 80 13 01 00 [09:57:23]Write to MH i2c: E2 08 00 96 3A 80 13 01 00 00 00 00 00 4D [09:57:23]Write i2c OK [09:57:23]MH_I2C_Read... [09:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:23]Read from MH i2c: E2 [09:57:23]MH_I2C_Read... [09:57:23]Read from MH i2c: E2 0E 00 [09:57:23]MH_I2C_Read... [09:57:23]Read from MH i2c: E2 0E 00 96 3A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 8A [09:57:23]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [09:57:23]wFMCommunicate OK [09:57:23]SAM_PROTO_GetShiftState done [09:57:23]FM_GetShiftState done [09:57:23]req_shift_opened done [09:57:23]requested_item shift.open_date is exist - process it [09:57:23]req_shift_open_date [09:57:23]req_shift_open_date done [09:57:23]produce_requested_data done [09:57:23]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69155,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [09:57:23]process_action_free close_receipt [09:57:23]json_value_free [09:57:23]json_value_free done [09:57:23]process_json_proto returns [09:57:23]Send response to host [09:57:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69155,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [09:57:23]free response buf [09:57:23]execute_script done [09:57:23]execute_script returns [09:57:23]free content buf [09:57:23]Sock 7.Close socket [09:57:23]Sock 7.Thread stoped [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:51]accept exits with 9 [10:07:51]New connection [10:07:51]New thread 3066785124 created [10:07:51]Thread 3066641764 joined [10:07:51]Waiting for new connection... [10:07:51] Sock 9.Parse request [10:07:51]Sock 9.Check first char [10:07:51]Sock 9.First char is OK [10:07:51]request: POST /json_proto HTTP/1.0 [10:07:51]Method: POST [10:07:51]URL: /json_proto [10:07:51]Method is POST - this is cgi request [10:07:51]url: /json_proto [10:07:51]query_string will be loaded in cgi processing [10:07:51]execute_cgi json_proto POST (null) [10:07:51]execute_cgi path=json_proto method=POST [10:07:51]POST find Content-Length [10:07:51]Host: 172.17.49.132:8080 [10:07:51]Content-Length: 747 [10:07:51]Content-Type: application/json [10:07:51] [10:07:51]POST finish read [10:07:51]Found Content-Length = 747 [10:07:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136557", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:51]execute_script... [10:07:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136557", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 590.00, "quantity" : 1.000, "sum" : 590.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:51]POST & json_proto [10:07:51]process_json_proto [10:07:51]json parsed OK: [10:07:51]protocol is kg_v1.0 [10:07:51]action value=close_receipt [10:07:51]process_action close_receipt [10:07:51]cmd_close_receipt [10:07:51]MH_GetDate [10:07:51]Write to MH i2c: F0 00 00 97 3A C0 [10:07:51]Write i2c OK [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: F0 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: F0 09 00 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: F0 09 00 97 3A 00 80 18 A6 66 E7 4B C0 64 C3 [10:07:51]GetLastDocTimeStamp 1722160647 [10:07:51]current date 1722161280 [10:07:51]FM_GetShiftState [10:07:51]SAM_PROTO_GetShiftState [10:07:51]wFMCommunicate request_size=4 [10:07:51]MH_SAM_APDU [10:07:51]CAPDU: 80 13 01 00 [10:07:51]Write to MH i2c: E2 08 00 98 3A 80 13 01 00 00 00 00 00 4F [10:07:51]Write i2c OK [10:07:51]MH_I2C_Read... [10:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:51]Read from MH i2c: E2 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 0E 00 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 0E 00 98 3A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 8C [10:07:51]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [10:07:51]wFMCommunicate OK [10:07:51]SAM_PROTO_GetShiftState done [10:07:51]FM_GetShiftState done [10:07:51]opened in 1722127251 [10:07:51]opened+sec_in_day 1722213651 [10:07:51]quantity*price = 59000 [10:07:51]sum+1 = 59001 [10:07:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 39 28.07.2024 10:08 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69156 ФПД: 280059472722570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100800&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69156&fm=280059472722570&tin=02508201610067®Number=0000000000092638&sum=59000 0 [10:07:53]StoreToDocumentArchive [10:07:53]shift 429 fd 69156 [10:07:53]save to /storage/0429/doc_00069156 [10:07:53]save last doc name /storage/0429/doc_00069156 to /storage/kkm_last_doc_name [10:07:53]save OK [10:07:53]Clear old archive folders... [10:07:53]ProcessDocumentItem done err = 0, tmpTLVsize=307 [10:07:53]tlvbuf is 00A24260 [10:07:53]SAM_PROTO_ClearQueue [10:07:53]wFMCommunicate request_size=4 [10:07:53]MH_SAM_APDU [10:07:53]CAPDU: 80 09 00 00 [10:07:53]Write to MH i2c: E2 08 00 A5 3A 80 09 00 00 00 00 00 00 51 [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:53]Read from MH i2c: E2 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 A5 3A 00 90 00 53 [10:07:53]RAPDU: 90 00 [10:07:53]wFMCommunicate OK [10:07:53]SAM_PROTO_ClearQueue done [10:07:53]KKMCreateOFDPacket [10:07:53]OFDProtocolAddRootSTLVToBuf [10:07:53]FM_MakeSignedData [10:07:53]FM_MakeSignedData [10:07:53]SAM_PROTO_SignData [10:07:53]wFMCommunicate request_size=4 [10:07:53]MH_SAM_APDU [10:07:53]CAPDU: 80 0D 01 02 [10:07:53]Write to MH i2c: E2 08 00 A6 3A 80 0D 01 02 00 00 00 00 59 [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:53]Read from MH i2c: E2 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 A6 3A 00 90 00 54 [10:07:53]RAPDU: 90 00 [10:07:53]wFMCommunicate OK [10:07:53]wFMCommunicate request_size=255 [10:07:53]MH_SAM_APDU [10:07:53]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 80 18 A6 66 0E 04 04 00 AD 01 00 00 B9 04 [10:07:53]Write to MH i2c: E2 02 01 A7 3A 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 80 18 A6 66 0E 04 04 00 AD 01 00 00 B9 04 00 00 59 [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:53]Read from MH i2c: E2 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 A7 3A 00 90 00 55 [10:07:53]RAPDU: 90 00 [10:07:53]wFMCommunicate OK [10:07:53]wFMCommunicate request_size=66 [10:07:53]MH_SAM_APDU [10:07:53]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 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 24 0E 01 00 35 04 06 00 FE B6 6D 63 3A 8A [10:07:53]Write to MH i2c: E2 45 00 A8 3A 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 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 24 0E 01 00 35 04 06 00 FE B6 6D 63 3A 8A 00 00 35 [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:53]Read from MH i2c: E2 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 03 00 A8 3A 00 90 00 56 [10:07:53]RAPDU: 90 00 [10:07:53]wFMCommunicate OK [10:07:53]wFMCommunicate request_size=4 [10:07:53]MH_SAM_APDU [10:07:53]CAPDU: 80 0D 03 02 [10:07:53]Write to MH i2c: E2 08 00 A9 3A 80 0D 03 02 00 00 00 00 5E [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:53]Read from MH i2c: E2 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 0B 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 0B 00 A9 3A 00 C4 A2 58 1C 59 6D 2C F1 90 00 1C [10:07:53]RAPDU: C4 A2 58 1C 59 6D 2C F1 90 00 [10:07:53]wFMCommunicate OK [10:07:53]SAM_PROTO_SignData done [10:07:53]FM_MakeSignedData done [10:07:53]CreateOFDProtocolMessage [10:07:53]wFMCommunicate request_size=4 [10:07:53]MH_SAM_APDU [10:07:53]CAPDU: 80 11 00 00 [10:07:53]Write to MH i2c: E2 08 00 AA 3A 80 11 00 00 00 00 00 00 5E [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:53]Read from MH i2c: E2 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 17 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: E2 17 00 AA 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 BA [10:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:07:53]wFMCommunicate OK [10:07:53]CreateOFDProtocolMessage done [10:07:53]OFDSenderStorePacket 69156 [10:07:53]StoreOFDPacket docnum=69156 [10:07:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 47 01 00 00 B8 FA 3F 01 BF A9 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 80 18 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 24 0E 01 00 35 04 06 00 FE B6 6D 63 3A 8A C4 A2 58 1C 59 6D 2C F1 [10:07:53]CheckFolder [10:07:53]dirname=/storage/ofd_packets [10:07:53]CheckFolder done [10:07:53]ProducePacketName [10:07:53]name=ofd_packets/00069156 [10:07:53]NVStorageSaveData ofd_packets/00069156 [10:07:53]File name is /storage/ofd_packets/00069156 [10:07:53]Write 357 bytes [10:07:53]NVStorageSaveData done [10:07:53]OFDSenderStorePacket done [10:07:53]KKMCreateOFDPacket done [10:07:53]NVStorageSaveData kkm_last_timestamp [10:07:53]File name is /storage/kkm_last_timestamp [10:07:53]Write 4 bytes [10:07:53]NVStorageSaveData done [10:07:53]ExternCall_PrintAddStr [10:07:53]wPrintStart [10:07:53]Write to MH i2c: 01 00 00 AB 3A E5 [10:07:53]Write i2c OK [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: 01 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: 01 07 00 [10:07:53]MH_I2C_Read... [10:07:53]Read from MH i2c: 01 07 00 AB 3A 00 00 00 00 00 FF 0F FA [10:07:53]RasterBufferAndPrint [10:07:53]line Счет N : (3)136557 [10:07:53]line ИНН: 02508201610067 [10:07:53]line Контрольно-Кассовый Чек [10:07:53]line ПРОДАЖА [10:07:53]line Товар: 2000029770012 [10:07:53]line Очки солнцезащитные в ассортименте [10:07:53]line 1.000 * 590.00 [10:07:53]line = 590.00 [10:07:53]line НДС 12% НСП 1% [10:07:53]line > о реализуемом товаре [10:07:53]line ИТОГО: 590.00 [10:07:53]line НСП 1% : 5.22 [10:07:53]line НДС 12% : 62.65 [10:07:53]line Наличными: 590.00 [10:07:53]line Безнал.: 0.00 [10:07:53]line Место: АЗС № 125 "Партнер Нефть" [10:07:53]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:07:53]line СНО: Общий режим [10:07:53]line Чек 39 28.07.2024 10:08 [10:07:53]line Смена: 429 ФФД: 1.0 [10:07:53]line ЗНМ: 0300000049 [10:07:53]line РНМ: 0000000000092638 [10:07:53]line Версия ККМ: 001 [10:07:53]line ФМ: 0000000000874949 [10:07:53]line ФД: 69156 [10:07:53]line ФПД: 280059472722570 [10:07:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100800&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69156&fm=280059472722570&tin=02508201610067®Number=0000000000092638&sum=59000 [10:07:54]line 0 [10:07:54]OFD Sender: Processing packet 69156 [packets to send 19, broken 18] [10:07:54]ProducePacketName [10:07:54]name=ofd_packets/00069156 [10:07:54]OFD Sender: To server: pG, [10:07:54]CommunicateWithHost lk.salyk.kg:30040 [10:07:54]ConnectInit lk.salyk.kg [10:07:54]written 0, free lines is 4095 [10:07:54]Connected sock=7 [10:07: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 39 34 39 47 01 00 00 B8 FA 3F 01 BF A9 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 80 18 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 24 0E 01 00 35 04 06 00 FE B6 6D 63 3A 8A C4 A2 58 1C 59 6D 2C F1 [10:07:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 79 D9 47 00 F5 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 24 0E 01 00 F4 03 04 00 F0 BE A5 66 B6 04 01 00 00 00 56 0C 81 5F 9E 25 7A [10:07:54]CommunicateWithHost err = 0 [10:07:54]CheckOFDResponse [10:07:54]1017 (14) - 77093643461234 [10:07:54]1041 (16) - 0000000000874949 [10:07:54]1040 (4) - 69156 [10:07:54]1012 (4) - 28.07.2024 03:45 [10:07:54]1206 (1) - 0 [10:07:54]OFD Sender: Remove packet 69156 [10:07:54]ProducePacketName [10:07:54]name=ofd_packets/00069156 [10:07:54]NVStorageDeleteData [10:07:54]Write to MH i2c: 01 00 00 D4 3A 0E [10:07:54]Write i2c OK [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: 01 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: 01 07 00 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: 01 07 00 D4 3A 00 00 00 00 00 0D 0D 2F [10:07:54]RasterBufferAndPrint [10:07:54]line [10:07:54]line [10:07:54]line [10:07:54]line [10:07:54]line [10:07:54]written 0, free lines is 3350 [10:07:54]MH_Cut [10:07:54]Write to MH i2c: D1 01 00 DB 3A 01 E7 [10:07:54]Write i2c OK [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: D1 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: D1 01 00 [10:07:54]MH_I2C_Read... [10:07:54]Read from MH i2c: D1 01 00 DB 3A 00 E6 [10:07:54]Write to MH i2c: 01 00 00 DC 3A 16 [10:07:54]Write i2c OK [10:07:54]MH_I2C_Read... [10:07:54]OFD Sender: No OFD packet to send [10:07:55]*** Cut start [10:07:55]*** Partial cut [10:07:55]*** CUTSNS_PIN = 1 [10:07:55]*** CUTSNS_PIN = 0 [10:07:55]*** Brake cut motor [10:07:55]Read from MH i2c: 01 [10:07:55]MH_I2C_Read... [10:07:55]*** Stop cut motor [10:07:55]*** Cut end [10:07:55]Read from MH i2c: 01 07 00 [10:07:55]MH_I2C_Read... [10:07:55]Read from MH i2c: 01 07 00 DC 3A 00 00 00 00 00 FF 0F 2B [10:07:55]process_action close_receipt done [10:07:55]requested_data is exist [10:07:55]produce_requested_data [10:07:55]requested_item fm.sn is exist - process it [10:07:55]wFMCommunicate request_size=4 [10:07:55]MH_SAM_APDU [10:07:55]CAPDU: 80 11 00 00 [10:07:55]Write to MH i2c: E2 08 00 DD 3A 80 11 00 00 00 00 00 00 91 [10:07:55]Write i2c OK [10:07:55]MH_I2C_Read... [10:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:55]Read from MH i2c: E2 [10:07:55]MH_I2C_Read... [10:07:55]Read from MH i2c: E2 17 00 [10:07:55]MH_I2C_Read... [10:07:55]Read from MH i2c: E2 17 00 DD 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 ED [10:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:07:55]wFMCommunicate OK [10:07:55]requested_item fd.num is exist - process it [10:07:55]SAM_PROTO_GetFieldsCounters [10:07:55]wFMCommunicate request_size=4 [10:07:55]MH_SAM_APDU [10:07:55]CAPDU: 80 13 00 00 [10:07:55]Write to MH i2c: E2 08 00 DE 3A 80 13 00 00 00 00 00 00 94 [10:07:55]Write i2c OK [10:07:55]MH_I2C_Read... [10:07:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:55]Read from MH i2c: E2 [10:07:55]MH_I2C_Read... [10:07:55]Read from MH i2c: E2 62 00 [10:07:55]MH_I2C_Read... [10:07:55]Read from MH i2c: E2 62 00 DE 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 24 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [10:07:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 24 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:55]wFMCommunicate OK [10:07:55]SAM_PROTO_GetFieldsCounters done [10:07:55]requested_item shift.num is exist - process it [10:07:55]requested_item shift.opened is exist - process it [10:07:55]req_shift_opened [10:07:55]FM_GetShiftState [10:07:55]SAM_PROTO_GetShiftState [10:07:55]wFMCommunicate request_size=4 [10:07:55]MH_SAM_APDU [10:07:55]CAPDU: 80 13 01 00 [10:07:55]Write to MH i2c: E2 08 00 DF 3A 80 13 01 00 00 00 00 00 96 [10:07:55]Write i2c OK [10:07:55]MH_I2C_Read... [10:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:55]Read from MH i2c: E2 [10:07:55]MH_I2C_Read... [10:07:55]Read from MH i2c: E2 0E 00 [10:07:55]MH_I2C_Read... [10:07:55]Read from MH i2c: E2 0E 00 DF 3A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 D3 [10:07:55]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [10:07:55]wFMCommunicate OK [10:07:55]SAM_PROTO_GetShiftState done [10:07:55]FM_GetShiftState done [10:07:55]req_shift_opened done [10:07:55]requested_item shift.open_date is exist - process it [10:07:55]req_shift_open_date [10:07:55]req_shift_open_date done [10:07:55]produce_requested_data done [10:07:55]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69156,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [10:07:55]process_action_free close_receipt [10:07:55]json_value_free [10:07:55]json_value_free done [10:07:55]process_json_proto returns [10:07:55]Send response to host [10:07:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69156,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [10:07:55]free response buf [10:07:55]execute_script done [10:07:55]execute_script returns [10:07:55]free content buf [10:07:55]Sock 9.Close socket [10:07:55]Sock 9.Thread stoped [10:07:59]OFD Sender: No OFD packet to send [10:07:59]accept exits with 10 [10:07:59]New connection [10:07:59]New thread 3066641764 created [10:07:59]Thread 3066785124 joined [10:07:59]Waiting for new connection... [10:07:59] Sock 10.Parse request [10:07:59]Sock 10.Check first char [10:07:59]Sock 10.First char is OK [10:07:59]request: POST /json_proto HTTP/1.0 [10:07:59]Method: POST [10:07:59]URL: /json_proto [10:07:59]Method is POST - this is cgi request [10:07:59]url: /json_proto [10:07:59]query_string will be loaded in cgi processing [10:07:59]execute_cgi json_proto POST (null) [10:07:59]execute_cgi path=json_proto method=POST [10:07:59]POST find Content-Length [10:07:59]Host: 172.17.49.132:8080 [10:07:59]Content-Length: 688 [10:07:59]Content-Type: application/json [10:07:59] [10:07:59]POST finish read [10:07:59]Found Content-Length = 688 [10:07:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136558", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:59]execute_script... [10:07:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136558", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:59]POST & json_proto [10:07:59]process_json_proto [10:07:59]json parsed OK: [10:07:59]protocol is kg_v1.0 [10:07:59]action value=close_receipt [10:07:59]process_action close_receipt [10:07:59]cmd_close_receipt [10:07:59]MH_GetDate [10:07:59]Write to MH i2c: F0 00 00 E0 3A 09 [10:07:59]Write i2c OK [10:07:59]MH_I2C_Read... [10:07:59]Read from MH i2c: F0 [10:07:59]MH_I2C_Read... [10:07:59]Read from MH i2c: F0 09 00 [10:07:59]MH_I2C_Read... [10:07:59]Read from MH i2c: F0 09 00 E0 3A 00 88 18 A6 66 E7 4B C0 64 14 [10:07:59]GetLastDocTimeStamp 1722161280 [10:07:59]current date 1722161288 [10:07:59]FM_GetShiftState [10:07:59]SAM_PROTO_GetShiftState [10:07:59]wFMCommunicate request_size=4 [10:07:59]MH_SAM_APDU [10:07:59]CAPDU: 80 13 01 00 [10:07:59]Write to MH i2c: E2 08 00 E1 3A 80 13 01 00 00 00 00 00 98 [10:07:59]Write i2c OK [10:07:59]MH_I2C_Read... [10:07:59]Read from MH i2c: E2 [10:07:59]MH_I2C_Read... [10:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:59]Read from MH i2c: E2 0E 00 [10:07:59]MH_I2C_Read... [10:07:59]Read from MH i2c: E2 0E 00 E1 3A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 D5 [10:07:59]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [10:07:59]wFMCommunicate OK [10:07:59]SAM_PROTO_GetShiftState done [10:07:59]FM_GetShiftState done [10:07:59]opened in 1722127251 [10:07:59]opened+sec_in_day 1722213651 [10:07:59]quantity*price = 9500 [10:07:59]sum+1 = 9501 [10:07:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 40 28.07.2024 10:08 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69157 ФПД: 57556096346784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100808&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69157&fm=57556096346784&tin=02508201610067®Number=0000000000092638&sum=9500 0 [10:08:01]StoreToDocumentArchive [10:08:01]shift 429 fd 69157 [10:08:01]save to /storage/0429/doc_00069157 [10:08:01]save last doc name /storage/0429/doc_00069157 to /storage/kkm_last_doc_name [10:08:01]save OK [10:08:01]Clear old archive folders... [10:08:01]ProcessDocumentItem done err = 0, tmpTLVsize=299 [10:08:01]tlvbuf is 00A13660 [10:08:01]SAM_PROTO_ClearQueue [10:08:01]wFMCommunicate request_size=4 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 09 00 00 [10:08:01]Write to MH i2c: E2 08 00 EE 3A 80 09 00 00 00 00 00 00 9A [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 EE 3A 00 90 00 9C [10:08:01]RAPDU: 90 00 [10:08:01]wFMCommunicate OK [10:08:01]SAM_PROTO_ClearQueue done [10:08:01]KKMCreateOFDPacket [10:08:01]OFDProtocolAddRootSTLVToBuf [10:08:01]FM_MakeSignedData [10:08:01]FM_MakeSignedData [10:08:01]SAM_PROTO_SignData [10:08:01]wFMCommunicate request_size=4 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 0D 01 02 [10:08:01]Write to MH i2c: E2 08 00 EF 3A 80 0D 01 02 00 00 00 00 A2 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 EF 3A 00 90 00 9D [10:08:01]RAPDU: 90 00 [10:08:01]wFMCommunicate OK [10:08:01]wFMCommunicate request_size=255 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 88 18 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [10:08:01]Write to MH i2c: E2 02 01 F0 3A 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 88 18 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 CB [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 F0 3A 00 90 00 9E [10:08:01]RAPDU: 90 00 [10:08:01]wFMCommunicate OK [10:08:01]wFMCommunicate request_size=58 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 25 0E 01 00 35 04 06 00 34 58 D2 AD 6A A0 [10:08:01]Write to MH i2c: E2 3D 00 F1 3A 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 25 0E 01 00 35 04 06 00 34 58 D2 AD 6A A0 00 00 E9 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 03 00 F1 3A 00 90 00 9F [10:08:01]RAPDU: 90 00 [10:08:01]wFMCommunicate OK [10:08:01]wFMCommunicate request_size=4 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 0D 03 02 [10:08:01]Write to MH i2c: E2 08 00 F2 3A 80 0D 03 02 00 00 00 00 A7 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 0B 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 0B 00 F2 3A 00 49 0C BB 13 54 89 64 1F 90 00 2B [10:08:01]RAPDU: 49 0C BB 13 54 89 64 1F 90 00 [10:08:01]wFMCommunicate OK [10:08:01]SAM_PROTO_SignData done [10:08:01]FM_MakeSignedData done [10:08:01]CreateOFDProtocolMessage [10:08:01]wFMCommunicate request_size=4 [10:08:01]MH_SAM_APDU [10:08:01]CAPDU: 80 11 00 00 [10:08:01]Write to MH i2c: E2 08 00 F3 3A 80 11 00 00 00 00 00 00 A7 [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:01]Read from MH i2c: E2 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 17 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: E2 17 00 F3 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 03 [10:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:08:01]wFMCommunicate OK [10:08:01]CreateOFDProtocolMessage done [10:08:01]OFDSenderStorePacket 69157 [10:08:01]StoreOFDPacket docnum=69157 [10:08:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3F 01 00 00 1D B7 37 01 AE 0D 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 88 18 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 25 0E 01 00 35 04 06 00 34 58 D2 AD 6A A0 49 0C BB 13 54 89 64 1F [10:08:01]CheckFolder [10:08:01]dirname=/storage/ofd_packets [10:08:01]CheckFolder done [10:08:01]ProducePacketName [10:08:01]name=ofd_packets/00069157 [10:08:01]NVStorageSaveData ofd_packets/00069157 [10:08:01]File name is /storage/ofd_packets/00069157 [10:08:01]Write 349 bytes [10:08:01]NVStorageSaveData done [10:08:01]OFDSenderStorePacket done [10:08:01]KKMCreateOFDPacket done [10:08:01]NVStorageSaveData kkm_last_timestamp [10:08:01]File name is /storage/kkm_last_timestamp [10:08:01]Write 4 bytes [10:08:01]NVStorageSaveData done [10:08:01]ExternCall_PrintAddStr [10:08:01]wPrintStart [10:08:01]Write to MH i2c: 01 00 00 F4 3A 2E [10:08:01]Write i2c OK [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: 01 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: 01 07 00 [10:08:01]MH_I2C_Read... [10:08:01]Read from MH i2c: 01 07 00 F4 3A 00 00 00 00 00 FF 0F 43 [10:08:01]RasterBufferAndPrint [10:08:01]line Счет N : (3)136558 [10:08:01]line ИНН: 02508201610067 [10:08:01]line Контрольно-Кассовый Чек [10:08:01]line ПРОДАЖА [10:08:01]line Товар: 4700003010070 [10:08:01]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [10:08:01]line 1.000 * 95.00 [10:08:01]line = 95.00 [10:08:01]line НДС 12% НСП 1% [10:08:01]line > о реализуемом товаре [10:08:01]line ИТОГО: 95.00 [10:08:01]line НСП 1% : 0.84 [10:08:01]line НДС 12% : 10.09 [10:08:01]line Наличными: 95.00 [10:08:01]line Безнал.: 0.00 [10:08:01]line Место: АЗС № 125 "Партнер Нефть" [10:08:01]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:08:01]line СНО: Общий режим [10:08:01]line Чек 40 28.07.2024 10:08 [10:08:01]line Смена: 429 ФФД: 1.0 [10:08:01]line ЗНМ: 0300000049 [10:08:01]line РНМ: 0000000000092638 [10:08:01]line Версия ККМ: 001 [10:08:01]line ФМ: 0000000000874949 [10:08:01]line ФД: 69157 [10:08:01]line ФПД: 57556096346784 [10:08:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T100808&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69157&fm=57556096346784&tin=02508201610067®Number=0000000000092638&sum=9500 [10:08:01]line 0 [10:08:01]written 0, free lines is 4095 [10:08:01]OFD Sender: Processing packet 69157 [packets to send 19, broken 18] [10:08:01]ProducePacketName [10:08:01]name=ofd_packets/00069157 [10:08:01]OFD Sender: To server: pG, [10:08:01]CommunicateWithHost lk.salyk.kg:30040 [10:08:01]ConnectInit lk.salyk.kg [10:08:01]Connected sock=9 [10:08: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 39 34 39 3F 01 00 00 1D B7 37 01 AE 0D 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 88 18 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 25 0E 01 00 35 04 06 00 34 58 D2 AD 6A A0 49 0C BB 13 54 89 64 1F [10:08:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 68 AE 47 00 26 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 39 34 39 10 04 04 00 25 0E 01 00 F4 03 04 00 F8 BE A5 66 B6 04 01 00 00 61 0A 47 A4 DB 16 D0 28 [10:08:02]CommunicateWithHost err = 0 [10:08:02]CheckOFDResponse [10:08:02]1017 (14) - 77093643461234 [10:08:02]1041 (16) - 0000000000874949 [10:08:02]1040 (4) - 69157 [10:08:02]1012 (4) - 28.07.2024 03:46 [10:08:02]1206 (1) - 0 [10:08:02]OFD Sender: Remove packet 69157 [10:08:02]ProducePacketName [10:08:02]name=ofd_packets/00069157 [10:08:02]NVStorageDeleteData [10:08:02]Write to MH i2c: 01 00 00 1D 3B 58 [10:08:02]Write i2c OK [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: 01 [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: 01 07 00 [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: 01 07 00 1D 3B 00 00 00 00 00 12 0D 7E [10:08:02]RasterBufferAndPrint [10:08:02]line [10:08:02]line [10:08:02]line [10:08:02]line [10:08:02]line [10:08:02]written 0, free lines is 3362 [10:08:02]MH_Cut [10:08:02]Write to MH i2c: D1 01 00 24 3B 01 31 [10:08:02]Write i2c OK [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: D1 [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: D1 01 00 [10:08:02]MH_I2C_Read... [10:08:02]Read from MH i2c: D1 01 00 24 3B 00 30 [10:08:02]Write to MH i2c: 01 00 00 25 3B 60 [10:08:02]Write i2c OK [10:08:02]MH_I2C_Read... [10:08:02]OFD Sender: No OFD packet to send [10:08:02]*** Cut start [10:08:02]*** Partial cut [10:08:02]*** CUTSNS_PIN = 1 [10:08:02]*** CUTSNS_PIN = 0 [10:08:03]*** Brake cut motor [10:08:03]Read from MH i2c: 01 [10:08:03]MH_I2C_Read... [10:08:03]*** Stop cut motor [10:08:03]*** Cut end [10:08:03]Read from MH i2c: 01 07 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: 01 07 00 25 3B 00 00 00 00 00 FF 0F 75 [10:08:03]process_action close_receipt done [10:08:03]requested_data is exist [10:08:03]produce_requested_data [10:08:03]requested_item fm.sn is exist - process it [10:08:03]wFMCommunicate request_size=4 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 11 00 00 [10:08:03]Write to MH i2c: E2 08 00 26 3B 80 11 00 00 00 00 00 00 DB [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 17 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 17 00 26 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 37 [10:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:08:03]wFMCommunicate OK [10:08:03]requested_item fd.num is exist - process it [10:08:03]SAM_PROTO_GetFieldsCounters [10:08:03]wFMCommunicate request_size=4 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 13 00 00 [10:08:03]Write to MH i2c: E2 08 00 27 3B 80 13 00 00 00 00 00 00 DE [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 62 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 62 00 27 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 25 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [10:08: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 25 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:03]wFMCommunicate OK [10:08:03]SAM_PROTO_GetFieldsCounters done [10:08:03]requested_item shift.num is exist - process it [10:08:03]requested_item shift.opened is exist - process it [10:08:03]req_shift_opened [10:08:03]FM_GetShiftState [10:08:03]SAM_PROTO_GetShiftState [10:08:03]wFMCommunicate request_size=4 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 13 01 00 [10:08:03]Write to MH i2c: E2 08 00 28 3B 80 13 01 00 00 00 00 00 E0 [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 0E 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 0E 00 28 3B 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 1D [10:08:03]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [10:08:03]wFMCommunicate OK [10:08:03]SAM_PROTO_GetShiftState done [10:08:03]FM_GetShiftState done [10:08:03]req_shift_opened done [10:08:03]requested_item shift.open_date is exist - process it [10:08:03]req_shift_open_date [10:08:03]req_shift_open_date done [10:08:03]produce_requested_data done [10:08:03]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69157,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [10:08:03]process_action_free close_receipt [10:08:03]json_value_free [10:08:03]json_value_free done [10:08:03]process_json_proto returns [10:08:03]Send response to host [10:08:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69157,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [10:08:03]free response buf [10:08:03]execute_script done [10:08:03]execute_script returns [10:08:03]free content buf [10:08:03]Sock 10.Close socket [10:08:03]Sock 10.Thread stoped [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:15]int [10:19:15]Write to MH i2c: 01 00 00 29 3B 64 [10:19:15]*** FLAG_PRN_KEY set [10:19:15]Write i2c OK [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: 01 [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: 01 07 00 [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: 01 07 00 29 3B 00 08 00 00 00 FF 0F 81 [10:19:15]state=0 [10:19:15]Key pressed [10:19:15]Feed [10:19:15]Write to MH i2c: D8 00 00 2A 3B 3C [10:19:15]Write i2c OK [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: D8 [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: D8 01 00 [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: D8 01 00 2A 3B 00 3D [10:19:15]int [10:19:15]Write to MH i2c: 01 00 00 2B 3B 66 [10:19:15]Write i2c OK [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: 01 [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: 01 07 00 [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: 01 07 00 2B 3B 00 48 00 00 00 3C 00 F1 [10:19:15]state=2 [10:19:15]Key pressed [10:19:15]int [10:19:15]Write to MH i2c: 01 00 00 2C 3B 67 [10:19:15]*** FLAG_PRN_KEY reset [10:19:15]Write i2c OK [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: 01 [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: 01 07 00 [10:19:15]MH_I2C_Read... [10:19:15]Read from MH i2c: 01 07 00 2C 3B 00 00 00 00 00 F7 0F 74 [10:19:15]state=2 [10:19:15]Stop feed [10:19:16]int [10:19:16]Write to MH i2c: 01 00 00 2D 3B 68 [10:19:16]*** FLAG_PRN_KEY set [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: 01 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: 01 07 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: 01 07 00 2D 3B 00 08 00 00 00 FF 0F 85 [10:19:16]state=0 [10:19:16]Key pressed [10:19:16]Feed [10:19:16]Write to MH i2c: D8 00 00 2E 3B 40 [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: D8 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: D8 01 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: D8 01 00 2E 3B 00 41 [10:19:16]int [10:19:16]Write to MH i2c: 01 00 00 2F 3B 6A [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: 01 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: 01 07 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: 01 07 00 2F 3B 00 48 00 00 00 3C 00 F5 [10:19:16]state=2 [10:19:16]Key pressed [10:19:16]int [10:19:16]Write to MH i2c: 01 00 00 30 3B 6B [10:19:16]*** FLAG_PRN_KEY reset [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: 01 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: 01 07 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: 01 07 00 30 3B 00 00 00 00 00 F6 0F 77 [10:19:16]state=2 [10:19:16]Stop feed [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:39]accept exits with 7 [10:30:39]New connection [10:30:39]New thread 3066785124 created [10:30:39]Thread 3066641764 joined [10:30:39]Waiting for new connection... [10:30:39] Sock 7.Parse request [10:30:39]Sock 7.Check first char [10:30:39]Sock 7.First char is OK [10:30:39]request: POST /json_proto HTTP/1.0 [10:30:39]Method: POST [10:30:39]URL: /json_proto [10:30:39]Method is POST - this is cgi request [10:30:39]url: /json_proto [10:30:39]query_string will be loaded in cgi processing [10:30:39]execute_cgi json_proto POST (null) [10:30:39]execute_cgi path=json_proto method=POST [10:30:39]POST find Content-Length [10:30:39]Host: 172.17.49.132:8080 [10:30:39]Content-Length: 215 [10:30:39]Content-Type: application/json [10:30:39] [10:30:39]POST finish read [10:30:39]Found Content-Length = 215 [10:30:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:39]execute_script... [10:30:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:39]POST & json_proto [10:30:39]process_json_proto [10:30:39]json parsed OK: [10:30:39]protocol is kg_v1.0 [10:30:39]action value=get_value [10:30:39]process_action get_value [10:30:39]cmd_get_value [10:30:39]process_action get_value done [10:30:39]requested_data is exist [10:30:39]produce_requested_data [10:30:39]requested_item kkm.sn is exist - process it [10:30:39]requested_item kkm.ver is exist - process it [10:30:39]requested_item fm.sn is exist - process it [10:30:39]wFMCommunicate request_size=4 [10:30:39]MH_SAM_APDU [10:30:39]CAPDU: 80 11 00 00 [10:30:39]Write to MH i2c: E2 08 00 31 3B 80 11 00 00 00 00 00 00 E6 [10:30:39]Write i2c OK [10:30:39]MH_I2C_Read... [10:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:39]Read from MH i2c: E2 [10:30:39]MH_I2C_Read... [10:30:39]Read from MH i2c: E2 17 00 [10:30:39]MH_I2C_Read... [10:30:39]Read from MH i2c: E2 17 00 31 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 42 [10:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:30:39]wFMCommunicate OK [10:30:39]requested_item fd.num is exist - process it [10:30:39]SAM_PROTO_GetFieldsCounters [10:30:39]wFMCommunicate request_size=4 [10:30:39]MH_SAM_APDU [10:30:39]CAPDU: 80 13 00 00 [10:30:39]Write to MH i2c: E2 08 00 32 3B 80 13 00 00 00 00 00 00 E9 [10:30:39]Write i2c OK [10:30:39]MH_I2C_Read... [10:30:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:39]Read from MH i2c: E2 [10:30:39]MH_I2C_Read... [10:30:39]Read from MH i2c: E2 62 00 [10:30:39]MH_I2C_Read... [10:30:39]Read from MH i2c: E2 62 00 32 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 25 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [10:30:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 25 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:39]wFMCommunicate OK [10:30:39]SAM_PROTO_GetFieldsCounters done [10:30:39]requested_item shift.num is exist - process it [10:30:39]requested_item shift.opened is exist - process it [10:30:39]req_shift_opened [10:30:39]FM_GetShiftState [10:30:39]SAM_PROTO_GetShiftState [10:30:39]wFMCommunicate request_size=4 [10:30:39]MH_SAM_APDU [10:30:39]CAPDU: 80 13 01 00 [10:30:39]Write to MH i2c: E2 08 00 33 3B 80 13 01 00 00 00 00 00 EB [10:30:39]Write i2c OK [10:30:39]MH_I2C_Read... [10:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:39]Read from MH i2c: E2 [10:30:39]MH_I2C_Read... [10:30:39]Read from MH i2c: E2 0E 00 [10:30:39]MH_I2C_Read... [10:30:39]Read from MH i2c: E2 0E 00 33 3B 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 28 [10:30:39]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [10:30:39]wFMCommunicate OK [10:30:39]SAM_PROTO_GetShiftState done [10:30:39]FM_GetShiftState done [10:30:39]req_shift_opened done [10:30:39]requested_item shift.open_date is exist - process it [10:30:39]req_shift_open_date [10:30:39]req_shift_open_date done [10:30:39]produce_requested_data done [10:30:39]produce_requested_data return {"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69157,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [10:30:39]process_action_free get_value [10:30:39]json_value_free [10:30:39]json_value_free done [10:30:39]process_json_proto returns [10:30:39]Send response to host [10:30:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69157,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [10:30:39]free response buf [10:30:39]execute_script done [10:30:39]execute_script returns [10:30:39]free content buf [10:30:39]Sock 7.Close socket [10:30:39]Sock 7.Thread stoped [10:30:42]accept exits with 9 [10:30:42]New connection [10:30:42]New thread 3066641764 created [10:30:42]Thread 3066785124 joined [10:30:42]Waiting for new connection... [10:30:42] Sock 9.Parse request [10:30:42]Sock 9.Check first char [10:30:42]Sock 9.First char is OK [10:30:42]request: POST /json_proto HTTP/1.0 [10:30:42]Method: POST [10:30:42]URL: /json_proto [10:30:42]Method is POST - this is cgi request [10:30:42]url: /json_proto [10:30:42]query_string will be loaded in cgi processing [10:30:42]execute_cgi json_proto POST (null) [10:30:42]execute_cgi path=json_proto method=POST [10:30:42]POST find Content-Length [10:30:42]Host: 172.17.49.132:8080 [10:30:42]Content-Length: 331 [10:30:42]Content-Type: application/json [10:30:42] [10:30:42]POST finish read [10:30:42]Found Content-Length = 331 [10:30: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" ] } } [10:30:42]execute_script... [10:30: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" ] } } [10:30:42]POST & json_proto [10:30:42]process_json_proto [10:30:42]json parsed OK: [10:30:42]protocol is kg_v1.0 [10:30:42]action value=get_value [10:30:42]process_action get_value [10:30:42]cmd_get_value [10:30:42]process_action get_value done [10:30:42]requested_data is exist [10:30:42]produce_requested_data [10:30:42]requested_item fm.sale.total is exist - process it [10:30:42]SAM_PROTO_GetFMData [10:30:42]wFMCommunicate request_size=4 [10:30:42]MH_SAM_APDU [10:30:42]CAPDU: 80 13 03 00 [10:30:42]Write to MH i2c: E2 08 00 34 3B 80 13 03 00 00 00 00 00 EE [10:30:42]Write i2c OK [10:30:42]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 [10:30:43]MH_I2C_Read... [10:30:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:30:43]Read from MH i2c: E2 FD 00 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 FD 00 34 3B 00 C5 04 85 04 C1 04 6E 04 04 00 CB 0A 01 00 69 04 A1 00 6F 04 04 00 8F 09 01 00 B1 04 04 00 05 96 85 BA 70 04 04 00 64 3E 11 97 72 04 04 00 A1 57 74 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D6 39 CF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 95 76 A6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3C 01 00 00 B1 04 04 00 B8 63 54 03 70 04 04 00 6C F6 3F 03 72 04 03 00 4C 6D 14 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 1D 87 5A EF 03 09 90 00 F3 [10:30:43]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 CB 0A 01 00 69 04 A1 00 6F 04 04 00 8F 09 01 00 B1 04 04 00 05 96 85 BA 70 04 04 00 64 3E 11 97 72 04 04 00 A1 57 74 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D6 39 CF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 95 76 A6 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3C 01 00 00 B1 04 04 00 B8 63 54 03 70 04 04 00 6C F6 3F 03 72 04 03 00 4C 6D 14 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 1D 87 5A EF 03 09 90 00 [10:30:43]wFMCommunicate OK [10:30:43]wFMCommunicate request_size=4 [10:30:43]MH_SAM_APDU [10:30:43]CAPDU: 80 17 00 00 [10:30:43]Write to MH i2c: E2 08 00 35 3B 80 17 00 00 00 00 00 00 F0 [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:30:43]Read from MH i2c: E2 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 FD 00 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 FD 00 35 3B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 25 8B 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 5D [10:30:43]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 25 8B 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [10:30:43]wFMCommunicate OK [10:30:43]wFMCommunicate request_size=4 [10:30:43]MH_SAM_APDU [10:30:43]CAPDU: 80 17 00 00 [10:30:43]Write to MH i2c: E2 08 00 36 3B 80 17 00 00 00 00 00 00 F1 [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:30:43]Read from MH i2c: E2 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 FD 00 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 FD 00 36 3B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 03 [10:30:43]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [10:30:43]wFMCommunicate OK [10:30:43]wFMCommunicate request_size=4 [10:30:43]MH_SAM_APDU [10:30:43]CAPDU: 80 17 00 00 [10:30:43]Write to MH i2c: E2 08 00 37 3B 80 17 00 00 00 00 00 00 F2 [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:43]OFD Sender: No OFD packet to send [10:30:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:30:44]Read from MH i2c: E2 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 FD 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 FD 00 37 3B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 7E [10:30:44]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [10:30:44]wFMCommunicate OK [10:30:44]wFMCommunicate request_size=4 [10:30:44]MH_SAM_APDU [10:30:44]CAPDU: 80 17 00 00 [10:30:44]Write to MH i2c: E2 08 00 38 3B 80 17 00 00 00 00 00 00 F3 [10:30:44]Write i2c OK [10:30:44]MH_I2C_Read... [10:30:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:30:44]Read from MH i2c: E2 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 E2 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 E2 00 38 3B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D1 [10:30:44]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:30:44]wFMCommunicate OK [10:30:44]SAM_PROTO_GetFMData done [10:30:44]requested_item fm.sale_refund.total is exist - process it [10:30:44]requested_item fm.buy.total is exist - process it [10:30:44]requested_item shift.sale.total is exist - process it [10:30:44]SAM_PROTO_GetShiftData [10:30:44]wFMCommunicate request_size=4 [10:30:44]MH_SAM_APDU [10:30:44]CAPDU: 80 13 02 00 [10:30:44]Write to MH i2c: E2 08 00 39 3B 80 13 02 00 00 00 00 00 F2 [10:30:44]Write i2c OK [10:30:44]MH_I2C_Read... [10:30:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:30:44]Read from MH i2c: E2 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 FD 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 FD 00 39 3B 00 AE 04 AA 04 AA 04 6E 04 04 00 28 00 00 00 69 04 9B 00 6F 04 04 00 28 00 00 00 B1 04 03 00 20 F5 12 70 04 03 00 78 40 0B 72 04 03 00 A8 B4 07 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 5F 03 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 EA 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 [10:30:44]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 28 00 00 00 69 04 9B 00 6F 04 04 00 28 00 00 00 B1 04 03 00 20 F5 12 70 04 03 00 78 40 0B 72 04 03 00 A8 B4 07 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 5F 03 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 EA 2A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:30:44]wFMCommunicate OK [10:30:44]wFMCommunicate request_size=4 [10:30:44]MH_SAM_APDU [10:30:44]CAPDU: 80 17 00 00 [10:30:44]Write to MH i2c: E2 08 00 3A 3B 80 17 00 00 00 00 00 00 F5 [10:30:44]Write i2c OK [10:30:44]MH_I2C_Read... [10:30:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:30:45]Read from MH i2c: E2 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 FD 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 FD 00 3A 3B 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 17 [10:30: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 [10:30:45]wFMCommunicate OK [10:30:45]wFMCommunicate request_size=4 [10:30:45]MH_SAM_APDU [10:30:45]CAPDU: 80 17 00 00 [10:30:45]Write to MH i2c: E2 08 00 3B 3B 80 17 00 00 00 00 00 00 F6 [10:30:45]Write i2c OK [10:30:45]MH_I2C_Read... [10:30:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:30:45]Read from MH i2c: E2 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 FD 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 FD 00 3B 3B 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AD [10:30: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 [10:30:45]wFMCommunicate OK [10:30:45]wFMCommunicate request_size=4 [10:30:45]MH_SAM_APDU [10:30:45]CAPDU: 80 17 00 00 [10:30:45]Write to MH i2c: E2 08 00 3C 3B 80 17 00 00 00 00 00 00 F7 [10:30:45]Write i2c OK [10:30:45]MH_I2C_Read... [10:30:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:30:45]Read from MH i2c: E2 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 FD 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 FD 00 3C 3B 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 69 [10:30:45]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 [10:30:45]wFMCommunicate OK [10:30:45]wFMCommunicate request_size=4 [10:30:45]MH_SAM_APDU [10:30:45]CAPDU: 80 17 00 00 [10:30:45]Write to MH i2c: E2 08 00 3D 3B 80 17 00 00 00 00 00 00 F8 [10:30:45]Write i2c OK [10:30:45]MH_I2C_Read... [10:30:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:30:45]Read from MH i2c: E2 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 CB 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 CB 00 3D 3B 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 E1 [10:30: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 [10:30:45]wFMCommunicate OK [10:30:45]SAM_PROTO_GetShiftData done [10:30:45]requested_item shift.sale.total_cash is exist - process it [10:30:45]requested_item shift.sale_refund.total is exist - process it [10:30:45]requested_item shift.sale_refund.total_cash is exist - process it [10:30:45]requested_item shift.buy.total is exist - process it [10:30:45]requested_item shift.buy.total_cash is exist - process it [10:30:45]produce_requested_data done [10:30:45]produce_requested_data return {"fm.sale.total":31293168.69,"fm.sale_refund.total":558622.00,"fm.buy.total":0.00,"shift.sale.total":12424.00,"shift.sale.total_cash":7374.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} [10:30:45]process_action_free get_value [10:30:45]json_value_free [10:30:45]json_value_free done [10:30:45]process_json_proto returns [10:30:45]Send response to host [10:30:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31293168.69,"fm.sale_refund.total":558622.00,"fm.buy.total":0.00,"shift.sale.total":12424.00,"shift.sale.total_cash":7374.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}}} [10:30:45]free response buf [10:30:45]execute_script done [10:30:45]execute_script returns [10:30:45]free content buf [10:30:45]Sock 9.Close socket [10:30:45]Sock 9.Thread stoped [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:48]accept exits with 7 [10:46:48]New connection [10:46:48]New thread 3066785124 created [10:46:48]Thread 3066641764 joined [10:46:48]Waiting for new connection... [10:46:48] Sock 7.Parse request [10:46:48]Sock 7.Check first char [10:46:48]Sock 7.First char is OK [10:46:48]request: POST /json_proto HTTP/1.0 [10:46:48]Method: POST [10:46:48]URL: /json_proto [10:46:48]Method is POST - this is cgi request [10:46:48]url: /json_proto [10:46:48]query_string will be loaded in cgi processing [10:46:48]execute_cgi json_proto POST (null) [10:46:48]execute_cgi path=json_proto method=POST [10:46:48]POST find Content-Length [10:46:48]Host: 172.17.49.132:8080 [10:46:48]Content-Length: 621 [10:46:48]Content-Type: application/json [10:46:48] [10:46:48]POST finish read [10:46:48]Found Content-Length = 621 [10:46:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136559", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:48]execute_script... [10:46: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)136559", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:48]POST & json_proto [10:46:48]process_json_proto [10:46:48]json parsed OK: [10:46:48]protocol is kg_v1.0 [10:46:48]action value=close_receipt [10:46:48]process_action close_receipt [10:46:48]cmd_close_receipt [10:46:48]MH_GetDate [10:46:48]Write to MH i2c: F0 00 00 3E 3B 68 [10:46:48]Write i2c OK [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: F0 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: F0 09 00 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: F0 09 00 3E 3B 00 A1 21 A6 66 E7 4B C0 64 95 [10:46:48]GetLastDocTimeStamp 1722161288 [10:46:48]current date 1722163617 [10:46:48]FM_GetShiftState [10:46:48]SAM_PROTO_GetShiftState [10:46:48]wFMCommunicate request_size=4 [10:46:48]MH_SAM_APDU [10:46:48]CAPDU: 80 13 01 00 [10:46:48]Write to MH i2c: E2 08 00 3F 3B 80 13 01 00 00 00 00 00 F7 [10:46:48]Write i2c OK [10:46:48]MH_I2C_Read... [10:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:48]Read from MH i2c: E2 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 0E 00 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 0E 00 3F 3B 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 34 [10:46:48]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [10:46:48]wFMCommunicate OK [10:46:48]SAM_PROTO_GetShiftState done [10:46:48]FM_GetShiftState done [10:46:48]opened in 1722127251 [10:46:48]opened+sec_in_day 1722213651 [10:46:48]quantity*price = 14000 [10:46:48]sum+1 = 14001 [10:46:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 41 28.07.2024 10:46 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69158 ФПД: 255128438152038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T104657&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69158&fm=255128438152038&tin=02508201610067®Number=0000000000092638&sum=14000 0 [10:46:49]StoreToDocumentArchive [10:46:49]shift 429 fd 69158 [10:46:49]save to /storage/0429/doc_00069158 [10:46:49]save last doc name /storage/0429/doc_00069158 to /storage/kkm_last_doc_name [10:46:49]save OK [10:46:49]Clear old archive folders... [10:46:49]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:46:49]tlvbuf is 00A4FFF0 [10:46:49]SAM_PROTO_ClearQueue [10:46:49]wFMCommunicate request_size=4 [10:46:49]MH_SAM_APDU [10:46:49]CAPDU: 80 09 00 00 [10:46:49]Write to MH i2c: E2 08 00 4C 3B 80 09 00 00 00 00 00 00 F9 [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:49]Read from MH i2c: E2 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 03 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 03 00 4C 3B 00 90 00 FB [10:46:49]RAPDU: 90 00 [10:46:49]wFMCommunicate OK [10:46:49]SAM_PROTO_ClearQueue done [10:46:49]KKMCreateOFDPacket [10:46:49]OFDProtocolAddRootSTLVToBuf [10:46:49]FM_MakeSignedData [10:46:49]FM_MakeSignedData [10:46:49]SAM_PROTO_SignData [10:46:49]wFMCommunicate request_size=4 [10:46:49]MH_SAM_APDU [10:46:49]CAPDU: 80 0D 01 02 [10:46:49]Write to MH i2c: E2 08 00 4D 3B 80 0D 01 02 00 00 00 00 01 [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]OFD Sender: No OFD packet to send [10:46:49]Read from MH i2c: E2 [10:46:49]MH_I2C_Read... [10:46:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:49]Read from MH i2c: E2 03 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 03 00 4D 3B 00 90 00 FC [10:46:49]RAPDU: 90 00 [10:46:49]wFMCommunicate OK [10:46:49]wFMCommunicate request_size=255 [10:46:49]MH_SAM_APDU [10:46: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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A1 21 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 [10:46:49]Write to MH i2c: E2 02 01 4E 3B 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A1 21 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 00 00 9E [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:49]Read from MH i2c: E2 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 03 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 03 00 4E 3B 00 90 00 FD [10:46:49]RAPDU: 90 00 [10:46:49]wFMCommunicate OK [10:46:49]wFMCommunicate request_size=32 [10:46:49]MH_SAM_APDU [10:46:49]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 39 10 04 04 00 26 0E 01 00 35 04 06 00 E8 09 B7 ED 9B 66 [10:46:49]Write to MH i2c: E2 23 00 4F 3B 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 39 10 04 04 00 26 0E 01 00 35 04 06 00 E8 09 B7 ED 9B 66 00 00 35 [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:50]Read from MH i2c: E2 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 03 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 03 00 4F 3B 00 90 00 FE [10:46:50]RAPDU: 90 00 [10:46:50]wFMCommunicate OK [10:46:50]wFMCommunicate request_size=4 [10:46:50]MH_SAM_APDU [10:46:50]CAPDU: 80 0D 03 02 [10:46:50]Write to MH i2c: E2 08 00 50 3B 80 0D 03 02 00 00 00 00 06 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:50]Read from MH i2c: E2 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 0B 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 0B 00 50 3B 00 DD E4 0A 14 3F 69 02 12 90 00 A2 [10:46:50]RAPDU: DD E4 0A 14 3F 69 02 12 90 00 [10:46:50]wFMCommunicate OK [10:46:50]SAM_PROTO_SignData done [10:46:50]FM_MakeSignedData done [10:46:50]CreateOFDProtocolMessage [10:46:50]wFMCommunicate request_size=4 [10:46:50]MH_SAM_APDU [10:46:50]CAPDU: 80 11 00 00 [10:46:50]Write to MH i2c: E2 08 00 51 3B 80 11 00 00 00 00 00 00 06 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:50]Read from MH i2c: E2 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 17 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 17 00 51 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 62 [10:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:46:50]wFMCommunicate OK [10:46:50]CreateOFDProtocolMessage done [10:46:50]OFDSenderStorePacket 69158 [10:46:50]StoreOFDPacket docnum=69158 [10:46:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 E9 88 1D 01 9D 0E 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A1 21 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 26 0E 01 00 35 04 06 00 E8 09 B7 ED 9B 66 DD E4 0A 14 3F 69 02 12 [10:46:50]CheckFolder [10:46:50]dirname=/storage/ofd_packets [10:46:50]CheckFolder done [10:46:50]ProducePacketName [10:46:50]name=ofd_packets/00069158 [10:46:50]NVStorageSaveData ofd_packets/00069158 [10:46:50]File name is /storage/ofd_packets/00069158 [10:46:50]Write 323 bytes [10:46:50]NVStorageSaveData done [10:46:50]OFDSenderStorePacket done [10:46:50]KKMCreateOFDPacket done [10:46:50]NVStorageSaveData kkm_last_timestamp [10:46:50]File name is /storage/kkm_last_timestamp [10:46:50]Write 4 bytes [10:46:50]NVStorageSaveData done [10:46:50]ExternCall_PrintAddStr [10:46:50]wPrintStart [10:46:50]Write to MH i2c: 01 00 00 52 3B 8D [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 07 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 07 00 52 3B 00 00 00 00 00 FF 0F A2 [10:46:50]RasterBufferAndPrint [10:46:50]line Счет N : (3)136559 [10:46:50]line ИНН: 02508201610067 [10:46:50]line Контрольно-Кассовый Чек [10:46:50]line ПРОДАЖА [10:46:50]line Товар: 48743570 [10:46:50]line Сигареты Winston XStyle Blue [10:46:50]line 1.000 * 140.00 [10:46:50]line = 140.00 [10:46:50]line НДС 12% НСП 1% [10:46:50]line > о реализуемом товаре [10:46:50]line ИТОГО: 140.00 [10:46:50]line НСП 1% : 1.24 [10:46:50]line НДС 12% : 14.87 [10:46:50]line Наличными: 140.00 [10:46:50]line Безнал.: 0.00 [10:46:50]line Место: АЗС № 125 "Партнер Нефть" [10:46:50]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:46:50]line СНО: Общий режим [10:46:50]line Чек 41 28.07.2024 10:46 [10:46:50]line Смена: 429 ФФД: 1.0 [10:46:50]line ЗНМ: 0300000049 [10:46:50]line РНМ: 0000000000092638 [10:46:50]line Версия ККМ: 001 [10:46:50]line ФМ: 0000000000874949 [10:46:50]line ФД: 69158 [10:46:50]line ФПД: 255128438152038 [10:46:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T104657&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69158&fm=255128438152038&tin=02508201610067®Number=0000000000092638&sum=14000 [10:46:50]line 0 [10:46:50]OFD Sender: Processing packet 69158 [packets to send 19, broken 18] [10:46:50]ProducePacketName [10:46:50]name=ofd_packets/00069158 [10:46:50]OFD Sender: To server: pG, [10:46:50]CommunicateWithHost lk.salyk.kg:30040 [10:46:50]ConnectInit lk.salyk.kg [10:46:50]written 0, free lines is 4095 [10:46:50]Connected sock=10 [10:46: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 39 34 39 25 01 00 00 E9 88 1D 01 9D 0E 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A1 21 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 26 0E 01 00 35 04 06 00 E8 09 B7 ED 9B 66 DD E4 0A 14 3F 69 02 12 [10:46:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 9C E7 47 00 7E FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 26 0E 01 00 F4 03 04 00 11 C8 A5 66 B6 04 01 00 00 B6 A2 E9 F6 86 56 F7 F4 [10:46:50]CommunicateWithHost err = 0 [10:46:50]CheckOFDResponse [10:46:50]1017 (14) - 77093643461234 [10:46:50]1041 (16) - 0000000000874949 [10:46:50]1040 (4) - 69158 [10:46:50]1012 (4) - 28.07.2024 04:24 [10:46:50]1206 (1) - 0 [10:46:50]OFD Sender: Remove packet 69158 [10:46:50]ProducePacketName [10:46:50]name=ofd_packets/00069158 [10:46:50]NVStorageDeleteData [10:46:50]Write to MH i2c: 01 00 00 7A 3B B5 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 07 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 07 00 7A 3B 00 00 00 00 00 24 0D ED [10:46:50]RasterBufferAndPrint [10:46:50]line [10:46:50]line [10:46:50]line [10:46:50]line [10:46:50]line [10:46:50]written 0, free lines is 3371 [10:46:50]MH_Cut [10:46:50]Write to MH i2c: D1 01 00 81 3B 01 8E [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: D1 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: D1 01 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: D1 01 00 81 3B 00 8D [10:46:50]Write to MH i2c: 01 00 00 82 3B BD [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:51]OFD Sender: No OFD packet to send [10:46:51]*** Cut start [10:46:51]*** Partial cut [10:46:51]*** CUTSNS_PIN = 1 [10:46:51]*** CUTSNS_PIN = 0 [10:46:51]*** Brake cut motor [10:46:52]Read from MH i2c: 01 [10:46:52]MH_I2C_Read... [10:46:52]*** Stop cut motor [10:46:52]*** Cut end [10:46:52]Read from MH i2c: 01 07 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: 01 07 00 82 3B 00 00 00 00 00 FF 0F D2 [10:46:52]process_action close_receipt done [10:46:52]requested_data is exist [10:46:52]produce_requested_data [10:46:52]requested_item fm.sn is exist - process it [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 11 00 00 [10:46:52]Write to MH i2c: E2 08 00 83 3B 80 11 00 00 00 00 00 00 38 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 17 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 17 00 83 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 94 [10:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:46:52]wFMCommunicate OK [10:46:52]requested_item fd.num is exist - process it [10:46:52]SAM_PROTO_GetFieldsCounters [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 13 00 00 [10:46:52]Write to MH i2c: E2 08 00 84 3B 80 13 00 00 00 00 00 00 3B [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 62 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 62 00 84 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 26 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [10:46: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 26 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:52]wFMCommunicate OK [10:46:52]SAM_PROTO_GetFieldsCounters done [10:46:52]requested_item shift.num is exist - process it [10:46:52]requested_item shift.opened is exist - process it [10:46:52]req_shift_opened [10:46:52]FM_GetShiftState [10:46:52]SAM_PROTO_GetShiftState [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 13 01 00 [10:46:52]Write to MH i2c: E2 08 00 85 3B 80 13 01 00 00 00 00 00 3D [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 0E 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 0E 00 85 3B 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 7A [10:46:52]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [10:46:52]wFMCommunicate OK [10:46:52]SAM_PROTO_GetShiftState done [10:46:52]FM_GetShiftState done [10:46:52]req_shift_opened done [10:46:52]requested_item shift.open_date is exist - process it [10:46:52]req_shift_open_date [10:46:52]req_shift_open_date done [10:46:52]produce_requested_data done [10:46:52]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69158,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [10:46:52]process_action_free close_receipt [10:46:52]json_value_free [10:46:52]json_value_free done [10:46:52]process_json_proto returns [10:46:52]Send response to host [10:46:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69158,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [10:46:52]free response buf [10:46:52]execute_script done [10:46:52]execute_script returns [10:46:52]free content buf [10:46:52]Sock 7.Close socket [10:46:52]Sock 7.Thread stoped [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:15]accept exits with 9 [10:49:15]New connection [10:49:15]New thread 3066641764 created [10:49:15]Thread 3066785124 joined [10:49:15]Waiting for new connection... [10:49:15] Sock 9.Parse request [10:49:15]Sock 9.Check first char [10:49:15]Sock 9.First char is OK [10:49:15]request: POST /json_proto HTTP/1.0 [10:49:15]Method: POST [10:49:15]URL: /json_proto [10:49:15]Method is POST - this is cgi request [10:49:15]url: /json_proto [10:49:15]query_string will be loaded in cgi processing [10:49:15]execute_cgi json_proto POST (null) [10:49:15]execute_cgi path=json_proto method=POST [10:49:15]POST find Content-Length [10:49:15]Host: 172.17.49.132:8080 [10:49:15]Content-Length: 628 [10:49:15]Content-Type: application/json [10:49:15] [10:49:15]POST finish read [10:49:15]Found Content-Length = 628 [10:49:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136560", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:15]execute_script... [10:49:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136560", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:15]POST & json_proto [10:49:15]process_json_proto [10:49:15]json parsed OK: [10:49:15]protocol is kg_v1.0 [10:49:15]action value=close_receipt [10:49:15]process_action close_receipt [10:49:15]cmd_close_receipt [10:49:15]MH_GetDate [10:49:15]Write to MH i2c: F0 00 00 86 3B B0 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: F0 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: F0 09 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: F0 09 00 86 3B 00 34 22 A6 66 E7 4B C0 64 71 [10:49:15]GetLastDocTimeStamp 1722163617 [10:49:15]current date 1722163764 [10:49:15]FM_GetShiftState [10:49:15]SAM_PROTO_GetShiftState [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 13 01 00 [10:49:15]Write to MH i2c: E2 08 00 87 3B 80 13 01 00 00 00 00 00 3F [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 0E 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 0E 00 87 3B 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 7C [10:49:15]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [10:49:15]wFMCommunicate OK [10:49:15]SAM_PROTO_GetShiftState done [10:49:15]FM_GetShiftState done [10:49:15]opened in 1722127251 [10:49:15]opened+sec_in_day 1722213651 [10:49:15]quantity*price = 13500 [10:49:15]sum+1 = 13501 [10:49:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 42 28.07.2024 10:49 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69159 ФПД: 277040418346134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T104924&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69159&fm=277040418346134&tin=02508201610067®Number=0000000000092638&sum=13500 0 [10:49:16]StoreToDocumentArchive [10:49:16]shift 429 fd 69159 [10:49:16]save to /storage/0429/doc_00069159 [10:49:16]save last doc name /storage/0429/doc_00069159 to /storage/kkm_last_doc_name [10:49:16]save OK [10:49:16]Clear old archive folders... [10:49:16]ProcessDocumentItem done err = 0, tmpTLVsize=280 [10:49:16]tlvbuf is 00B3C120 [10:49:16]SAM_PROTO_ClearQueue [10:49:16]wFMCommunicate request_size=4 [10:49:16]MH_SAM_APDU [10:49:16]CAPDU: 80 09 00 00 [10:49:16]Write to MH i2c: E2 08 00 94 3B 80 09 00 00 00 00 00 00 41 [10:49:16]Write i2c OK [10:49:16]MH_I2C_Read... [10:49:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:16]Read from MH i2c: E2 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: E2 03 00 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: E2 03 00 94 3B 00 90 00 43 [10:49:16]RAPDU: 90 00 [10:49:16]wFMCommunicate OK [10:49:16]SAM_PROTO_ClearQueue done [10:49:16]KKMCreateOFDPacket [10:49:16]OFDProtocolAddRootSTLVToBuf [10:49:16]FM_MakeSignedData [10:49:16]FM_MakeSignedData [10:49:16]SAM_PROTO_SignData [10:49:16]wFMCommunicate request_size=4 [10:49:16]MH_SAM_APDU [10:49:16]CAPDU: 80 0D 01 02 [10:49:16]Write to MH i2c: E2 08 00 95 3B 80 0D 01 02 00 00 00 00 49 [10:49:16]Write i2c OK [10:49:16]MH_I2C_Read... [10:49:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:16]Read from MH i2c: E2 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: E2 03 00 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: E2 03 00 95 3B 00 90 00 44 [10:49:16]RAPDU: 90 00 [10:49:16]wFMCommunicate OK [10:49:16]wFMCommunicate request_size=255 [10:49:16]MH_SAM_APDU [10:49:16]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 34 22 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 [10:49:16]Write to MH i2c: E2 02 01 96 3B 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 34 22 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 00 00 E1 [10:49:16]Write i2c OK [10:49:16]MH_I2C_Read... [10:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:17]Read from MH i2c: E2 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 03 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 03 00 96 3B 00 90 00 45 [10:49:17]RAPDU: 90 00 [10:49:17]wFMCommunicate OK [10:49:17]wFMCommunicate request_size=39 [10:49:17]MH_SAM_APDU [10:49:17]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 27 0E 01 00 35 04 06 00 FB F7 7F B9 54 96 [10:49:17]Write to MH i2c: E2 2A 00 97 3B 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 27 0E 01 00 35 04 06 00 FB F7 7F B9 54 96 00 00 5A [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:17]Read from MH i2c: E2 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 03 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 03 00 97 3B 00 90 00 46 [10:49:17]RAPDU: 90 00 [10:49:17]wFMCommunicate OK [10:49:17]wFMCommunicate request_size=4 [10:49:17]MH_SAM_APDU [10:49:17]CAPDU: 80 0D 03 02 [10:49:17]Write to MH i2c: E2 08 00 98 3B 80 0D 03 02 00 00 00 00 4E [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:17]Read from MH i2c: E2 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 0B 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 0B 00 98 3B 00 78 CA 30 28 C1 59 6B 7B 90 00 E9 [10:49:17]RAPDU: 78 CA 30 28 C1 59 6B 7B 90 00 [10:49:17]wFMCommunicate OK [10:49:17]SAM_PROTO_SignData done [10:49:17]FM_MakeSignedData done [10:49:17]CreateOFDProtocolMessage [10:49:17]wFMCommunicate request_size=4 [10:49:17]MH_SAM_APDU [10:49:17]CAPDU: 80 11 00 00 [10:49:17]Write to MH i2c: E2 08 00 99 3B 80 11 00 00 00 00 00 00 4E [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:17]Read from MH i2c: E2 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 17 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 17 00 99 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AA [10:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:49:17]wFMCommunicate OK [10:49:17]CreateOFDProtocolMessage done [10:49:17]OFDSenderStorePacket 69159 [10:49:17]StoreOFDPacket docnum=69159 [10:49:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2C 01 00 00 A1 AF 24 01 1B 5F 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 34 22 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 27 0E 01 00 35 04 06 00 FB F7 7F B9 54 96 78 CA 30 28 C1 59 6B 7B [10:49:17]CheckFolder [10:49:17]dirname=/storage/ofd_packets [10:49:17]CheckFolder done [10:49:17]ProducePacketName [10:49:17]name=ofd_packets/00069159 [10:49:17]NVStorageSaveData ofd_packets/00069159 [10:49:17]File name is /storage/ofd_packets/00069159 [10:49:17]Write 330 bytes [10:49:17]NVStorageSaveData done [10:49:17]OFDSenderStorePacket done [10:49:17]KKMCreateOFDPacket done [10:49:17]NVStorageSaveData kkm_last_timestamp [10:49:17]File name is /storage/kkm_last_timestamp [10:49:17]Write 4 bytes [10:49:17]NVStorageSaveData done [10:49:17]ExternCall_PrintAddStr [10:49:17]wPrintStart [10:49:17]Write to MH i2c: 01 00 00 9A 3B D5 [10:49:17]OFD Sender: Processing packet 69159 [packets to send 19, broken 18] [10:49:17]ProducePacketName [10:49:17]name=ofd_packets/00069159 [10:49:17]OFD Sender: To server: pG, [10:49:17]CommunicateWithHost lk.salyk.kg:30040 [10:49:17]ConnectInit lk.salyk.kg [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: 01 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: 01 07 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: 01 07 00 9A 3B 00 00 00 00 00 FF 0F EA [10:49:17]RasterBufferAndPrint [10:49:17]line Счет N : (3)136560 [10:49:17]line ИНН: 02508201610067 [10:49:17]line Контрольно-Кассовый Чек [10:49:17]line ПРОДАЖА [10:49:17]line Товар: 48741231 [10:49:17]line Сигареты Winston Super Slims Silver [10:49:17]line 1.000 * 135.00 [10:49:17]line = 135.00 [10:49:17]line НДС 12% НСП 1% [10:49:17]line > о реализуемом товаре [10:49:17]line ИТОГО: 135.00 [10:49:17]line НСП 1% : 1.19 [10:49:17]line НДС 12% : 14.34 [10:49:17]line Наличными: 135.00 [10:49:17]line Безнал.: 0.00 [10:49:17]line Место: АЗС № 125 "Партнер Нефть" [10:49:17]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:49:17]line СНО: Общий режим [10:49:17]line Чек 42 28.07.2024 10:49 [10:49:17]line Смена: 429 ФФД: 1.0 [10:49:17]line ЗНМ: 0300000049 [10:49:17]line РНМ: 0000000000092638 [10:49:17]line Версия ККМ: 001 [10:49:17]line ФМ: 0000000000874949 [10:49:17]line ФД: 69159 [10:49:17]line ФПД: 277040418346134 [10:49:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T104924&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69159&fm=277040418346134&tin=02508201610067®Number=0000000000092638&sum=13500 [10:49:17]line 0 [10:49:17]Connected sock=10 [10:49: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 39 34 39 2C 01 00 00 A1 AF 24 01 1B 5F 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 34 22 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 27 0E 01 00 35 04 06 00 FB F7 7F B9 54 96 78 CA 30 28 C1 59 6B 7B [10:49:17]written 0, free lines is 4095 [10:49:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 D2 B2 47 00 F1 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 39 34 39 10 04 04 00 27 0E 01 00 F4 03 04 00 A4 C8 A5 66 B6 04 01 00 00 52 C7 A9 2A 29 EE 6A 88 [10:49:17]CommunicateWithHost err = 0 [10:49:17]CheckOFDResponse [10:49:17]1017 (14) - 77093643461234 [10:49:17]1041 (16) - 0000000000874949 [10:49:17]1040 (4) - 69159 [10:49:17]1012 (4) - 28.07.2024 04:27 [10:49:17]1206 (1) - 0 [10:49:17]OFD Sender: Remove packet 69159 [10:49:17]ProducePacketName [10:49:17]name=ofd_packets/00069159 [10:49:17]NVStorageDeleteData [10:49:18]Write to MH i2c: 01 00 00 C3 3B FE [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: 01 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: 01 07 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: 01 07 00 C3 3B 00 00 00 00 00 FF 0C 10 [10:49:18]RasterBufferAndPrint [10:49:18]line [10:49:18]line [10:49:18]line [10:49:18]line [10:49:18]line [10:49:18]written 0, free lines is 3336 [10:49:18]MH_Cut [10:49:18]Write to MH i2c: D1 01 00 CA 3B 01 D7 [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: D1 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: D1 01 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: D1 01 00 CA 3B 00 D6 [10:49:18]Write to MH i2c: 01 00 00 CB 3B 06 [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]OFD Sender: No OFD packet to send [10:49:18]*** Cut start [10:49:18]*** Partial cut [10:49:18]*** CUTSNS_PIN = 1 [10:49:18]*** CUTSNS_PIN = 0 [10:49:18]*** Brake cut motor [10:49:19]Read from MH i2c: 01 [10:49:19]MH_I2C_Read... [10:49:19]*** Stop cut motor [10:49:19]*** Cut end [10:49:19]Read from MH i2c: 01 07 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: 01 07 00 CB 3B 00 00 00 00 00 FF 0F 1B [10:49:19]process_action close_receipt done [10:49:19]requested_data is exist [10:49:19]produce_requested_data [10:49:19]requested_item fm.sn is exist - process it [10:49:19]wFMCommunicate request_size=4 [10:49:19]MH_SAM_APDU [10:49:19]CAPDU: 80 11 00 00 [10:49:19]Write to MH i2c: E2 08 00 CC 3B 80 11 00 00 00 00 00 00 81 [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:19]Read from MH i2c: E2 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 17 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 17 00 CC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 DD [10:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:49:19]wFMCommunicate OK [10:49:19]requested_item fd.num is exist - process it [10:49:19]SAM_PROTO_GetFieldsCounters [10:49:19]wFMCommunicate request_size=4 [10:49:19]MH_SAM_APDU [10:49:19]CAPDU: 80 13 00 00 [10:49:19]Write to MH i2c: E2 08 00 CD 3B 80 13 00 00 00 00 00 00 84 [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:19]Read from MH i2c: E2 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 62 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 62 00 CD 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 27 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [10:49: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 27 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:19]wFMCommunicate OK [10:49:19]SAM_PROTO_GetFieldsCounters done [10:49:19]requested_item shift.num is exist - process it [10:49:19]requested_item shift.opened is exist - process it [10:49:19]req_shift_opened [10:49:19]FM_GetShiftState [10:49:19]SAM_PROTO_GetShiftState [10:49:19]wFMCommunicate request_size=4 [10:49:19]MH_SAM_APDU [10:49:19]CAPDU: 80 13 01 00 [10:49:19]Write to MH i2c: E2 08 00 CE 3B 80 13 01 00 00 00 00 00 86 [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:19]Read from MH i2c: E2 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 0E 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 0E 00 CE 3B 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 C3 [10:49:19]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [10:49:19]wFMCommunicate OK [10:49:19]SAM_PROTO_GetShiftState done [10:49:19]FM_GetShiftState done [10:49:19]req_shift_opened done [10:49:19]requested_item shift.open_date is exist - process it [10:49:19]req_shift_open_date [10:49:19]req_shift_open_date done [10:49:19]produce_requested_data done [10:49:19]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69159,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [10:49:19]process_action_free close_receipt [10:49:19]json_value_free [10:49:19]json_value_free done [10:49:19]process_json_proto returns [10:49:19]Send response to host [10:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69159,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [10:49:19]free response buf [10:49:19]execute_script done [10:49:19]execute_script returns [10:49:19]free content buf [10:49:19]Sock 9.Close socket [10:49:19]Sock 9.Thread stoped [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:21]accept exits with 7 [10:56:21]New connection [10:56:21]New thread 3066785124 created [10:56:21]Thread 3066641764 joined [10:56:21]Waiting for new connection... [10:56:21] Sock 7.Parse request [10:56:21]Sock 7.Check first char [10:56:21]Sock 7.First char is OK [10:56:21]request: POST /json_proto HTTP/1.0 [10:56:21]Method: POST [10:56:21]URL: /json_proto [10:56:21]Method is POST - this is cgi request [10:56:21]url: /json_proto [10:56:21]query_string will be loaded in cgi processing [10:56:21]execute_cgi json_proto POST (null) [10:56:21]execute_cgi path=json_proto method=POST [10:56:21]POST find Content-Length [10:56:21]Host: 172.17.49.132:8080 [10:56:21]Content-Length: 678 [10:56:21]Content-Type: application/json [10:56:21] [10:56:21]POST finish read [10:56:21]Found Content-Length = 678 [10:56:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:21]execute_script... [10:56:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:21]POST & json_proto [10:56:21]process_json_proto [10:56:21]json parsed OK: [10:56:21]protocol is kg_v1.0 [10:56:21]action value=close_receipt [10:56:21]process_action close_receipt [10:56:21]cmd_close_receipt [10:56:21]MH_GetDate [10:56:21]Write to MH i2c: F0 00 00 CF 3B F9 [10:56:21]Write i2c OK [10:56:21]MH_I2C_Read... [10:56:21]Read from MH i2c: F0 [10:56:21]MH_I2C_Read... [10:56:21]Read from MH i2c: F0 09 00 [10:56:21]MH_I2C_Read... [10:56:21]Read from MH i2c: F0 09 00 CF 3B 00 DE 23 A6 66 E7 4B C0 64 65 [10:56:21]GetLastDocTimeStamp 1722163764 [10:56:21]current date 1722164190 [10:56:21]FM_GetShiftState [10:56:21]SAM_PROTO_GetShiftState [10:56:21]wFMCommunicate request_size=4 [10:56:21]MH_SAM_APDU [10:56:21]CAPDU: 80 13 01 00 [10:56:21]Write to MH i2c: E2 08 00 D0 3B 80 13 01 00 00 00 00 00 88 [10:56:21]Write i2c OK [10:56:21]MH_I2C_Read... [10:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:22]Read from MH i2c: E2 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 0E 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 0E 00 D0 3B 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 C5 [10:56:22]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [10:56:22]wFMCommunicate OK [10:56:22]SAM_PROTO_GetShiftState done [10:56:22]FM_GetShiftState done [10:56:22]opened in 1722127251 [10:56:22]opened+sec_in_day 1722213651 [10:56:22]quantity*price = 100016 [10:56:22]sum+1 = 100017 [10:56:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 43 28.07.2024 10:56 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69160 ФПД: 175581934058726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105630&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69160&fm=175581934058726&tin=02508201610067®Number=0000000000092638&sum=100000 [10:56:23]StoreToDocumentArchive [10:56:23]shift 429 fd 69160 [10:56:23]save to /storage/0429/doc_00069160 [10:56:23]save last doc name /storage/0429/doc_00069160 to /storage/kkm_last_doc_name [10:56:23]save OK [10:56:23]Clear old archive folders... [10:56:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:56:23]tlvbuf is 00B3BD30 [10:56:23]SAM_PROTO_ClearQueue [10:56:23]wFMCommunicate request_size=4 [10:56:23]MH_SAM_APDU [10:56:23]CAPDU: 80 09 00 00 [10:56:23]Write to MH i2c: E2 08 00 DD 3B 80 09 00 00 00 00 00 00 8A [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:23]Read from MH i2c: E2 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 DD 3B 00 90 00 8C [10:56:23]RAPDU: 90 00 [10:56:23]wFMCommunicate OK [10:56:23]SAM_PROTO_ClearQueue done [10:56:23]KKMCreateOFDPacket [10:56:23]OFDProtocolAddRootSTLVToBuf [10:56:23]FM_MakeSignedData [10:56:23]FM_MakeSignedData [10:56:23]SAM_PROTO_SignData [10:56:23]wFMCommunicate request_size=4 [10:56:23]MH_SAM_APDU [10:56:23]CAPDU: 80 0D 01 02 [10:56:23]Write to MH i2c: E2 08 00 DE 3B 80 0D 01 02 00 00 00 00 92 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:23]Read from MH i2c: E2 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 DE 3B 00 90 00 8D [10:56:23]RAPDU: 90 00 [10:56:23]wFMCommunicate OK [10:56:23]wFMCommunicate request_size=255 [10:56:23]MH_SAM_APDU [10:56:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 2B 00 00 00 F4 03 04 00 DE 23 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 28 0E 01 00 35 04 06 00 9F B0 DA CE [10:56:23]Write to MH i2c: E2 02 01 DF 3B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 2B 00 00 00 F4 03 04 00 DE 23 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 28 0E 01 00 35 04 06 00 9F B0 DA CE 00 00 56 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:23]Read from MH i2c: E2 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 DF 3B 00 90 00 8E [10:56:23]RAPDU: 90 00 [10:56:23]wFMCommunicate OK [10:56:23]wFMCommunicate request_size=7 [10:56:23]MH_SAM_APDU [10:56:23]CAPDU: 80 0D 02 02 02 FC E6 [10:56:23]Write to MH i2c: E2 0A 00 E0 3B 80 0D 02 02 02 00 FC E6 00 00 7B [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:23]Read from MH i2c: E2 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 E0 3B 00 90 00 8F [10:56:23]RAPDU: 90 00 [10:56:23]wFMCommunicate OK [10:56:23]wFMCommunicate request_size=4 [10:56:23]MH_SAM_APDU [10:56:23]CAPDU: 80 0D 03 02 [10:56:23]Write to MH i2c: E2 08 00 E1 3B 80 0D 03 02 00 00 00 00 97 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:23]OFD Sender: No OFD packet to send [10:56:23]Read from MH i2c: E2 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 0B 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 0B 00 E1 3B 00 79 C6 3C F2 76 4C 58 15 90 00 34 [10:56:23]RAPDU: 79 C6 3C F2 76 4C 58 15 90 00 [10:56:23]wFMCommunicate OK [10:56:23]SAM_PROTO_SignData done [10:56:23]FM_MakeSignedData done [10:56:23]CreateOFDProtocolMessage [10:56:23]wFMCommunicate request_size=4 [10:56:23]MH_SAM_APDU [10:56:23]CAPDU: 80 11 00 00 [10:56:23]Write to MH i2c: E2 08 00 E2 3B 80 11 00 00 00 00 00 00 97 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:23]Read from MH i2c: E2 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 17 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 17 00 E2 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F3 [10:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:56:23]wFMCommunicate OK [10:56:23]CreateOFDProtocolMessage done [10:56:23]OFDSenderStorePacket 69160 [10:56:23]StoreOFDPacket docnum=69160 [10:56:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 57 80 04 01 67 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 2B 00 00 00 F4 03 04 00 DE 23 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 28 0E 01 00 35 04 06 00 9F B0 DA CE FC E6 79 C6 3C F2 76 4C 58 15 [10:56:23]CheckFolder [10:56:23]dirname=/storage/ofd_packets [10:56:23]CheckFolder done [10:56:23]ProducePacketName [10:56:23]name=ofd_packets/00069160 [10:56:23]NVStorageSaveData ofd_packets/00069160 [10:56:23]File name is /storage/ofd_packets/00069160 [10:56:23]Write 298 bytes [10:56:23]NVStorageSaveData done [10:56:23]OFDSenderStorePacket done [10:56:23]KKMCreateOFDPacket done [10:56:23]NVStorageSaveData kkm_last_timestamp [10:56:23]File name is /storage/kkm_last_timestamp [10:56:23]Write 4 bytes [10:56:23]NVStorageSaveData done [10:56:23]ExternCall_PrintAddStr [10:56:23]wPrintStart [10:56:23]Write to MH i2c: 01 00 00 E3 3B 1E [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: 01 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: 01 07 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: 01 07 00 E3 3B 00 00 00 00 00 FF 0F 33 [10:56:23]RasterBufferAndPrint [10:56:23]line Счет N : (1)871808 [10:56:23]line ИНН: 02508201610067 [10:56:23]line Контрольно-Кассовый Чек [10:56:23]line ПРОДАЖА [10:56:23]line ТРК (МРК, ГНК) : 2 [10:56:23]line Товар: 2710194210 [10:56:23]line ДТ-К-5 [10:56:23]line 13.300 * 75.20 [10:56:23]line = 1000.16 [10:56:23]line НДС 12% НСП 1% [10:56:23]line > о реализуемом товаре [10:56:23]line ОКРУГЛЕНИЕ: -0.16 [10:56:23]line ИТОГО: 1000.00 [10:56:23]line Внесено: 1000.00 [10:56:23]line СДАЧА: 0.00 [10:56:23]line НСП 1% : 8.85 [10:56:23]line НДС 12% : 106.21 [10:56:23]line Наличными: 1000.00 [10:56:23]line Безнал.: 0.00 [10:56:23]line Место: АЗС № 125 "Партнер Нефть" [10:56:23]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:56:23]line СНО: Общий режим [10:56:23]line Чек 43 28.07.2024 10:56 [10:56:23]line Смена: 429 ФФД: 1.0 [10:56:23]line ЗНМ: 0300000049 [10:56:23]line РНМ: 0000000000092638 [10:56:23]line Версия ККМ: 001 [10:56:23]line ФМ: 0000000000874949 [10:56:23]line ФД: 69160 [10:56:23]line ФПД: 175581934058726 [10:56:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105630&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69160&fm=175581934058726&tin=02508201610067®Number=0000000000092638&sum=100000 [10:56:24]OFD Sender: Processing packet 69160 [packets to send 19, broken 18] [10:56:24]ProducePacketName [10:56:24]name=ofd_packets/00069160 [10:56:24]OFD Sender: To server: pG, [10:56:24]CommunicateWithHost lk.salyk.kg:30040 [10:56:24]ConnectInit lk.salyk.kg [10:56:24]written 0, free lines is 4095 [10:56:24]Connected sock=9 [10:56: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 39 34 39 0C 01 00 00 57 80 04 01 67 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 2B 00 00 00 F4 03 04 00 DE 23 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 28 0E 01 00 35 04 06 00 9F B0 DA CE FC E6 79 C6 3C F2 76 4C 58 15 [10:56:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 61 7C 47 00 2E 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 39 34 39 10 04 04 00 28 0E 01 00 F4 03 04 00 4E CA A5 66 B6 04 01 00 00 C7 05 8C 40 33 F9 3E 89 [10:56:24]CommunicateWithHost err = 0 [10:56:24]CheckOFDResponse [10:56:24]1017 (14) - 77093643461234 [10:56:24]1041 (16) - 0000000000874949 [10:56:24]1040 (4) - 69160 [10:56:24]1012 (4) - 28.07.2024 04:34 [10:56:24]1206 (1) - 0 [10:56:24]OFD Sender: Remove packet 69160 [10:56:24]ProducePacketName [10:56:24]name=ofd_packets/00069160 [10:56:24]NVStorageDeleteData [10:56:24]Write to MH i2c: 01 00 00 0E 3C 4A [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: 01 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: 01 07 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: 01 07 00 0E 3C 00 00 00 00 00 10 0D 6E [10:56:24]RasterBufferAndPrint [10:56:24]line [10:56:24]line [10:56:24]line [10:56:24]line [10:56:24]line [10:56:24]written 0, free lines is 3354 [10:56:24]MH_Cut [10:56:24]Write to MH i2c: D1 01 00 15 3C 01 23 [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: D1 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: D1 01 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: D1 01 00 15 3C 00 22 [10:56:24]Write to MH i2c: 01 00 00 16 3C 52 [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]OFD Sender: No OFD packet to send [10:56:25]*** Cut start [10:56:25]*** Partial cut [10:56:25]*** CUTSNS_PIN = 1 [10:56:25]*** CUTSNS_PIN = 0 [10:56:25]*** Brake cut motor [10:56:25]Read from MH i2c: 01 [10:56:25]MH_I2C_Read... [10:56:25]*** Stop cut motor [10:56:25]*** Cut end [10:56:25]Read from MH i2c: 01 07 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: 01 07 00 16 3C 00 00 00 00 00 FF 0F 67 [10:56:25]process_action close_receipt done [10:56:25]requested_data is exist [10:56:25]produce_requested_data [10:56:25]requested_item fm.sn is exist - process it [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 11 00 00 [10:56:25]Write to MH i2c: E2 08 00 17 3C 80 11 00 00 00 00 00 00 CD [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 17 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 17 00 17 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 29 [10:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:56:25]wFMCommunicate OK [10:56:25]requested_item fd.num is exist - process it [10:56:25]SAM_PROTO_GetFieldsCounters [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 13 00 00 [10:56:25]Write to MH i2c: E2 08 00 18 3C 80 13 00 00 00 00 00 00 D0 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:25]Read from MH i2c: E2 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 62 00 [10:56:25]MH_I2C_Read... [10:56:25]Read from MH i2c: E2 62 00 18 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 28 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [10:56: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 28 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:25]wFMCommunicate OK [10:56:25]SAM_PROTO_GetFieldsCounters done [10:56:25]requested_item shift.num is exist - process it [10:56:25]requested_item shift.opened is exist - process it [10:56:25]req_shift_opened [10:56:25]FM_GetShiftState [10:56:25]SAM_PROTO_GetShiftState [10:56:25]wFMCommunicate request_size=4 [10:56:25]MH_SAM_APDU [10:56:25]CAPDU: 80 13 01 00 [10:56:25]Write to MH i2c: E2 08 00 19 3C 80 13 01 00 00 00 00 00 D2 [10:56:25]Write i2c OK [10:56:25]MH_I2C_Read... [10:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:26]Read from MH i2c: E2 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: E2 0E 00 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: E2 0E 00 19 3C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 0F [10:56:26]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [10:56:26]wFMCommunicate OK [10:56:26]SAM_PROTO_GetShiftState done [10:56:26]FM_GetShiftState done [10:56:26]req_shift_opened done [10:56:26]requested_item shift.open_date is exist - process it [10:56:26]req_shift_open_date [10:56:26]req_shift_open_date done [10:56:26]produce_requested_data done [10:56:26]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69160,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [10:56:26]process_action_free close_receipt [10:56:26]json_value_free [10:56:26]json_value_free done [10:56:26]process_json_proto returns [10:56:26]Send response to host [10:56:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69160,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [10:56:26]free response buf [10:56:26]execute_script done [10:56:26]execute_script returns [10:56:26]free content buf [10:56:26]Sock 7.Close socket [10:56:26]Sock 7.Thread stoped [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:39]accept exits with 10 [10:59:39]New connection [10:59:39]New thread 3066641764 created [10:59:39]Thread 3066785124 joined [10:59:39]Waiting for new connection... [10:59:39] Sock 10.Parse request [10:59:39]Sock 10.Check first char [10:59:39]Sock 10.First char is OK [10:59:39]request: POST /json_proto HTTP/1.0 [10:59:39]Method: POST [10:59:39]URL: /json_proto [10:59:39]Method is POST - this is cgi request [10:59:39]url: /json_proto [10:59:39]query_string will be loaded in cgi processing [10:59:39]execute_cgi json_proto POST (null) [10:59:39]execute_cgi path=json_proto method=POST [10:59:39]POST find Content-Length [10:59:39]Host: 172.17.49.132:8080 [10:59:39]Content-Length: 623 [10:59:39]Content-Type: application/json [10:59:39] [10:59:39]POST finish read [10:59:39]Found Content-Length = 623 [10:59:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136561", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:39]execute_script... [10:59:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136561", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:39]POST & json_proto [10:59:39]process_json_proto [10:59:39]json parsed OK: [10:59:39]protocol is kg_v1.0 [10:59:39]action value=close_receipt [10:59:39]process_action close_receipt [10:59:39]cmd_close_receipt [10:59:39]MH_GetDate [10:59:39]Write to MH i2c: F0 00 00 1A 3C 45 [10:59:39]Write i2c OK [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: F0 [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: F0 09 00 [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: F0 09 00 1A 3C 00 A4 24 A6 66 E7 4B C0 64 78 [10:59:39]GetLastDocTimeStamp 1722164190 [10:59:39]current date 1722164388 [10:59:39]FM_GetShiftState [10:59:39]SAM_PROTO_GetShiftState [10:59:39]wFMCommunicate request_size=4 [10:59:39]MH_SAM_APDU [10:59:39]CAPDU: 80 13 01 00 [10:59:39]Write to MH i2c: E2 08 00 1B 3C 80 13 01 00 00 00 00 00 D4 [10:59:39]Write i2c OK [10:59:39]MH_I2C_Read... [10:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:39]Read from MH i2c: E2 [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: E2 0E 00 [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: E2 0E 00 1B 3C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 11 [10:59:39]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [10:59:39]wFMCommunicate OK [10:59:39]SAM_PROTO_GetShiftState done [10:59:39]FM_GetShiftState done [10:59:39]opened in 1722127251 [10:59:39]opened+sec_in_day 1722213651 [10:59:39]quantity*price = 14000 [10:59:39]sum+1 = 14001 [10:59:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 44 28.07.2024 10:59 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69161 ФПД: 263137462092049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105948&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69161&fm=263137462092049&tin=02508201610067®Number=0000000000092638&sum=14000 0 [10:59:40]StoreToDocumentArchive [10:59:40]shift 429 fd 69161 [10:59:40]save to /storage/0429/doc_00069161 [10:59:40]save last doc name /storage/0429/doc_00069161 to /storage/kkm_last_doc_name [10:59:40]save OK [10:59:40]Clear old archive folders... [10:59:40]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:59:40]tlvbuf is 00A16C30 [10:59:40]SAM_PROTO_ClearQueue [10:59:40]wFMCommunicate request_size=4 [10:59:40]MH_SAM_APDU [10:59:40]CAPDU: 80 09 00 00 [10:59:40]Write to MH i2c: E2 08 00 28 3C 80 09 00 00 00 00 00 00 D6 [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:40]Read from MH i2c: E2 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 03 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 03 00 28 3C 00 90 00 D8 [10:59:40]RAPDU: 90 00 [10:59:40]wFMCommunicate OK [10:59:40]SAM_PROTO_ClearQueue done [10:59:40]KKMCreateOFDPacket [10:59:40]OFDProtocolAddRootSTLVToBuf [10:59:40]FM_MakeSignedData [10:59:40]FM_MakeSignedData [10:59:40]SAM_PROTO_SignData [10:59:40]wFMCommunicate request_size=4 [10:59:40]MH_SAM_APDU [10:59:40]CAPDU: 80 0D 01 02 [10:59:40]Write to MH i2c: E2 08 00 29 3C 80 0D 01 02 00 00 00 00 DE [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:40]Read from MH i2c: E2 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 03 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 03 00 29 3C 00 90 00 D9 [10:59:40]RAPDU: 90 00 [10:59:40]wFMCommunicate OK [10:59:40]wFMCommunicate request_size=255 [10:59:40]MH_SAM_APDU [10:59: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 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 A4 24 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 [10:59:40]Write to MH i2c: E2 02 01 2A 3C 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 A4 24 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 00 00 1F [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 2A 3C 00 90 00 DA [10:59:41]RAPDU: 90 00 [10:59:41]wFMCommunicate OK [10:59:41]wFMCommunicate request_size=34 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 29 0E 01 00 35 04 06 00 EF 52 76 F4 81 11 [10:59:41]Write to MH i2c: E2 25 00 2B 3C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 29 0E 01 00 35 04 06 00 EF 52 76 F4 81 11 00 00 20 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 2B 3C 00 90 00 DB [10:59:41]RAPDU: 90 00 [10:59:41]wFMCommunicate OK [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 0D 03 02 [10:59:41]Write to MH i2c: E2 08 00 2C 3C 80 0D 03 02 00 00 00 00 E3 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 0B 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 0B 00 2C 3C 00 AD 60 D6 97 51 7C 19 A9 90 00 ED [10:59:41]RAPDU: AD 60 D6 97 51 7C 19 A9 90 00 [10:59:41]wFMCommunicate OK [10:59:41]SAM_PROTO_SignData done [10:59:41]FM_MakeSignedData done [10:59:41]CreateOFDProtocolMessage [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 11 00 00 [10:59:41]Write to MH i2c: E2 08 00 2D 3C 80 11 00 00 00 00 00 00 E3 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 17 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 17 00 2D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3F [10:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:59:41]wFMCommunicate OK [10:59:41]CreateOFDProtocolMessage done [10:59:41]OFDSenderStorePacket 69161 [10:59:41]StoreOFDPacket docnum=69161 [10:59:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 52 A4 1F 01 DA B3 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 A4 24 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 29 0E 01 00 35 04 06 00 EF 52 76 F4 81 11 AD 60 D6 97 51 7C 19 A9 [10:59:41]CheckFolder [10:59:41]dirname=/storage/ofd_packets [10:59:41]CheckFolder done [10:59:41]ProducePacketName [10:59:41]name=ofd_packets/00069161 [10:59:41]NVStorageSaveData ofd_packets/00069161 [10:59:41]File name is /storage/ofd_packets/00069161 [10:59:41]Write 325 bytes [10:59:41]NVStorageSaveData done [10:59:41]OFDSenderStorePacket done [10:59:41]KKMCreateOFDPacket done [10:59:41]NVStorageSaveData kkm_last_timestamp [10:59:41]File name is /storage/kkm_last_timestamp [10:59:41]Write 4 bytes [10:59:41]NVStorageSaveData done [10:59:41]ExternCall_PrintAddStr [10:59:41]wPrintStart [10:59:41]Write to MH i2c: 01 00 00 2E 3C 6A [10:59:41]OFD Sender: Processing packet 69161 [packets to send 19, broken 18] [10:59:41]ProducePacketName [10:59:41]name=ofd_packets/00069161 [10:59:41]OFD Sender: To server: pG, [10:59:41]CommunicateWithHost lk.salyk.kg:30040 [10:59:41]ConnectInit lk.salyk.kg [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: 01 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: 01 07 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: 01 07 00 2E 3C 00 00 00 00 00 FF 0F 7F [10:59:41]RasterBufferAndPrint [10:59:41]line Счет N : (3)136561 [10:59:41]line ИНН: 02508201610067 [10:59:41]line Контрольно-Кассовый Чек [10:59:41]line ПРОДАЖА [10:59:41]line Товар: 48743587 [10:59:41]line Сигареты Winston XStyle Silver [10:59:41]line 1.000 * 140.00 [10:59:41]line = 140.00 [10:59:41]line НДС 12% НСП 1% [10:59:41]line > о реализуемом товаре [10:59:41]line ИТОГО: 140.00 [10:59:41]line НСП 1% : 1.24 [10:59:41]line НДС 12% : 14.87 [10:59:41]line Наличными: 140.00 [10:59:41]line Безнал.: 0.00 [10:59:41]line Место: АЗС № 125 "Партнер Нефть" [10:59:41]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:59:41]line СНО: Общий режим [10:59:41]line Чек 44 28.07.2024 10:59 [10:59:41]line Смена: 429 ФФД: 1.0 [10:59:41]line ЗНМ: 0300000049 [10:59:41]line РНМ: 0000000000092638 [10:59:41]line Версия ККМ: 001 [10:59:41]line ФМ: 0000000000874949 [10:59:41]line ФД: 69161 [10:59:41]line ФПД: 263137462092049 [10:59:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T105948&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69161&fm=263137462092049&tin=02508201610067®Number=0000000000092638&sum=14000 [10:59:41]Connected sock=9 [10:59: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 39 34 39 27 01 00 00 52 A4 1F 01 DA B3 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 A4 24 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 29 0E 01 00 35 04 06 00 EF 52 76 F4 81 11 AD 60 D6 97 51 7C 19 A9 [10:59:41]line 0 [10:59:41]written 0, free lines is 4095 [10:59:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 DE 11 47 00 DF 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 39 34 39 10 04 04 00 29 0E 01 00 F4 03 04 00 14 CB A5 66 B6 04 01 00 00 D5 53 A5 04 ED E3 C7 70 [10:59:41]CommunicateWithHost err = 0 [10:59:41]CheckOFDResponse [10:59:41]1017 (14) - 77093643461234 [10:59:41]1041 (16) - 0000000000874949 [10:59:41]1040 (4) - 69161 [10:59:41]1012 (4) - 28.07.2024 04:37 [10:59:41]1206 (1) - 0 [10:59:41]OFD Sender: Remove packet 69161 [10:59:41]ProducePacketName [10:59:41]name=ofd_packets/00069161 [10:59:41]NVStorageDeleteData [10:59:42]Write to MH i2c: 01 00 00 57 3C 93 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 07 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 07 00 57 3C 00 00 00 00 00 04 0D AB [10:59:42]RasterBufferAndPrint [10:59:42]line [10:59:42]line [10:59:42]line [10:59:42]line [10:59:42]line [10:59:42]written 0, free lines is 3341 [10:59:42]MH_Cut [10:59:42]Write to MH i2c: D1 01 00 5E 3C 01 6C [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: D1 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: D1 01 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: D1 01 00 5E 3C 00 6B [10:59:42]Write to MH i2c: 01 00 00 5F 3C 9B [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]OFD Sender: No OFD packet to send [10:59:42]*** Cut start [10:59:42]*** Partial cut [10:59:42]*** CUTSNS_PIN = 1 [10:59:42]*** CUTSNS_PIN = 0 [10:59:42]*** Brake cut motor [10:59:43]Read from MH i2c: 01 [10:59:43]MH_I2C_Read... [10:59:43]*** Stop cut motor [10:59:43]*** Cut end [10:59:43]Read from MH i2c: 01 07 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 07 00 5F 3C 00 00 00 00 00 FF 0F B0 [10:59:43]process_action close_receipt done [10:59:43]requested_data is exist [10:59:43]produce_requested_data [10:59:43]requested_item fm.sn is exist - process it [10:59:43]wFMCommunicate request_size=4 [10:59:43]MH_SAM_APDU [10:59:43]CAPDU: 80 11 00 00 [10:59:43]Write to MH i2c: E2 08 00 60 3C 80 11 00 00 00 00 00 00 16 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:43]Read from MH i2c: E2 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 17 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 17 00 60 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 72 [10:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:59:43]wFMCommunicate OK [10:59:43]requested_item fd.num is exist - process it [10:59:43]SAM_PROTO_GetFieldsCounters [10:59:43]wFMCommunicate request_size=4 [10:59:43]MH_SAM_APDU [10:59:43]CAPDU: 80 13 00 00 [10:59:43]Write to MH i2c: E2 08 00 61 3C 80 13 00 00 00 00 00 00 19 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:43]Read from MH i2c: E2 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 62 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 62 00 61 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 29 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [10:59: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 29 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:43]wFMCommunicate OK [10:59:43]SAM_PROTO_GetFieldsCounters done [10:59:43]requested_item shift.num is exist - process it [10:59:43]requested_item shift.opened is exist - process it [10:59:43]req_shift_opened [10:59:43]FM_GetShiftState [10:59:43]SAM_PROTO_GetShiftState [10:59:43]wFMCommunicate request_size=4 [10:59:43]MH_SAM_APDU [10:59:43]CAPDU: 80 13 01 00 [10:59:43]Write to MH i2c: E2 08 00 62 3C 80 13 01 00 00 00 00 00 1B [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:43]Read from MH i2c: E2 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 0E 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 0E 00 62 3C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 58 [10:59:43]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [10:59:43]wFMCommunicate OK [10:59:43]SAM_PROTO_GetShiftState done [10:59:43]FM_GetShiftState done [10:59:43]req_shift_opened done [10:59:43]requested_item shift.open_date is exist - process it [10:59:43]req_shift_open_date [10:59:43]req_shift_open_date done [10:59:43]produce_requested_data done [10:59:43]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69161,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [10:59:43]process_action_free close_receipt [10:59:43]json_value_free [10:59:43]json_value_free done [10:59:43]process_json_proto returns [10:59:43]Send response to host [10:59:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69161,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [10:59:43]free response buf [10:59:43]execute_script done [10:59:43]execute_script returns [10:59:43]free content buf [10:59:43]Sock 10.Close socket [10:59:43]Sock 10.Thread stoped [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:34]accept exits with 7 [11:12:34]New connection [11:12:34]New thread 3066785124 created [11:12:34]Thread 3066641764 joined [11:12:34]Waiting for new connection... [11:12:34] Sock 7.Parse request [11:12:34]Sock 7.Check first char [11:12:34]Sock 7.First char is OK [11:12:34]request: POST /json_proto HTTP/1.0 [11:12:34]Method: POST [11:12:34]URL: /json_proto [11:12:34]Method is POST - this is cgi request [11:12:34]url: /json_proto [11:12:34]query_string will be loaded in cgi processing [11:12:34]execute_cgi json_proto POST (null) [11:12:34]execute_cgi path=json_proto method=POST [11:12:34]POST find Content-Length [11:12:34]Host: 172.17.49.132:8080 [11:12:34]Content-Length: 682 [11:12:34]Content-Type: application/json [11:12:34] [11:12:34]POST finish read [11:12:34]Found Content-Length = 682 [11:12:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:34]execute_script... [11:12:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:34]POST & json_proto [11:12:34]process_json_proto [11:12:34]json parsed OK: [11:12:34]protocol is kg_v1.0 [11:12:34]action value=close_receipt [11:12:34]process_action close_receipt [11:12:34]cmd_close_receipt [11:12:34]MH_GetDate [11:12:34]Write to MH i2c: F0 00 00 63 3C 8E [11:12:34]Write i2c OK [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: F0 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: F0 09 00 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: F0 09 00 63 3C 00 AB 27 A6 66 E7 4B C0 64 CB [11:12:34]GetLastDocTimeStamp 1722164388 [11:12:34]current date 1722165163 [11:12:34]FM_GetShiftState [11:12:34]SAM_PROTO_GetShiftState [11:12:34]wFMCommunicate request_size=4 [11:12:34]MH_SAM_APDU [11:12:34]CAPDU: 80 13 01 00 [11:12:34]Write to MH i2c: E2 08 00 64 3C 80 13 01 00 00 00 00 00 1D [11:12:34]Write i2c OK [11:12:34]MH_I2C_Read... [11:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:34]Read from MH i2c: E2 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: E2 0E 00 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: E2 0E 00 64 3C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 5A [11:12:34]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:12:34]wFMCommunicate OK [11:12:34]SAM_PROTO_GetShiftState done [11:12:34]FM_GetShiftState done [11:12:34]opened in 1722127251 [11:12:34]opened+sec_in_day 1722213651 [11:12:34]quantity*price = 100005 [11:12:34]sum+1 = 100006 [11:12:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 45 28.07.2024 11:12 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69162 ФПД: 152175361001420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111243&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69162&fm=152175361001420&tin=02508201610067®Number=0000000000092638&sum=100000 [11:12:35]StoreToDocumentArchive [11:12:35]shift 429 fd 69162 [11:12:35]save to /storage/0429/doc_00069162 [11:12:35]save last doc name /storage/0429/doc_00069162 to /storage/kkm_last_doc_name [11:12:35]save OK [11:12:35]Clear old archive folders... [11:12:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:35]tlvbuf is 00A25DE0 [11:12:35]SAM_PROTO_ClearQueue [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 09 00 00 [11:12:35]Write to MH i2c: E2 08 00 71 3C 80 09 00 00 00 00 00 00 1F [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 71 3C 00 90 00 21 [11:12:35]RAPDU: 90 00 [11:12:35]wFMCommunicate OK [11:12:35]SAM_PROTO_ClearQueue done [11:12:35]KKMCreateOFDPacket [11:12:35]OFDProtocolAddRootSTLVToBuf [11:12:35]FM_MakeSignedData [11:12:35]FM_MakeSignedData [11:12:35]SAM_PROTO_SignData [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 0D 01 02 [11:12:35]Write to MH i2c: E2 08 00 72 3C 80 0D 01 02 00 00 00 00 27 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 72 3C 00 90 00 22 [11:12:35]RAPDU: 90 00 [11:12:35]wFMCommunicate OK [11:12:35]wFMCommunicate request_size=255 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 AB 27 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2A 0E 01 00 35 04 06 00 8A [11:12:35]Write to MH i2c: E2 02 01 73 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 AB 27 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2A 0E 01 00 35 04 06 00 8A 00 00 BD [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 73 3C 00 90 00 23 [11:12:35]RAPDU: 90 00 [11:12:35]wFMCommunicate OK [11:12:35]wFMCommunicate request_size=10 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 0D 02 02 05 67 16 56 07 CC [11:12:35]Write to MH i2c: E2 0D 00 74 3C 80 0D 02 02 05 00 67 16 56 07 CC 00 00 DA [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:36]Read from MH i2c: E2 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 03 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 03 00 74 3C 00 90 00 24 [11:12:36]RAPDU: 90 00 [11:12:36]wFMCommunicate OK [11:12:36]wFMCommunicate request_size=4 [11:12:36]MH_SAM_APDU [11:12:36]CAPDU: 80 0D 03 02 [11:12:36]Write to MH i2c: E2 08 00 75 3C 80 0D 03 02 00 00 00 00 2C [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:36]Read from MH i2c: E2 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 0B 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 0B 00 75 3C 00 E5 02 EA 69 A1 D1 28 9F 90 00 A0 [11:12:36]RAPDU: E5 02 EA 69 A1 D1 28 9F 90 00 [11:12:36]wFMCommunicate OK [11:12:36]SAM_PROTO_SignData done [11:12:36]FM_MakeSignedData done [11:12:36]CreateOFDProtocolMessage [11:12:36]wFMCommunicate request_size=4 [11:12:36]MH_SAM_APDU [11:12:36]CAPDU: 80 11 00 00 [11:12:36]Write to MH i2c: E2 08 00 76 3C 80 11 00 00 00 00 00 00 2C [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:36]Read from MH i2c: E2 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 17 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: E2 17 00 76 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 88 [11:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:12:36]wFMCommunicate OK [11:12:36]CreateOFDProtocolMessage done [11:12:36]OFDSenderStorePacket 69162 [11:12:36]StoreOFDPacket docnum=69162 [11:12:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 DB 88 07 01 30 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 AB 27 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2A 0E 01 00 35 04 06 00 8A 67 16 56 07 CC E5 02 EA 69 A1 D1 28 9F [11:12:36]CheckFolder [11:12:36]dirname=/storage/ofd_packets [11:12:36]CheckFolder done [11:12:36]ProducePacketName [11:12:36]name=ofd_packets/00069162 [11:12:36]NVStorageSaveData ofd_packets/00069162 [11:12:36]File name is /storage/ofd_packets/00069162 [11:12:36]Write 301 bytes [11:12:36]NVStorageSaveData done [11:12:36]OFDSenderStorePacket done [11:12:36]KKMCreateOFDPacket done [11:12:36]NVStorageSaveData kkm_last_timestamp [11:12:36]File name is /storage/kkm_last_timestamp [11:12:36]Write 4 bytes [11:12:36]NVStorageSaveData done [11:12:36]ExternCall_PrintAddStr [11:12:36]wPrintStart [11:12:36]Write to MH i2c: 01 00 00 77 3C B3 [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: 01 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: 01 07 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: 01 07 00 77 3C 00 00 00 00 00 FF 0F C8 [11:12:36]RasterBufferAndPrint [11:12:36]line Счет N : (1)871817 [11:12:36]line ИНН: 02508201610067 [11:12:36]line Контрольно-Кассовый Чек [11:12:36]line ПРОДАЖА [11:12:36]line ТРК (МРК, ГНК) : 32 [11:12:36]line Товар: 2710124130 [11:12:36]line Аи-92-К-5 [11:12:36]line 14.750 * 67.80 [11:12:36]line = 1000.05 [11:12:36]line НДС 12% НСП 1% [11:12:36]line > о реализуемом товаре [11:12:36]line ОКРУГЛЕНИЕ: -0.05 [11:12:36]line ИТОГО: 1000.00 [11:12:36]line Внесено: 1000.00 [11:12:36]line СДАЧА: 0.00 [11:12:36]line НСП 1% : 8.85 [11:12:36]line НДС 12% : 106.20 [11:12:36]line Наличными: 1000.00 [11:12:36]line Безнал.: 0.00 [11:12:36]line Место: АЗС № 125 "Партнер Нефть" [11:12:36]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:12:36]line СНО: Общий режим [11:12:36]line Чек 45 28.07.2024 11:12 [11:12:36]line Смена: 429 ФФД: 1.0 [11:12:36]line ЗНМ: 0300000049 [11:12:36]line РНМ: 0000000000092638 [11:12:36]line Версия ККМ: 001 [11:12:36]line ФМ: 0000000000874949 [11:12:36]line ФД: 69162 [11:12:36]line ФПД: 152175361001420 [11:12:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111243&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69162&fm=152175361001420&tin=02508201610067®Number=0000000000092638&sum=100000 [11:12:36]OFD Sender: Processing packet 69162 [packets to send 19, broken 18] [11:12:36]ProducePacketName [11:12:36]name=ofd_packets/00069162 [11:12:36]OFD Sender: To server: pG, [11:12:36]CommunicateWithHost lk.salyk.kg:30040 [11:12:36]ConnectInit lk.salyk.kg [11:12:36]written 0, free lines is 4095 [11:12:36]Connected sock=10 [11:12: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 39 34 39 0F 01 00 00 DB 88 07 01 30 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 AB 27 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2A 0E 01 00 35 04 06 00 8A 67 16 56 07 CC E5 02 EA 69 A1 D1 28 9F [11:12:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 67 26 47 00 67 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 39 34 39 10 04 04 00 2A 0E 01 00 F4 03 04 00 1B CE A5 66 B6 04 01 00 00 A4 2D BA 5A 4B 26 5C 4D [11:12:36]CommunicateWithHost err = 0 [11:12:36]CheckOFDResponse [11:12:36]1017 (14) - 77093643461234 [11:12:36]1041 (16) - 0000000000874949 [11:12:36]1040 (4) - 69162 [11:12:36]1012 (4) - 28.07.2024 04:50 [11:12:36]1206 (1) - 0 [11:12:36]OFD Sender: Remove packet 69162 [11:12:36]ProducePacketName [11:12:36]name=ofd_packets/00069162 [11:12:36]NVStorageDeleteData [11:12:36]Write to MH i2c: 01 00 00 A2 3C DE [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: 01 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: 01 07 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: 01 07 00 A2 3C 00 00 00 00 00 ED 0C DE [11:12:36]RasterBufferAndPrint [11:12:36]line [11:12:36]line [11:12:36]line [11:12:36]line [11:12:36]line [11:12:36]written 0, free lines is 3318 [11:12:36]MH_Cut [11:12:36]Write to MH i2c: D1 01 00 A9 3C 01 B7 [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: D1 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: D1 01 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: D1 01 00 A9 3C 00 B6 [11:12:36]Write to MH i2c: 01 00 00 AA 3C E6 [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:37]OFD Sender: No OFD packet to send [11:12:37]*** Cut start [11:12:37]*** Partial cut [11:12:37]*** CUTSNS_PIN = 1 [11:12:37]*** CUTSNS_PIN = 0 [11:12:37]*** Brake cut motor [11:12:38]Read from MH i2c: 01 [11:12:38]MH_I2C_Read... [11:12:38]*** Stop cut motor [11:12:38]*** Cut end [11:12:38]Read from MH i2c: 01 07 00 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: 01 07 00 AA 3C 00 00 00 00 00 FF 0F FB [11:12:38]process_action close_receipt done [11:12:38]requested_data is exist [11:12:38]produce_requested_data [11:12:38]requested_item fm.sn is exist - process it [11:12:38]wFMCommunicate request_size=4 [11:12:38]MH_SAM_APDU [11:12:38]CAPDU: 80 11 00 00 [11:12:38]Write to MH i2c: E2 08 00 AB 3C 80 11 00 00 00 00 00 00 61 [11:12:38]Write i2c OK [11:12:38]MH_I2C_Read... [11:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:38]Read from MH i2c: E2 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: E2 17 00 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: E2 17 00 AB 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 BD [11:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:12:38]wFMCommunicate OK [11:12:38]requested_item fd.num is exist - process it [11:12:38]SAM_PROTO_GetFieldsCounters [11:12:38]wFMCommunicate request_size=4 [11:12:38]MH_SAM_APDU [11:12:38]CAPDU: 80 13 00 00 [11:12:38]Write to MH i2c: E2 08 00 AC 3C 80 13 00 00 00 00 00 00 64 [11:12:38]Write i2c OK [11:12:38]MH_I2C_Read... [11:12:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:38]Read from MH i2c: E2 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: E2 62 00 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: E2 62 00 AC 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 2A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [11:12: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 2A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:38]wFMCommunicate OK [11:12:38]SAM_PROTO_GetFieldsCounters done [11:12:38]requested_item shift.num is exist - process it [11:12:38]requested_item shift.opened is exist - process it [11:12:38]req_shift_opened [11:12:38]FM_GetShiftState [11:12:38]SAM_PROTO_GetShiftState [11:12:38]wFMCommunicate request_size=4 [11:12:38]MH_SAM_APDU [11:12:38]CAPDU: 80 13 01 00 [11:12:38]Write to MH i2c: E2 08 00 AD 3C 80 13 01 00 00 00 00 00 66 [11:12:38]Write i2c OK [11:12:38]MH_I2C_Read... [11:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:38]Read from MH i2c: E2 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: E2 0E 00 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: E2 0E 00 AD 3C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A3 [11:12:38]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:12:38]wFMCommunicate OK [11:12:38]SAM_PROTO_GetShiftState done [11:12:38]FM_GetShiftState done [11:12:38]req_shift_opened done [11:12:38]requested_item shift.open_date is exist - process it [11:12:38]req_shift_open_date [11:12:38]req_shift_open_date done [11:12:38]produce_requested_data done [11:12:38]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69162,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:12:38]process_action_free close_receipt [11:12:38]json_value_free [11:12:38]json_value_free done [11:12:38]process_json_proto returns [11:12:38]Send response to host [11:12:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69162,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:12:38]free response buf [11:12:38]execute_script done [11:12:38]execute_script returns [11:12:38]free content buf [11:12:38]Sock 7.Close socket [11:12:38]Sock 7.Thread stoped [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:08]accept exits with 9 [11:15:08]New connection [11:15:08]New thread 3066641764 created [11:15:08]Thread 3066785124 joined [11:15:08]Waiting for new connection... [11:15:08] Sock 9.Parse request [11:15:08]Sock 9.Check first char [11:15:08]Sock 9.First char is OK [11:15:08]request: POST /json_proto HTTP/1.0 [11:15:08]Method: POST [11:15:08]URL: /json_proto [11:15:08]Method is POST - this is cgi request [11:15:08]url: /json_proto [11:15:08]query_string will be loaded in cgi processing [11:15:08]execute_cgi json_proto POST (null) [11:15:08]execute_cgi path=json_proto method=POST [11:15:08]POST find Content-Length [11:15:08]Host: 172.17.49.132:8080 [11:15:08]Content-Length: 682 [11:15:08]Content-Type: application/json [11:15:08] [11:15:08]POST finish read [11:15:08]Found Content-Length = 682 [11:15:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:08]execute_script... [11:15:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:08]POST & json_proto [11:15:08]process_json_proto [11:15:08]json parsed OK: [11:15:08]protocol is kg_v1.0 [11:15:08]action value=close_receipt [11:15:08]process_action close_receipt [11:15:08]cmd_close_receipt [11:15:08]MH_GetDate [11:15:08]Write to MH i2c: F0 00 00 AE 3C D9 [11:15:08]Write i2c OK [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: F0 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: F0 09 00 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: F0 09 00 AE 3C 00 45 28 A6 66 E7 4B C0 64 B1 [11:15:08]GetLastDocTimeStamp 1722165163 [11:15:08]current date 1722165317 [11:15:08]FM_GetShiftState [11:15:08]SAM_PROTO_GetShiftState [11:15:08]wFMCommunicate request_size=4 [11:15:08]MH_SAM_APDU [11:15:08]CAPDU: 80 13 01 00 [11:15:08]Write to MH i2c: E2 08 00 AF 3C 80 13 01 00 00 00 00 00 68 [11:15:08]Write i2c OK [11:15:08]MH_I2C_Read... [11:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:08]Read from MH i2c: E2 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: E2 0E 00 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: E2 0E 00 AF 3C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A5 [11:15:08]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:15:08]wFMCommunicate OK [11:15:08]SAM_PROTO_GetShiftState done [11:15:08]FM_GetShiftState done [11:15:08]opened in 1722127251 [11:15:08]opened+sec_in_day 1722213651 [11:15:08]quantity*price = 100005 [11:15:08]sum+1 = 100006 [11:15:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 46 28.07.2024 11:15 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69163 ФПД: 3979606956428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111517&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69163&fm=3979606956428&tin=02508201610067®Number=0000000000092638&sum=100000 [11:15:09]StoreToDocumentArchive [11:15:09]shift 429 fd 69163 [11:15:09]save to /storage/0429/doc_00069163 [11:15:09]save last doc name /storage/0429/doc_00069163 to /storage/kkm_last_doc_name [11:15:09]save OK [11:15:09]Clear old archive folders... [11:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:09]tlvbuf is 00AB04A0 [11:15:09]SAM_PROTO_ClearQueue [11:15:09]wFMCommunicate request_size=4 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 09 00 00 [11:15:09]Write to MH i2c: E2 08 00 BC 3C 80 09 00 00 00 00 00 00 6A [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 BC 3C 00 90 00 6C [11:15:09]RAPDU: 90 00 [11:15:09]wFMCommunicate OK [11:15:09]SAM_PROTO_ClearQueue done [11:15:09]KKMCreateOFDPacket [11:15:09]OFDProtocolAddRootSTLVToBuf [11:15:09]FM_MakeSignedData [11:15:09]FM_MakeSignedData [11:15:09]SAM_PROTO_SignData [11:15:09]wFMCommunicate request_size=4 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 0D 01 02 [11:15:09]Write to MH i2c: E2 08 00 BD 3C 80 0D 01 02 00 00 00 00 72 [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 BD 3C 00 90 00 6D [11:15:09]RAPDU: 90 00 [11:15:09]wFMCommunicate OK [11:15:09]wFMCommunicate request_size=255 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2B 0E 01 00 35 04 06 00 03 [11:15:09]Write to MH i2c: E2 02 01 BE 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2B 0E 01 00 35 04 06 00 03 00 00 1E [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:10]Read from MH i2c: E2 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 03 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 03 00 BE 3C 00 90 00 6E [11:15:10]RAPDU: 90 00 [11:15:10]wFMCommunicate OK [11:15:10]wFMCommunicate request_size=10 [11:15:10]MH_SAM_APDU [11:15:10]CAPDU: 80 0D 02 02 05 9E 93 0F 19 8C [11:15:10]Write to MH i2c: E2 0D 00 BF 3C 80 0D 02 02 05 00 9E 93 0F 19 8C 00 00 64 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:10]Read from MH i2c: E2 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 03 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 03 00 BF 3C 00 90 00 6F [11:15:10]RAPDU: 90 00 [11:15:10]wFMCommunicate OK [11:15:10]wFMCommunicate request_size=4 [11:15:10]MH_SAM_APDU [11:15:10]CAPDU: 80 0D 03 02 [11:15:10]Write to MH i2c: E2 08 00 C0 3C 80 0D 03 02 00 00 00 00 77 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:10]Read from MH i2c: E2 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 0B 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 0B 00 C0 3C 00 B8 AB 52 77 A8 34 8C 6C 90 00 78 [11:15:10]RAPDU: B8 AB 52 77 A8 34 8C 6C 90 00 [11:15:10]wFMCommunicate OK [11:15:10]SAM_PROTO_SignData done [11:15:10]FM_MakeSignedData done [11:15:10]CreateOFDProtocolMessage [11:15:10]wFMCommunicate request_size=4 [11:15:10]MH_SAM_APDU [11:15:10]CAPDU: 80 11 00 00 [11:15:10]Write to MH i2c: E2 08 00 C1 3C 80 11 00 00 00 00 00 00 77 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:10]Read from MH i2c: E2 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 17 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 17 00 C1 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D3 [11:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:15:10]wFMCommunicate OK [11:15:10]CreateOFDProtocolMessage done [11:15:10]OFDSenderStorePacket 69163 [11:15:10]StoreOFDPacket docnum=69163 [11:15:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 45 10 07 01 4B 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2B 0E 01 00 35 04 06 00 03 9E 93 0F 19 8C B8 AB 52 77 A8 34 8C 6C [11:15:10]CheckFolder [11:15:10]dirname=/storage/ofd_packets [11:15:10]CheckFolder done [11:15:10]ProducePacketName [11:15:10]name=ofd_packets/00069163 [11:15:10]NVStorageSaveData ofd_packets/00069163 [11:15:10]File name is /storage/ofd_packets/00069163 [11:15:10]Write 301 bytes [11:15:10]NVStorageSaveData done [11:15:10]OFDSenderStorePacket done [11:15:10]KKMCreateOFDPacket done [11:15:10]NVStorageSaveData kkm_last_timestamp [11:15:10]File name is /storage/kkm_last_timestamp [11:15:10]Write 4 bytes [11:15:10]NVStorageSaveData done [11:15:10]ExternCall_PrintAddStr [11:15:10]wPrintStart [11:15:10]Write to MH i2c: 01 00 00 C2 3C FE [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: 01 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: 01 07 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: 01 07 00 C2 3C 00 00 00 00 00 FF 0F 13 [11:15:10]RasterBufferAndPrint [11:15:10]line Счет N : (1)871818 [11:15:10]line ИНН: 02508201610067 [11:15:10]line Контрольно-Кассовый Чек [11:15:10]line ПРОДАЖА [11:15:10]line ТРК (МРК, ГНК) : 32 [11:15:10]line Товар: 2710124130 [11:15:10]line Аи-92-К-5 [11:15:10]line 14.750 * 67.80 [11:15:10]line = 1000.05 [11:15:10]line НДС 12% НСП 1% [11:15:10]line > о реализуемом товаре [11:15:10]line ОКРУГЛЕНИЕ: -0.05 [11:15:10]line ИТОГО: 1000.00 [11:15:10]line Внесено: 1000.00 [11:15:10]line СДАЧА: 0.00 [11:15:10]line НСП 1% : 8.85 [11:15:10]line НДС 12% : 106.20 [11:15:10]line Наличными: 1000.00 [11:15:10]line Безнал.: 0.00 [11:15:10]line Место: АЗС № 125 "Партнер Нефть" [11:15:10]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:15:10]line СНО: Общий режим [11:15:10]line Чек 46 28.07.2024 11:15 [11:15:10]line Смена: 429 ФФД: 1.0 [11:15:10]line ЗНМ: 0300000049 [11:15:10]line РНМ: 0000000000092638 [11:15:10]line Версия ККМ: 001 [11:15:10]line ФМ: 0000000000874949 [11:15:10]line ФД: 69163 [11:15:10]line ФПД: 3979606956428 [11:15:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111517&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69163&fm=3979606956428&tin=02508201610067®Number=0000000000092638&sum=100000 [11:15:10]written 0, free lines is 4095 [11:15:10]OFD Sender: Processing packet 69163 [packets to send 19, broken 18] [11:15:10]ProducePacketName [11:15:10]name=ofd_packets/00069163 [11:15:10]OFD Sender: To server: pG, [11:15:10]CommunicateWithHost lk.salyk.kg:30040 [11:15:10]ConnectInit lk.salyk.kg [11:15:10]Connected sock=10 [11:15:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 45 10 07 01 4B 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2B 0E 01 00 35 04 06 00 03 9E 93 0F 19 8C B8 AB 52 77 A8 34 8C 6C [11:15:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 AA 36 47 00 AF BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2B 0E 01 00 F4 03 04 00 B5 CE A5 66 B6 04 01 00 00 24 07 64 4D 10 E6 62 E4 [11:15:10]CommunicateWithHost err = 0 [11:15:10]CheckOFDResponse [11:15:10]1017 (14) - 77093643461234 [11:15:10]1041 (16) - 0000000000874949 [11:15:10]1040 (4) - 69163 [11:15:10]1012 (4) - 28.07.2024 04:53 [11:15:10]1206 (1) - 0 [11:15:10]OFD Sender: Remove packet 69163 [11:15:10]ProducePacketName [11:15:10]name=ofd_packets/00069163 [11:15:10]NVStorageDeleteData [11:15:11]Write to MH i2c: 01 00 00 ED 3C 29 [11:15:11]Write i2c OK [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: 01 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: 01 07 00 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: 01 07 00 ED 3C 00 00 00 00 00 EF 0C 2B [11:15:11]RasterBufferAndPrint [11:15:11]line [11:15:11]line [11:15:11]line [11:15:11]line [11:15:11]line [11:15:11]written 0, free lines is 3320 [11:15:11]MH_Cut [11:15:11]Write to MH i2c: D1 01 00 F4 3C 01 02 [11:15:11]Write i2c OK [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: D1 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: D1 01 00 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: D1 01 00 F4 3C 00 01 [11:15:11]Write to MH i2c: 01 00 00 F5 3C 31 [11:15:11]Write i2c OK [11:15:11]MH_I2C_Read... [11:15:11]OFD Sender: No OFD packet to send [11:15:11]*** Cut start [11:15:11]*** Partial cut [11:15:11]*** CUTSNS_PIN = 1 [11:15:11]*** CUTSNS_PIN = 0 [11:15:11]*** Brake cut motor [11:15:12]Read from MH i2c: 01 [11:15:12]MH_I2C_Read... [11:15:12]*** Stop cut motor [11:15:12]*** Cut end [11:15:12]Read from MH i2c: 01 07 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: 01 07 00 F5 3C 00 00 00 00 00 FF 0F 46 [11:15:12]process_action close_receipt done [11:15:12]requested_data is exist [11:15:12]produce_requested_data [11:15:12]requested_item fm.sn is exist - process it [11:15:12]wFMCommunicate request_size=4 [11:15:12]MH_SAM_APDU [11:15:12]CAPDU: 80 11 00 00 [11:15:12]Write to MH i2c: E2 08 00 F6 3C 80 11 00 00 00 00 00 00 AC [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:12]Read from MH i2c: E2 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 17 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 17 00 F6 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 08 [11:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:15:12]wFMCommunicate OK [11:15:12]requested_item fd.num is exist - process it [11:15:12]SAM_PROTO_GetFieldsCounters [11:15:12]wFMCommunicate request_size=4 [11:15:12]MH_SAM_APDU [11:15:12]CAPDU: 80 13 00 00 [11:15:12]Write to MH i2c: E2 08 00 F7 3C 80 13 00 00 00 00 00 00 AF [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:12]Read from MH i2c: E2 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 62 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 62 00 F7 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 2B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [11:15:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 2B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:12]wFMCommunicate OK [11:15:12]SAM_PROTO_GetFieldsCounters done [11:15:12]requested_item shift.num is exist - process it [11:15:12]requested_item shift.opened is exist - process it [11:15:12]req_shift_opened [11:15:12]FM_GetShiftState [11:15:12]SAM_PROTO_GetShiftState [11:15:12]wFMCommunicate request_size=4 [11:15:12]MH_SAM_APDU [11:15:12]CAPDU: 80 13 01 00 [11:15:12]Write to MH i2c: E2 08 00 F8 3C 80 13 01 00 00 00 00 00 B1 [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:12]Read from MH i2c: E2 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 0E 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 0E 00 F8 3C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 EE [11:15:12]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:15:12]wFMCommunicate OK [11:15:12]SAM_PROTO_GetShiftState done [11:15:12]FM_GetShiftState done [11:15:12]req_shift_opened done [11:15:12]requested_item shift.open_date is exist - process it [11:15:12]req_shift_open_date [11:15:12]req_shift_open_date done [11:15:12]produce_requested_data done [11:15:12]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69163,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:15:12]process_action_free close_receipt [11:15:12]json_value_free [11:15:12]json_value_free done [11:15:12]process_json_proto returns [11:15:12]Send response to host [11:15:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69163,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:15:12]free response buf [11:15:12]execute_script done [11:15:12]execute_script returns [11:15:12]free content buf [11:15:12]Sock 9.Close socket [11:15:12]Sock 9.Thread stoped [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:37]accept exits with 7 [11:15:37]New connection [11:15:37]New thread 3066785124 created [11:15:37]Thread 3066641764 joined [11:15:37]Waiting for new connection... [11:15:37] Sock 7.Parse request [11:15:37]Sock 7.Check first char [11:15:37]Sock 7.First char is OK [11:15:37]request: POST /json_proto HTTP/1.0 [11:15:37]Method: POST [11:15:37]URL: /json_proto [11:15:37]Method is POST - this is cgi request [11:15:37]url: /json_proto [11:15:37]query_string will be loaded in cgi processing [11:15:37]execute_cgi json_proto POST (null) [11:15:37]execute_cgi path=json_proto method=POST [11:15:37]POST find Content-Length [11:15:37]Host: 172.17.49.132:8080 [11:15:37]Content-Length: 677 [11:15:37]Content-Type: application/json [11:15:37] [11:15:37]POST finish read [11:15:37]Found Content-Length = 677 [11:15:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:37]execute_script... [11:15:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:37]POST & json_proto [11:15:37]process_json_proto [11:15:37]json parsed OK: [11:15:37]protocol is kg_v1.0 [11:15:37]action value=close_receipt [11:15:37]process_action close_receipt [11:15:37]cmd_close_receipt [11:15:37]MH_GetDate [11:15:37]Write to MH i2c: F0 00 00 F9 3C 24 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: F0 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: F0 09 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: F0 09 00 F9 3C 00 62 28 A6 66 E7 4B C0 64 19 [11:15:37]GetLastDocTimeStamp 1722165317 [11:15:37]current date 1722165346 [11:15:37]FM_GetShiftState [11:15:37]SAM_PROTO_GetShiftState [11:15:37]wFMCommunicate request_size=4 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 13 01 00 [11:15:37]Write to MH i2c: E2 08 00 FA 3C 80 13 01 00 00 00 00 00 B3 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 0E 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 0E 00 FA 3C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F0 [11:15:37]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:15:37]wFMCommunicate OK [11:15:37]SAM_PROTO_GetShiftState done [11:15:37]FM_GetShiftState done [11:15:37]opened in 1722127251 [11:15:37]opened+sec_in_day 1722213651 [11:15:37]quantity*price = 50036 [11:15:37]sum+1 = 50037 [11:15:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 47 28.07.2024 11:15 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69164 ФПД: 102525556333901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111546&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69164&fm=102525556333901&tin=02508201610067®Number=0000000000092638&sum=50000 [11:15:39]StoreToDocumentArchive [11:15:39]shift 429 fd 69164 [11:15:39]save to /storage/0429/doc_00069164 [11:15:39]save last doc name /storage/0429/doc_00069164 to /storage/kkm_last_doc_name [11:15:39]save OK [11:15:39]Clear old archive folders... [11:15:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:39]tlvbuf is 00A70980 [11:15:39]SAM_PROTO_ClearQueue [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 09 00 00 [11:15:39]Write to MH i2c: E2 08 00 07 3D 80 09 00 00 00 00 00 00 B6 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:39]Read from MH i2c: E2 03 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 07 3D 00 90 00 B8 [11:15:39]RAPDU: 90 00 [11:15:39]wFMCommunicate OK [11:15:39]SAM_PROTO_ClearQueue done [11:15:39]KKMCreateOFDPacket [11:15:39]OFDProtocolAddRootSTLVToBuf [11:15:39]FM_MakeSignedData [11:15:39]FM_MakeSignedData [11:15:39]SAM_PROTO_SignData [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 0D 01 02 [11:15:39]Write to MH i2c: E2 08 00 08 3D 80 0D 01 02 00 00 00 00 BE [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 08 3D 00 90 00 B9 [11:15:39]RAPDU: 90 00 [11:15:39]wFMCommunicate OK [11:15:39]wFMCommunicate request_size=255 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 62 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2C 0E 01 00 35 04 06 00 5D [11:15:39]Write to MH i2c: E2 02 01 09 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 62 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2C 0E 01 00 35 04 06 00 5D 00 00 54 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 09 3D 00 90 00 BA [11:15:39]RAPDU: 90 00 [11:15:39]wFMCommunicate OK [11:15:39]wFMCommunicate request_size=10 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 0D 02 02 05 3F 17 5D 9D 4D [11:15:39]Write to MH i2c: E2 0D 00 0A 3D 80 0D 02 02 05 00 3F 17 5D 9D 4D 00 00 68 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 0A 3D 00 90 00 BB [11:15:39]RAPDU: 90 00 [11:15:39]wFMCommunicate OK [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 0D 03 02 [11:15:39]Write to MH i2c: E2 08 00 0B 3D 80 0D 03 02 00 00 00 00 C3 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 0B 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 0B 00 0B 3D 00 75 8C DF A9 19 12 87 8E 90 00 8D [11:15:39]RAPDU: 75 8C DF A9 19 12 87 8E 90 00 [11:15:39]wFMCommunicate OK [11:15:39]SAM_PROTO_SignData done [11:15:39]FM_MakeSignedData done [11:15:39]CreateOFDProtocolMessage [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 11 00 00 [11:15:39]Write to MH i2c: E2 08 00 0C 3D 80 11 00 00 00 00 00 00 C3 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 17 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 17 00 0C 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 1F [11:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:15:39]wFMCommunicate OK [11:15:39]CreateOFDProtocolMessage done [11:15:39]OFDSenderStorePacket 69164 [11:15:39]StoreOFDPacket docnum=69164 [11:15:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 0F 4D 07 01 79 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 62 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2C 0E 01 00 35 04 06 00 5D 3F 17 5D 9D 4D 75 8C DF A9 19 12 87 8E [11:15:39]CheckFolder [11:15:39]dirname=/storage/ofd_packets [11:15:39]CheckFolder done [11:15:39]ProducePacketName [11:15:39]name=ofd_packets/00069164 [11:15:39]NVStorageSaveData ofd_packets/00069164 [11:15:39]File name is /storage/ofd_packets/00069164 [11:15:39]Write 301 bytes [11:15:39]NVStorageSaveData done [11:15:39]OFDSenderStorePacket done [11:15:39]KKMCreateOFDPacket done [11:15:39]NVStorageSaveData kkm_last_timestamp [11:15:39]File name is /storage/kkm_last_timestamp [11:15:39]Write 4 bytes [11:15:39]NVStorageSaveData done [11:15:39]ExternCall_PrintAddStr [11:15:39]wPrintStart [11:15:39]Write to MH i2c: 01 00 00 0D 3D 4A [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: 01 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: 01 07 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: 01 07 00 0D 3D 00 00 00 00 00 FF 0F 5F [11:15:39]RasterBufferAndPrint [11:15:39]line Счет N : (1)871819 [11:15:39]line ИНН: 02508201610067 [11:15:39]line Контрольно-Кассовый Чек [11:15:39]line ПРОДАЖА [11:15:39]line ТРК (МРК, ГНК) : 62 [11:15:39]line Товар: 2710124130 [11:15:39]line Аи-92-К-5 [11:15:39]line 7.380 * 67.80 [11:15:39]line = 500.36 [11:15:39]line НДС 12% НСП 1% [11:15:39]line > о реализуемом товаре [11:15:39]line ОКРУГЛЕНИЕ: -0.36 [11:15:39]line ИТОГО: 500.00 [11:15:39]line Внесено: 500.00 [11:15:39]line СДАЧА: 0.00 [11:15:39]line НСП 1% : 4.43 [11:15:39]line НДС 12% : 53.14 [11:15:39]line Наличными: 500.00 [11:15:39]line Безнал.: 0.00 [11:15:39]line Место: АЗС № 125 "Партнер Нефть" [11:15:39]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:15:39]line СНО: Общий режим [11:15:39]line Чек 47 28.07.2024 11:15 [11:15:39]line Смена: 429 ФФД: 1.0 [11:15:39]line ЗНМ: 0300000049 [11:15:39]line РНМ: 0000000000092638 [11:15:39]line Версия ККМ: 001 [11:15:39]line ФМ: 0000000000874949 [11:15:39]line ФД: 69164 [11:15:39]line ФПД: 102525556333901 [11:15:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111546&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69164&fm=102525556333901&tin=02508201610067®Number=0000000000092638&sum=50000 [11:15:39]OFD Sender: Processing packet 69164 [packets to send 19, broken 18] [11:15:39]ProducePacketName [11:15:39]name=ofd_packets/00069164 [11:15:39]OFD Sender: To server: pG, [11:15:39]CommunicateWithHost lk.salyk.kg:30040 [11:15:39]ConnectInit lk.salyk.kg [11:15:39]written 0, free lines is 4095 [11:15:40]Connected sock=10 [11:15: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 39 34 39 0F 01 00 00 0F 4D 07 01 79 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 62 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2C 0E 01 00 35 04 06 00 5D 3F 17 5D 9D 4D 75 8C DF A9 19 12 87 8E [11:15:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 81 27 47 00 CB 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2C 0E 01 00 F4 03 04 00 D2 CE A5 66 B6 04 01 00 00 F1 5B 2E 44 C3 D7 04 C8 [11:15:40]CommunicateWithHost err = 0 [11:15:40]CheckOFDResponse [11:15:40]1017 (14) - 77093643461234 [11:15:40]1041 (16) - 0000000000874949 [11:15:40]1040 (4) - 69164 [11:15:40]1012 (4) - 28.07.2024 04:53 [11:15:40]1206 (1) - 0 [11:15:40]OFD Sender: Remove packet 69164 [11:15:40]ProducePacketName [11:15:40]name=ofd_packets/00069164 [11:15:40]NVStorageDeleteData [11:15:40]Write to MH i2c: 01 00 00 38 3D 75 [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 07 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 07 00 38 3D 00 00 00 00 00 E4 0C 6C [11:15:40]RasterBufferAndPrint [11:15:40]line [11:15:40]line [11:15:40]line [11:15:40]line [11:15:40]line [11:15:40]written 0, free lines is 3306 [11:15:40]MH_Cut [11:15:40]Write to MH i2c: D1 01 00 3F 3D 01 4E [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: D1 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: D1 01 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: D1 01 00 3F 3D 00 4D [11:15:40]Write to MH i2c: 01 00 00 40 3D 7D [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]OFD Sender: No OFD packet to send [11:15:41]*** Cut start [11:15:41]*** Partial cut [11:15:41]*** CUTSNS_PIN = 1 [11:15:41]*** CUTSNS_PIN = 0 [11:15:41]*** Brake cut motor [11:15:41]Read from MH i2c: 01 [11:15:41]MH_I2C_Read... [11:15:41]*** Stop cut motor [11:15:41]*** Cut end [11:15:41]Read from MH i2c: 01 07 00 [11:15:41]MH_I2C_Read... [11:15:41]Read from MH i2c: 01 07 00 40 3D 00 00 00 00 00 FF 0F 92 [11:15:41]process_action close_receipt done [11:15:41]requested_data is exist [11:15:41]produce_requested_data [11:15:41]requested_item fm.sn is exist - process it [11:15:41]wFMCommunicate request_size=4 [11:15:41]MH_SAM_APDU [11:15:41]CAPDU: 80 11 00 00 [11:15:41]Write to MH i2c: E2 08 00 41 3D 80 11 00 00 00 00 00 00 F8 [11:15:41]Write i2c OK [11:15:41]MH_I2C_Read... [11:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:41]Read from MH i2c: E2 [11:15:41]MH_I2C_Read... [11:15:41]Read from MH i2c: E2 17 00 [11:15:41]MH_I2C_Read... [11:15:41]Read from MH i2c: E2 17 00 41 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 54 [11:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:15:41]wFMCommunicate OK [11:15:41]requested_item fd.num is exist - process it [11:15:41]SAM_PROTO_GetFieldsCounters [11:15:41]wFMCommunicate request_size=4 [11:15:41]MH_SAM_APDU [11:15:41]CAPDU: 80 13 00 00 [11:15:41]Write to MH i2c: E2 08 00 42 3D 80 13 00 00 00 00 00 00 FB [11:15:41]Write i2c OK [11:15:41]MH_I2C_Read... [11:15:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:41]Read from MH i2c: E2 [11:15:41]MH_I2C_Read... [11:15:41]Read from MH i2c: E2 62 00 [11:15:41]MH_I2C_Read... [11:15:41]Read from MH i2c: E2 62 00 42 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 2C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [11:15:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 2C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:41]wFMCommunicate OK [11:15:41]SAM_PROTO_GetFieldsCounters done [11:15:41]requested_item shift.num is exist - process it [11:15:41]requested_item shift.opened is exist - process it [11:15:41]req_shift_opened [11:15:41]FM_GetShiftState [11:15:41]SAM_PROTO_GetShiftState [11:15:41]wFMCommunicate request_size=4 [11:15:41]MH_SAM_APDU [11:15:41]CAPDU: 80 13 01 00 [11:15:41]Write to MH i2c: E2 08 00 43 3D 80 13 01 00 00 00 00 00 FD [11:15:41]Write i2c OK [11:15:41]MH_I2C_Read... [11:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:41]Read from MH i2c: E2 [11:15:41]MH_I2C_Read... [11:15:41]Read from MH i2c: E2 0E 00 [11:15:41]MH_I2C_Read... [11:15:41]Read from MH i2c: E2 0E 00 43 3D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 3A [11:15:41]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:15:41]wFMCommunicate OK [11:15:41]SAM_PROTO_GetShiftState done [11:15:41]FM_GetShiftState done [11:15:41]req_shift_opened done [11:15:41]requested_item shift.open_date is exist - process it [11:15:41]req_shift_open_date [11:15:41]req_shift_open_date done [11:15:41]produce_requested_data done [11:15:41]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69164,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:15:41]process_action_free close_receipt [11:15:41]json_value_free [11:15:41]json_value_free done [11:15:41]process_json_proto returns [11:15:41]Send response to host [11:15:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69164,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:15:41]free response buf [11:15:41]execute_script done [11:15:41]execute_script returns [11:15:41]free content buf [11:15:41]Sock 7.Close socket [11:15:41]Sock 7.Thread stoped [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:46]accept exits with 9 [11:16:46]New connection [11:16:46]New thread 3066641764 created [11:16:46]Thread 3066785124 joined [11:16:46]Waiting for new connection... [11:16:46] Sock 9.Parse request [11:16:46]Sock 9.Check first char [11:16:46]Sock 9.First char is OK [11:16:46]request: POST /json_proto HTTP/1.0 [11:16:46]Method: POST [11:16:46]URL: /json_proto [11:16:46]Method is POST - this is cgi request [11:16:46]url: /json_proto [11:16:46]query_string will be loaded in cgi processing [11:16:46]execute_cgi json_proto POST (null) [11:16:46]execute_cgi path=json_proto method=POST [11:16:46]POST find Content-Length [11:16:46]Host: 172.17.49.132:8080 [11:16:46]Content-Length: 677 [11:16:46]Content-Type: application/json [11:16:46] [11:16:46]POST finish read [11:16:46]Found Content-Length = 677 [11:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:46]execute_script... [11:16: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)871821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:46]POST & json_proto [11:16:46]process_json_proto [11:16:46]json parsed OK: [11:16:46]protocol is kg_v1.0 [11:16:46]action value=close_receipt [11:16:46]process_action close_receipt [11:16:46]cmd_close_receipt [11:16:46]MH_GetDate [11:16:46]Write to MH i2c: F0 00 00 44 3D 70 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 09 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: F0 09 00 44 3D 00 A7 28 A6 66 E7 4B C0 64 AA [11:16:46]GetLastDocTimeStamp 1722165346 [11:16:46]current date 1722165415 [11:16:46]FM_GetShiftState [11:16:46]SAM_PROTO_GetShiftState [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 13 01 00 [11:16:46]Write to MH i2c: E2 08 00 45 3D 80 13 01 00 00 00 00 00 FF [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0E 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0E 00 45 3D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 3C [11:16:46]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:16:46]wFMCommunicate OK [11:16:46]SAM_PROTO_GetShiftState done [11:16:46]FM_GetShiftState done [11:16:46]opened in 1722127251 [11:16:46]opened+sec_in_day 1722213651 [11:16:46]quantity*price = 50036 [11:16:46]sum+1 = 50037 [11:16:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 48 28.07.2024 11:16 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69165 ФПД: 107350976391466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111655&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69165&fm=107350976391466&tin=02508201610067®Number=0000000000092638&sum=50000 [11:16:47]StoreToDocumentArchive [11:16:47]shift 429 fd 69165 [11:16:47]save to /storage/0429/doc_00069165 [11:16:47]save last doc name /storage/0429/doc_00069165 to /storage/kkm_last_doc_name [11:16:47]save OK [11:16:47]Clear old archive folders... [11:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:47]tlvbuf is 00B0C330 [11:16:47]SAM_PROTO_ClearQueue [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 09 00 00 [11:16:47]Write to MH i2c: E2 08 00 52 3D 80 09 00 00 00 00 00 00 01 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 52 3D 00 90 00 03 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]SAM_PROTO_ClearQueue done [11:16:47]KKMCreateOFDPacket [11:16:47]OFDProtocolAddRootSTLVToBuf [11:16:47]FM_MakeSignedData [11:16:47]FM_MakeSignedData [11:16:47]SAM_PROTO_SignData [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 01 02 [11:16:47]Write to MH i2c: E2 08 00 53 3D 80 0D 01 02 00 00 00 00 09 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 53 3D 00 90 00 04 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=255 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 A7 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2D 0E 01 00 35 04 06 00 61 [11:16:47]Write to MH i2c: E2 02 01 54 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 A7 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2D 0E 01 00 35 04 06 00 61 00 00 EA [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 54 3D 00 90 00 05 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=10 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 02 02 05 A2 98 D0 69 2A [11:16:47]Write to MH i2c: E2 0D 00 55 3D 80 0D 02 02 05 00 A2 98 D0 69 2A 00 00 B3 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 03 00 55 3D 00 90 00 06 [11:16:47]RAPDU: 90 00 [11:16:47]wFMCommunicate OK [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 0D 03 02 [11:16:47]Write to MH i2c: E2 08 00 56 3D 80 0D 03 02 00 00 00 00 0E [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 0B 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 0B 00 56 3D 00 02 90 E0 E0 C1 06 87 A1 90 00 50 [11:16:48]RAPDU: 02 90 E0 E0 C1 06 87 A1 90 00 [11:16:48]wFMCommunicate OK [11:16:48]SAM_PROTO_SignData done [11:16:48]FM_MakeSignedData done [11:16:48]CreateOFDProtocolMessage [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 11 00 00 [11:16:48]Write to MH i2c: E2 08 00 57 3D 80 11 00 00 00 00 00 00 0E [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 57 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 6A [11:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:16:48]wFMCommunicate OK [11:16:48]CreateOFDProtocolMessage done [11:16:48]OFDSenderStorePacket 69165 [11:16:48]StoreOFDPacket docnum=69165 [11:16:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 C4 AE 07 01 17 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 A7 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2D 0E 01 00 35 04 06 00 61 A2 98 D0 69 2A 02 90 E0 E0 C1 06 87 A1 [11:16:48]CheckFolder [11:16:48]dirname=/storage/ofd_packets [11:16:48]CheckFolder done [11:16:48]ProducePacketName [11:16:48]name=ofd_packets/00069165 [11:16:48]NVStorageSaveData ofd_packets/00069165 [11:16:48]File name is /storage/ofd_packets/00069165 [11:16:48]Write 301 bytes [11:16:48]NVStorageSaveData done [11:16:48]OFDSenderStorePacket done [11:16:48]KKMCreateOFDPacket done [11:16:48]NVStorageSaveData kkm_last_timestamp [11:16:48]File name is /storage/kkm_last_timestamp [11:16:48]Write 4 bytes [11:16:48]NVStorageSaveData done [11:16:48]ExternCall_PrintAddStr [11:16:48]wPrintStart [11:16:48]Write to MH i2c: 01 00 00 58 3D 95 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 58 3D 00 00 00 00 00 FF 0F AA [11:16:48]RasterBufferAndPrint [11:16:48]line Счет N : (1)871821 [11:16:48]line ИНН: 02508201610067 [11:16:48]line Контрольно-Кассовый Чек [11:16:48]line ПРОДАЖА [11:16:48]line ТРК (МРК, ГНК) : 42 [11:16:48]line Товар: 2710124130 [11:16:48]line Аи-92-К-5 [11:16:48]line 7.380 * 67.80 [11:16:48]line = 500.36 [11:16:48]line НДС 12% НСП 1% [11:16:48]line > о реализуемом товаре [11:16:48]line ОКРУГЛЕНИЕ: -0.36 [11:16:48]line ИТОГО: 500.00 [11:16:48]line Внесено: 500.00 [11:16:48]line СДАЧА: 0.00 [11:16:48]line НСП 1% : 4.43 [11:16:48]line НДС 12% : 53.14 [11:16:48]line Наличными: 500.00 [11:16:48]line Безнал.: 0.00 [11:16:48]line Место: АЗС № 125 "Партнер Нефть" [11:16:48]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:16:48]line СНО: Общий режим [11:16:48]line Чек 48 28.07.2024 11:16 [11:16:48]line Смена: 429 ФФД: 1.0 [11:16:48]line ЗНМ: 0300000049 [11:16:48]line РНМ: 0000000000092638 [11:16:48]line Версия ККМ: 001 [11:16:48]line ФМ: 0000000000874949 [11:16:48]line ФД: 69165 [11:16:48]line ФПД: 107350976391466 [11:16:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111655&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69165&fm=107350976391466&tin=02508201610067®Number=0000000000092638&sum=50000 [11:16:48]OFD Sender: Processing packet 69165 [packets to send 19, broken 18] [11:16:48]ProducePacketName [11:16:48]name=ofd_packets/00069165 [11:16:48]OFD Sender: To server: pG, [11:16:48]CommunicateWithHost lk.salyk.kg:30040 [11:16:48]ConnectInit lk.salyk.kg [11:16:48]written 0, free lines is 4095 [11:16:48]Connected sock=10 [11:16: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 39 34 39 0F 01 00 00 C4 AE 07 01 17 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 A7 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2D 0E 01 00 35 04 06 00 61 A2 98 D0 69 2A 02 90 E0 E0 C1 06 87 A1 [11:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 0A 81 47 00 FB A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2D 0E 01 00 F4 03 04 00 17 CF A5 66 B6 04 01 00 00 05 BD 20 D0 AA E0 E5 91 [11:16:48]CommunicateWithHost err = 0 [11:16:48]CheckOFDResponse [11:16:48]1017 (14) - 77093643461234 [11:16:48]1041 (16) - 0000000000874949 [11:16:48]1040 (4) - 69165 [11:16:48]1012 (4) - 28.07.2024 04:54 [11:16:48]1206 (1) - 0 [11:16:48]OFD Sender: Remove packet 69165 [11:16:48]ProducePacketName [11:16:48]name=ofd_packets/00069165 [11:16:48]NVStorageDeleteData [11:16:48]Write to MH i2c: 01 00 00 83 3D C0 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 83 3D 00 00 00 00 00 F1 0C C4 [11:16:48]RasterBufferAndPrint [11:16:48]line [11:16:48]line [11:16:48]line [11:16:48]line [11:16:48]line [11:16:48]written 0, free lines is 3319 [11:16:48]MH_Cut [11:16:48]Write to MH i2c: D1 01 00 8A 3D 01 99 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: D1 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: D1 01 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: D1 01 00 8A 3D 00 98 [11:16:48]Write to MH i2c: 01 00 00 8B 3D C8 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:49]OFD Sender: No OFD packet to send [11:16:49]*** Cut start [11:16:49]*** Partial cut [11:16:49]*** CUTSNS_PIN = 1 [11:16:49]*** CUTSNS_PIN = 0 [11:16:49]*** Brake cut motor [11:16:50]Read from MH i2c: 01 [11:16:50]MH_I2C_Read... [11:16:50]*** Stop cut motor [11:16:50]*** Cut end [11:16:50]Read from MH i2c: 01 07 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: 01 07 00 8B 3D 00 00 00 00 00 FF 0F DD [11:16:50]process_action close_receipt done [11:16:50]requested_data is exist [11:16:50]produce_requested_data [11:16:50]requested_item fm.sn is exist - process it [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 11 00 00 [11:16:50]Write to MH i2c: E2 08 00 8C 3D 80 11 00 00 00 00 00 00 43 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 17 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 17 00 8C 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9F [11:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:16:50]wFMCommunicate OK [11:16:50]requested_item fd.num is exist - process it [11:16:50]SAM_PROTO_GetFieldsCounters [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 13 00 00 [11:16:50]Write to MH i2c: E2 08 00 8D 3D 80 13 00 00 00 00 00 00 46 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 62 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 62 00 8D 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 2D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [11:16: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 2D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:50]wFMCommunicate OK [11:16:50]SAM_PROTO_GetFieldsCounters done [11:16:50]requested_item shift.num is exist - process it [11:16:50]requested_item shift.opened is exist - process it [11:16:50]req_shift_opened [11:16:50]FM_GetShiftState [11:16:50]SAM_PROTO_GetShiftState [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 13 01 00 [11:16:50]Write to MH i2c: E2 08 00 8E 3D 80 13 01 00 00 00 00 00 48 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 0E 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 0E 00 8E 3D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 85 [11:16:50]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:16:50]wFMCommunicate OK [11:16:50]SAM_PROTO_GetShiftState done [11:16:50]FM_GetShiftState done [11:16:50]req_shift_opened done [11:16:50]requested_item shift.open_date is exist - process it [11:16:50]req_shift_open_date [11:16:50]req_shift_open_date done [11:16:50]produce_requested_data done [11:16:50]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69165,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:16:50]process_action_free close_receipt [11:16:50]json_value_free [11:16:50]json_value_free done [11:16:50]process_json_proto returns [11:16:50]Send response to host [11:16:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69165,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:16:50]free response buf [11:16:50]execute_script done [11:16:50]execute_script returns [11:16:50]free content buf [11:16:50]Sock 9.Close socket [11:16:50]Sock 9.Thread stoped [11:16:52]accept exits with 7 [11:16:52]New connection [11:16:52]New thread 3066785124 created [11:16:52]Thread 3066641764 joined [11:16:52]Waiting for new connection... [11:16:52] Sock 7.Parse request [11:16:52]Sock 7.Check first char [11:16:52]Sock 7.First char is OK [11:16:52]request: POST /json_proto HTTP/1.0 [11:16:52]Method: POST [11:16:52]URL: /json_proto [11:16:52]Method is POST - this is cgi request [11:16:52]url: /json_proto [11:16:52]query_string will be loaded in cgi processing [11:16:52]execute_cgi json_proto POST (null) [11:16:52]execute_cgi path=json_proto method=POST [11:16:52]POST find Content-Length [11:16:52]Host: 172.17.49.132:8080 [11:16:52]Content-Length: 682 [11:16:52]Content-Type: application/json [11:16:52] [11:16:52]POST finish read [11:16:52]Found Content-Length = 682 [11:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:52]execute_script... [11:16: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)871820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:52]POST & json_proto [11:16:52]process_json_proto [11:16:52]json parsed OK: [11:16:52]protocol is kg_v1.0 [11:16:52]action value=close_receipt [11:16:52]process_action close_receipt [11:16:52]cmd_close_receipt [11:16:52]MH_GetDate [11:16:52]Write to MH i2c: F0 00 00 8F 3D BB [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: F0 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: F0 09 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: F0 09 00 8F 3D 00 AD 28 A6 66 E7 4B C0 64 FB [11:16:52]GetLastDocTimeStamp 1722165415 [11:16:52]current date 1722165421 [11:16:52]FM_GetShiftState [11:16:52]SAM_PROTO_GetShiftState [11:16:52]wFMCommunicate request_size=4 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 13 01 00 [11:16:52]Write to MH i2c: E2 08 00 90 3D 80 13 01 00 00 00 00 00 4A [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:52]Read from MH i2c: E2 0E 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 0E 00 90 3D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 87 [11:16:52]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:16:52]wFMCommunicate OK [11:16:52]SAM_PROTO_GetShiftState done [11:16:52]FM_GetShiftState done [11:16:52]opened in 1722127251 [11:16:52]opened+sec_in_day 1722213651 [11:16:52]quantity*price = 120006 [11:16:52]sum+1 = 120007 [11:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 49 28.07.2024 11:17 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69166 ФПД: 245666851121778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111701&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69166&fm=245666851121778&tin=02508201610067®Number=0000000000092638&sum=120000 [11:16:53]StoreToDocumentArchive [11:16:53]shift 429 fd 69166 [11:16:53]save to /storage/0429/doc_00069166 [11:16:53]save last doc name /storage/0429/doc_00069166 to /storage/kkm_last_doc_name [11:16:53]save OK [11:16:53]Clear old archive folders... [11:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:53]tlvbuf is 00B2BC50 [11:16:53]SAM_PROTO_ClearQueue [11:16:53]wFMCommunicate request_size=4 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 09 00 00 [11:16:53]Write to MH i2c: E2 08 00 9D 3D 80 09 00 00 00 00 00 00 4C [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:53]Read from MH i2c: E2 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 03 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 03 00 9D 3D 00 90 00 4E [11:16:53]RAPDU: 90 00 [11:16:53]wFMCommunicate OK [11:16:53]SAM_PROTO_ClearQueue done [11:16:53]KKMCreateOFDPacket [11:16:53]OFDProtocolAddRootSTLVToBuf [11:16:53]FM_MakeSignedData [11:16:53]FM_MakeSignedData [11:16:53]SAM_PROTO_SignData [11:16:53]wFMCommunicate request_size=4 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 0D 01 02 [11:16:53]Write to MH i2c: E2 08 00 9E 3D 80 0D 01 02 00 00 00 00 54 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:53]Read from MH i2c: E2 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 03 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 03 00 9E 3D 00 90 00 4F [11:16:53]RAPDU: 90 00 [11:16:53]wFMCommunicate OK [11:16:53]wFMCommunicate request_size=255 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 AD 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2E 0E 01 00 35 04 06 00 DF [11:16:53]Write to MH i2c: E2 02 01 9F 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 AD 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2E 0E 01 00 35 04 06 00 DF 00 00 2D [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:53]Read from MH i2c: E2 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 03 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 03 00 9F 3D 00 90 00 50 [11:16:53]RAPDU: 90 00 [11:16:53]wFMCommunicate OK [11:16:53]wFMCommunicate request_size=10 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 0D 02 02 05 6E C5 64 EA 72 [11:16:53]Write to MH i2c: E2 0D 00 A0 3D 80 0D 02 02 05 00 6E C5 64 EA 72 00 00 54 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:53]Read from MH i2c: E2 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 03 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 03 00 A0 3D 00 90 00 51 [11:16:53]RAPDU: 90 00 [11:16:53]wFMCommunicate OK [11:16:53]wFMCommunicate request_size=4 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 0D 03 02 [11:16:53]Write to MH i2c: E2 08 00 A1 3D 80 0D 03 02 00 00 00 00 59 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:53]Read from MH i2c: E2 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 0B 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 0B 00 A1 3D 00 87 03 86 68 F9 D5 07 B1 90 00 58 [11:16:53]RAPDU: 87 03 86 68 F9 D5 07 B1 90 00 [11:16:53]wFMCommunicate OK [11:16:53]SAM_PROTO_SignData done [11:16:53]FM_MakeSignedData done [11:16:53]CreateOFDProtocolMessage [11:16:53]wFMCommunicate request_size=4 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 11 00 00 [11:16:53]Write to MH i2c: E2 08 00 A2 3D 80 11 00 00 00 00 00 00 59 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 17 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 17 00 A2 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B5 [11:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:16:54]wFMCommunicate OK [11:16:54]CreateOFDProtocolMessage done [11:16:54]OFDSenderStorePacket 69166 [11:16:54]StoreOFDPacket docnum=69166 [11:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 FC FC 07 01 B2 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 AD 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2E 0E 01 00 35 04 06 00 DF 6E C5 64 EA 72 87 03 86 68 F9 D5 07 B1 [11:16:54]CheckFolder [11:16:54]dirname=/storage/ofd_packets [11:16:54]CheckFolder done [11:16:54]ProducePacketName [11:16:54]name=ofd_packets/00069166 [11:16:54]NVStorageSaveData ofd_packets/00069166 [11:16:54]File name is /storage/ofd_packets/00069166 [11:16:54]Write 301 bytes [11:16:54]NVStorageSaveData done [11:16:54]OFDSenderStorePacket done [11:16:54]KKMCreateOFDPacket done [11:16:54]NVStorageSaveData kkm_last_timestamp [11:16:54]File name is /storage/kkm_last_timestamp [11:16:54]Write 4 bytes [11:16:54]NVStorageSaveData done [11:16:54]ExternCall_PrintAddStr [11:16:54]wPrintStart [11:16:54]Write to MH i2c: 01 00 00 A3 3D E0 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 A3 3D 00 00 00 00 00 FF 0F F5 [11:16:54]RasterBufferAndPrint [11:16:54]line Счет N : (1)871820 [11:16:54]line ИНН: 02508201610067 [11:16:54]line Контрольно-Кассовый Чек [11:16:54]line ПРОДАЖА [11:16:54]line ТРК (МРК, ГНК) : 52 [11:16:54]line Товар: 2710124130 [11:16:54]line Аи-92-К-5 [11:16:54]line 17.700 * 67.80 [11:16:54]line = 1200.06 [11:16:54]line НДС 12% НСП 1% [11:16:54]line > о реализуемом товаре [11:16:54]line ОКРУГЛЕНИЕ: -0.06 [11:16:54]line ИТОГО: 1200.00 [11:16:54]line Внесено: 1200.00 [11:16:54]line СДАЧА: 0.00 [11:16:54]line НСП 1% : 10.62 [11:16:54]line НДС 12% : 127.44 [11:16:54]line Наличными: 1200.00 [11:16:54]line Безнал.: 0.00 [11:16:54]line Место: АЗС № 125 "Партнер Нефть" [11:16:54]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:16:54]line СНО: Общий режим [11:16:54]line Чек 49 28.07.2024 11:17 [11:16:54]line Смена: 429 ФФД: 1.0 [11:16:54]line ЗНМ: 0300000049 [11:16:54]line РНМ: 0000000000092638 [11:16:54]line Версия ККМ: 001 [11:16:54]line ФМ: 0000000000874949 [11:16:54]line ФД: 69166 [11:16:54]line ФПД: 245666851121778 [11:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111701&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69166&fm=245666851121778&tin=02508201610067®Number=0000000000092638&sum=120000 [11:16:54]written 0, free lines is 4095 [11:16:54]OFD Sender: Processing packet 69166 [packets to send 19, broken 18] [11:16:54]ProducePacketName [11:16:54]name=ofd_packets/00069166 [11:16:54]OFD Sender: To server: pG, [11:16:54]CommunicateWithHost lk.salyk.kg:30040 [11:16:54]ConnectInit lk.salyk.kg [11:16:54]Connected sock=10 [11:16: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 39 34 39 0F 01 00 00 FC FC 07 01 B2 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 AD 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2E 0E 01 00 35 04 06 00 DF 6E C5 64 EA 72 87 03 86 68 F9 D5 07 B1 [11:16:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 34 25 47 00 B1 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2E 0E 01 00 F4 03 04 00 1C CF A5 66 B6 04 01 00 00 A3 93 C3 4A DB 31 B2 72 [11:16:54]CommunicateWithHost err = 0 [11:16:54]CheckOFDResponse [11:16:54]1017 (14) - 77093643461234 [11:16:54]1041 (16) - 0000000000874949 [11:16:54]1040 (4) - 69166 [11:16:54]1012 (4) - 28.07.2024 04:54 [11:16:54]1206 (1) - 0 [11:16:54]OFD Sender: Remove packet 69166 [11:16:54]ProducePacketName [11:16:54]name=ofd_packets/00069166 [11:16:54]NVStorageDeleteData [11:16:54]Write to MH i2c: 01 00 00 CE 3D 0B [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 CE 3D 00 00 00 00 00 0B 0D 2A [11:16:54]RasterBufferAndPrint [11:16:54]line [11:16:54]line [11:16:54]line [11:16:54]line [11:16:54]line [11:16:54]written 0, free lines is 3352 [11:16:54]MH_Cut [11:16:54]Write to MH i2c: D1 01 00 D5 3D 01 E4 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: D1 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: D1 01 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: D1 01 00 D5 3D 00 E3 [11:16:54]Write to MH i2c: 01 00 00 D6 3D 13 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]OFD Sender: No OFD packet to send [11:16:55]*** Cut start [11:16:55]*** Partial cut [11:16:55]*** CUTSNS_PIN = 1 [11:16:55]*** CUTSNS_PIN = 0 [11:16:55]*** Brake cut motor [11:16:55]Read from MH i2c: 01 [11:16:55]MH_I2C_Read... [11:16:55]*** Stop cut motor [11:16:55]*** Cut end [11:16:55]Read from MH i2c: 01 07 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: 01 07 00 D6 3D 00 00 00 00 00 FF 0F 28 [11:16:55]process_action close_receipt done [11:16:55]requested_data is exist [11:16:55]produce_requested_data [11:16:55]requested_item fm.sn is exist - process it [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 11 00 00 [11:16:55]Write to MH i2c: E2 08 00 D7 3D 80 11 00 00 00 00 00 00 8E [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 17 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 17 00 D7 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 EA [11:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:16:55]wFMCommunicate OK [11:16:55]requested_item fd.num is exist - process it [11:16:55]SAM_PROTO_GetFieldsCounters [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 13 00 00 [11:16:55]Write to MH i2c: E2 08 00 D8 3D 80 13 00 00 00 00 00 00 91 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 62 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 62 00 D8 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 2E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [11:16:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 2E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:55]wFMCommunicate OK [11:16:55]SAM_PROTO_GetFieldsCounters done [11:16:55]requested_item shift.num is exist - process it [11:16:55]requested_item shift.opened is exist - process it [11:16:55]req_shift_opened [11:16:55]FM_GetShiftState [11:16:55]SAM_PROTO_GetShiftState [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 13 01 00 [11:16:55]Write to MH i2c: E2 08 00 D9 3D 80 13 01 00 00 00 00 00 93 [11:16:56]Write i2c OK [11:16:56]MH_I2C_Read... [11:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:56]Read from MH i2c: E2 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 0E 00 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 0E 00 D9 3D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 D0 [11:16:56]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:16:56]wFMCommunicate OK [11:16:56]SAM_PROTO_GetShiftState done [11:16:56]FM_GetShiftState done [11:16:56]req_shift_opened done [11:16:56]requested_item shift.open_date is exist - process it [11:16:56]req_shift_open_date [11:16:56]req_shift_open_date done [11:16:56]produce_requested_data done [11:16:56]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69166,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:16:56]process_action_free close_receipt [11:16:56]json_value_free [11:16:56]json_value_free done [11:16:56]process_json_proto returns [11:16:56]Send response to host [11:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69166,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:16:56]free response buf [11:16:56]execute_script done [11:16:56]execute_script returns [11:16:56]free content buf [11:16:56]Sock 7.Close socket [11:16:56]Sock 7.Thread stoped [11:16:59]accept exits with 9 [11:16:59]New connection [11:16:59]New thread 3066641764 created [11:16:59]Thread 3066785124 joined [11:16:59]Waiting for new connection... [11:16:59] Sock 9.Parse request [11:16:59]Sock 9.Check first char [11:16:59]Sock 9.First char is OK [11:16:59]request: POST /json_proto HTTP/1.0 [11:16:59]Method: POST [11:16:59]URL: /json_proto [11:16:59]Method is POST - this is cgi request [11:16:59]url: /json_proto [11:16:59]query_string will be loaded in cgi processing [11:16:59]execute_cgi json_proto POST (null) [11:16:59]execute_cgi path=json_proto method=POST [11:16:59]POST find Content-Length [11:16:59]Host: 172.17.49.132:8080 [11:16:59]Content-Length: 655 [11:16:59]Content-Type: application/json [11:16:59] [11:16:59]POST finish read [11:16:59]Found Content-Length = 655 [11:16:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136562", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:59]execute_script... [11:16: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)136562", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:59]POST & json_proto [11:16:59]process_json_proto [11:16:59]json parsed OK: [11:16:59]protocol is kg_v1.0 [11:16:59]action value=close_receipt [11:16:59]process_action close_receipt [11:16:59]cmd_close_receipt [11:16:59]MH_GetDate [11:16:59]Write to MH i2c: F0 00 00 DA 3D 06 [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: F0 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: F0 09 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: F0 09 00 DA 3D 00 B4 28 A6 66 E7 4B C0 64 4D [11:16:59]GetLastDocTimeStamp 1722165421 [11:16:59]current date 1722165428 [11:16:59]FM_GetShiftState [11:16:59]SAM_PROTO_GetShiftState [11:16:59]wFMCommunicate request_size=4 [11:16:59]MH_SAM_APDU [11:16:59]CAPDU: 80 13 01 00 [11:16:59]Write to MH i2c: E2 08 00 DB 3D 80 13 01 00 00 00 00 00 95 [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:59]Read from MH i2c: E2 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 0E 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 0E 00 DB 3D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 D2 [11:16:59]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:16:59]wFMCommunicate OK [11:16:59]SAM_PROTO_GetShiftState done [11:16:59]FM_GetShiftState done [11:16:59]opened in 1722127251 [11:16:59]opened+sec_in_day 1722213651 [11:16:59]quantity*price = 4500 [11:16:59]sum+1 = 4501 [11:16:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 50 28.07.2024 11:17 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69167 ФПД: 191821392452313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111708&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69167&fm=191821392452313&tin=02508201610067®Number=0000000000092638&sum=4500 0 [11:17:00]StoreToDocumentArchive [11:17:00]shift 429 fd 69167 [11:17:00]save to /storage/0429/doc_00069167 [11:17:00]save last doc name /storage/0429/doc_00069167 to /storage/kkm_last_doc_name [11:17:00]save OK [11:17:00]Clear old archive folders... [11:17:00]ProcessDocumentItem done err = 0, tmpTLVsize=282 [11:17:00]tlvbuf is 00A13860 [11:17:00]SAM_PROTO_ClearQueue [11:17:00]wFMCommunicate request_size=4 [11:17:00]MH_SAM_APDU [11:17:00]CAPDU: 80 09 00 00 [11:17:00]Write to MH i2c: E2 08 00 E8 3D 80 09 00 00 00 00 00 00 97 [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:00]Read from MH i2c: E2 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 03 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 03 00 E8 3D 00 90 00 99 [11:17:00]RAPDU: 90 00 [11:17:00]wFMCommunicate OK [11:17:00]SAM_PROTO_ClearQueue done [11:17:00]KKMCreateOFDPacket [11:17:00]OFDProtocolAddRootSTLVToBuf [11:17:00]FM_MakeSignedData [11:17:00]FM_MakeSignedData [11:17:00]SAM_PROTO_SignData [11:17:00]wFMCommunicate request_size=4 [11:17:00]MH_SAM_APDU [11:17:00]CAPDU: 80 0D 01 02 [11:17:00]Write to MH i2c: E2 08 00 E9 3D 80 0D 01 02 00 00 00 00 9F [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:00]Read from MH i2c: E2 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 03 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 03 00 E9 3D 00 90 00 9A [11:17:00]RAPDU: 90 00 [11:17:00]wFMCommunicate OK [11:17:00]wFMCommunicate request_size=255 [11:17:00]MH_SAM_APDU [11:17:00]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B4 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 [11:17:00]Write to MH i2c: E2 02 01 EA 3D 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B4 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 00 00 4F [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:00]Read from MH i2c: E2 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 03 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 03 00 EA 3D 00 90 00 9B [11:17:00]RAPDU: 90 00 [11:17:00]wFMCommunicate OK [11:17:00]wFMCommunicate request_size=41 [11:17:00]MH_SAM_APDU [11:17:00]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2F 0E 01 00 35 04 06 00 AE 75 E5 F5 1A D9 [11:17:00]Write to MH i2c: E2 2C 00 EB 3D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2F 0E 01 00 35 04 06 00 AE 75 E5 F5 1A D9 00 00 A8 [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:00]Read from MH i2c: E2 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 03 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 03 00 EB 3D 00 90 00 9C [11:17:00]RAPDU: 90 00 [11:17:00]wFMCommunicate OK [11:17:00]wFMCommunicate request_size=4 [11:17:00]MH_SAM_APDU [11:17:00]CAPDU: 80 0D 03 02 [11:17:00]Write to MH i2c: E2 08 00 EC 3D 80 0D 03 02 00 00 00 00 A4 [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:00]Read from MH i2c: E2 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 0B 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 0B 00 EC 3D 00 E0 B5 6B 12 3B 97 B7 AD 90 00 ED [11:17:00]RAPDU: E0 B5 6B 12 3B 97 B7 AD 90 00 [11:17:00]wFMCommunicate OK [11:17:00]SAM_PROTO_SignData done [11:17:00]FM_MakeSignedData done [11:17:00]CreateOFDProtocolMessage [11:17:00]wFMCommunicate request_size=4 [11:17:00]MH_SAM_APDU [11:17:00]CAPDU: 80 11 00 00 [11:17:00]Write to MH i2c: E2 08 00 ED 3D 80 11 00 00 00 00 00 00 A4 [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:01]Read from MH i2c: E2 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 17 00 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: E2 17 00 ED 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 00 [11:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:17:01]wFMCommunicate OK [11:17:01]CreateOFDProtocolMessage done [11:17:01]OFDSenderStorePacket 69167 [11:17:01]StoreOFDPacket docnum=69167 [11:17:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2E 01 00 00 F0 F3 26 01 84 0D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B4 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2F 0E 01 00 35 04 06 00 AE 75 E5 F5 1A D9 E0 B5 6B 12 3B 97 B7 AD [11:17:01]CheckFolder [11:17:01]dirname=/storage/ofd_packets [11:17:01]CheckFolder done [11:17:01]ProducePacketName [11:17:01]name=ofd_packets/00069167 [11:17:01]NVStorageSaveData ofd_packets/00069167 [11:17:01]File name is /storage/ofd_packets/00069167 [11:17:01]Write 332 bytes [11:17:01]NVStorageSaveData done [11:17:01]OFDSenderStorePacket done [11:17:01]KKMCreateOFDPacket done [11:17:01]NVStorageSaveData kkm_last_timestamp [11:17:01]File name is /storage/kkm_last_timestamp [11:17:01]Write 4 bytes [11:17:01]NVStorageSaveData done [11:17:01]ExternCall_PrintAddStr [11:17:01]wPrintStart [11:17:01]Write to MH i2c: 01 00 00 EE 3D 2B [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: 01 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: 01 07 00 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: 01 07 00 EE 3D 00 00 00 00 00 FF 0F 40 [11:17:01]RasterBufferAndPrint [11:17:01]line Счет N : (3)136562 [11:17:01]line ИНН: 02508201610067 [11:17:01]line Контрольно-Кассовый Чек [11:17:01]line ПРОДАЖА [11:17:01]line Товар: 4870001159955 [11:17:01]line Вода ASU пит н.газ ПЭТ 1л [11:17:01]line 1.000 * 45.00 [11:17:01]line = 45.00 [11:17:01]line НДС 12% НСП 1% [11:17:01]line > о реализуемом товаре [11:17:01]line ИТОГО: 45.00 [11:17:01]line НСП 1% : 0.40 [11:17:01]line НДС 12% : 4.78 [11:17:01]line Наличными: 45.00 [11:17:01]line Безнал.: 0.00 [11:17:01]line Место: АЗС № 125 "Партнер Нефть" [11:17:01]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:17:01]line СНО: Общий режим [11:17:01]line Чек 50 28.07.2024 11:17 [11:17:01]line Смена: 429 ФФД: 1.0 [11:17:01]line ЗНМ: 0300000049 [11:17:01]line РНМ: 0000000000092638 [11:17:01]line Версия ККМ: 001 [11:17:01]line ФМ: 0000000000874949 [11:17:01]line ФД: 69167 [11:17:01]line ФПД: 191821392452313 [11:17:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111708&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69167&fm=191821392452313&tin=02508201610067®Number=0000000000092638&sum=4500 [11:17:01]line 0 [11:17:01]written 0, free lines is 4095 [11:17:01]OFD Sender: Processing packet 69167 [packets to send 19, broken 18] [11:17:01]ProducePacketName [11:17:01]name=ofd_packets/00069167 [11:17:01]OFD Sender: To server: pG, [11:17:01]CommunicateWithHost lk.salyk.kg:30040 [11:17:01]ConnectInit lk.salyk.kg [11:17:01]Connected sock=10 [11:17: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 39 34 39 2E 01 00 00 F0 F3 26 01 84 0D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B4 28 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 2F 0E 01 00 35 04 06 00 AE 75 E5 F5 1A D9 E0 B5 6B 12 3B 97 B7 AD [11:17:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 A3 B4 47 00 30 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 39 34 39 10 04 04 00 2F 0E 01 00 F4 03 04 00 24 CF A5 66 B6 04 01 00 00 CE DD CE 6F F6 E0 CA 9E [11:17:01]CommunicateWithHost err = 0 [11:17:01]CheckOFDResponse [11:17:01]1017 (14) - 77093643461234 [11:17:01]1041 (16) - 0000000000874949 [11:17:01]1040 (4) - 69167 [11:17:01]1012 (4) - 28.07.2024 04:55 [11:17:01]1206 (1) - 0 [11:17:01]OFD Sender: Remove packet 69167 [11:17:01]ProducePacketName [11:17:01]name=ofd_packets/00069167 [11:17:01]NVStorageDeleteData [11:17:01]Write to MH i2c: 01 00 00 16 3E 54 [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: 01 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: 01 07 00 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: 01 07 00 16 3E 00 00 00 00 00 1D 0D 85 [11:17:01]RasterBufferAndPrint [11:17:01]line [11:17:01]line [11:17:01]line [11:17:01]line [11:17:01]line [11:17:01]written 0, free lines is 3379 [11:17:01]MH_Cut [11:17:01]Write to MH i2c: D1 01 00 1D 3E 01 2D [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: D1 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: D1 01 00 [11:17:01]MH_I2C_Read... [11:17:01]Read from MH i2c: D1 01 00 1D 3E 00 2C [11:17:01]Write to MH i2c: 01 00 00 1E 3E 5C [11:17:01]Write i2c OK [11:17:01]MH_I2C_Read... [11:17:02]OFD Sender: No OFD packet to send [11:17:02]*** Cut start [11:17:02]*** Partial cut [11:17:02]*** CUTSNS_PIN = 1 [11:17:02]*** CUTSNS_PIN = 0 [11:17:02]*** Brake cut motor [11:17:03]Read from MH i2c: 01 [11:17:03]MH_I2C_Read... [11:17:03]*** Stop cut motor [11:17:03]*** Cut end [11:17:03]Read from MH i2c: 01 07 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 1E 3E 00 00 00 00 00 FF 0F 71 [11:17:03]process_action close_receipt done [11:17:03]requested_data is exist [11:17:03]produce_requested_data [11:17:03]requested_item fm.sn is exist - process it [11:17:03]wFMCommunicate request_size=4 [11:17:03]MH_SAM_APDU [11:17:03]CAPDU: 80 11 00 00 [11:17:03]Write to MH i2c: E2 08 00 1F 3E 80 11 00 00 00 00 00 00 D7 [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 17 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 17 00 1F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 33 [11:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:17:03]wFMCommunicate OK [11:17:03]requested_item fd.num is exist - process it [11:17:03]SAM_PROTO_GetFieldsCounters [11:17:03]wFMCommunicate request_size=4 [11:17:03]MH_SAM_APDU [11:17:03]CAPDU: 80 13 00 00 [11:17:03]Write to MH i2c: E2 08 00 20 3E 80 13 00 00 00 00 00 00 DA [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 62 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 62 00 20 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 2F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [11:17: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 2F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:03]wFMCommunicate OK [11:17:03]SAM_PROTO_GetFieldsCounters done [11:17:03]requested_item shift.num is exist - process it [11:17:03]requested_item shift.opened is exist - process it [11:17:03]req_shift_opened [11:17:03]FM_GetShiftState [11:17:03]SAM_PROTO_GetShiftState [11:17:03]wFMCommunicate request_size=4 [11:17:03]MH_SAM_APDU [11:17:03]CAPDU: 80 13 01 00 [11:17:03]Write to MH i2c: E2 08 00 21 3E 80 13 01 00 00 00 00 00 DC [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 0E 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 0E 00 21 3E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 19 [11:17:03]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:17:03]wFMCommunicate OK [11:17:03]SAM_PROTO_GetShiftState done [11:17:03]FM_GetShiftState done [11:17:03]req_shift_opened done [11:17:03]requested_item shift.open_date is exist - process it [11:17:03]req_shift_open_date [11:17:03]req_shift_open_date done [11:17:03]produce_requested_data done [11:17:03]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69167,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:17:03]process_action_free close_receipt [11:17:03]json_value_free [11:17:03]json_value_free done [11:17:03]process_json_proto returns [11:17:03]Send response to host [11:17:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69167,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:17:03]free response buf [11:17:03]execute_script done [11:17:03]execute_script returns [11:17:03]free content buf [11:17:03]Sock 9.Close socket [11:17:03]Sock 9.Thread stoped [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:37]accept exits with 7 [11:18:37]New connection [11:18:37]New thread 3066785124 created [11:18:37]Thread 3066641764 joined [11:18:37]Waiting for new connection... [11:18:37] Sock 7.Parse request [11:18:37]Sock 7.Check first char [11:18:37]Sock 7.First char is OK [11:18:37]request: POST /json_proto HTTP/1.0 [11:18:37]Method: POST [11:18:37]URL: /json_proto [11:18:37]Method is POST - this is cgi request [11:18:37]url: /json_proto [11:18:37]query_string will be loaded in cgi processing [11:18:37]execute_cgi json_proto POST (null) [11:18:37]execute_cgi path=json_proto method=POST [11:18:37]POST find Content-Length [11:18:37]Host: 172.17.49.132:8080 [11:18:37]Content-Length: 621 [11:18:37]Content-Type: application/json [11:18:37] [11:18:37]POST finish read [11:18:37]Found Content-Length = 621 [11:18:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136563", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:37]execute_script... [11:18: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)136563", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:37]POST & json_proto [11:18:37]process_json_proto [11:18:37]json parsed OK: [11:18:37]protocol is kg_v1.0 [11:18:37]action value=close_receipt [11:18:37]process_action close_receipt [11:18:37]cmd_close_receipt [11:18:37]MH_GetDate [11:18:37]Write to MH i2c: F0 00 00 22 3E 4F [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: F0 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: F0 09 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: F0 09 00 22 3E 00 16 29 A6 66 E7 4B C0 64 F9 [11:18:37]GetLastDocTimeStamp 1722165428 [11:18:37]current date 1722165526 [11:18:37]FM_GetShiftState [11:18:37]SAM_PROTO_GetShiftState [11:18:37]wFMCommunicate request_size=4 [11:18:37]MH_SAM_APDU [11:18:37]CAPDU: 80 13 01 00 [11:18:37]Write to MH i2c: E2 08 00 23 3E 80 13 01 00 00 00 00 00 DE [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:37]Read from MH i2c: E2 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 0E 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 0E 00 23 3E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 1B [11:18:37]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:18:37]wFMCommunicate OK [11:18:37]SAM_PROTO_GetShiftState done [11:18:37]FM_GetShiftState done [11:18:37]opened in 1722127251 [11:18:37]opened+sec_in_day 1722213651 [11:18:37]quantity*price = 14000 [11:18:37]sum+1 = 14001 [11:18:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 51 28.07.2024 11:18 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69168 ФПД: 75727596717222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111846&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69168&fm=75727596717222&tin=02508201610067®Number=0000000000092638&sum=14000 0 [11:18:38]StoreToDocumentArchive [11:18:38]shift 429 fd 69168 [11:18:38]save to /storage/0429/doc_00069168 [11:18:38]save last doc name /storage/0429/doc_00069168 to /storage/kkm_last_doc_name [11:18:38]save OK [11:18:38]Clear old archive folders... [11:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:18:38]tlvbuf is 00A48BC0 [11:18:38]SAM_PROTO_ClearQueue [11:18:38]wFMCommunicate request_size=4 [11:18:38]MH_SAM_APDU [11:18:38]CAPDU: 80 09 00 00 [11:18:38]Write to MH i2c: E2 08 00 30 3E 80 09 00 00 00 00 00 00 E0 [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:38]Read from MH i2c: E2 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 30 3E 00 90 00 E2 [11:18:38]RAPDU: 90 00 [11:18:38]wFMCommunicate OK [11:18:38]SAM_PROTO_ClearQueue done [11:18:38]KKMCreateOFDPacket [11:18:38]OFDProtocolAddRootSTLVToBuf [11:18:38]FM_MakeSignedData [11:18:38]FM_MakeSignedData [11:18:38]SAM_PROTO_SignData [11:18:38]wFMCommunicate request_size=4 [11:18:38]MH_SAM_APDU [11:18:38]CAPDU: 80 0D 01 02 [11:18:38]Write to MH i2c: E2 08 00 31 3E 80 0D 01 02 00 00 00 00 E8 [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:38]Read from MH i2c: E2 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 31 3E 00 90 00 E3 [11:18:38]RAPDU: 90 00 [11:18:38]wFMCommunicate OK [11:18:38]wFMCommunicate request_size=255 [11:18:38]MH_SAM_APDU [11:18: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 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 16 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 [11:18:38]Write to MH i2c: E2 02 01 32 3E 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 16 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 00 00 0C [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 32 3E 00 90 00 E4 [11:18:39]RAPDU: 90 00 [11:18:39]wFMCommunicate OK [11:18:39]wFMCommunicate request_size=32 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 39 10 04 04 00 30 0E 01 00 35 04 06 00 44 DF B4 80 84 A6 [11:18:39]Write to MH i2c: E2 23 00 33 3E 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 39 10 04 04 00 30 0E 01 00 35 04 06 00 44 DF B4 80 84 A6 00 00 11 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 33 3E 00 90 00 E5 [11:18:39]RAPDU: 90 00 [11:18:39]wFMCommunicate OK [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 0D 03 02 [11:18:39]Write to MH i2c: E2 08 00 34 3E 80 0D 03 02 00 00 00 00 ED [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 0B 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 0B 00 34 3E 00 B5 05 94 63 12 4A 03 8D 90 00 8B [11:18:39]RAPDU: B5 05 94 63 12 4A 03 8D 90 00 [11:18:39]wFMCommunicate OK [11:18:39]SAM_PROTO_SignData done [11:18:39]FM_MakeSignedData done [11:18:39]CreateOFDProtocolMessage [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 11 00 00 [11:18:39]Write to MH i2c: E2 08 00 35 3E 80 11 00 00 00 00 00 00 ED [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 17 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 17 00 35 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 49 [11:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:18:39]wFMCommunicate OK [11:18:39]CreateOFDProtocolMessage done [11:18:39]OFDSenderStorePacket 69168 [11:18:39]StoreOFDPacket docnum=69168 [11:18:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 F4 AC 1D 01 64 BA 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 16 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 30 0E 01 00 35 04 06 00 44 DF B4 80 84 A6 B5 05 94 63 12 4A 03 8D [11:18:39]CheckFolder [11:18:39]dirname=/storage/ofd_packets [11:18:39]CheckFolder done [11:18:39]ProducePacketName [11:18:39]name=ofd_packets/00069168 [11:18:39]NVStorageSaveData ofd_packets/00069168 [11:18:39]File name is /storage/ofd_packets/00069168 [11:18:39]Write 323 bytes [11:18:39]NVStorageSaveData done [11:18:39]OFDSenderStorePacket done [11:18:39]KKMCreateOFDPacket done [11:18:39]NVStorageSaveData kkm_last_timestamp [11:18:39]File name is /storage/kkm_last_timestamp [11:18:39]Write 4 bytes [11:18:39]NVStorageSaveData done [11:18:39]ExternCall_PrintAddStr [11:18:39]wPrintStart [11:18:39]Write to MH i2c: 01 00 00 36 3E 74 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 36 3E 00 00 00 00 00 FF 0F 89 [11:18:39]RasterBufferAndPrint [11:18:39]line Счет N : (3)136563 [11:18:39]line ИНН: 02508201610067 [11:18:39]line Контрольно-Кассовый Чек [11:18:39]line ПРОДАЖА [11:18:39]line Товар: 48743570 [11:18:39]line Сигареты Winston XStyle Blue [11:18:39]line 1.000 * 140.00 [11:18:39]line = 140.00 [11:18:39]line НДС 12% НСП 1% [11:18:39]line > о реализуемом товаре [11:18:39]line ИТОГО: 140.00 [11:18:39]line НСП 1% : 1.24 [11:18:39]line НДС 12% : 14.87 [11:18:39]line Наличными: 140.00 [11:18:39]line Безнал.: 0.00 [11:18:39]line Место: АЗС № 125 "Партнер Нефть" [11:18:39]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:18:39]line СНО: Общий режим [11:18:39]line Чек 51 28.07.2024 11:18 [11:18:39]line Смена: 429 ФФД: 1.0 [11:18:39]line ЗНМ: 0300000049 [11:18:39]line РНМ: 0000000000092638 [11:18:39]line Версия ККМ: 001 [11:18:39]line ФМ: 0000000000874949 [11:18:39]line ФД: 69168 [11:18:39]line ФПД: 75727596717222 [11:18:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111846&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69168&fm=75727596717222&tin=02508201610067®Number=0000000000092638&sum=14000 [11:18:39]line 0 [11:18:39]OFD Sender: Processing packet 69168 [packets to send 19, broken 18] [11:18:39]ProducePacketName [11:18:39]name=ofd_packets/00069168 [11:18:39]OFD Sender: To server: pG, [11:18:39]CommunicateWithHost lk.salyk.kg:30040 [11:18:39]ConnectInit lk.salyk.kg [11:18:39]written 0, free lines is 4095 [11:18:39]Connected sock=10 [11:18: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 39 34 39 25 01 00 00 F4 AC 1D 01 64 BA 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 16 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 30 0E 01 00 35 04 06 00 44 DF B4 80 84 A6 B5 05 94 63 12 4A 03 8D [11:18:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 C7 CE 47 00 0D 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 30 0E 01 00 F4 03 04 00 86 CF A5 66 B6 04 01 00 00 89 E6 09 17 62 59 46 82 [11:18:39]CommunicateWithHost err = 0 [11:18:39]CheckOFDResponse [11:18:39]1017 (14) - 77093643461234 [11:18:39]1041 (16) - 0000000000874949 [11:18:39]1040 (4) - 69168 [11:18:39]1012 (4) - 28.07.2024 04:56 [11:18:39]1206 (1) - 0 [11:18:39]OFD Sender: Remove packet 69168 [11:18:39]ProducePacketName [11:18:39]name=ofd_packets/00069168 [11:18:39]NVStorageDeleteData [11:18:39]Write to MH i2c: 01 00 00 5E 3E 9C [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 5E 3E 00 00 00 00 00 13 0D C3 [11:18:39]RasterBufferAndPrint [11:18:39]line [11:18:39]line [11:18:39]line [11:18:39]line [11:18:39]line [11:18:39]written 0, free lines is 3353 [11:18:39]MH_Cut [11:18:39]Write to MH i2c: D1 01 00 65 3E 01 75 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: D1 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: D1 01 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: D1 01 00 65 3E 00 74 [11:18:39]Write to MH i2c: 01 00 00 66 3E A4 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:40]OFD Sender: No OFD packet to send [11:18:40]*** Cut start [11:18:40]*** Partial cut [11:18:40]*** CUTSNS_PIN = 1 [11:18:40]*** CUTSNS_PIN = 0 [11:18:40]*** Brake cut motor [11:18:41]Read from MH i2c: 01 [11:18:41]MH_I2C_Read... [11:18:41]*** Stop cut motor [11:18:41]*** Cut end [11:18:41]Read from MH i2c: 01 07 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: 01 07 00 66 3E 00 00 00 00 00 FF 0F B9 [11:18:41]process_action close_receipt done [11:18:41]requested_data is exist [11:18:41]produce_requested_data [11:18:41]requested_item fm.sn is exist - process it [11:18:41]wFMCommunicate request_size=4 [11:18:41]MH_SAM_APDU [11:18:41]CAPDU: 80 11 00 00 [11:18:41]Write to MH i2c: E2 08 00 67 3E 80 11 00 00 00 00 00 00 1F [11:18:41]Write i2c OK [11:18:41]MH_I2C_Read... [11:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:41]Read from MH i2c: E2 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 17 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 17 00 67 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 7B [11:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:18:41]wFMCommunicate OK [11:18:41]requested_item fd.num is exist - process it [11:18:41]SAM_PROTO_GetFieldsCounters [11:18:41]wFMCommunicate request_size=4 [11:18:41]MH_SAM_APDU [11:18:41]CAPDU: 80 13 00 00 [11:18:41]Write to MH i2c: E2 08 00 68 3E 80 13 00 00 00 00 00 00 22 [11:18:41]Write i2c OK [11:18:41]MH_I2C_Read... [11:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:41]Read from MH i2c: E2 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 62 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 62 00 68 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 30 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [11:18: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 30 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:41]wFMCommunicate OK [11:18:41]SAM_PROTO_GetFieldsCounters done [11:18:41]requested_item shift.num is exist - process it [11:18:41]requested_item shift.opened is exist - process it [11:18:41]req_shift_opened [11:18:41]FM_GetShiftState [11:18:41]SAM_PROTO_GetShiftState [11:18:41]wFMCommunicate request_size=4 [11:18:41]MH_SAM_APDU [11:18:41]CAPDU: 80 13 01 00 [11:18:41]Write to MH i2c: E2 08 00 69 3E 80 13 01 00 00 00 00 00 24 [11:18:41]Write i2c OK [11:18:41]MH_I2C_Read... [11:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:41]Read from MH i2c: E2 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 0E 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 0E 00 69 3E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 61 [11:18:41]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:18:41]wFMCommunicate OK [11:18:41]SAM_PROTO_GetShiftState done [11:18:41]FM_GetShiftState done [11:18:41]req_shift_opened done [11:18:41]requested_item shift.open_date is exist - process it [11:18:41]req_shift_open_date [11:18:41]req_shift_open_date done [11:18:41]produce_requested_data done [11:18:41]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69168,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:18:41]process_action_free close_receipt [11:18:41]json_value_free [11:18:41]json_value_free done [11:18:41]process_json_proto returns [11:18:41]Send response to host [11:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69168,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:18:41]free response buf [11:18:41]execute_script done [11:18:41]execute_script returns [11:18:41]free content buf [11:18:41]Sock 7.Close socket [11:18:41]Sock 7.Thread stoped [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:09]accept exits with 9 [11:19:09]New connection [11:19:09]New thread 3066641764 created [11:19:09]Thread 3066785124 joined [11:19:09]Waiting for new connection... [11:19:09] Sock 9.Parse request [11:19:09]Sock 9.Check first char [11:19:09]Sock 9.First char is OK [11:19:09]request: POST /json_proto HTTP/1.0 [11:19:09]Method: POST [11:19:09]URL: /json_proto [11:19:09]Method is POST - this is cgi request [11:19:09]url: /json_proto [11:19:09]query_string will be loaded in cgi processing [11:19:09]execute_cgi json_proto POST (null) [11:19:09]execute_cgi path=json_proto method=POST [11:19:09]POST find Content-Length [11:19:09]Host: 172.17.49.132:8080 [11:19:09]Content-Length: 677 [11:19:09]Content-Type: application/json [11:19:09] [11:19:09]POST finish read [11:19:09]Found Content-Length = 677 [11:19:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:09]execute_script... [11:19:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:09]POST & json_proto [11:19:09]process_json_proto [11:19:09]json parsed OK: [11:19:09]protocol is kg_v1.0 [11:19:09]action value=close_receipt [11:19:09]process_action close_receipt [11:19:09]cmd_close_receipt [11:19:09]MH_GetDate [11:19:09]Write to MH i2c: F0 00 00 6A 3E 97 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: F0 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: F0 09 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: F0 09 00 6A 3E 00 36 29 A6 66 E7 4B C0 64 61 [11:19:09]GetLastDocTimeStamp 1722165526 [11:19:09]current date 1722165558 [11:19:09]FM_GetShiftState [11:19:09]SAM_PROTO_GetShiftState [11:19:09]wFMCommunicate request_size=4 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 13 01 00 [11:19:09]Write to MH i2c: E2 08 00 6B 3E 80 13 01 00 00 00 00 00 26 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 0E 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 0E 00 6B 3E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 63 [11:19:09]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:19:09]wFMCommunicate OK [11:19:09]SAM_PROTO_GetShiftState done [11:19:09]FM_GetShiftState done [11:19:09]opened in 1722127251 [11:19:09]opened+sec_in_day 1722213651 [11:19:09]quantity*price = 55053 [11:19:09]sum+1 = 55055 [11:19:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 52 28.07.2024 11:19 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69169 ФПД: 222496813145712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111918&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69169&fm=222496813145712&tin=02508201610067®Number=0000000000092638&sum=55000 [11:19:11]StoreToDocumentArchive [11:19:11]shift 429 fd 69169 [11:19:11]save to /storage/0429/doc_00069169 [11:19:11]save last doc name /storage/0429/doc_00069169 to /storage/kkm_last_doc_name [11:19:11]save OK [11:19:11]Clear old archive folders... [11:19:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:11]tlvbuf is 00A7E8D0 [11:19:11]SAM_PROTO_ClearQueue [11:19:11]wFMCommunicate request_size=4 [11:19:11]MH_SAM_APDU [11:19:11]CAPDU: 80 09 00 00 [11:19:11]Write to MH i2c: E2 08 00 78 3E 80 09 00 00 00 00 00 00 28 [11:19:11]Write i2c OK [11:19:11]MH_I2C_Read... [11:19:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:11]Read from MH i2c: E2 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 03 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 03 00 78 3E 00 90 00 2A [11:19:11]RAPDU: 90 00 [11:19:11]wFMCommunicate OK [11:19:11]SAM_PROTO_ClearQueue done [11:19:11]KKMCreateOFDPacket [11:19:11]OFDProtocolAddRootSTLVToBuf [11:19:11]FM_MakeSignedData [11:19:11]FM_MakeSignedData [11:19:11]SAM_PROTO_SignData [11:19:11]wFMCommunicate request_size=4 [11:19:11]MH_SAM_APDU [11:19:11]CAPDU: 80 0D 01 02 [11:19:11]Write to MH i2c: E2 08 00 79 3E 80 0D 01 02 00 00 00 00 30 [11:19:11]Write i2c OK [11:19:11]MH_I2C_Read... [11:19:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:11]Read from MH i2c: E2 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 03 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 03 00 79 3E 00 90 00 2B [11:19:11]RAPDU: 90 00 [11:19:11]wFMCommunicate OK [11:19:11]wFMCommunicate request_size=255 [11:19:11]MH_SAM_APDU [11:19:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 36 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 31 0E 01 00 35 04 06 00 CA [11:19:11]Write to MH i2c: E2 02 01 7A 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 36 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 31 0E 01 00 35 04 06 00 CA 00 00 1F [11:19:11]Write i2c OK [11:19:11]MH_I2C_Read... [11:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:11]Read from MH i2c: E2 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 03 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 03 00 7A 3E 00 90 00 2C [11:19:11]RAPDU: 90 00 [11:19:11]wFMCommunicate OK [11:19:11]wFMCommunicate request_size=10 [11:19:11]MH_SAM_APDU [11:19:11]CAPDU: 80 0D 02 02 05 5C 13 82 DE 70 [11:19:11]Write to MH i2c: E2 0D 00 7B 3E 80 0D 02 02 05 00 5C 13 82 DE 70 00 00 7C [11:19:11]Write i2c OK [11:19:11]MH_I2C_Read... [11:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:11]Read from MH i2c: E2 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 03 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 03 00 7B 3E 00 90 00 2D [11:19:11]RAPDU: 90 00 [11:19:11]wFMCommunicate OK [11:19:11]wFMCommunicate request_size=4 [11:19:11]MH_SAM_APDU [11:19:11]CAPDU: 80 0D 03 02 [11:19:11]Write to MH i2c: E2 08 00 7C 3E 80 0D 03 02 00 00 00 00 35 [11:19:11]Write i2c OK [11:19:11]MH_I2C_Read... [11:19:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:11]Read from MH i2c: E2 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 0B 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 0B 00 7C 3E 00 0F AA 31 FA 7D 50 B7 7A 90 00 18 [11:19:11]RAPDU: 0F AA 31 FA 7D 50 B7 7A 90 00 [11:19:11]wFMCommunicate OK [11:19:11]SAM_PROTO_SignData done [11:19:11]FM_MakeSignedData done [11:19:11]CreateOFDProtocolMessage [11:19:11]wFMCommunicate request_size=4 [11:19:11]MH_SAM_APDU [11:19:11]CAPDU: 80 11 00 00 [11:19:11]Write to MH i2c: E2 08 00 7D 3E 80 11 00 00 00 00 00 00 35 [11:19:11]Write i2c OK [11:19:11]MH_I2C_Read... [11:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:11]Read from MH i2c: E2 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 17 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 17 00 7D 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 91 [11:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:19:11]wFMCommunicate OK [11:19:11]CreateOFDProtocolMessage done [11:19:11]OFDSenderStorePacket 69169 [11:19:11]StoreOFDPacket docnum=69169 [11:19:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 83 AB 07 01 AA 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 36 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 31 0E 01 00 35 04 06 00 CA 5C 13 82 DE 70 0F AA 31 FA 7D 50 B7 7A [11:19:11]CheckFolder [11:19:11]dirname=/storage/ofd_packets [11:19:11]CheckFolder done [11:19:11]ProducePacketName [11:19:11]name=ofd_packets/00069169 [11:19:11]NVStorageSaveData ofd_packets/00069169 [11:19:11]File name is /storage/ofd_packets/00069169 [11:19:11]Write 301 bytes [11:19:11]NVStorageSaveData done [11:19:11]OFDSenderStorePacket done [11:19:11]KKMCreateOFDPacket done [11:19:11]NVStorageSaveData kkm_last_timestamp [11:19:11]File name is /storage/kkm_last_timestamp [11:19:11]Write 4 bytes [11:19:11]NVStorageSaveData done [11:19:11]ExternCall_PrintAddStr [11:19:11]wPrintStart [11:19:11]Write to MH i2c: 01 00 00 7E 3E BC [11:19:11]Write i2c OK [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: 01 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: 01 07 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: 01 07 00 7E 3E 00 00 00 00 00 FF 0F D1 [11:19:11]RasterBufferAndPrint [11:19:11]line Счет N : (1)871824 [11:19:11]line ИНН: 02508201610067 [11:19:11]line Контрольно-Кассовый Чек [11:19:11]line ПРОДАЖА [11:19:11]line ТРК (МРК, ГНК) : 42 [11:19:11]line Товар: 2710124130 [11:19:11]line Аи-92-К-5 [11:19:11]line 8.120 * 67.80 [11:19:11]line = 550.54 [11:19:11]line НДС 12% НСП 1% [11:19:11]line > о реализуемом товаре [11:19:11]line ОКРУГЛЕНИЕ: -0.54 [11:19:11]line ИТОГО: 550.00 [11:19:11]line Внесено: 550.00 [11:19:11]line СДАЧА: 0.00 [11:19:11]line НСП 1% : 4.87 [11:19:11]line НДС 12% : 58.46 [11:19:11]line Наличными: 550.00 [11:19:11]line Безнал.: 0.00 [11:19:11]line Место: АЗС № 125 "Партнер Нефть" [11:19:11]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:19:11]line СНО: Общий режим [11:19:11]line Чек 52 28.07.2024 11:19 [11:19:11]line Смена: 429 ФФД: 1.0 [11:19:11]line ЗНМ: 0300000049 [11:19:11]line РНМ: 0000000000092638 [11:19:11]line Версия ККМ: 001 [11:19:11]line ФМ: 0000000000874949 [11:19:11]line ФД: 69169 [11:19:11]line ФПД: 222496813145712 [11:19:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111918&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69169&fm=222496813145712&tin=02508201610067®Number=0000000000092638&sum=55000 [11:19:11]written 0, free lines is 4095 [11:19:11]OFD Sender: Processing packet 69169 [packets to send 19, broken 18] [11:19:11]ProducePacketName [11:19:11]name=ofd_packets/00069169 [11:19:11]OFD Sender: To server: pG, [11:19:11]CommunicateWithHost lk.salyk.kg:30040 [11:19:11]ConnectInit lk.salyk.kg [11:19:11]Connected sock=7 [11:19: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 39 34 39 0F 01 00 00 83 AB 07 01 AA 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 36 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 31 0E 01 00 35 04 06 00 CA 5C 13 82 DE 70 0F AA 31 FA 7D 50 B7 7A [11:19:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 8D 66 47 00 99 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 31 0E 01 00 F4 03 04 00 A6 CF A5 66 B6 04 01 00 00 72 BF B8 99 50 BA BF D1 [11:19:12]CommunicateWithHost err = 0 [11:19:12]CheckOFDResponse [11:19:12]1017 (14) - 77093643461234 [11:19:12]1041 (16) - 0000000000874949 [11:19:12]1040 (4) - 69169 [11:19:12]1012 (4) - 28.07.2024 04:57 [11:19:12]1206 (1) - 0 [11:19:12]OFD Sender: Remove packet 69169 [11:19:12]ProducePacketName [11:19:12]name=ofd_packets/00069169 [11:19:12]NVStorageDeleteData [11:19:12]Write to MH i2c: 01 00 00 A9 3E E7 [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: 01 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: 01 07 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: 01 07 00 A9 3E 00 00 00 00 00 01 0D FC [11:19:12]RasterBufferAndPrint [11:19:12]line [11:19:12]line [11:19:12]line [11:19:12]line [11:19:12]line [11:19:12]written 0, free lines is 3338 [11:19:12]MH_Cut [11:19:12]Write to MH i2c: D1 01 00 B0 3E 01 C0 [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: D1 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: D1 01 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: D1 01 00 B0 3E 00 BF [11:19:12]Write to MH i2c: 01 00 00 B1 3E EF [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]OFD Sender: No OFD packet to send [11:19:13]*** Cut start [11:19:13]*** Partial cut [11:19:13]*** CUTSNS_PIN = 1 [11:19:13]*** CUTSNS_PIN = 0 [11:19:13]*** Brake cut motor [11:19:13]Read from MH i2c: 01 [11:19:13]MH_I2C_Read... [11:19:13]*** Stop cut motor [11:19:13]*** Cut end [11:19:13]Read from MH i2c: 01 07 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 07 00 B1 3E 00 00 00 00 00 FF 0F 04 [11:19:13]process_action close_receipt done [11:19:13]requested_data is exist [11:19:13]produce_requested_data [11:19:13]requested_item fm.sn is exist - process it [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 11 00 00 [11:19:13]Write to MH i2c: E2 08 00 B2 3E 80 11 00 00 00 00 00 00 6A [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 17 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 17 00 B2 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C6 [11:19:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:19:13]wFMCommunicate OK [11:19:13]requested_item fd.num is exist - process it [11:19:13]SAM_PROTO_GetFieldsCounters [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 13 00 00 [11:19:13]Write to MH i2c: E2 08 00 B3 3E 80 13 00 00 00 00 00 00 6D [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 62 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 62 00 B3 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 31 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [11:19: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 31 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:13]wFMCommunicate OK [11:19:13]SAM_PROTO_GetFieldsCounters done [11:19:13]requested_item shift.num is exist - process it [11:19:13]requested_item shift.opened is exist - process it [11:19:13]req_shift_opened [11:19:13]FM_GetShiftState [11:19:13]SAM_PROTO_GetShiftState [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 13 01 00 [11:19:13]Write to MH i2c: E2 08 00 B4 3E 80 13 01 00 00 00 00 00 6F [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 0E 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 0E 00 B4 3E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 AC [11:19:13]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:19:13]wFMCommunicate OK [11:19:13]SAM_PROTO_GetShiftState done [11:19:13]FM_GetShiftState done [11:19:13]req_shift_opened done [11:19:13]requested_item shift.open_date is exist - process it [11:19:13]req_shift_open_date [11:19:13]req_shift_open_date done [11:19:13]produce_requested_data done [11:19:13]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69169,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:19:13]process_action_free close_receipt [11:19:13]json_value_free [11:19:13]json_value_free done [11:19:13]process_json_proto returns [11:19:13]Send response to host [11:19:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69169,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:19:13]free response buf [11:19:13]execute_script done [11:19:13]execute_script returns [11:19:13]free content buf [11:19:13]Sock 9.Close socket [11:19:13]Sock 9.Thread stoped [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:35]accept exits with 10 [11:19:35]New connection [11:19:35]New thread 3066785124 created [11:19:35]Thread 3066641764 joined [11:19:35]Waiting for new connection... [11:19:35] Sock 10.Parse request [11:19:35]Sock 10.Check first char [11:19:35]Sock 10.First char is OK [11:19:35]request: POST /json_proto HTTP/1.0 [11:19:35]Method: POST [11:19:35]URL: /json_proto [11:19:35]Method is POST - this is cgi request [11:19:35]url: /json_proto [11:19:35]query_string will be loaded in cgi processing [11:19:35]execute_cgi json_proto POST (null) [11:19:35]execute_cgi path=json_proto method=POST [11:19:35]POST find Content-Length [11:19:35]Host: 172.17.49.132:8080 [11:19:35]Content-Length: 678 [11:19:35]Content-Type: application/json [11:19:35] [11:19:35]POST finish read [11:19:35]Found Content-Length = 678 [11:19:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:35]execute_script... [11:19:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:35]POST & json_proto [11:19:35]process_json_proto [11:19:35]json parsed OK: [11:19:35]protocol is kg_v1.0 [11:19:35]action value=close_receipt [11:19:35]process_action close_receipt [11:19:35]cmd_close_receipt [11:19:35]MH_GetDate [11:19:35]Write to MH i2c: F0 00 00 B5 3E E2 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: F0 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: F0 09 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: F0 09 00 B5 3E 00 50 29 A6 66 E7 4B C0 64 C6 [11:19:35]GetLastDocTimeStamp 1722165558 [11:19:35]current date 1722165584 [11:19:35]FM_GetShiftState [11:19:35]SAM_PROTO_GetShiftState [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 13 01 00 [11:19:35]Write to MH i2c: E2 08 00 B6 3E 80 13 01 00 00 00 00 00 71 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 0E 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 0E 00 B6 3E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 AE [11:19:35]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:19:35]wFMCommunicate OK [11:19:35]SAM_PROTO_GetShiftState done [11:19:35]FM_GetShiftState done [11:19:35]opened in 1722127251 [11:19:35]opened+sec_in_day 1722213651 [11:19:35]quantity*price = 70037 [11:19:35]sum+1 = 70038 [11:19:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 53 28.07.2024 11:19 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69170 ФПД: 221927435179602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111944&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69170&fm=221927435179602&tin=02508201610067®Number=0000000000092638&sum=70000 [11:19:37]StoreToDocumentArchive [11:19:37]shift 429 fd 69170 [11:19:37]save to /storage/0429/doc_00069170 [11:19:37]save last doc name /storage/0429/doc_00069170 to /storage/kkm_last_doc_name [11:19:37]save OK [11:19:37]Clear old archive folders... [11:19:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:37]tlvbuf is 00A48A60 [11:19:37]SAM_PROTO_ClearQueue [11:19:37]wFMCommunicate request_size=4 [11:19:37]MH_SAM_APDU [11:19:37]CAPDU: 80 09 00 00 [11:19:37]Write to MH i2c: E2 08 00 C3 3E 80 09 00 00 00 00 00 00 73 [11:19:37]Write i2c OK [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 [11:19:37]MH_I2C_Read... [11:19:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:37]Read from MH i2c: E2 03 00 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 03 00 C3 3E 00 90 00 75 [11:19:37]RAPDU: 90 00 [11:19:37]wFMCommunicate OK [11:19:37]SAM_PROTO_ClearQueue done [11:19:37]KKMCreateOFDPacket [11:19:37]OFDProtocolAddRootSTLVToBuf [11:19:37]FM_MakeSignedData [11:19:37]FM_MakeSignedData [11:19:37]SAM_PROTO_SignData [11:19:37]wFMCommunicate request_size=4 [11:19:37]MH_SAM_APDU [11:19:37]CAPDU: 80 0D 01 02 [11:19:37]Write to MH i2c: E2 08 00 C4 3E 80 0D 01 02 00 00 00 00 7B [11:19:37]Write i2c OK [11:19:37]MH_I2C_Read... [11:19:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:37]Read from MH i2c: E2 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 03 00 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 03 00 C4 3E 00 90 00 76 [11:19:37]RAPDU: 90 00 [11:19:37]wFMCommunicate OK [11:19:37]wFMCommunicate request_size=255 [11:19:37]MH_SAM_APDU [11:19:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 50 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 32 0E 01 00 35 04 06 00 C9 [11:19:37]Write to MH i2c: E2 02 01 C5 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 50 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 32 0E 01 00 35 04 06 00 C9 00 00 5F [11:19:37]Write i2c OK [11:19:37]MH_I2C_Read... [11:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:37]Read from MH i2c: E2 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 03 00 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 03 00 C5 3E 00 90 00 77 [11:19:37]RAPDU: 90 00 [11:19:37]wFMCommunicate OK [11:19:37]wFMCommunicate request_size=10 [11:19:37]MH_SAM_APDU [11:19:37]CAPDU: 80 0D 02 02 05 D7 81 F0 96 52 [11:19:37]Write to MH i2c: E2 0D 00 C6 3E 80 0D 02 02 05 00 D7 81 F0 96 52 00 00 B8 [11:19:37]Write i2c OK [11:19:37]MH_I2C_Read... [11:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:37]Read from MH i2c: E2 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 03 00 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 03 00 C6 3E 00 90 00 78 [11:19:37]RAPDU: 90 00 [11:19:37]wFMCommunicate OK [11:19:37]wFMCommunicate request_size=4 [11:19:37]MH_SAM_APDU [11:19:37]CAPDU: 80 0D 03 02 [11:19:37]Write to MH i2c: E2 08 00 C7 3E 80 0D 03 02 00 00 00 00 80 [11:19:37]Write i2c OK [11:19:37]MH_I2C_Read... [11:19:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:37]Read from MH i2c: E2 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 0B 00 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 0B 00 C7 3E 00 91 FF EA 2A 0E D9 B4 6D 90 00 2D [11:19:37]RAPDU: 91 FF EA 2A 0E D9 B4 6D 90 00 [11:19:37]wFMCommunicate OK [11:19:37]SAM_PROTO_SignData done [11:19:37]FM_MakeSignedData done [11:19:37]CreateOFDProtocolMessage [11:19:37]wFMCommunicate request_size=4 [11:19:37]MH_SAM_APDU [11:19:37]CAPDU: 80 11 00 00 [11:19:37]Write to MH i2c: E2 08 00 C8 3E 80 11 00 00 00 00 00 00 80 [11:19:37]Write i2c OK [11:19:37]MH_I2C_Read... [11:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:37]Read from MH i2c: E2 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 17 00 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 17 00 C8 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 DC [11:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:19:37]wFMCommunicate OK [11:19:37]CreateOFDProtocolMessage done [11:19:37]OFDSenderStorePacket 69170 [11:19:37]StoreOFDPacket docnum=69170 [11:19:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 91 F1 07 01 8C 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 50 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 32 0E 01 00 35 04 06 00 C9 D7 81 F0 96 52 91 FF EA 2A 0E D9 B4 6D [11:19:37]CheckFolder [11:19:37]dirname=/storage/ofd_packets [11:19:37]CheckFolder done [11:19:37]ProducePacketName [11:19:37]name=ofd_packets/00069170 [11:19:37]NVStorageSaveData ofd_packets/00069170 [11:19:37]File name is /storage/ofd_packets/00069170 [11:19:37]Write 301 bytes [11:19:37]NVStorageSaveData done [11:19:37]OFDSenderStorePacket done [11:19:37]KKMCreateOFDPacket done [11:19:37]NVStorageSaveData kkm_last_timestamp [11:19:37]File name is /storage/kkm_last_timestamp [11:19:37]Write 4 bytes [11:19:37]NVStorageSaveData done [11:19:37]ExternCall_PrintAddStr [11:19:37]wPrintStart [11:19:37]Write to MH i2c: 01 00 00 C9 3E 07 [11:19:37]Write i2c OK [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: 01 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: 01 07 00 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: 01 07 00 C9 3E 00 00 00 00 00 FF 0F 1C [11:19:37]RasterBufferAndPrint [11:19:37]line Счет N : (1)871823 [11:19:37]line ИНН: 02508201610067 [11:19:37]line Контрольно-Кассовый Чек [11:19:37]line ПРОДАЖА [11:19:37]line ТРК (МРК, ГНК) : 62 [11:19:37]line Товар: 2710124130 [11:19:37]line Аи-92-К-5 [11:19:37]line 10.330 * 67.80 [11:19:37]line = 700.37 [11:19:37]line НДС 12% НСП 1% [11:19:37]line > о реализуемом товаре [11:19:37]line ОКРУГЛЕНИЕ: -0.37 [11:19:37]line ИТОГО: 700.00 [11:19:37]line Внесено: 700.00 [11:19:37]line СДАЧА: 0.00 [11:19:37]line НСП 1% : 6.20 [11:19:37]line НДС 12% : 74.38 [11:19:37]line Наличными: 700.00 [11:19:37]line Безнал.: 0.00 [11:19:37]line Место: АЗС № 125 "Партнер Нефть" [11:19:37]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:19:37]line СНО: Общий режим [11:19:37]line Чек 53 28.07.2024 11:19 [11:19:37]line Смена: 429 ФФД: 1.0 [11:19:37]line ЗНМ: 0300000049 [11:19:37]line РНМ: 0000000000092638 [11:19:37]line Версия ККМ: 001 [11:19:37]line ФМ: 0000000000874949 [11:19:37]line ФД: 69170 [11:19:37]line ФПД: 221927435179602 [11:19:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T111944&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69170&fm=221927435179602&tin=02508201610067®Number=0000000000092638&sum=70000 [11:19:37]OFD Sender: Processing packet 69170 [packets to send 19, broken 18] [11:19:37]ProducePacketName [11:19:37]name=ofd_packets/00069170 [11:19:37]OFD Sender: To server: pG, [11:19:37]CommunicateWithHost lk.salyk.kg:30040 [11:19:37]ConnectInit lk.salyk.kg [11:19:37]written 0, free lines is 4095 [11:19:38]Connected sock=9 [11:19: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 39 34 39 0F 01 00 00 91 F1 07 01 8C 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 50 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 32 0E 01 00 35 04 06 00 C9 D7 81 F0 96 52 91 FF EA 2A 0E D9 B4 6D [11:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 19 61 47 00 16 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 32 0E 01 00 F4 03 04 00 C0 CF A5 66 B6 04 01 00 00 6D 42 5E 08 01 49 5C 2D [11:19:38]CommunicateWithHost err = 0 [11:19:38]CheckOFDResponse [11:19:38]1017 (14) - 77093643461234 [11:19:38]1041 (16) - 0000000000874949 [11:19:38]1040 (4) - 69170 [11:19:38]1012 (4) - 28.07.2024 04:57 [11:19:38]1206 (1) - 0 [11:19:38]OFD Sender: Remove packet 69170 [11:19:38]ProducePacketName [11:19:38]name=ofd_packets/00069170 [11:19:38]NVStorageDeleteData [11:19:38]Write to MH i2c: 01 00 00 F4 3E 32 [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: 01 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: 01 07 00 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: 01 07 00 F4 3E 00 00 00 00 00 F9 0C 3E [11:19:38]RasterBufferAndPrint [11:19:38]line [11:19:38]line [11:19:38]line [11:19:38]line [11:19:38]line [11:19:38]written 0, free lines is 3328 [11:19:38]MH_Cut [11:19:38]Write to MH i2c: D1 01 00 FB 3E 01 0B [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: D1 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: D1 01 00 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: D1 01 00 FB 3E 00 0A [11:19:38]Write to MH i2c: 01 00 00 FC 3E 3A [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:38]OFD Sender: No OFD packet to send [11:19:39]*** Cut start [11:19:39]*** Partial cut [11:19:39]*** CUTSNS_PIN = 1 [11:19:39]*** CUTSNS_PIN = 0 [11:19:39]*** Brake cut motor [11:19:39]Read from MH i2c: 01 [11:19:39]MH_I2C_Read... [11:19:39]*** Stop cut motor [11:19:39]*** Cut end [11:19:39]Read from MH i2c: 01 07 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: 01 07 00 FC 3E 00 00 00 00 00 FF 0F 4F [11:19:39]process_action close_receipt done [11:19:39]requested_data is exist [11:19:39]produce_requested_data [11:19:39]requested_item fm.sn is exist - process it [11:19:39]wFMCommunicate request_size=4 [11:19:39]MH_SAM_APDU [11:19:39]CAPDU: 80 11 00 00 [11:19:39]Write to MH i2c: E2 08 00 FD 3E 80 11 00 00 00 00 00 00 B5 [11:19:39]Write i2c OK [11:19:39]MH_I2C_Read... [11:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:39]Read from MH i2c: E2 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 17 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 17 00 FD 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 11 [11:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:19:39]wFMCommunicate OK [11:19:39]requested_item fd.num is exist - process it [11:19:39]SAM_PROTO_GetFieldsCounters [11:19:39]wFMCommunicate request_size=4 [11:19:39]MH_SAM_APDU [11:19:39]CAPDU: 80 13 00 00 [11:19:39]Write to MH i2c: E2 08 00 FE 3E 80 13 00 00 00 00 00 00 B8 [11:19:39]Write i2c OK [11:19:39]MH_I2C_Read... [11:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:39]Read from MH i2c: E2 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 62 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 62 00 FE 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 32 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [11:19:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 32 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:39]wFMCommunicate OK [11:19:39]SAM_PROTO_GetFieldsCounters done [11:19:39]requested_item shift.num is exist - process it [11:19:39]requested_item shift.opened is exist - process it [11:19:39]req_shift_opened [11:19:39]FM_GetShiftState [11:19:39]SAM_PROTO_GetShiftState [11:19:39]wFMCommunicate request_size=4 [11:19:39]MH_SAM_APDU [11:19:39]CAPDU: 80 13 01 00 [11:19:39]Write to MH i2c: E2 08 00 FF 3E 80 13 01 00 00 00 00 00 BA [11:19:39]Write i2c OK [11:19:39]MH_I2C_Read... [11:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:39]Read from MH i2c: E2 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 0E 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 0E 00 FF 3E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F7 [11:19:39]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:19:39]wFMCommunicate OK [11:19:39]SAM_PROTO_GetShiftState done [11:19:39]FM_GetShiftState done [11:19:39]req_shift_opened done [11:19:39]requested_item shift.open_date is exist - process it [11:19:39]req_shift_open_date [11:19:39]req_shift_open_date done [11:19:39]produce_requested_data done [11:19:39]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69170,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:19:39]process_action_free close_receipt [11:19:39]json_value_free [11:19:39]json_value_free done [11:19:39]process_json_proto returns [11:19:39]Send response to host [11:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69170,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:19:39]free response buf [11:19:39]execute_script done [11:19:39]execute_script returns [11:19:39]free content buf [11:19:39]Sock 10.Close socket [11:19:39]Sock 10.Thread stoped [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:00]accept exits with 7 [11:21:00]New connection [11:21:00]New thread 3066641764 created [11:21:00]Thread 3066785124 joined [11:21:00]Waiting for new connection... [11:21:00] Sock 7.Parse request [11:21:00]Sock 7.Check first char [11:21:00]Sock 7.First char is OK [11:21:00]request: POST /json_proto HTTP/1.0 [11:21:00]Method: POST [11:21:00]URL: /json_proto [11:21:00]Method is POST - this is cgi request [11:21:00]url: /json_proto [11:21:00]query_string will be loaded in cgi processing [11:21:00]execute_cgi json_proto POST (null) [11:21:00]execute_cgi path=json_proto method=POST [11:21:00]POST find Content-Length [11:21:00]Host: 172.17.49.132:8080 [11:21:00]Content-Length: 682 [11:21:00]Content-Type: application/json [11:21:00] [11:21:00]POST finish read [11:21:00]Found Content-Length = 682 [11:21:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:00]execute_script... [11:21:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:00]POST & json_proto [11:21:00]process_json_proto [11:21:00]json parsed OK: [11:21:00]protocol is kg_v1.0 [11:21:00]action value=close_receipt [11:21:00]process_action close_receipt [11:21:00]cmd_close_receipt [11:21:00]MH_GetDate [11:21:00]Write to MH i2c: F0 00 00 00 3F 2E [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: F0 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: F0 09 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: F0 09 00 00 3F 00 A5 29 A6 66 E7 4B C0 64 67 [11:21:00]GetLastDocTimeStamp 1722165584 [11:21:00]current date 1722165669 [11:21:00]FM_GetShiftState [11:21:00]SAM_PROTO_GetShiftState [11:21:00]wFMCommunicate request_size=4 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 13 01 00 [11:21:00]Write to MH i2c: E2 08 00 01 3F 80 13 01 00 00 00 00 00 BD [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 0E 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 0E 00 01 3F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 FA [11:21:00]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:21:00]wFMCommunicate OK [11:21:00]SAM_PROTO_GetShiftState done [11:21:00]FM_GetShiftState done [11:21:00]opened in 1722127251 [11:21:00]opened+sec_in_day 1722213651 [11:21:00]quantity*price = 100005 [11:21:00]sum+1 = 100006 [11:21:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 54 28.07.2024 11:21 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69171 ФПД: 80929232291478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112109&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69171&fm=80929232291478&tin=02508201610067®Number=0000000000092638&sum=100000 [11:21:01]StoreToDocumentArchive [11:21:01]shift 429 fd 69171 [11:21:01]save to /storage/0429/doc_00069171 [11:21:01]save last doc name /storage/0429/doc_00069171 to /storage/kkm_last_doc_name [11:21:01]save OK [11:21:01]Clear old archive folders... [11:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:01]tlvbuf is 00A5A9A0 [11:21:01]SAM_PROTO_ClearQueue [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 09 00 00 [11:21:01]Write to MH i2c: E2 08 00 0E 3F 80 09 00 00 00 00 00 00 BF [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 0E 3F 00 90 00 C1 [11:21:01]RAPDU: 90 00 [11:21:01]wFMCommunicate OK [11:21:01]SAM_PROTO_ClearQueue done [11:21:01]KKMCreateOFDPacket [11:21:01]OFDProtocolAddRootSTLVToBuf [11:21:01]FM_MakeSignedData [11:21:01]FM_MakeSignedData [11:21:01]SAM_PROTO_SignData [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 0D 01 02 [11:21:01]Write to MH i2c: E2 08 00 0F 3F 80 0D 01 02 00 00 00 00 C7 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 0F 3F 00 90 00 C2 [11:21:01]RAPDU: 90 00 [11:21:01]wFMCommunicate OK [11:21:01]wFMCommunicate request_size=255 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A5 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 33 0E 01 00 35 04 06 00 49 [11:21:01]Write to MH i2c: E2 02 01 10 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A5 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 33 0E 01 00 35 04 06 00 49 00 00 2A [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 03 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 03 00 10 3F 00 90 00 C3 [11:21:02]RAPDU: 90 00 [11:21:02]wFMCommunicate OK [11:21:02]wFMCommunicate request_size=10 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 0D 02 02 05 9A CE 24 86 96 [11:21:02]Write to MH i2c: E2 0D 00 11 3F 80 0D 02 02 05 00 9A CE 24 86 96 00 00 7C [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 03 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 03 00 11 3F 00 90 00 C4 [11:21:02]RAPDU: 90 00 [11:21:02]wFMCommunicate OK [11:21:02]wFMCommunicate request_size=4 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 0D 03 02 [11:21:02]Write to MH i2c: E2 08 00 12 3F 80 0D 03 02 00 00 00 00 CC [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 0B 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 0B 00 12 3F 00 C3 12 62 98 13 24 2B 45 90 00 43 [11:21:02]RAPDU: C3 12 62 98 13 24 2B 45 90 00 [11:21:02]wFMCommunicate OK [11:21:02]SAM_PROTO_SignData done [11:21:02]FM_MakeSignedData done [11:21:02]CreateOFDProtocolMessage [11:21:02]wFMCommunicate request_size=4 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 11 00 00 [11:21:02]Write to MH i2c: E2 08 00 13 3F 80 11 00 00 00 00 00 00 CC [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 17 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 17 00 13 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 28 [11:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:21:02]wFMCommunicate OK [11:21:02]CreateOFDProtocolMessage done [11:21:02]OFDSenderStorePacket 69171 [11:21:02]StoreOFDPacket docnum=69171 [11:21:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 2C 37 07 01 88 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A5 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 33 0E 01 00 35 04 06 00 49 9A CE 24 86 96 C3 12 62 98 13 24 2B 45 [11:21:02]CheckFolder [11:21:02]dirname=/storage/ofd_packets [11:21:02]CheckFolder done [11:21:02]ProducePacketName [11:21:02]name=ofd_packets/00069171 [11:21:02]NVStorageSaveData ofd_packets/00069171 [11:21:02]File name is /storage/ofd_packets/00069171 [11:21:02]Write 301 bytes [11:21:02]NVStorageSaveData done [11:21:02]OFDSenderStorePacket done [11:21:02]KKMCreateOFDPacket done [11:21:02]NVStorageSaveData kkm_last_timestamp [11:21:02]File name is /storage/kkm_last_timestamp [11:21:02]Write 4 bytes [11:21:02]NVStorageSaveData done [11:21:02]ExternCall_PrintAddStr [11:21:02]wPrintStart [11:21:02]Write to MH i2c: 01 00 00 14 3F 53 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 07 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 07 00 14 3F 00 00 00 00 00 FF 0F 68 [11:21:02]RasterBufferAndPrint [11:21:02]line Счет N : (1)871825 [11:21:02]line ИНН: 02508201610067 [11:21:02]line Контрольно-Кассовый Чек [11:21:02]line ПРОДАЖА [11:21:02]line ТРК (МРК, ГНК) : 42 [11:21:02]line Товар: 2710124130 [11:21:02]line Аи-92-К-5 [11:21:02]line 14.750 * 67.80 [11:21:02]line = 1000.05 [11:21:02]line НДС 12% НСП 1% [11:21:02]line > о реализуемом товаре [11:21:02]line ОКРУГЛЕНИЕ: -0.05 [11:21:02]line ИТОГО: 1000.00 [11:21:02]line Внесено: 1000.00 [11:21:02]line СДАЧА: 0.00 [11:21:02]line НСП 1% : 8.85 [11:21:02]line НДС 12% : 106.20 [11:21:02]line Наличными: 1000.00 [11:21:02]line Безнал.: 0.00 [11:21:02]line Место: АЗС № 125 "Партнер Нефть" [11:21:02]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:21:02]line СНО: Общий режим [11:21:02]line Чек 54 28.07.2024 11:21 [11:21:02]line Смена: 429 ФФД: 1.0 [11:21:02]line ЗНМ: 0300000049 [11:21:02]line РНМ: 0000000000092638 [11:21:02]line Версия ККМ: 001 [11:21:02]line ФМ: 0000000000874949 [11:21:02]line ФД: 69171 [11:21:02]line ФПД: 80929232291478 [11:21:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112109&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69171&fm=80929232291478&tin=02508201610067®Number=0000000000092638&sum=100000 [11:21:02]OFD Sender: Processing packet 69171 [packets to send 19, broken 18] [11:21:02]ProducePacketName [11:21:02]name=ofd_packets/00069171 [11:21:02]OFD Sender: To server: pG, [11:21:02]CommunicateWithHost lk.salyk.kg:30040 [11:21:02]ConnectInit lk.salyk.kg [11:21:02]written 0, free lines is 4095 [11:21:02]Connected sock=10 [11:21:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 2C 37 07 01 88 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A5 29 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 33 0E 01 00 35 04 06 00 49 9A CE 24 86 96 C3 12 62 98 13 24 2B 45 [11:21:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 0C 6A 47 00 EB E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 33 0E 01 00 F4 03 04 00 15 D0 A5 66 B6 04 01 00 00 09 A7 BD 0E FB 9C 5F 6A [11:21:02]CommunicateWithHost err = 0 [11:21:02]CheckOFDResponse [11:21:02]1017 (14) - 77093643461234 [11:21:02]1041 (16) - 0000000000874949 [11:21:02]1040 (4) - 69171 [11:21:02]1012 (4) - 28.07.2024 04:59 [11:21:02]1206 (1) - 0 [11:21:02]OFD Sender: Remove packet 69171 [11:21:02]ProducePacketName [11:21:02]name=ofd_packets/00069171 [11:21:02]NVStorageDeleteData [11:21:03]Write to MH i2c: 01 00 00 3F 3F 7E [11:21:03]Write i2c OK [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: 01 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: 01 07 00 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: 01 07 00 3F 3F 00 00 00 00 00 00 0D 92 [11:21:03]RasterBufferAndPrint [11:21:03]line [11:21:03]line [11:21:03]line [11:21:03]line [11:21:03]line [11:21:03]written 0, free lines is 3337 [11:21:03]MH_Cut [11:21:03]Write to MH i2c: D1 01 00 46 3F 01 57 [11:21:03]Write i2c OK [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: D1 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: D1 01 00 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: D1 01 00 46 3F 00 56 [11:21:03]Write to MH i2c: 01 00 00 47 3F 86 [11:21:03]Write i2c OK [11:21:03]MH_I2C_Read... [11:21:03]OFD Sender: No OFD packet to send [11:21:03]*** Cut start [11:21:03]*** Partial cut [11:21:03]*** CUTSNS_PIN = 1 [11:21:03]*** CUTSNS_PIN = 0 [11:21:03]*** Brake cut motor [11:21:04]Read from MH i2c: 01 [11:21:04]MH_I2C_Read... [11:21:04]*** Stop cut motor [11:21:04]*** Cut end [11:21:04]Read from MH i2c: 01 07 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: 01 07 00 47 3F 00 00 00 00 00 FF 0F 9B [11:21:04]process_action close_receipt done [11:21:04]requested_data is exist [11:21:04]produce_requested_data [11:21:04]requested_item fm.sn is exist - process it [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 11 00 00 [11:21:04]Write to MH i2c: E2 08 00 48 3F 80 11 00 00 00 00 00 00 01 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 17 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 17 00 48 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 5D [11:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:21:04]wFMCommunicate OK [11:21:04]requested_item fd.num is exist - process it [11:21:04]SAM_PROTO_GetFieldsCounters [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 13 00 00 [11:21:04]Write to MH i2c: E2 08 00 49 3F 80 13 00 00 00 00 00 00 04 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 62 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 62 00 49 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 33 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [11:21:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 33 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:04]wFMCommunicate OK [11:21:04]SAM_PROTO_GetFieldsCounters done [11:21:04]requested_item shift.num is exist - process it [11:21:04]requested_item shift.opened is exist - process it [11:21:04]req_shift_opened [11:21:04]FM_GetShiftState [11:21:04]SAM_PROTO_GetShiftState [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 13 01 00 [11:21:04]Write to MH i2c: E2 08 00 4A 3F 80 13 01 00 00 00 00 00 06 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 0E 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 0E 00 4A 3F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 43 [11:21:04]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:21:04]wFMCommunicate OK [11:21:04]SAM_PROTO_GetShiftState done [11:21:04]FM_GetShiftState done [11:21:04]req_shift_opened done [11:21:04]requested_item shift.open_date is exist - process it [11:21:04]req_shift_open_date [11:21:04]req_shift_open_date done [11:21:04]produce_requested_data done [11:21:04]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69171,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:21:04]process_action_free close_receipt [11:21:04]json_value_free [11:21:04]json_value_free done [11:21:04]process_json_proto returns [11:21:04]Send response to host [11:21:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69171,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:21:04]free response buf [11:21:04]execute_script done [11:21:04]execute_script returns [11:21:04]free content buf [11:21:04]Sock 7.Close socket [11:21:04]Sock 7.Thread stoped [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:43]accept exits with 9 [11:22:43]New connection [11:22:43]New thread 3066785124 created [11:22:43]Thread 3066641764 joined [11:22:43]Waiting for new connection... [11:22:43] Sock 9.Parse request [11:22:43]Sock 9.Check first char [11:22:43]Sock 9.First char is OK [11:22:43]request: POST /json_proto HTTP/1.0 [11:22:43]Method: POST [11:22:43]URL: /json_proto [11:22:43]Method is POST - this is cgi request [11:22:43]url: /json_proto [11:22:43]query_string will be loaded in cgi processing [11:22:43]execute_cgi json_proto POST (null) [11:22:43]execute_cgi path=json_proto method=POST [11:22:43]POST find Content-Length [11:22:43]Host: 172.17.49.132:8080 [11:22:43]Content-Length: 678 [11:22:43]Content-Type: application/json [11:22:43] [11:22:43]POST finish read [11:22:43]Found Content-Length = 678 [11:22:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:43]execute_script... [11:22:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:43]POST & json_proto [11:22:43]process_json_proto [11:22:43]json parsed OK: [11:22:43]protocol is kg_v1.0 [11:22:43]action value=close_receipt [11:22:43]process_action close_receipt [11:22:43]cmd_close_receipt [11:22:43]MH_GetDate [11:22:43]Write to MH i2c: F0 00 00 4B 3F 79 [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: F0 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: F0 09 00 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: F0 09 00 4B 3F 00 0C 2A A6 66 E7 4B C0 64 1A [11:22:43]GetLastDocTimeStamp 1722165669 [11:22:43]current date 1722165772 [11:22:43]FM_GetShiftState [11:22:43]SAM_PROTO_GetShiftState [11:22:43]wFMCommunicate request_size=4 [11:22:43]MH_SAM_APDU [11:22:43]CAPDU: 80 13 01 00 [11:22:43]Write to MH i2c: E2 08 00 4C 3F 80 13 01 00 00 00 00 00 08 [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:43]Read from MH i2c: E2 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: E2 0E 00 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: E2 0E 00 4C 3F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 45 [11:22:43]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:22:43]wFMCommunicate OK [11:22:43]SAM_PROTO_GetShiftState done [11:22:43]FM_GetShiftState done [11:22:43]opened in 1722127251 [11:22:43]opened+sec_in_day 1722213651 [11:22:43]quantity*price = 80004 [11:22:43]sum+1 = 80005 [11:22:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 55 28.07.2024 11:22 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69172 ФПД: 124007184266265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112252&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69172&fm=124007184266265&tin=02508201610067®Number=0000000000092638&sum=80000 [11:22:44]StoreToDocumentArchive [11:22:44]shift 429 fd 69172 [11:22:44]save to /storage/0429/doc_00069172 [11:22:44]save last doc name /storage/0429/doc_00069172 to /storage/kkm_last_doc_name [11:22:44]save OK [11:22:44]Clear old archive folders... [11:22:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:44]tlvbuf is 00A1ACF0 [11:22:44]SAM_PROTO_ClearQueue [11:22:44]wFMCommunicate request_size=4 [11:22:44]MH_SAM_APDU [11:22:44]CAPDU: 80 09 00 00 [11:22:44]Write to MH i2c: E2 08 00 59 3F 80 09 00 00 00 00 00 00 0A [11:22:44]Write i2c OK [11:22:44]MH_I2C_Read... [11:22:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:44]Read from MH i2c: E2 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 03 00 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 03 00 59 3F 00 90 00 0C [11:22:44]RAPDU: 90 00 [11:22:44]wFMCommunicate OK [11:22:44]SAM_PROTO_ClearQueue done [11:22:44]KKMCreateOFDPacket [11:22:44]OFDProtocolAddRootSTLVToBuf [11:22:44]FM_MakeSignedData [11:22:44]FM_MakeSignedData [11:22:44]SAM_PROTO_SignData [11:22:44]wFMCommunicate request_size=4 [11:22:44]MH_SAM_APDU [11:22:44]CAPDU: 80 0D 01 02 [11:22:44]Write to MH i2c: E2 08 00 5A 3F 80 0D 01 02 00 00 00 00 12 [11:22:44]Write i2c OK [11:22:44]MH_I2C_Read... [11:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:44]Read from MH i2c: E2 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 03 00 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 03 00 5A 3F 00 90 00 0D [11:22:44]RAPDU: 90 00 [11:22:44]wFMCommunicate OK [11:22:44]wFMCommunicate request_size=255 [11:22:44]MH_SAM_APDU [11:22:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0C 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 34 0E 01 00 35 04 06 00 70 [11:22:44]Write to MH i2c: E2 02 01 5B 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0C 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 34 0E 01 00 35 04 06 00 70 00 00 24 [11:22:44]Write i2c OK [11:22:44]MH_I2C_Read... [11:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:45]Read from MH i2c: E2 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 03 00 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 03 00 5B 3F 00 90 00 0E [11:22:45]RAPDU: 90 00 [11:22:45]wFMCommunicate OK [11:22:45]wFMCommunicate request_size=10 [11:22:45]MH_SAM_APDU [11:22:45]CAPDU: 80 0D 02 02 05 C8 AC 2A F4 19 [11:22:45]Write to MH i2c: E2 0D 00 5C 3F 80 0D 02 02 05 00 C8 AC 2A F4 19 00 00 CA [11:22:45]Write i2c OK [11:22:45]MH_I2C_Read... [11:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:45]Read from MH i2c: E2 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 03 00 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 03 00 5C 3F 00 90 00 0F [11:22:45]RAPDU: 90 00 [11:22:45]wFMCommunicate OK [11:22:45]wFMCommunicate request_size=4 [11:22:45]MH_SAM_APDU [11:22:45]CAPDU: 80 0D 03 02 [11:22:45]Write to MH i2c: E2 08 00 5D 3F 80 0D 03 02 00 00 00 00 17 [11:22:45]Write i2c OK [11:22:45]MH_I2C_Read... [11:22:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:45]Read from MH i2c: E2 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 0B 00 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 0B 00 5D 3F 00 46 62 74 1F 95 67 9A 95 90 00 7E [11:22:45]RAPDU: 46 62 74 1F 95 67 9A 95 90 00 [11:22:45]wFMCommunicate OK [11:22:45]SAM_PROTO_SignData done [11:22:45]FM_MakeSignedData done [11:22:45]CreateOFDProtocolMessage [11:22:45]wFMCommunicate request_size=4 [11:22:45]MH_SAM_APDU [11:22:45]CAPDU: 80 11 00 00 [11:22:45]Write to MH i2c: E2 08 00 5E 3F 80 11 00 00 00 00 00 00 17 [11:22:45]Write i2c OK [11:22:45]MH_I2C_Read... [11:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:45]Read from MH i2c: E2 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 17 00 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: E2 17 00 5E 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 73 [11:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:22:45]wFMCommunicate OK [11:22:45]CreateOFDProtocolMessage done [11:22:45]OFDSenderStorePacket 69172 [11:22:45]StoreOFDPacket docnum=69172 [11:22:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 4A 67 07 01 64 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0C 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 34 0E 01 00 35 04 06 00 70 C8 AC 2A F4 19 46 62 74 1F 95 67 9A 95 [11:22:45]CheckFolder [11:22:45]dirname=/storage/ofd_packets [11:22:45]CheckFolder done [11:22:45]ProducePacketName [11:22:45]name=ofd_packets/00069172 [11:22:45]NVStorageSaveData ofd_packets/00069172 [11:22:45]File name is /storage/ofd_packets/00069172 [11:22:45]Write 301 bytes [11:22:45]NVStorageSaveData done [11:22:45]OFDSenderStorePacket done [11:22:45]KKMCreateOFDPacket done [11:22:45]NVStorageSaveData kkm_last_timestamp [11:22:45]File name is /storage/kkm_last_timestamp [11:22:45]Write 4 bytes [11:22:45]NVStorageSaveData done [11:22:45]ExternCall_PrintAddStr [11:22:45]wPrintStart [11:22:45]Write to MH i2c: 01 00 00 5F 3F 9E [11:22:45]Write i2c OK [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: 01 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: 01 07 00 [11:22:45]MH_I2C_Read... [11:22:45]Read from MH i2c: 01 07 00 5F 3F 00 00 00 00 00 FF 0F B3 [11:22:45]RasterBufferAndPrint [11:22:45]line Счет N : (1)871826 [11:22:45]line ИНН: 02508201610067 [11:22:45]line Контрольно-Кассовый Чек [11:22:45]line ПРОДАЖА [11:22:45]line ТРК (МРК, ГНК) : 52 [11:22:45]line Товар: 2710124130 [11:22:45]line Аи-92-К-5 [11:22:45]line 11.800 * 67.80 [11:22:45]line = 800.04 [11:22:45]line НДС 12% НСП 1% [11:22:45]line > о реализуемом товаре [11:22:45]line ОКРУГЛЕНИЕ: -0.04 [11:22:45]line ИТОГО: 800.00 [11:22:45]line Внесено: 800.00 [11:22:45]line СДАЧА: 0.00 [11:22:45]line НСП 1% : 7.08 [11:22:45]line НДС 12% : 84.96 [11:22:45]line Наличными: 800.00 [11:22:45]line Безнал.: 0.00 [11:22:45]line Место: АЗС № 125 "Партнер Нефть" [11:22:45]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:22:45]line СНО: Общий режим [11:22:45]line Чек 55 28.07.2024 11:22 [11:22:45]line Смена: 429 ФФД: 1.0 [11:22:45]line ЗНМ: 0300000049 [11:22:45]line РНМ: 0000000000092638 [11:22:45]line Версия ККМ: 001 [11:22:45]line ФМ: 0000000000874949 [11:22:45]line ФД: 69172 [11:22:45]line ФПД: 124007184266265 [11:22:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112252&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69172&fm=124007184266265&tin=02508201610067®Number=0000000000092638&sum=80000 [11:22:45]written 0, free lines is 4095 [11:22:45]OFD Sender: Processing packet 69172 [packets to send 19, broken 18] [11:22:45]ProducePacketName [11:22:45]name=ofd_packets/00069172 [11:22:45]OFD Sender: To server: pG, [11:22:45]CommunicateWithHost lk.salyk.kg:30040 [11:22:45]ConnectInit lk.salyk.kg [11:22:45]Connected sock=10 [11:22:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 4A 67 07 01 64 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0C 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 34 0E 01 00 35 04 06 00 70 C8 AC 2A F4 19 46 62 74 1F 95 67 9A 95 [11:22:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 6B 91 47 00 01 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 34 0E 01 00 F4 03 04 00 7C D0 A5 66 B6 04 01 00 00 CB 51 77 69 2D E1 AB 4D [11:22:45]CommunicateWithHost err = 0 [11:22:45]CheckOFDResponse [11:22:45]1017 (14) - 77093643461234 [11:22:45]1041 (16) - 0000000000874949 [11:22:45]1040 (4) - 69172 [11:22:45]1012 (4) - 28.07.2024 05:00 [11:22:45]1206 (1) - 0 [11:22:45]OFD Sender: Remove packet 69172 [11:22:45]ProducePacketName [11:22:45]name=ofd_packets/00069172 [11:22:45]NVStorageDeleteData [11:22:46]Write to MH i2c: 01 00 00 8A 3F C9 [11:22:46]Write i2c OK [11:22:46]MH_I2C_Read... [11:22:46]Read from MH i2c: 01 [11:22:46]MH_I2C_Read... [11:22:46]Read from MH i2c: 01 07 00 [11:22:46]MH_I2C_Read... [11:22:46]Read from MH i2c: 01 07 00 8A 3F 00 00 00 00 00 F5 0C D1 [11:22:46]RasterBufferAndPrint [11:22:46]line [11:22:46]line [11:22:46]line [11:22:46]line [11:22:46]line [11:22:46]written 0, free lines is 3323 [11:22:46]MH_Cut [11:22:46]Write to MH i2c: D1 01 00 91 3F 01 A2 [11:22:46]Write i2c OK [11:22:46]MH_I2C_Read... [11:22:46]Read from MH i2c: D1 [11:22:46]MH_I2C_Read... [11:22:46]Read from MH i2c: D1 01 00 [11:22:46]MH_I2C_Read... [11:22:46]Read from MH i2c: D1 01 00 91 3F 00 A1 [11:22:46]Write to MH i2c: 01 00 00 92 3F D1 [11:22:46]Write i2c OK [11:22:46]MH_I2C_Read... [11:22:46]OFD Sender: No OFD packet to send [11:22:46]*** Cut start [11:22:46]*** Partial cut [11:22:46]*** CUTSNS_PIN = 1 [11:22:46]*** CUTSNS_PIN = 0 [11:22:47]*** Brake cut motor [11:22:47]Read from MH i2c: 01 [11:22:47]MH_I2C_Read... [11:22:47]*** Stop cut motor [11:22:47]*** Cut end [11:22:47]Read from MH i2c: 01 07 00 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: 01 07 00 92 3F 00 00 00 00 00 FF 0F E6 [11:22:47]process_action close_receipt done [11:22:47]requested_data is exist [11:22:47]produce_requested_data [11:22:47]requested_item fm.sn is exist - process it [11:22:47]wFMCommunicate request_size=4 [11:22:47]MH_SAM_APDU [11:22:47]CAPDU: 80 11 00 00 [11:22:47]Write to MH i2c: E2 08 00 93 3F 80 11 00 00 00 00 00 00 4C [11:22:47]Write i2c OK [11:22:47]MH_I2C_Read... [11:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:47]Read from MH i2c: E2 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: E2 17 00 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: E2 17 00 93 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A8 [11:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:22:47]wFMCommunicate OK [11:22:47]requested_item fd.num is exist - process it [11:22:47]SAM_PROTO_GetFieldsCounters [11:22:47]wFMCommunicate request_size=4 [11:22:47]MH_SAM_APDU [11:22:47]CAPDU: 80 13 00 00 [11:22:47]Write to MH i2c: E2 08 00 94 3F 80 13 00 00 00 00 00 00 4F [11:22:47]Write i2c OK [11:22:47]MH_I2C_Read... [11:22:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:47]Read from MH i2c: E2 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: E2 62 00 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: E2 62 00 94 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 34 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:22:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 34 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:47]wFMCommunicate OK [11:22:47]SAM_PROTO_GetFieldsCounters done [11:22:47]requested_item shift.num is exist - process it [11:22:47]requested_item shift.opened is exist - process it [11:22:47]req_shift_opened [11:22:47]FM_GetShiftState [11:22:47]SAM_PROTO_GetShiftState [11:22:47]wFMCommunicate request_size=4 [11:22:47]MH_SAM_APDU [11:22:47]CAPDU: 80 13 01 00 [11:22:47]Write to MH i2c: E2 08 00 95 3F 80 13 01 00 00 00 00 00 51 [11:22:47]Write i2c OK [11:22:47]MH_I2C_Read... [11:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:47]Read from MH i2c: E2 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: E2 0E 00 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: E2 0E 00 95 3F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 8E [11:22:47]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:22:47]wFMCommunicate OK [11:22:47]SAM_PROTO_GetShiftState done [11:22:47]FM_GetShiftState done [11:22:47]req_shift_opened done [11:22:47]requested_item shift.open_date is exist - process it [11:22:47]req_shift_open_date [11:22:47]req_shift_open_date done [11:22:47]produce_requested_data done [11:22:47]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69172,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:22:47]process_action_free close_receipt [11:22:47]json_value_free [11:22:47]json_value_free done [11:22:47]process_json_proto returns [11:22:47]Send response to host [11:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69172,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:22:47]free response buf [11:22:47]execute_script done [11:22:47]execute_script returns [11:22:47]free content buf [11:22:47]Sock 9.Close socket [11:22:47]Sock 9.Thread stoped [11:22:47]accept exits with 7 [11:22:47]New connection [11:22:47]New thread 3066641764 created [11:22:47]Thread 3066785124 joined [11:22:47]Waiting for new connection... [11:22:47] Sock 7.Parse request [11:22:47]Sock 7.Check first char [11:22:47]Sock 7.First char is OK [11:22:47]request: POST /json_proto HTTP/1.0 [11:22:47]Method: POST [11:22:47]URL: /json_proto [11:22:47]Method is POST - this is cgi request [11:22:47]url: /json_proto [11:22:47]query_string will be loaded in cgi processing [11:22:47]execute_cgi json_proto POST (null) [11:22:47]execute_cgi path=json_proto method=POST [11:22:47]POST find Content-Length [11:22:47]Host: 172.17.49.132:8080 [11:22:47]Content-Length: 677 [11:22:47]Content-Type: application/json [11:22:47] [11:22:47]POST finish read [11:22:47]Found Content-Length = 677 [11:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:47]execute_script... [11:22:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:47]POST & json_proto [11:22:47]process_json_proto [11:22:47]json parsed OK: [11:22:47]protocol is kg_v1.0 [11:22:47]action value=close_receipt [11:22:47]process_action close_receipt [11:22:47]cmd_close_receipt [11:22:47]MH_GetDate [11:22:47]Write to MH i2c: F0 00 00 96 3F C4 [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: F0 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: F0 09 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: F0 09 00 96 3F 00 10 2A A6 66 E7 4B C0 64 69 [11:22:48]GetLastDocTimeStamp 1722165772 [11:22:48]current date 1722165776 [11:22:48]FM_GetShiftState [11:22:48]SAM_PROTO_GetShiftState [11:22:48]wFMCommunicate request_size=4 [11:22:48]MH_SAM_APDU [11:22:48]CAPDU: 80 13 01 00 [11:22:48]Write to MH i2c: E2 08 00 97 3F 80 13 01 00 00 00 00 00 53 [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:48]Read from MH i2c: E2 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 0E 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 0E 00 97 3F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 90 [11:22:48]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:22:48]wFMCommunicate OK [11:22:48]SAM_PROTO_GetShiftState done [11:22:48]FM_GetShiftState done [11:22:48]opened in 1722127251 [11:22:48]opened+sec_in_day 1722213651 [11:22:48]quantity*price = 50036 [11:22:48]sum+1 = 50037 [11:22:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 56 28.07.2024 11:22 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69173 ФПД: 201709731578362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112256&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69173&fm=201709731578362&tin=02508201610067®Number=0000000000092638&sum=50000 [11:22:49]StoreToDocumentArchive [11:22:49]shift 429 fd 69173 [11:22:49]save to /storage/0429/doc_00069173 [11:22:49]save last doc name /storage/0429/doc_00069173 to /storage/kkm_last_doc_name [11:22:49]save OK [11:22:49]Clear old archive folders... [11:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:49]tlvbuf is 00B99030 [11:22:49]SAM_PROTO_ClearQueue [11:22:49]wFMCommunicate request_size=4 [11:22:49]MH_SAM_APDU [11:22:49]CAPDU: 80 09 00 00 [11:22:49]Write to MH i2c: E2 08 00 A4 3F 80 09 00 00 00 00 00 00 55 [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:49]Read from MH i2c: E2 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 A4 3F 00 90 00 57 [11:22:49]RAPDU: 90 00 [11:22:49]wFMCommunicate OK [11:22:49]SAM_PROTO_ClearQueue done [11:22:49]KKMCreateOFDPacket [11:22:49]OFDProtocolAddRootSTLVToBuf [11:22:49]FM_MakeSignedData [11:22:49]FM_MakeSignedData [11:22:49]SAM_PROTO_SignData [11:22:49]wFMCommunicate request_size=4 [11:22:49]MH_SAM_APDU [11:22:49]CAPDU: 80 0D 01 02 [11:22:49]Write to MH i2c: E2 08 00 A5 3F 80 0D 01 02 00 00 00 00 5D [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:49]Read from MH i2c: E2 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: E2 03 00 A5 3F 00 90 00 58 [11:22:49]RAPDU: 90 00 [11:22:49]wFMCommunicate OK [11:22:49]wFMCommunicate request_size=255 [11:22:49]MH_SAM_APDU [11:22:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 38 00 00 00 F4 03 04 00 10 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 35 0E 01 00 35 04 06 00 B7 [11:22:49]Write to MH i2c: E2 02 01 A6 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 38 00 00 00 F4 03 04 00 10 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 35 0E 01 00 35 04 06 00 B7 00 00 0F [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 A6 3F 00 90 00 59 [11:22:50]RAPDU: 90 00 [11:22:50]wFMCommunicate OK [11:22:50]wFMCommunicate request_size=10 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 0D 02 02 05 74 34 E6 01 FA [11:22:50]Write to MH i2c: E2 0D 00 A7 3F 80 0D 02 02 05 00 74 34 E6 01 FA 00 00 F3 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 03 00 A7 3F 00 90 00 5A [11:22:50]RAPDU: 90 00 [11:22:50]wFMCommunicate OK [11:22:50]wFMCommunicate request_size=4 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 0D 03 02 [11:22:50]Write to MH i2c: E2 08 00 A8 3F 80 0D 03 02 00 00 00 00 62 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 0B 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 0B 00 A8 3F 00 09 3A 68 E1 C5 8B 94 1E 90 00 F1 [11:22:50]RAPDU: 09 3A 68 E1 C5 8B 94 1E 90 00 [11:22:50]wFMCommunicate OK [11:22:50]SAM_PROTO_SignData done [11:22:50]FM_MakeSignedData done [11:22:50]CreateOFDProtocolMessage [11:22:50]wFMCommunicate request_size=4 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 11 00 00 [11:22:50]Write to MH i2c: E2 08 00 A9 3F 80 11 00 00 00 00 00 00 62 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 17 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 17 00 A9 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 BE [11:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:22:50]wFMCommunicate OK [11:22:50]CreateOFDProtocolMessage done [11:22:50]OFDSenderStorePacket 69173 [11:22:50]StoreOFDPacket docnum=69173 [11:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 1E B4 07 01 C0 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 38 00 00 00 F4 03 04 00 10 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 35 0E 01 00 35 04 06 00 B7 74 34 E6 01 FA 09 3A 68 E1 C5 8B 94 1E [11:22:50]CheckFolder [11:22:50]dirname=/storage/ofd_packets [11:22:50]CheckFolder done [11:22:50]ProducePacketName [11:22:50]name=ofd_packets/00069173 [11:22:50]NVStorageSaveData ofd_packets/00069173 [11:22:50]File name is /storage/ofd_packets/00069173 [11:22:50]Write 301 bytes [11:22:50]NVStorageSaveData done [11:22:50]OFDSenderStorePacket done [11:22:50]KKMCreateOFDPacket done [11:22:50]NVStorageSaveData kkm_last_timestamp [11:22:50]File name is /storage/kkm_last_timestamp [11:22:50]Write 4 bytes [11:22:50]NVStorageSaveData done [11:22:50]ExternCall_PrintAddStr [11:22:50]wPrintStart [11:22:50]Write to MH i2c: 01 00 00 AA 3F E9 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 AA 3F 00 00 00 00 00 FF 0F FE [11:22:50]RasterBufferAndPrint [11:22:50]line Счет N : (1)871827 [11:22:50]line ИНН: 02508201610067 [11:22:50]line Контрольно-Кассовый Чек [11:22:50]line ПРОДАЖА [11:22:50]line ТРК (МРК, ГНК) : 62 [11:22:50]line Товар: 2710124130 [11:22:50]line Аи-92-К-5 [11:22:50]line 7.380 * 67.80 [11:22:50]line = 500.36 [11:22:50]line НДС 12% НСП 1% [11:22:50]line > о реализуемом товаре [11:22:50]line ОКРУГЛЕНИЕ: -0.36 [11:22:50]line ИТОГО: 500.00 [11:22:50]line Внесено: 500.00 [11:22:50]line СДАЧА: 0.00 [11:22:50]line НСП 1% : 4.43 [11:22:50]line НДС 12% : 53.14 [11:22:50]line Наличными: 500.00 [11:22:50]line Безнал.: 0.00 [11:22:50]line Место: АЗС № 125 "Партнер Нефть" [11:22:50]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:22:50]line СНО: Общий режим [11:22:50]line Чек 56 28.07.2024 11:22 [11:22:50]line Смена: 429 ФФД: 1.0 [11:22:50]line ЗНМ: 0300000049 [11:22:50]line РНМ: 0000000000092638 [11:22:50]line Версия ККМ: 001 [11:22:50]line ФМ: 0000000000874949 [11:22:50]line ФД: 69173 [11:22:50]line ФПД: 201709731578362 [11:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112256&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69173&fm=201709731578362&tin=02508201610067®Number=0000000000092638&sum=50000 [11:22:50]OFD Sender: Processing packet 69173 [packets to send 19, broken 18] [11:22:50]ProducePacketName [11:22:50]name=ofd_packets/00069173 [11:22:50]OFD Sender: To server: pG, [11:22:50]CommunicateWithHost lk.salyk.kg:30040 [11:22:50]ConnectInit lk.salyk.kg [11:22:50]written 0, free lines is 4095 [11:22:50]Connected sock=10 [11:22:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 1E B4 07 01 C0 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 38 00 00 00 F4 03 04 00 10 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 35 0E 01 00 35 04 06 00 B7 74 34 E6 01 FA 09 3A 68 E1 C5 8B 94 1E [11:22:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CF 65 47 00 9D CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 35 0E 01 00 F4 03 04 00 81 D0 A5 66 B6 04 01 00 00 F4 9E 37 43 0B CC B2 9E [11:22:50]CommunicateWithHost err = 0 [11:22:50]CheckOFDResponse [11:22:50]1017 (14) - 77093643461234 [11:22:50]1041 (16) - 0000000000874949 [11:22:50]1040 (4) - 69173 [11:22:50]1012 (4) - 28.07.2024 05:00 [11:22:50]1206 (1) - 0 [11:22:50]OFD Sender: Remove packet 69173 [11:22:50]ProducePacketName [11:22:50]name=ofd_packets/00069173 [11:22:50]NVStorageDeleteData [11:22:50]Write to MH i2c: 01 00 00 D5 3F 14 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 D5 3F 00 00 00 00 00 F8 0C 1F [11:22:50]RasterBufferAndPrint [11:22:50]line [11:22:50]line [11:22:50]line [11:22:50]line [11:22:50]line [11:22:50]written 0, free lines is 3335 [11:22:51]MH_Cut [11:22:51]Write to MH i2c: D1 01 00 DC 3F 01 ED [11:22:51]Write i2c OK [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: D1 [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: D1 01 00 [11:22:51]MH_I2C_Read... [11:22:51]Read from MH i2c: D1 01 00 DC 3F 00 EC [11:22:51]Write to MH i2c: 01 00 00 DD 3F 1C [11:22:51]Write i2c OK [11:22:51]MH_I2C_Read... [11:22:51]OFD Sender: No OFD packet to send [11:22:51]*** Cut start [11:22:51]*** Partial cut [11:22:51]*** CUTSNS_PIN = 1 [11:22:51]*** CUTSNS_PIN = 0 [11:22:51]*** Brake cut motor [11:22:52]Read from MH i2c: 01 [11:22:52]MH_I2C_Read... [11:22:52]*** Stop cut motor [11:22:52]*** Cut end [11:22:52]Read from MH i2c: 01 07 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: 01 07 00 DD 3F 00 00 00 00 00 FF 0F 31 [11:22:52]process_action close_receipt done [11:22:52]requested_data is exist [11:22:52]produce_requested_data [11:22:52]requested_item fm.sn is exist - process it [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 11 00 00 [11:22:52]Write to MH i2c: E2 08 00 DE 3F 80 11 00 00 00 00 00 00 97 [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 17 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 17 00 DE 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F3 [11:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:22:52]wFMCommunicate OK [11:22:52]requested_item fd.num is exist - process it [11:22:52]SAM_PROTO_GetFieldsCounters [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 13 00 00 [11:22:52]Write to MH i2c: E2 08 00 DF 3F 80 13 00 00 00 00 00 00 9A [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 62 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 62 00 DF 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 35 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [11:22: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 35 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:52]wFMCommunicate OK [11:22:52]SAM_PROTO_GetFieldsCounters done [11:22:52]requested_item shift.num is exist - process it [11:22:52]requested_item shift.opened is exist - process it [11:22:52]req_shift_opened [11:22:52]FM_GetShiftState [11:22:52]SAM_PROTO_GetShiftState [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 13 01 00 [11:22:52]Write to MH i2c: E2 08 00 E0 3F 80 13 01 00 00 00 00 00 9C [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 0E 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 0E 00 E0 3F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 D9 [11:22:52]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:22:52]wFMCommunicate OK [11:22:52]SAM_PROTO_GetShiftState done [11:22:52]FM_GetShiftState done [11:22:52]req_shift_opened done [11:22:52]requested_item shift.open_date is exist - process it [11:22:52]req_shift_open_date [11:22:52]req_shift_open_date done [11:22:52]produce_requested_data done [11:22:52]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69173,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:22:52]process_action_free close_receipt [11:22:52]json_value_free [11:22:52]json_value_free done [11:22:52]process_json_proto returns [11:22:52]Send response to host [11:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69173,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:22:52]free response buf [11:22:52]execute_script done [11:22:52]execute_script returns [11:22:52]free content buf [11:22:52]Sock 7.Close socket [11:22:52]Sock 7.Thread stoped [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:01]accept exits with 9 [11:23:01]New connection [11:23:01]New thread 3066785124 created [11:23:01]Thread 3066641764 joined [11:23:01]Waiting for new connection... [11:23:01] Sock 9.Parse request [11:23:01]Sock 9.Check first char [11:23:01]Sock 9.First char is OK [11:23:01]request: POST /json_proto HTTP/1.0 [11:23:01]Method: POST [11:23:01]URL: /json_proto [11:23:01]Method is POST - this is cgi request [11:23:01]url: /json_proto [11:23:01]query_string will be loaded in cgi processing [11:23:01]execute_cgi json_proto POST (null) [11:23:01]execute_cgi path=json_proto method=POST [11:23:01]POST find Content-Length [11:23:01]Host: 172.17.49.132:8080 [11:23:01]Content-Length: 677 [11:23:01]Content-Type: application/json [11:23:01] [11:23:01]POST finish read [11:23:01]Found Content-Length = 677 [11:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:01]execute_script... [11:23:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:01]POST & json_proto [11:23:01]process_json_proto [11:23:01]json parsed OK: [11:23:01]protocol is kg_v1.0 [11:23:01]action value=close_receipt [11:23:01]process_action close_receipt [11:23:01]cmd_close_receipt [11:23:01]MH_GetDate [11:23:01]Write to MH i2c: F0 00 00 E1 3F 0F [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: F0 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: F0 09 00 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: F0 09 00 E1 3F 00 1E 2A A6 66 E7 4B C0 64 C2 [11:23:01]GetLastDocTimeStamp 1722165776 [11:23:01]current date 1722165790 [11:23:01]FM_GetShiftState [11:23:01]SAM_PROTO_GetShiftState [11:23:01]wFMCommunicate request_size=4 [11:23:01]MH_SAM_APDU [11:23:01]CAPDU: 80 13 01 00 [11:23:01]Write to MH i2c: E2 08 00 E2 3F 80 13 01 00 00 00 00 00 9E [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:01]Read from MH i2c: E2 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: E2 0E 00 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: E2 0E 00 E2 3F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 DB [11:23:01]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:23:01]wFMCommunicate OK [11:23:01]SAM_PROTO_GetShiftState done [11:23:01]FM_GetShiftState done [11:23:01]opened in 1722127251 [11:23:01]opened+sec_in_day 1722213651 [11:23:01]quantity*price = 20001 [11:23:01]sum+1 = 20002 [11:23:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 57 28.07.2024 11:23 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69174 ФПД: 211700175427707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112310&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69174&fm=211700175427707&tin=02508201610067®Number=0000000000092638&sum=20000 [11:23:02]StoreToDocumentArchive [11:23:02]shift 429 fd 69174 [11:23:02]save to /storage/0429/doc_00069174 [11:23:02]save last doc name /storage/0429/doc_00069174 to /storage/kkm_last_doc_name [11:23:02]save OK [11:23:02]Clear old archive folders... [11:23:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:02]tlvbuf is 00B278B0 [11:23:02]SAM_PROTO_ClearQueue [11:23:02]wFMCommunicate request_size=4 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 09 00 00 [11:23:02]Write to MH i2c: E2 08 00 EF 3F 80 09 00 00 00 00 00 00 A0 [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 EF 3F 00 90 00 A2 [11:23:02]RAPDU: 90 00 [11:23:02]wFMCommunicate OK [11:23:02]SAM_PROTO_ClearQueue done [11:23:02]KKMCreateOFDPacket [11:23:02]OFDProtocolAddRootSTLVToBuf [11:23:02]FM_MakeSignedData [11:23:02]FM_MakeSignedData [11:23:02]SAM_PROTO_SignData [11:23:02]wFMCommunicate request_size=4 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 0D 01 02 [11:23:02]Write to MH i2c: E2 08 00 F0 3F 80 0D 01 02 00 00 00 00 A8 [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 F0 3F 00 90 00 A3 [11:23:02]RAPDU: 90 00 [11:23:02]wFMCommunicate OK [11:23:02]wFMCommunicate request_size=255 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1E 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 36 0E 01 00 35 04 06 00 C0 [11:23:02]Write to MH i2c: E2 02 01 F1 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1E 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 36 0E 01 00 35 04 06 00 C0 00 00 75 [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 F1 3F 00 90 00 A4 [11:23:03]RAPDU: 90 00 [11:23:03]wFMCommunicate OK [11:23:03]wFMCommunicate request_size=10 [11:23:03]MH_SAM_APDU [11:23:03]CAPDU: 80 0D 02 02 05 8A 49 C1 58 7B [11:23:03]Write to MH i2c: E2 0D 00 F2 3F 80 0D 02 02 05 00 8A 49 C1 58 7B 00 00 1C [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 F2 3F 00 90 00 A5 [11:23:03]RAPDU: 90 00 [11:23:03]wFMCommunicate OK [11:23:03]wFMCommunicate request_size=4 [11:23:03]MH_SAM_APDU [11:23:03]CAPDU: 80 0D 03 02 [11:23:03]Write to MH i2c: E2 08 00 F3 3F 80 0D 03 02 00 00 00 00 AD [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 0B 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 0B 00 F3 3F 00 43 E4 EB 24 D7 A4 6C 33 90 00 FE [11:23:03]RAPDU: 43 E4 EB 24 D7 A4 6C 33 90 00 [11:23:03]wFMCommunicate OK [11:23:03]SAM_PROTO_SignData done [11:23:03]FM_MakeSignedData done [11:23:03]CreateOFDProtocolMessage [11:23:03]wFMCommunicate request_size=4 [11:23:03]MH_SAM_APDU [11:23:03]CAPDU: 80 11 00 00 [11:23:03]Write to MH i2c: E2 08 00 F4 3F 80 11 00 00 00 00 00 00 AD [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 17 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 17 00 F4 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 09 [11:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:23:03]wFMCommunicate OK [11:23:03]CreateOFDProtocolMessage done [11:23:03]OFDSenderStorePacket 69174 [11:23:03]StoreOFDPacket docnum=69174 [11:23:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 29 62 07 01 13 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1E 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 36 0E 01 00 35 04 06 00 C0 8A 49 C1 58 7B 43 E4 EB 24 D7 A4 6C 33 [11:23:03]CheckFolder [11:23:03]dirname=/storage/ofd_packets [11:23:03]CheckFolder done [11:23:03]ProducePacketName [11:23:03]name=ofd_packets/00069174 [11:23:03]NVStorageSaveData ofd_packets/00069174 [11:23:03]File name is /storage/ofd_packets/00069174 [11:23:03]Write 301 bytes [11:23:03]NVStorageSaveData done [11:23:03]OFDSenderStorePacket done [11:23:03]KKMCreateOFDPacket done [11:23:03]NVStorageSaveData kkm_last_timestamp [11:23:03]File name is /storage/kkm_last_timestamp [11:23:03]Write 4 bytes [11:23:03]NVStorageSaveData done [11:23:03]ExternCall_PrintAddStr [11:23:03]wPrintStart [11:23:03]Write to MH i2c: 01 00 00 F5 3F 34 [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 07 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 07 00 F5 3F 00 00 00 00 00 FF 0F 49 [11:23:03]RasterBufferAndPrint [11:23:03]line Счет N : (1)871828 [11:23:03]line ИНН: 02508201610067 [11:23:03]line Контрольно-Кассовый Чек [11:23:03]line ПРОДАЖА [11:23:03]line ТРК (МРК, ГНК) : 32 [11:23:03]line Товар: 2710124130 [11:23:03]line Аи-92-К-5 [11:23:03]line 2.950 * 67.80 [11:23:03]line = 200.01 [11:23:03]line НДС 12% НСП 1% [11:23:03]line > о реализуемом товаре [11:23:03]line ОКРУГЛЕНИЕ: -0.01 [11:23:03]line ИТОГО: 200.00 [11:23:03]line Внесено: 200.00 [11:23:03]line СДАЧА: 0.00 [11:23:03]line НСП 1% : 1.77 [11:23:03]line НДС 12% : 21.24 [11:23:03]line Наличными: 200.00 [11:23:03]line Безнал.: 0.00 [11:23:03]line Место: АЗС № 125 "Партнер Нефть" [11:23:03]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:23:03]line СНО: Общий режим [11:23:03]line Чек 57 28.07.2024 11:23 [11:23:03]line Смена: 429 ФФД: 1.0 [11:23:03]line ЗНМ: 0300000049 [11:23:03]line РНМ: 0000000000092638 [11:23:03]line Версия ККМ: 001 [11:23:03]line ФМ: 0000000000874949 [11:23:03]line ФД: 69174 [11:23:03]line ФПД: 211700175427707 [11:23:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112310&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69174&fm=211700175427707&tin=02508201610067®Number=0000000000092638&sum=20000 [11:23:03]written 0, free lines is 4095 [11:23:03]OFD Sender: Processing packet 69174 [packets to send 19, broken 18] [11:23:03]ProducePacketName [11:23:03]name=ofd_packets/00069174 [11:23:03]OFD Sender: To server: pG, [11:23:03]CommunicateWithHost lk.salyk.kg:30040 [11:23:03]ConnectInit lk.salyk.kg [11:23:03]Connected sock=10 [11:23: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 39 34 39 0F 01 00 00 29 62 07 01 13 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1E 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 36 0E 01 00 35 04 06 00 C0 8A 49 C1 58 7B 43 E4 EB 24 D7 A4 6C 33 [11:23:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 35 8D 47 00 CD 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 39 34 39 10 04 04 00 36 0E 01 00 F4 03 04 00 8E D0 A5 66 B6 04 01 00 00 41 A7 AE 61 6D A8 15 78 [11:23:03]CommunicateWithHost err = 0 [11:23:03]CheckOFDResponse [11:23:03]1017 (14) - 77093643461234 [11:23:03]1041 (16) - 0000000000874949 [11:23:03]1040 (4) - 69174 [11:23:03]1012 (4) - 28.07.2024 05:01 [11:23:03]1206 (1) - 0 [11:23:03]OFD Sender: Remove packet 69174 [11:23:03]ProducePacketName [11:23:03]name=ofd_packets/00069174 [11:23:03]NVStorageDeleteData [11:23:03]Write to MH i2c: 01 00 00 20 40 60 [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 07 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 07 00 20 40 00 00 00 00 00 00 0D 74 [11:23:03]RasterBufferAndPrint [11:23:03]line [11:23:03]line [11:23:03]line [11:23:03]line [11:23:03]line [11:23:03]written 0, free lines is 3343 [11:23:03]MH_Cut [11:23:03]Write to MH i2c: D1 01 00 27 40 01 39 [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: D1 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: D1 01 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: D1 01 00 27 40 00 38 [11:23:03]Write to MH i2c: 01 00 00 28 40 68 [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:04]OFD Sender: No OFD packet to send [11:23:04]*** Cut start [11:23:04]*** Partial cut [11:23:04]*** CUTSNS_PIN = 1 [11:23:04]*** CUTSNS_PIN = 0 [11:23:04]*** Brake cut motor [11:23:05]Read from MH i2c: 01 [11:23:05]MH_I2C_Read... [11:23:05]*** Stop cut motor [11:23:05]*** Cut end [11:23:05]Read from MH i2c: 01 07 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: 01 07 00 28 40 00 00 00 00 00 FF 0F 7D [11:23:05]process_action close_receipt done [11:23:05]requested_data is exist [11:23:05]produce_requested_data [11:23:05]requested_item fm.sn is exist - process it [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 11 00 00 [11:23:05]Write to MH i2c: E2 08 00 29 40 80 11 00 00 00 00 00 00 E3 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 17 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 17 00 29 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3F [11:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:23:05]wFMCommunicate OK [11:23:05]requested_item fd.num is exist - process it [11:23:05]SAM_PROTO_GetFieldsCounters [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 13 00 00 [11:23:05]Write to MH i2c: E2 08 00 2A 40 80 13 00 00 00 00 00 00 E6 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 62 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 62 00 2A 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 36 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [11:23: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 36 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:05]wFMCommunicate OK [11:23:05]SAM_PROTO_GetFieldsCounters done [11:23:05]requested_item shift.num is exist - process it [11:23:05]requested_item shift.opened is exist - process it [11:23:05]req_shift_opened [11:23:05]FM_GetShiftState [11:23:05]SAM_PROTO_GetShiftState [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 13 01 00 [11:23:05]Write to MH i2c: E2 08 00 2B 40 80 13 01 00 00 00 00 00 E8 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 0E 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 0E 00 2B 40 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 25 [11:23:05]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:23:05]wFMCommunicate OK [11:23:05]SAM_PROTO_GetShiftState done [11:23:05]FM_GetShiftState done [11:23:05]req_shift_opened done [11:23:05]requested_item shift.open_date is exist - process it [11:23:05]req_shift_open_date [11:23:05]req_shift_open_date done [11:23:05]produce_requested_data done [11:23:05]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69174,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:23:05]process_action_free close_receipt [11:23:05]json_value_free [11:23:05]json_value_free done [11:23:05]process_json_proto returns [11:23:05]Send response to host [11:23:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69174,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:23:05]free response buf [11:23:05]execute_script done [11:23:05]execute_script returns [11:23:05]free content buf [11:23:05]Sock 9.Close socket [11:23:05]Sock 9.Thread stoped [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:35]accept exits with 7 [11:24:35]New connection [11:24:35]New thread 3066641764 created [11:24:35]Thread 3066785124 joined [11:24:35]Waiting for new connection... [11:24:35] Sock 7.Parse request [11:24:35]Sock 7.Check first char [11:24:35]Sock 7.First char is OK [11:24:35]request: POST /json_proto HTTP/1.0 [11:24:35]Method: POST [11:24:35]URL: /json_proto [11:24:35]Method is POST - this is cgi request [11:24:35]url: /json_proto [11:24:35]query_string will be loaded in cgi processing [11:24:35]execute_cgi json_proto POST (null) [11:24:35]execute_cgi path=json_proto method=POST [11:24:35]POST find Content-Length [11:24:35]Host: 172.17.49.132:8080 [11:24:35]Content-Length: 677 [11:24:35]Content-Type: application/json [11:24:35] [11:24:35]POST finish read [11:24:35]Found Content-Length = 677 [11:24:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:35]execute_script... [11:24:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:35]POST & json_proto [11:24:35]process_json_proto [11:24:35]json parsed OK: [11:24:35]protocol is kg_v1.0 [11:24:35]action value=close_receipt [11:24:35]process_action close_receipt [11:24:35]cmd_close_receipt [11:24:35]MH_GetDate [11:24:35]Write to MH i2c: F0 00 00 2C 40 5B [11:24:35]Write i2c OK [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: F0 [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: F0 09 00 [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: F0 09 00 2C 40 00 7C 2A A6 66 E7 4B C0 64 6C [11:24:35]GetLastDocTimeStamp 1722165790 [11:24:35]current date 1722165884 [11:24:35]FM_GetShiftState [11:24:35]SAM_PROTO_GetShiftState [11:24:35]wFMCommunicate request_size=4 [11:24:35]MH_SAM_APDU [11:24:35]CAPDU: 80 13 01 00 [11:24:35]Write to MH i2c: E2 08 00 2D 40 80 13 01 00 00 00 00 00 EA [11:24:35]Write i2c OK [11:24:35]MH_I2C_Read... [11:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:35]Read from MH i2c: E2 [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: E2 0E 00 [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: E2 0E 00 2D 40 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 27 [11:24:35]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:24:35]wFMCommunicate OK [11:24:35]SAM_PROTO_GetShiftState done [11:24:35]FM_GetShiftState done [11:24:35]opened in 1722127251 [11:24:35]opened+sec_in_day 1722213651 [11:24:35]quantity*price = 50036 [11:24:35]sum+1 = 50037 [11:24:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 58 28.07.2024 11:24 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69175 ФПД: 253605085993558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112444&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69175&fm=253605085993558&tin=02508201610067®Number=0000000000092638&sum=50000 [11:24:36]StoreToDocumentArchive [11:24:36]shift 429 fd 69175 [11:24:36]save to /storage/0429/doc_00069175 [11:24:36]save last doc name /storage/0429/doc_00069175 to /storage/kkm_last_doc_name [11:24:36]save OK [11:24:36]Clear old archive folders... [11:24:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:36]tlvbuf is B6F2F8B0 [11:24:36]SAM_PROTO_ClearQueue [11:24:36]wFMCommunicate request_size=4 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 09 00 00 [11:24:36]Write to MH i2c: E2 08 00 3A 40 80 09 00 00 00 00 00 00 EC [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 3A 40 00 90 00 EE [11:24:36]RAPDU: 90 00 [11:24:36]wFMCommunicate OK [11:24:36]SAM_PROTO_ClearQueue done [11:24:36]KKMCreateOFDPacket [11:24:36]OFDProtocolAddRootSTLVToBuf [11:24:36]FM_MakeSignedData [11:24:36]FM_MakeSignedData [11:24:36]SAM_PROTO_SignData [11:24:36]wFMCommunicate request_size=4 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 0D 01 02 [11:24:36]Write to MH i2c: E2 08 00 3B 40 80 0D 01 02 00 00 00 00 F4 [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 3B 40 00 90 00 EF [11:24:36]RAPDU: 90 00 [11:24:36]wFMCommunicate OK [11:24:36]wFMCommunicate request_size=255 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7C 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 37 0E 01 00 35 04 06 00 E6 [11:24:36]Write to MH i2c: E2 02 01 3C 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7C 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 37 0E 01 00 35 04 06 00 E6 00 00 45 [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:37]Read from MH i2c: E2 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: E2 03 00 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: E2 03 00 3C 40 00 90 00 F0 [11:24:37]RAPDU: 90 00 [11:24:37]wFMCommunicate OK [11:24:37]wFMCommunicate request_size=10 [11:24:37]MH_SAM_APDU [11:24:37]CAPDU: 80 0D 02 02 05 A7 09 10 5A 56 [11:24:37]Write to MH i2c: E2 0D 00 3D 40 80 0D 02 02 05 00 A7 09 10 5A 56 00 00 71 [11:24:37]Write i2c OK [11:24:37]MH_I2C_Read... [11:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:37]Read from MH i2c: E2 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: E2 03 00 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: E2 03 00 3D 40 00 90 00 F1 [11:24:37]RAPDU: 90 00 [11:24:37]wFMCommunicate OK [11:24:37]wFMCommunicate request_size=4 [11:24:37]MH_SAM_APDU [11:24:37]CAPDU: 80 0D 03 02 [11:24:37]Write to MH i2c: E2 08 00 3E 40 80 0D 03 02 00 00 00 00 F9 [11:24:37]Write i2c OK [11:24:37]MH_I2C_Read... [11:24:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:37]Read from MH i2c: E2 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: E2 0B 00 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: E2 0B 00 3E 40 00 3B 2E 3A BA A4 DC E1 E7 90 00 9F [11:24:37]RAPDU: 3B 2E 3A BA A4 DC E1 E7 90 00 [11:24:37]wFMCommunicate OK [11:24:37]SAM_PROTO_SignData done [11:24:37]FM_MakeSignedData done [11:24:37]CreateOFDProtocolMessage [11:24:37]wFMCommunicate request_size=4 [11:24:37]MH_SAM_APDU [11:24:37]CAPDU: 80 11 00 00 [11:24:37]Write to MH i2c: E2 08 00 3F 40 80 11 00 00 00 00 00 00 F9 [11:24:37]Write i2c OK [11:24:37]MH_I2C_Read... [11:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:37]Read from MH i2c: E2 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: E2 17 00 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: E2 17 00 3F 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 55 [11:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:24:37]wFMCommunicate OK [11:24:37]CreateOFDProtocolMessage done [11:24:37]OFDSenderStorePacket 69175 [11:24:37]StoreOFDPacket docnum=69175 [11:24:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 89 1A 07 01 8F 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7C 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 37 0E 01 00 35 04 06 00 E6 A7 09 10 5A 56 3B 2E 3A BA A4 DC E1 E7 [11:24:37]CheckFolder [11:24:37]dirname=/storage/ofd_packets [11:24:37]CheckFolder done [11:24:37]ProducePacketName [11:24:37]name=ofd_packets/00069175 [11:24:37]NVStorageSaveData ofd_packets/00069175 [11:24:37]File name is /storage/ofd_packets/00069175 [11:24:37]Write 301 bytes [11:24:37]NVStorageSaveData done [11:24:37]OFDSenderStorePacket done [11:24:37]KKMCreateOFDPacket done [11:24:37]NVStorageSaveData kkm_last_timestamp [11:24:37]File name is /storage/kkm_last_timestamp [11:24:37]Write 4 bytes [11:24:37]NVStorageSaveData done [11:24:37]ExternCall_PrintAddStr [11:24:37]wPrintStart [11:24:37]Write to MH i2c: 01 00 00 40 40 80 [11:24:37]Write i2c OK [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: 01 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: 01 07 00 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: 01 07 00 40 40 00 00 00 00 00 FF 0F 95 [11:24:37]RasterBufferAndPrint [11:24:37]line Счет N : (1)871830 [11:24:37]line ИНН: 02508201610067 [11:24:37]line Контрольно-Кассовый Чек [11:24:37]line ПРОДАЖА [11:24:37]line ТРК (МРК, ГНК) : 62 [11:24:37]line Товар: 2710124130 [11:24:37]line Аи-92-К-5 [11:24:37]line 7.380 * 67.80 [11:24:37]line = 500.36 [11:24:37]line НДС 12% НСП 1% [11:24:37]line > о реализуемом товаре [11:24:37]line ОКРУГЛЕНИЕ: -0.36 [11:24:37]line ИТОГО: 500.00 [11:24:37]line Внесено: 500.00 [11:24:37]line СДАЧА: 0.00 [11:24:37]line НСП 1% : 4.43 [11:24:37]line НДС 12% : 53.14 [11:24:37]line Наличными: 500.00 [11:24:37]line Безнал.: 0.00 [11:24:37]line Место: АЗС № 125 "Партнер Нефть" [11:24:37]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:24:37]line СНО: Общий режим [11:24:37]line Чек 58 28.07.2024 11:24 [11:24:37]line Смена: 429 ФФД: 1.0 [11:24:37]line ЗНМ: 0300000049 [11:24:37]line РНМ: 0000000000092638 [11:24:37]line Версия ККМ: 001 [11:24:37]line ФМ: 0000000000874949 [11:24:37]line ФД: 69175 [11:24:37]line ФПД: 253605085993558 [11:24:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112444&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69175&fm=253605085993558&tin=02508201610067®Number=0000000000092638&sum=50000 [11:24:37]written 0, free lines is 4095 [11:24:37]OFD Sender: Processing packet 69175 [packets to send 19, broken 18] [11:24:37]ProducePacketName [11:24:37]name=ofd_packets/00069175 [11:24:37]OFD Sender: To server: pG, [11:24:37]CommunicateWithHost lk.salyk.kg:30040 [11:24:37]ConnectInit lk.salyk.kg [11:24:37]Connected sock=10 [11:24: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 39 34 39 0F 01 00 00 89 1A 07 01 8F 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7C 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 37 0E 01 00 35 04 06 00 E6 A7 09 10 5A 56 3B 2E 3A BA A4 DC E1 E7 [11:24:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 95 22 47 00 8C DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 37 0E 01 00 F4 03 04 00 EC D0 A5 66 B6 04 01 00 00 1A 7B 48 58 76 05 9B 2D [11:24:37]CommunicateWithHost err = 0 [11:24:37]CheckOFDResponse [11:24:37]1017 (14) - 77093643461234 [11:24:37]1041 (16) - 0000000000874949 [11:24:37]1040 (4) - 69175 [11:24:37]1012 (4) - 28.07.2024 05:02 [11:24:37]1206 (1) - 0 [11:24:37]OFD Sender: Remove packet 69175 [11:24:37]ProducePacketName [11:24:37]name=ofd_packets/00069175 [11:24:37]NVStorageDeleteData [11:24:38]Write to MH i2c: 01 00 00 6B 40 AB [11:24:38]Write i2c OK [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: 01 [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: 01 07 00 [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: 01 07 00 6B 40 00 00 00 00 00 ED 0C AB [11:24:38]RasterBufferAndPrint [11:24:38]line [11:24:38]line [11:24:38]line [11:24:38]line [11:24:38]line [11:24:38]written 0, free lines is 3315 [11:24:38]MH_Cut [11:24:38]Write to MH i2c: D1 01 00 72 40 01 84 [11:24:38]Write i2c OK [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: D1 [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: D1 01 00 [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: D1 01 00 72 40 00 83 [11:24:38]Write to MH i2c: 01 00 00 73 40 B3 [11:24:38]Write i2c OK [11:24:38]MH_I2C_Read... [11:24:38]OFD Sender: No OFD packet to send [11:24:38]*** Cut start [11:24:38]*** Partial cut [11:24:38]*** CUTSNS_PIN = 1 [11:24:38]*** CUTSNS_PIN = 0 [11:24:38]*** Brake cut motor [11:24:39]Read from MH i2c: 01 [11:24:39]MH_I2C_Read... [11:24:39]*** Stop cut motor [11:24:39]*** Cut end [11:24:39]Read from MH i2c: 01 07 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: 01 07 00 73 40 00 00 00 00 00 FF 0F C8 [11:24:39]process_action close_receipt done [11:24:39]requested_data is exist [11:24:39]produce_requested_data [11:24:39]requested_item fm.sn is exist - process it [11:24:39]wFMCommunicate request_size=4 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 11 00 00 [11:24:39]Write to MH i2c: E2 08 00 74 40 80 11 00 00 00 00 00 00 2E [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 17 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 17 00 74 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 8A [11:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:24:39]wFMCommunicate OK [11:24:39]requested_item fd.num is exist - process it [11:24:39]SAM_PROTO_GetFieldsCounters [11:24:39]wFMCommunicate request_size=4 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 13 00 00 [11:24:39]Write to MH i2c: E2 08 00 75 40 80 13 00 00 00 00 00 00 31 [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 62 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 62 00 75 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 37 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [11:24: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 37 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:39]wFMCommunicate OK [11:24:39]SAM_PROTO_GetFieldsCounters done [11:24:39]requested_item shift.num is exist - process it [11:24:39]requested_item shift.opened is exist - process it [11:24:39]req_shift_opened [11:24:39]FM_GetShiftState [11:24:39]SAM_PROTO_GetShiftState [11:24:39]wFMCommunicate request_size=4 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 13 01 00 [11:24:39]Write to MH i2c: E2 08 00 76 40 80 13 01 00 00 00 00 00 33 [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 0E 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 0E 00 76 40 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 70 [11:24:39]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:24:39]wFMCommunicate OK [11:24:39]SAM_PROTO_GetShiftState done [11:24:39]FM_GetShiftState done [11:24:39]req_shift_opened done [11:24:39]requested_item shift.open_date is exist - process it [11:24:39]req_shift_open_date [11:24:39]req_shift_open_date done [11:24:39]produce_requested_data done [11:24:39]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69175,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:24:39]process_action_free close_receipt [11:24:39]json_value_free [11:24:39]json_value_free done [11:24:39]process_json_proto returns [11:24:39]Send response to host [11:24:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69175,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:24:39]free response buf [11:24:39]execute_script done [11:24:39]execute_script returns [11:24:39]free content buf [11:24:39]Sock 7.Close socket [11:24:39]Sock 7.Thread stoped [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:14]accept exits with 9 [11:25:14]New connection [11:25:14]New thread 3066785124 created [11:25:14]Thread 3066641764 joined [11:25:14]Waiting for new connection... [11:25:14] Sock 9.Parse request [11:25:14]Sock 9.Check first char [11:25:14]Sock 9.First char is OK [11:25:14]request: POST /json_proto HTTP/1.0 [11:25:14]Method: POST [11:25:14]URL: /json_proto [11:25:14]Method is POST - this is cgi request [11:25:14]url: /json_proto [11:25:14]query_string will be loaded in cgi processing [11:25:14]execute_cgi json_proto POST (null) [11:25:14]execute_cgi path=json_proto method=POST [11:25:14]POST find Content-Length [11:25:14]Host: 172.17.49.132:8080 [11:25:14]Content-Length: 677 [11:25:14]Content-Type: application/json [11:25:14] [11:25:14]POST finish read [11:25:14]Found Content-Length = 677 [11:25:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:14]execute_script... [11: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)871829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:14]POST & json_proto [11:25:14]process_json_proto [11:25:14]json parsed OK: [11:25:14]protocol is kg_v1.0 [11:25:14]action value=close_receipt [11:25:14]process_action close_receipt [11:25:14]cmd_close_receipt [11:25:14]MH_GetDate [11:25:14]Write to MH i2c: F0 00 00 77 40 A6 [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: F0 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: F0 09 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: F0 09 00 77 40 00 A2 2A A6 66 E7 4B C0 64 DD [11:25:14]GetLastDocTimeStamp 1722165884 [11:25:14]current date 1722165922 [11:25:14]FM_GetShiftState [11:25:14]SAM_PROTO_GetShiftState [11:25:14]wFMCommunicate request_size=4 [11:25:14]MH_SAM_APDU [11:25:14]CAPDU: 80 13 01 00 [11:25:14]Write to MH i2c: E2 08 00 78 40 80 13 01 00 00 00 00 00 35 [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:14]Read from MH i2c: E2 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 0E 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 0E 00 78 40 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 72 [11:25:14]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:25:14]wFMCommunicate OK [11:25:14]SAM_PROTO_GetShiftState done [11:25:14]FM_GetShiftState done [11:25:14]opened in 1722127251 [11:25:14]opened+sec_in_day 1722213651 [11:25:14]quantity*price = 60003 [11:25:14]sum+1 = 60004 [11:25:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 59 28.07.2024 11:25 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69176 ФПД: 189790319988065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112522&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69176&fm=189790319988065&tin=02508201610067®Number=0000000000092638&sum=60000 [11:25:15]StoreToDocumentArchive [11:25:15]shift 429 fd 69176 [11:25:15]save to /storage/0429/doc_00069176 [11:25:15]save last doc name /storage/0429/doc_00069176 to /storage/kkm_last_doc_name [11:25:15]save OK [11:25:15]Clear old archive folders... [11:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:15]tlvbuf is 00A50040 [11:25:15]SAM_PROTO_ClearQueue [11:25:15]wFMCommunicate request_size=4 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 09 00 00 [11:25:15]Write to MH i2c: E2 08 00 85 40 80 09 00 00 00 00 00 00 37 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 85 40 00 90 00 39 [11:25:15]RAPDU: 90 00 [11:25:15]wFMCommunicate OK [11:25:15]SAM_PROTO_ClearQueue done [11:25:15]KKMCreateOFDPacket [11:25:15]OFDProtocolAddRootSTLVToBuf [11:25:15]FM_MakeSignedData [11:25:15]FM_MakeSignedData [11:25:15]SAM_PROTO_SignData [11:25:15]wFMCommunicate request_size=4 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 0D 01 02 [11:25:15]Write to MH i2c: E2 08 00 86 40 80 0D 01 02 00 00 00 00 3F [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 86 40 00 90 00 3A [11:25:15]RAPDU: 90 00 [11:25:15]wFMCommunicate OK [11:25:15]wFMCommunicate request_size=255 [11:25:15]MH_SAM_APDU [11: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 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A2 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 38 0E 01 00 35 04 06 00 AC [11:25:15]Write to MH i2c: E2 02 01 87 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A2 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 38 0E 01 00 35 04 06 00 AC 00 00 45 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 87 40 00 90 00 3B [11:25:15]RAPDU: 90 00 [11:25:15]wFMCommunicate OK [11:25:15]wFMCommunicate request_size=10 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 0D 02 02 05 9D 00 9A CD 61 [11:25:15]Write to MH i2c: E2 0D 00 88 40 80 0D 02 02 05 00 9D 00 9A CD 61 00 00 B1 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 03 00 88 40 00 90 00 3C [11:25:15]RAPDU: 90 00 [11:25:15]wFMCommunicate OK [11:25:15]wFMCommunicate request_size=4 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 0D 03 02 [11:25:15]Write to MH i2c: E2 08 00 89 40 80 0D 03 02 00 00 00 00 44 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 0B 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 0B 00 89 40 00 22 83 62 2C 81 01 89 EE 90 00 71 [11:25:15]RAPDU: 22 83 62 2C 81 01 89 EE 90 00 [11:25:15]wFMCommunicate OK [11:25:15]SAM_PROTO_SignData done [11:25:15]FM_MakeSignedData done [11:25:15]CreateOFDProtocolMessage [11:25:15]wFMCommunicate request_size=4 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 11 00 00 [11:25:15]Write to MH i2c: E2 08 00 8A 40 80 11 00 00 00 00 00 00 44 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 17 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 17 00 8A 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A0 [11:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:25:15]wFMCommunicate OK [11:25:15]CreateOFDProtocolMessage done [11:25:15]OFDSenderStorePacket 69176 [11:25:15]StoreOFDPacket docnum=69176 [11:25:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 AD CD 07 01 15 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A2 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 38 0E 01 00 35 04 06 00 AC 9D 00 9A CD 61 22 83 62 2C 81 01 89 EE [11:25:15]CheckFolder [11:25:15]dirname=/storage/ofd_packets [11:25:15]CheckFolder done [11:25:15]ProducePacketName [11:25:15]name=ofd_packets/00069176 [11:25:15]NVStorageSaveData ofd_packets/00069176 [11:25:15]File name is /storage/ofd_packets/00069176 [11:25:15]Write 301 bytes [11:25:15]NVStorageSaveData done [11:25:15]OFDSenderStorePacket done [11:25:15]KKMCreateOFDPacket done [11:25:15]NVStorageSaveData kkm_last_timestamp [11:25:15]File name is /storage/kkm_last_timestamp [11:25:15]Write 4 bytes [11:25:15]NVStorageSaveData done [11:25:15]ExternCall_PrintAddStr [11:25:15]wPrintStart [11:25:15]Write to MH i2c: 01 00 00 8B 40 CB [11:25:15]OFD Sender: Processing packet 69176 [packets to send 19, broken 18] [11:25:15]ProducePacketName [11:25:15]name=ofd_packets/00069176 [11:25:15]OFD Sender: To server: pG, [11:25:15]CommunicateWithHost lk.salyk.kg:30040 [11:25:15]ConnectInit lk.salyk.kg [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: 01 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: 01 07 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: 01 07 00 8B 40 00 00 00 00 00 FF 0F E0 [11:25:15]RasterBufferAndPrint [11:25:15]line Счет N : (1)871829 [11:25:15]line ИНН: 02508201610067 [11:25:15]line Контрольно-Кассовый Чек [11:25:15]line ПРОДАЖА [11:25:15]line ТРК (МРК, ГНК) : 42 [11:25:15]line Товар: 2710124130 [11:25:15]line Аи-92-К-5 [11:25:15]line 8.850 * 67.80 [11:25:15]line = 600.03 [11:25:15]line НДС 12% НСП 1% [11:25:15]line > о реализуемом товаре [11:25:15]line ОКРУГЛЕНИЕ: -0.03 [11:25:15]line ИТОГО: 600.00 [11:25:15]line Внесено: 600.00 [11:25:15]line СДАЧА: 0.00 [11:25:15]line НСП 1% : 5.31 [11:25:15]line НДС 12% : 63.72 [11:25:15]line Наличными: 600.00 [11:25:15]line Безнал.: 0.00 [11:25:15]line Место: АЗС № 125 "Партнер Нефть" [11:25:15]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:25:15]line СНО: Общий режим [11:25:15]line Чек 59 28.07.2024 11:25 [11:25:15]line Смена: 429 ФФД: 1.0 [11:25:15]line ЗНМ: 0300000049 [11:25:15]line РНМ: 0000000000092638 [11:25:15]line Версия ККМ: 001 [11:25:15]line ФМ: 0000000000874949 [11:25:15]line ФД: 69176 [11:25:15]line ФПД: 189790319988065 [11:25:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112522&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69176&fm=189790319988065&tin=02508201610067®Number=0000000000092638&sum=60000 [11:25:16]Connected sock=7 [11: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 39 34 39 0F 01 00 00 AD CD 07 01 15 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A2 2A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 38 0E 01 00 35 04 06 00 AC 9D 00 9A CD 61 22 83 62 2C 81 01 89 EE [11:25:16]written 0, free lines is 4095 [11: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 39 34 39 4F 00 00 00 55 AF 47 00 9F 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 39 34 39 10 04 04 00 38 0E 01 00 F4 03 04 00 12 D1 A5 66 B6 04 01 00 00 95 3D D5 DD DD 29 92 D5 [11:25:16]CommunicateWithHost err = 0 [11:25:16]CheckOFDResponse [11:25:16]1017 (14) - 77093643461234 [11:25:16]1041 (16) - 0000000000874949 [11:25:16]1040 (4) - 69176 [11:25:16]1012 (4) - 28.07.2024 05:03 [11:25:16]1206 (1) - 0 [11:25:16]OFD Sender: Remove packet 69176 [11:25:16]ProducePacketName [11:25:16]name=ofd_packets/00069176 [11:25:16]NVStorageDeleteData [11:25:16]Write to MH i2c: 01 00 00 B6 40 F6 [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: 01 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: 01 07 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: 01 07 00 B6 40 00 00 00 00 00 FA 0C 03 [11:25:16]RasterBufferAndPrint [11:25:16]line [11:25:16]line [11:25:16]line [11:25:16]line [11:25:16]line [11:25:16]written 0, free lines is 3332 [11:25:16]MH_Cut [11:25:16]Write to MH i2c: D1 01 00 BD 40 01 CF [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: D1 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: D1 01 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: D1 01 00 BD 40 00 CE [11:25:16]Write to MH i2c: 01 00 00 BE 40 FE [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]OFD Sender: No OFD packet to send [11:25:17]*** Cut start [11:25:17]*** Partial cut [11:25:17]*** CUTSNS_PIN = 1 [11:25:17]*** CUTSNS_PIN = 0 [11:25:17]*** Brake cut motor [11:25:17]Read from MH i2c: 01 [11:25:17]MH_I2C_Read... [11:25:17]*** Stop cut motor [11:25:17]*** Cut end [11:25:17]Read from MH i2c: 01 07 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: 01 07 00 BE 40 00 00 00 00 00 FF 0F 13 [11:25:17]process_action close_receipt done [11:25:17]requested_data is exist [11:25:17]produce_requested_data [11:25:17]requested_item fm.sn is exist - process it [11:25:17]wFMCommunicate request_size=4 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 11 00 00 [11:25:17]Write to MH i2c: E2 08 00 BF 40 80 11 00 00 00 00 00 00 79 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:18]Read from MH i2c: E2 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 17 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 17 00 BF 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D5 [11:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:25:18]wFMCommunicate OK [11:25:18]requested_item fd.num is exist - process it [11:25:18]SAM_PROTO_GetFieldsCounters [11:25:18]wFMCommunicate request_size=4 [11:25:18]MH_SAM_APDU [11:25:18]CAPDU: 80 13 00 00 [11:25:18]Write to MH i2c: E2 08 00 C0 40 80 13 00 00 00 00 00 00 7C [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:18]Read from MH i2c: E2 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 62 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 62 00 C0 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 38 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [11: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 38 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:18]wFMCommunicate OK [11:25:18]SAM_PROTO_GetFieldsCounters done [11:25:18]requested_item shift.num is exist - process it [11:25:18]requested_item shift.opened is exist - process it [11:25:18]req_shift_opened [11:25:18]FM_GetShiftState [11:25:18]SAM_PROTO_GetShiftState [11:25:18]wFMCommunicate request_size=4 [11:25:18]MH_SAM_APDU [11:25:18]CAPDU: 80 13 01 00 [11:25:18]Write to MH i2c: E2 08 00 C1 40 80 13 01 00 00 00 00 00 7E [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:18]Read from MH i2c: E2 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 0E 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: E2 0E 00 C1 40 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 BB [11:25:18]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:25:18]wFMCommunicate OK [11:25:18]SAM_PROTO_GetShiftState done [11:25:18]FM_GetShiftState done [11:25:18]req_shift_opened done [11:25:18]requested_item shift.open_date is exist - process it [11:25:18]req_shift_open_date [11:25:18]req_shift_open_date done [11:25:18]produce_requested_data done [11:25:18]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69176,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:25:18]process_action_free close_receipt [11:25:18]json_value_free [11:25:18]json_value_free done [11:25:18]process_json_proto returns [11:25:18]Send response to host [11:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69176,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:25:18]free response buf [11:25:18]execute_script done [11:25:18]execute_script returns [11:25:18]free content buf [11:25:18]Sock 9.Close socket [11:25:18]Sock 9.Thread stoped [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]accept exits with 10 [11:29:42]New connection [11:29:42]New thread 3066641764 created [11:29:42]Thread 3066785124 joined [11:29:42]Waiting for new connection... [11:29:42] Sock 10.Parse request [11:29:42]Sock 10.Check first char [11:29:42]Sock 10.First char is OK [11:29:42]request: POST /json_proto HTTP/1.0 [11:29:42]Method: POST [11:29:42]URL: /json_proto [11:29:42]Method is POST - this is cgi request [11:29:42]url: /json_proto [11:29:42]query_string will be loaded in cgi processing [11:29:42]execute_cgi json_proto POST (null) [11:29:42]execute_cgi path=json_proto method=POST [11:29:42]POST find Content-Length [11:29:42]Host: 172.17.49.132:8080 [11:29:42]Content-Length: 678 [11:29:42]Content-Type: application/json [11:29:42] [11:29:42]POST finish read [11:29:42]Found Content-Length = 678 [11:29:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:42]execute_script... [11:29:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:42]POST & json_proto [11:29:42]process_json_proto [11:29:42]json parsed OK: [11:29:42]protocol is kg_v1.0 [11:29:42]action value=close_receipt [11:29:42]process_action close_receipt [11:29:42]cmd_close_receipt [11:29:42]MH_GetDate [11:29:42]Write to MH i2c: F0 00 00 C2 40 F1 [11:29:42]Write i2c OK [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: F0 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: F0 09 00 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: F0 09 00 C2 40 00 AE 2B A6 66 E7 4B C0 64 35 [11:29:42]GetLastDocTimeStamp 1722165922 [11:29:42]current date 1722166190 [11:29:42]FM_GetShiftState [11:29:42]SAM_PROTO_GetShiftState [11:29:42]wFMCommunicate request_size=4 [11:29:42]MH_SAM_APDU [11:29:42]CAPDU: 80 13 01 00 [11:29:42]Write to MH i2c: E2 08 00 C3 40 80 13 01 00 00 00 00 00 80 [11:29:42]Write i2c OK [11:29:42]MH_I2C_Read... [11:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:42]OFD Sender: No OFD packet to send [11:29:42]Read from MH i2c: E2 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 0E 00 [11:29:42]MH_I2C_Read... [11:29:42]Read from MH i2c: E2 0E 00 C3 40 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 BD [11:29:42]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:29:42]wFMCommunicate OK [11:29:42]SAM_PROTO_GetShiftState done [11:29:42]FM_GetShiftState done [11:29:42]opened in 1722127251 [11:29:42]opened+sec_in_day 1722213651 [11:29:42]quantity*price = 70037 [11:29:42]sum+1 = 70038 [11:29:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 60 28.07.2024 11:29 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69177 ФПД: 93168571467062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112950&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69177&fm=93168571467062&tin=02508201610067®Number=0000000000092638&sum=70000 [11:29:43]StoreToDocumentArchive [11:29:43]shift 429 fd 69177 [11:29:43]save to /storage/0429/doc_00069177 [11:29:43]save last doc name /storage/0429/doc_00069177 to /storage/kkm_last_doc_name [11:29:43]save OK [11:29:43]Clear old archive folders... [11:29:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:43]tlvbuf is 00A31BF0 [11:29:43]SAM_PROTO_ClearQueue [11:29:43]wFMCommunicate request_size=4 [11:29:43]MH_SAM_APDU [11:29:43]CAPDU: 80 09 00 00 [11:29:43]Write to MH i2c: E2 08 00 D0 40 80 09 00 00 00 00 00 00 82 [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:43]Read from MH i2c: E2 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 D0 40 00 90 00 84 [11:29:43]RAPDU: 90 00 [11:29:43]wFMCommunicate OK [11:29:43]SAM_PROTO_ClearQueue done [11:29:43]KKMCreateOFDPacket [11:29:43]OFDProtocolAddRootSTLVToBuf [11:29:43]FM_MakeSignedData [11:29:43]FM_MakeSignedData [11:29:43]SAM_PROTO_SignData [11:29:43]wFMCommunicate request_size=4 [11:29:43]MH_SAM_APDU [11:29:43]CAPDU: 80 0D 01 02 [11:29:43]Write to MH i2c: E2 08 00 D1 40 80 0D 01 02 00 00 00 00 8A [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 [11:29:43]MH_I2C_Read... [11:29:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:43]Read from MH i2c: E2 03 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 D1 40 00 90 00 85 [11:29:43]RAPDU: 90 00 [11:29:43]wFMCommunicate OK [11:29:43]wFMCommunicate request_size=255 [11:29:43]MH_SAM_APDU [11:29:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AE 2B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 39 0E 01 00 35 04 06 00 54 [11:29:43]Write to MH i2c: E2 02 01 D2 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AE 2B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 39 0E 01 00 35 04 06 00 54 00 00 67 [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:43]Read from MH i2c: E2 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 D2 40 00 90 00 86 [11:29:43]RAPDU: 90 00 [11:29:43]wFMCommunicate OK [11:29:43]wFMCommunicate request_size=10 [11:29:43]MH_SAM_APDU [11:29:43]CAPDU: 80 0D 02 02 05 BC 7F 9B 45 36 [11:29:43]Write to MH i2c: E2 0D 00 D3 40 80 0D 02 02 05 00 BC 7F 9B 45 36 00 00 E8 [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:43]Read from MH i2c: E2 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 03 00 D3 40 00 90 00 87 [11:29:43]RAPDU: 90 00 [11:29:43]wFMCommunicate OK [11:29:43]wFMCommunicate request_size=4 [11:29:43]MH_SAM_APDU [11:29:43]CAPDU: 80 0D 03 02 [11:29:43]Write to MH i2c: E2 08 00 D4 40 80 0D 03 02 00 00 00 00 8F [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:43]Read from MH i2c: E2 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 0B 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 0B 00 D4 40 00 3E 6F D2 CB 19 16 2F 74 90 00 AC [11:29:43]RAPDU: 3E 6F D2 CB 19 16 2F 74 90 00 [11:29:43]wFMCommunicate OK [11:29:43]SAM_PROTO_SignData done [11:29:43]FM_MakeSignedData done [11:29:43]CreateOFDProtocolMessage [11:29:43]wFMCommunicate request_size=4 [11:29:43]MH_SAM_APDU [11:29:43]CAPDU: 80 11 00 00 [11:29:43]Write to MH i2c: E2 08 00 D5 40 80 11 00 00 00 00 00 00 8F [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:43]Read from MH i2c: E2 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 17 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 17 00 D5 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 EB [11:29:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:29:43]wFMCommunicate OK [11:29:43]CreateOFDProtocolMessage done [11:29:43]OFDSenderStorePacket 69177 [11:29:43]StoreOFDPacket docnum=69177 [11:29:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 12 82 07 01 70 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AE 2B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 39 0E 01 00 35 04 06 00 54 BC 7F 9B 45 36 3E 6F D2 CB 19 16 2F 74 [11:29:43]CheckFolder [11:29:43]dirname=/storage/ofd_packets [11:29:43]CheckFolder done [11:29:43]ProducePacketName [11:29:43]name=ofd_packets/00069177 [11:29:43]NVStorageSaveData ofd_packets/00069177 [11:29:43]File name is /storage/ofd_packets/00069177 [11:29:43]Write 301 bytes [11:29:43]NVStorageSaveData done [11:29:43]OFDSenderStorePacket done [11:29:43]KKMCreateOFDPacket done [11:29:43]NVStorageSaveData kkm_last_timestamp [11:29:43]File name is /storage/kkm_last_timestamp [11:29:43]Write 4 bytes [11:29:43]NVStorageSaveData done [11:29:43]ExternCall_PrintAddStr [11:29:43]wPrintStart [11:29:43]Write to MH i2c: 01 00 00 D6 40 16 [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: 01 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: 01 07 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: 01 07 00 D6 40 00 00 00 00 00 FF 0F 2B [11:29:43]RasterBufferAndPrint [11:29:43]line Счет N : (1)871832 [11:29:43]line ИНН: 02508201610067 [11:29:43]line Контрольно-Кассовый Чек [11:29:43]line ПРОДАЖА [11:29:43]line ТРК (МРК, ГНК) : 62 [11:29:43]line Товар: 2710124130 [11:29:43]line Аи-92-К-5 [11:29:43]line 10.330 * 67.80 [11:29:43]line = 700.37 [11:29:43]line НДС 12% НСП 1% [11:29:43]line > о реализуемом товаре [11:29:43]line ОКРУГЛЕНИЕ: -0.37 [11:29:43]line ИТОГО: 700.00 [11:29:43]line Внесено: 700.00 [11:29:43]line СДАЧА: 0.00 [11:29:43]line НСП 1% : 6.20 [11:29:43]line НДС 12% : 74.38 [11:29:43]line Наличными: 700.00 [11:29:43]line Безнал.: 0.00 [11:29:43]line Место: АЗС № 125 "Партнер Нефть" [11:29:43]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:29:43]line СНО: Общий режим [11:29:43]line Чек 60 28.07.2024 11:29 [11:29:43]line Смена: 429 ФФД: 1.0 [11:29:43]line ЗНМ: 0300000049 [11:29:43]line РНМ: 0000000000092638 [11:29:43]line Версия ККМ: 001 [11:29:43]line ФМ: 0000000000874949 [11:29:43]line ФД: 69177 [11:29:43]line ФПД: 93168571467062 [11:29:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T112950&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69177&fm=93168571467062&tin=02508201610067®Number=0000000000092638&sum=70000 [11:29:44]OFD Sender: Processing packet 69177 [packets to send 19, broken 18] [11:29:44]ProducePacketName [11:29:44]name=ofd_packets/00069177 [11:29:44]OFD Sender: To server: pG, [11:29:44]CommunicateWithHost lk.salyk.kg:30040 [11:29:44]ConnectInit lk.salyk.kg [11:29:44]written 0, free lines is 4095 [11:29:44]Connected sock=9 [11:29:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 12 82 07 01 70 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AE 2B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 39 0E 01 00 35 04 06 00 54 BC 7F 9B 45 36 3E 6F D2 CB 19 16 2F 74 [11:29:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 C8 45 47 00 9B 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 39 0E 01 00 F4 03 04 00 1E D2 A5 66 B6 04 01 00 00 0E E7 31 CC BC 4D A9 DA [11:29:44]CommunicateWithHost err = 0 [11:29:44]CheckOFDResponse [11:29:44]1017 (14) - 77093643461234 [11:29:44]1041 (16) - 0000000000874949 [11:29:44]1040 (4) - 69177 [11:29:44]1012 (4) - 28.07.2024 05:07 [11:29:44]1206 (1) - 0 [11:29:44]OFD Sender: Remove packet 69177 [11:29:44]ProducePacketName [11:29:44]name=ofd_packets/00069177 [11:29:44]NVStorageDeleteData [11:29:44]Write to MH i2c: 01 00 00 01 41 42 [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: 01 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: 01 07 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: 01 07 00 01 41 00 00 00 00 00 E7 0C 3C [11:29:44]RasterBufferAndPrint [11:29:44]line [11:29:44]line [11:29:44]line [11:29:44]line [11:29:44]line [11:29:44]written 0, free lines is 3310 [11:29:44]MH_Cut [11:29:44]Write to MH i2c: D1 01 00 08 41 01 1B [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: D1 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: D1 01 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: D1 01 00 08 41 00 1A [11:29:44]Write to MH i2c: 01 00 00 09 41 4A [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]OFD Sender: No OFD packet to send [11:29:45]*** Cut start [11:29:45]*** Partial cut [11:29:45]*** CUTSNS_PIN = 1 [11:29:45]*** CUTSNS_PIN = 0 [11:29:45]*** Brake cut motor [11:29:45]Read from MH i2c: 01 [11:29:45]MH_I2C_Read... [11:29:45]*** Stop cut motor [11:29:45]*** Cut end [11:29:45]Read from MH i2c: 01 07 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: 01 07 00 09 41 00 00 00 00 00 FF 0F 5F [11:29:45]process_action close_receipt done [11:29:45]requested_data is exist [11:29:45]produce_requested_data [11:29:45]requested_item fm.sn is exist - process it [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 11 00 00 [11:29:45]Write to MH i2c: E2 08 00 0A 41 80 11 00 00 00 00 00 00 C5 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 17 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 17 00 0A 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 21 [11:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:29:45]wFMCommunicate OK [11:29:45]requested_item fd.num is exist - process it [11:29:45]SAM_PROTO_GetFieldsCounters [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 13 00 00 [11:29:45]Write to MH i2c: E2 08 00 0B 41 80 13 00 00 00 00 00 00 C8 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 62 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 62 00 0B 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 39 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [11:29:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 39 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:46]wFMCommunicate OK [11:29:46]SAM_PROTO_GetFieldsCounters done [11:29:46]requested_item shift.num is exist - process it [11:29:46]requested_item shift.opened is exist - process it [11:29:46]req_shift_opened [11:29:46]FM_GetShiftState [11:29:46]SAM_PROTO_GetShiftState [11:29:46]wFMCommunicate request_size=4 [11:29:46]MH_SAM_APDU [11:29:46]CAPDU: 80 13 01 00 [11:29:46]Write to MH i2c: E2 08 00 0C 41 80 13 01 00 00 00 00 00 CA [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 0E 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 0E 00 0C 41 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 07 [11:29:46]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:29:46]wFMCommunicate OK [11:29:46]SAM_PROTO_GetShiftState done [11:29:46]FM_GetShiftState done [11:29:46]req_shift_opened done [11:29:46]requested_item shift.open_date is exist - process it [11:29:46]req_shift_open_date [11:29:46]req_shift_open_date done [11:29:46]produce_requested_data done [11:29:46]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69177,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:29:46]process_action_free close_receipt [11:29:46]json_value_free [11:29:46]json_value_free done [11:29:46]process_json_proto returns [11:29:46]Send response to host [11:29:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69177,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:29:46]free response buf [11:29:46]execute_script done [11:29:46]execute_script returns [11:29:46]free content buf [11:29:46]Sock 10.Close socket [11:29:46]Sock 10.Thread stoped [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:51]accept exits with 7 [11:30:51]New connection [11:30:51]New thread 3066785124 created [11:30:51]Thread 3066641764 joined [11:30:51]Waiting for new connection... [11:30:51] Sock 7.Parse request [11:30:51]Sock 7.Check first char [11:30:51]Sock 7.First char is OK [11:30:51]request: POST /json_proto HTTP/1.0 [11:30:51]Method: POST [11:30:51]URL: /json_proto [11:30:51]Method is POST - this is cgi request [11:30:51]url: /json_proto [11:30:51]query_string will be loaded in cgi processing [11:30:51]execute_cgi json_proto POST (null) [11:30:51]execute_cgi path=json_proto method=POST [11:30:51]POST find Content-Length [11:30:51]Host: 172.17.49.132:8080 [11:30:51]Content-Length: 678 [11:30:51]Content-Type: application/json [11:30:51] [11:30:51]POST finish read [11:30:51]Found Content-Length = 678 [11:30:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:51]execute_script... [11:30:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:51]POST & json_proto [11:30:51]process_json_proto [11:30:51]json parsed OK: [11:30:51]protocol is kg_v1.0 [11:30:51]action value=close_receipt [11:30:51]process_action close_receipt [11:30:51]cmd_close_receipt [11:30:51]MH_GetDate [11:30:51]Write to MH i2c: F0 00 00 0D 41 3D [11:30:51]Write i2c OK [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: F0 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: F0 09 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: F0 09 00 0D 41 00 F4 2B A6 66 E7 4B C0 64 C7 [11:30:51]GetLastDocTimeStamp 1722166190 [11:30:51]current date 1722166260 [11:30:51]FM_GetShiftState [11:30:51]SAM_PROTO_GetShiftState [11:30:51]wFMCommunicate request_size=4 [11:30:51]MH_SAM_APDU [11:30:51]CAPDU: 80 13 01 00 [11:30:51]Write to MH i2c: E2 08 00 0E 41 80 13 01 00 00 00 00 00 CC [11:30:51]Write i2c OK [11:30:51]MH_I2C_Read... [11:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:51]Read from MH i2c: E2 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 0E 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 0E 00 0E 41 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 09 [11:30:51]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:30:51]wFMCommunicate OK [11:30:51]SAM_PROTO_GetShiftState done [11:30:51]FM_GetShiftState done [11:30:51]opened in 1722127251 [11:30:51]opened+sec_in_day 1722213651 [11:30:51]quantity*price = 80004 [11:30:51]sum+1 = 80005 [11:30:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 61 28.07.2024 11:31 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69178 ФПД: 166927723322301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113100&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69178&fm=166927723322301&tin=02508201610067®Number=0000000000092638&sum=80000 [11:30:52]StoreToDocumentArchive [11:30:52]shift 429 fd 69178 [11:30:52]save to /storage/0429/doc_00069178 [11:30:52]save last doc name /storage/0429/doc_00069178 to /storage/kkm_last_doc_name [11:30:52]save OK [11:30:52]Clear old archive folders... [11:30:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:52]tlvbuf is 00AC1B60 [11:30:52]SAM_PROTO_ClearQueue [11:30:52]wFMCommunicate request_size=4 [11:30:52]MH_SAM_APDU [11:30:52]CAPDU: 80 09 00 00 [11:30:52]Write to MH i2c: E2 08 00 1B 41 80 09 00 00 00 00 00 00 CE [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:53]Read from MH i2c: E2 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 1B 41 00 90 00 D0 [11:30:53]RAPDU: 90 00 [11:30:53]wFMCommunicate OK [11:30:53]SAM_PROTO_ClearQueue done [11:30:53]KKMCreateOFDPacket [11:30:53]OFDProtocolAddRootSTLVToBuf [11:30:53]FM_MakeSignedData [11:30:53]FM_MakeSignedData [11:30:53]SAM_PROTO_SignData [11:30:53]wFMCommunicate request_size=4 [11:30:53]MH_SAM_APDU [11:30:53]CAPDU: 80 0D 01 02 [11:30:53]Write to MH i2c: E2 08 00 1C 41 80 0D 01 02 00 00 00 00 D6 [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:53]Read from MH i2c: E2 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 1C 41 00 90 00 D1 [11:30:53]RAPDU: 90 00 [11:30:53]wFMCommunicate OK [11:30:53]wFMCommunicate request_size=255 [11:30:53]MH_SAM_APDU [11:30:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F4 2B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3A 0E 01 00 35 04 06 00 97 [11:30:53]Write to MH i2c: E2 02 01 1D 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F4 2B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3A 0E 01 00 35 04 06 00 97 00 00 04 [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 [11:30:53]MH_I2C_Read... [11:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:53]Read from MH i2c: E2 03 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 1D 41 00 90 00 D2 [11:30:53]RAPDU: 90 00 [11:30:53]wFMCommunicate OK [11:30:53]wFMCommunicate request_size=10 [11:30:53]MH_SAM_APDU [11:30:53]CAPDU: 80 0D 02 02 05 D1 E3 A6 DB BD [11:30:53]Write to MH i2c: E2 0D 00 1E 41 80 0D 02 02 05 00 D1 E3 A6 DB BD 00 00 D5 [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:53]Read from MH i2c: E2 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 1E 41 00 90 00 D3 [11:30:53]RAPDU: 90 00 [11:30:53]wFMCommunicate OK [11:30:53]wFMCommunicate request_size=4 [11:30:53]MH_SAM_APDU [11:30:53]CAPDU: 80 0D 03 02 [11:30:53]Write to MH i2c: E2 08 00 1F 41 80 0D 03 02 00 00 00 00 DB [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:53]Read from MH i2c: E2 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 0B 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 0B 00 1F 41 00 5A E5 59 52 38 78 5C 69 90 00 3B [11:30:53]RAPDU: 5A E5 59 52 38 78 5C 69 90 00 [11:30:53]wFMCommunicate OK [11:30:53]SAM_PROTO_SignData done [11:30:53]FM_MakeSignedData done [11:30:53]CreateOFDProtocolMessage [11:30:53]wFMCommunicate request_size=4 [11:30:53]MH_SAM_APDU [11:30:53]CAPDU: 80 11 00 00 [11:30:53]Write to MH i2c: E2 08 00 20 41 80 11 00 00 00 00 00 00 DB [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:53]Read from MH i2c: E2 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 17 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 17 00 20 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 37 [11:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:30:53]wFMCommunicate OK [11:30:53]CreateOFDProtocolMessage done [11:30:53]OFDSenderStorePacket 69178 [11:30:53]StoreOFDPacket docnum=69178 [11:30:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 2C 02 07 01 5F 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F4 2B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3A 0E 01 00 35 04 06 00 97 D1 E3 A6 DB BD 5A E5 59 52 38 78 5C 69 [11:30:53]CheckFolder [11:30:53]dirname=/storage/ofd_packets [11:30:53]CheckFolder done [11:30:53]ProducePacketName [11:30:53]name=ofd_packets/00069178 [11:30:53]NVStorageSaveData ofd_packets/00069178 [11:30:53]File name is /storage/ofd_packets/00069178 [11:30:53]Write 301 bytes [11:30:53]NVStorageSaveData done [11:30:53]OFDSenderStorePacket done [11:30:53]KKMCreateOFDPacket done [11:30:53]NVStorageSaveData kkm_last_timestamp [11:30:53]File name is /storage/kkm_last_timestamp [11:30:53]Write 4 bytes [11:30:53]NVStorageSaveData done [11:30:53]ExternCall_PrintAddStr [11:30:53]wPrintStart [11:30:53]Write to MH i2c: 01 00 00 21 41 62 [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: 01 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: 01 07 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: 01 07 00 21 41 00 00 00 00 00 FF 0F 77 [11:30:53]RasterBufferAndPrint [11:30:53]line Счет N : (1)871833 [11:30:53]line ИНН: 02508201610067 [11:30:53]line Контрольно-Кассовый Чек [11:30:53]line ПРОДАЖА [11:30:53]line ТРК (МРК, ГНК) : 42 [11:30:53]line Товар: 2710124130 [11:30:53]line Аи-92-К-5 [11:30:53]line 11.800 * 67.80 [11:30:53]line = 800.04 [11:30:53]line НДС 12% НСП 1% [11:30:53]line > о реализуемом товаре [11:30:53]line ОКРУГЛЕНИЕ: -0.04 [11:30:53]line ИТОГО: 800.00 [11:30:53]line Внесено: 800.00 [11:30:53]line СДАЧА: 0.00 [11:30:53]line НСП 1% : 7.08 [11:30:53]line НДС 12% : 84.96 [11:30:53]line Наличными: 800.00 [11:30:53]line Безнал.: 0.00 [11:30:53]line Место: АЗС № 125 "Партнер Нефть" [11:30:53]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:30:53]line СНО: Общий режим [11:30:53]line Чек 61 28.07.2024 11:31 [11:30:53]line Смена: 429 ФФД: 1.0 [11:30:53]line ЗНМ: 0300000049 [11:30:53]line РНМ: 0000000000092638 [11:30:53]line Версия ККМ: 001 [11:30:53]line ФМ: 0000000000874949 [11:30:53]line ФД: 69178 [11:30:53]line ФПД: 166927723322301 [11:30:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113100&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69178&fm=166927723322301&tin=02508201610067®Number=0000000000092638&sum=80000 [11:30:53]written 0, free lines is 4095 [11:30:53]OFD Sender: Processing packet 69178 [packets to send 19, broken 18] [11:30:53]ProducePacketName [11:30:53]name=ofd_packets/00069178 [11:30:53]OFD Sender: To server: pG, [11:30:53]CommunicateWithHost lk.salyk.kg:30040 [11:30:53]ConnectInit lk.salyk.kg [11:30:53]Connected sock=10 [11:30:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 2C 02 07 01 5F 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F4 2B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3A 0E 01 00 35 04 06 00 97 D1 E3 A6 DB BD 5A E5 59 52 38 78 5C 69 [11:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 B5 BC 47 00 9D 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3A 0E 01 00 F4 03 04 00 64 D2 A5 66 B6 04 01 00 00 08 D4 B9 86 C8 F0 9F AD [11:30:54]CommunicateWithHost err = 0 [11:30:54]CheckOFDResponse [11:30:54]1017 (14) - 77093643461234 [11:30:54]1041 (16) - 0000000000874949 [11:30:54]1040 (4) - 69178 [11:30:54]1012 (4) - 28.07.2024 05:08 [11:30:54]1206 (1) - 0 [11:30:54]OFD Sender: Remove packet 69178 [11:30:54]ProducePacketName [11:30:54]name=ofd_packets/00069178 [11:30:54]NVStorageDeleteData [11:30:54]Write to MH i2c: 01 00 00 4C 41 8D [11:30:54]Write i2c OK [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: 01 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: 01 07 00 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: 01 07 00 4C 41 00 00 00 00 00 EC 0C 8C [11:30:54]RasterBufferAndPrint [11:30:54]line [11:30:54]line [11:30:54]line [11:30:54]line [11:30:54]line [11:30:54]written 0, free lines is 3314 [11:30:54]MH_Cut [11:30:54]Write to MH i2c: D1 01 00 53 41 01 66 [11:30:54]Write i2c OK [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: D1 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: D1 01 00 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: D1 01 00 53 41 00 65 [11:30:54]Write to MH i2c: 01 00 00 54 41 95 [11:30:54]Write i2c OK [11:30:54]MH_I2C_Read... [11:30:54]OFD Sender: No OFD packet to send [11:30:54]*** Cut start [11:30:54]*** Partial cut [11:30:54]*** CUTSNS_PIN = 1 [11:30:55]*** CUTSNS_PIN = 0 [11:30:55]*** Brake cut motor [11:30:55]Read from MH i2c: 01 [11:30:55]MH_I2C_Read... [11:30:55]*** Stop cut motor [11:30:55]*** Cut end [11:30:55]Read from MH i2c: 01 07 00 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: 01 07 00 54 41 00 00 00 00 00 FF 0F AA [11:30:55]process_action close_receipt done [11:30:55]requested_data is exist [11:30:55]produce_requested_data [11:30:55]requested_item fm.sn is exist - process it [11:30:55]wFMCommunicate request_size=4 [11:30:55]MH_SAM_APDU [11:30:55]CAPDU: 80 11 00 00 [11:30:55]Write to MH i2c: E2 08 00 55 41 80 11 00 00 00 00 00 00 10 [11:30:55]Write i2c OK [11:30:55]MH_I2C_Read... [11:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:55]Read from MH i2c: E2 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: E2 17 00 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: E2 17 00 55 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 6C [11:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:30:55]wFMCommunicate OK [11:30:55]requested_item fd.num is exist - process it [11:30:55]SAM_PROTO_GetFieldsCounters [11:30:55]wFMCommunicate request_size=4 [11:30:55]MH_SAM_APDU [11:30:55]CAPDU: 80 13 00 00 [11:30:55]Write to MH i2c: E2 08 00 56 41 80 13 00 00 00 00 00 00 13 [11:30:55]Write i2c OK [11:30:55]MH_I2C_Read... [11:30:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:55]Read from MH i2c: E2 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: E2 62 00 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: E2 62 00 56 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 3A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [11:30:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 3A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:55]wFMCommunicate OK [11:30:55]SAM_PROTO_GetFieldsCounters done [11:30:55]requested_item shift.num is exist - process it [11:30:55]requested_item shift.opened is exist - process it [11:30:55]req_shift_opened [11:30:55]FM_GetShiftState [11:30:55]SAM_PROTO_GetShiftState [11:30:55]wFMCommunicate request_size=4 [11:30:55]MH_SAM_APDU [11:30:55]CAPDU: 80 13 01 00 [11:30:55]Write to MH i2c: E2 08 00 57 41 80 13 01 00 00 00 00 00 15 [11:30:55]Write i2c OK [11:30:55]MH_I2C_Read... [11:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:55]Read from MH i2c: E2 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: E2 0E 00 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: E2 0E 00 57 41 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 52 [11:30:55]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:30:55]wFMCommunicate OK [11:30:55]SAM_PROTO_GetShiftState done [11:30:55]FM_GetShiftState done [11:30:55]req_shift_opened done [11:30:55]requested_item shift.open_date is exist - process it [11:30:55]req_shift_open_date [11:30:55]req_shift_open_date done [11:30:55]produce_requested_data done [11:30:55]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69178,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:30:55]process_action_free close_receipt [11:30:55]json_value_free [11:30:55]json_value_free done [11:30:55]process_json_proto returns [11:30:55]Send response to host [11:30:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69178,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:30:55]free response buf [11:30:55]execute_script done [11:30:55]execute_script returns [11:30:55]free content buf [11:30:55]Sock 7.Close socket [11:30:55]Sock 7.Thread stoped [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:21]accept exits with 9 [11:31:21]New connection [11:31:21]New thread 3066641764 created [11:31:21]Thread 3066785124 joined [11:31:21]Waiting for new connection... [11:31:21] Sock 9.Parse request [11:31:21]Sock 9.Check first char [11:31:21]Sock 9.First char is OK [11:31:21]request: POST /json_proto HTTP/1.0 [11:31:21]Method: POST [11:31:21]URL: /json_proto [11:31:21]Method is POST - this is cgi request [11:31:21]url: /json_proto [11:31:21]query_string will be loaded in cgi processing [11:31:21]execute_cgi json_proto POST (null) [11:31:21]execute_cgi path=json_proto method=POST [11:31:21]POST find Content-Length [11:31:21]Host: 172.17.49.132:8080 [11:31:21]Content-Length: 682 [11:31:21]Content-Type: application/json [11:31:21] [11:31:21]POST finish read [11:31:21]Found Content-Length = 682 [11:31:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:21]execute_script... [11:31:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:21]POST & json_proto [11:31:21]process_json_proto [11:31:21]json parsed OK: [11:31:21]protocol is kg_v1.0 [11:31:21]action value=close_receipt [11:31:21]process_action close_receipt [11:31:21]cmd_close_receipt [11:31:21]MH_GetDate [11:31:21]Write to MH i2c: F0 00 00 58 41 88 [11:31:21]Write i2c OK [11:31:21]MH_I2C_Read... [11:31:21]Read from MH i2c: F0 [11:31:21]MH_I2C_Read... [11:31:21]Read from MH i2c: F0 09 00 [11:31:21]MH_I2C_Read... [11:31:21]Read from MH i2c: F0 09 00 58 41 00 12 2C A6 66 E7 4B C0 64 31 [11:31:21]GetLastDocTimeStamp 1722166260 [11:31:21]current date 1722166290 [11:31:21]FM_GetShiftState [11:31:21]SAM_PROTO_GetShiftState [11:31:21]wFMCommunicate request_size=4 [11:31:21]MH_SAM_APDU [11:31:21]CAPDU: 80 13 01 00 [11:31:21]Write to MH i2c: E2 08 00 59 41 80 13 01 00 00 00 00 00 17 [11:31:21]Write i2c OK [11:31:21]MH_I2C_Read... [11:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:21]Read from MH i2c: E2 [11:31:21]MH_I2C_Read... [11:31:21]Read from MH i2c: E2 0E 00 [11:31:21]MH_I2C_Read... [11:31:21]Read from MH i2c: E2 0E 00 59 41 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 54 [11:31:21]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:31:21]wFMCommunicate OK [11:31:21]SAM_PROTO_GetShiftState done [11:31:21]FM_GetShiftState done [11:31:21]opened in 1722127251 [11:31:21]opened+sec_in_day 1722213651 [11:31:21]quantity*price = 100005 [11:31:21]sum+1 = 100006 [11:31:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 62 28.07.2024 11:31 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69179 ФПД: 12886182079884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113130&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69179&fm=12886182079884&tin=02508201610067®Number=0000000000092638&sum=100000 [11:31:22]StoreToDocumentArchive [11:31:22]shift 429 fd 69179 [11:31:22]save to /storage/0429/doc_00069179 [11:31:22]save last doc name /storage/0429/doc_00069179 to /storage/kkm_last_doc_name [11:31:22]save OK [11:31:22]Clear old archive folders... [11:31:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:22]tlvbuf is 00A2A920 [11:31:22]SAM_PROTO_ClearQueue [11:31:22]wFMCommunicate request_size=4 [11:31:22]MH_SAM_APDU [11:31:22]CAPDU: 80 09 00 00 [11:31:22]Write to MH i2c: E2 08 00 66 41 80 09 00 00 00 00 00 00 19 [11:31:22]Write i2c OK [11:31:22]MH_I2C_Read... [11:31:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:22]Read from MH i2c: E2 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: E2 03 00 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: E2 03 00 66 41 00 90 00 1B [11:31:22]RAPDU: 90 00 [11:31:22]wFMCommunicate OK [11:31:22]SAM_PROTO_ClearQueue done [11:31:22]KKMCreateOFDPacket [11:31:22]OFDProtocolAddRootSTLVToBuf [11:31:22]FM_MakeSignedData [11:31:22]FM_MakeSignedData [11:31:22]SAM_PROTO_SignData [11:31:22]wFMCommunicate request_size=4 [11:31:22]MH_SAM_APDU [11:31:22]CAPDU: 80 0D 01 02 [11:31:22]Write to MH i2c: E2 08 00 67 41 80 0D 01 02 00 00 00 00 21 [11:31:22]Write i2c OK [11:31:22]MH_I2C_Read... [11:31:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:22]Read from MH i2c: E2 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: E2 03 00 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: E2 03 00 67 41 00 90 00 1C [11:31:22]RAPDU: 90 00 [11:31:22]wFMCommunicate OK [11:31:22]wFMCommunicate request_size=255 [11:31:22]MH_SAM_APDU [11:31:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 12 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3B 0E 01 00 35 04 06 00 0B [11:31:22]Write to MH i2c: E2 02 01 68 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 12 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3B 0E 01 00 35 04 06 00 0B 00 00 C6 [11:31:22]Write i2c OK [11:31:22]MH_I2C_Read... [11:31:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:22]Read from MH i2c: E2 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: E2 03 00 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: E2 03 00 68 41 00 90 00 1D [11:31:22]RAPDU: 90 00 [11:31:22]wFMCommunicate OK [11:31:22]wFMCommunicate request_size=10 [11:31:22]MH_SAM_APDU [11:31:22]CAPDU: 80 0D 02 02 05 B8 4C 4E 2D 8C [11:31:22]Write to MH i2c: E2 0D 00 69 41 80 0D 02 02 05 00 B8 4C 4E 2D 8C 00 00 39 [11:31:22]Write i2c OK [11:31:22]MH_I2C_Read... [11:31:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:22]Read from MH i2c: E2 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: E2 03 00 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: E2 03 00 69 41 00 90 00 1E [11:31:22]RAPDU: 90 00 [11:31:22]wFMCommunicate OK [11:31:22]wFMCommunicate request_size=4 [11:31:22]MH_SAM_APDU [11:31:22]CAPDU: 80 0D 03 02 [11:31:22]Write to MH i2c: E2 08 00 6A 41 80 0D 03 02 00 00 00 00 26 [11:31:22]Write i2c OK [11:31:22]MH_I2C_Read... [11:31:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:22]Read from MH i2c: E2 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: E2 0B 00 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: E2 0B 00 6A 41 00 8B 42 4A E2 D1 A6 68 83 90 00 82 [11:31:22]RAPDU: 8B 42 4A E2 D1 A6 68 83 90 00 [11:31:22]wFMCommunicate OK [11:31:22]SAM_PROTO_SignData done [11:31:22]FM_MakeSignedData done [11:31:22]CreateOFDProtocolMessage [11:31:22]wFMCommunicate request_size=4 [11:31:22]MH_SAM_APDU [11:31:22]CAPDU: 80 11 00 00 [11:31:22]Write to MH i2c: E2 08 00 6B 41 80 11 00 00 00 00 00 00 26 [11:31:22]Write i2c OK [11:31:22]MH_I2C_Read... [11:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:22]Read from MH i2c: E2 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: E2 17 00 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: E2 17 00 6B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 82 [11:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:31:22]wFMCommunicate OK [11:31:22]CreateOFDProtocolMessage done [11:31:22]OFDSenderStorePacket 69179 [11:31:22]StoreOFDPacket docnum=69179 [11:31:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 B9 BA 07 01 B4 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 12 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3B 0E 01 00 35 04 06 00 0B B8 4C 4E 2D 8C 8B 42 4A E2 D1 A6 68 83 [11:31:22]CheckFolder [11:31:22]dirname=/storage/ofd_packets [11:31:22]CheckFolder done [11:31:22]ProducePacketName [11:31:22]name=ofd_packets/00069179 [11:31:22]NVStorageSaveData ofd_packets/00069179 [11:31:22]File name is /storage/ofd_packets/00069179 [11:31:22]Write 301 bytes [11:31:22]NVStorageSaveData done [11:31:22]OFDSenderStorePacket done [11:31:22]KKMCreateOFDPacket done [11:31:22]NVStorageSaveData kkm_last_timestamp [11:31:22]File name is /storage/kkm_last_timestamp [11:31:22]Write 4 bytes [11:31:22]NVStorageSaveData done [11:31:22]ExternCall_PrintAddStr [11:31:22]wPrintStart [11:31:22]Write to MH i2c: 01 00 00 6C 41 AD [11:31:22]Write i2c OK [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: 01 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: 01 07 00 [11:31:22]MH_I2C_Read... [11:31:22]Read from MH i2c: 01 07 00 6C 41 00 00 00 00 00 FF 0F C2 [11:31:22]RasterBufferAndPrint [11:31:22]line Счет N : (1)871834 [11:31:22]line ИНН: 02508201610067 [11:31:22]line Контрольно-Кассовый Чек [11:31:22]line ПРОДАЖА [11:31:22]line ТРК (МРК, ГНК) : 32 [11:31:22]line Товар: 2710124130 [11:31:22]line Аи-92-К-5 [11:31:22]line 14.750 * 67.80 [11:31:22]line = 1000.05 [11:31:22]line НДС 12% НСП 1% [11:31:22]line > о реализуемом товаре [11:31:22]line ОКРУГЛЕНИЕ: -0.05 [11:31:22]line ИТОГО: 1000.00 [11:31:22]line Внесено: 1000.00 [11:31:22]line СДАЧА: 0.00 [11:31:22]line НСП 1% : 8.85 [11:31:22]line НДС 12% : 106.20 [11:31:22]line Наличными: 1000.00 [11:31:22]line Безнал.: 0.00 [11:31:22]line Место: АЗС № 125 "Партнер Нефть" [11:31:22]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:31:22]line СНО: Общий режим [11:31:22]line Чек 62 28.07.2024 11:31 [11:31:22]line Смена: 429 ФФД: 1.0 [11:31:22]line ЗНМ: 0300000049 [11:31:22]line РНМ: 0000000000092638 [11:31:22]line Версия ККМ: 001 [11:31:22]line ФМ: 0000000000874949 [11:31:22]line ФД: 69179 [11:31:22]line ФПД: 12886182079884 [11:31:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113130&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69179&fm=12886182079884&tin=02508201610067®Number=0000000000092638&sum=100000 [11:31:23]OFD Sender: Processing packet 69179 [packets to send 19, broken 18] [11:31:23]ProducePacketName [11:31:23]name=ofd_packets/00069179 [11:31:23]OFD Sender: To server: pG, [11:31:23]CommunicateWithHost lk.salyk.kg:30040 [11:31:23]ConnectInit lk.salyk.kg [11:31:23]written 0, free lines is 4095 [11:31:23]Connected sock=10 [11:31: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 39 34 39 0F 01 00 00 B9 BA 07 01 B4 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 12 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3B 0E 01 00 35 04 06 00 0B B8 4C 4E 2D 8C 8B 42 4A E2 D1 A6 68 83 [11:31:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 99 14 47 00 BA 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 39 34 39 10 04 04 00 3B 0E 01 00 F4 03 04 00 81 D2 A5 66 B6 04 01 00 00 E8 7E F2 32 97 DA E5 46 [11:31:23]CommunicateWithHost err = 0 [11:31:23]CheckOFDResponse [11:31:23]1017 (14) - 77093643461234 [11:31:23]1041 (16) - 0000000000874949 [11:31:23]1040 (4) - 69179 [11:31:23]1012 (4) - 28.07.2024 05:09 [11:31:23]1206 (1) - 0 [11:31:23]OFD Sender: Remove packet 69179 [11:31:23]ProducePacketName [11:31:23]name=ofd_packets/00069179 [11:31:23]NVStorageDeleteData [11:31:23]Write to MH i2c: 01 00 00 97 41 D8 [11:31:23]Write i2c OK [11:31:23]MH_I2C_Read... [11:31:23]Read from MH i2c: 01 [11:31:23]MH_I2C_Read... [11:31:23]Read from MH i2c: 01 07 00 [11:31:23]MH_I2C_Read... [11:31:23]Read from MH i2c: 01 07 00 97 41 00 00 00 00 00 EB 0C D6 [11:31:23]RasterBufferAndPrint [11:31:23]line [11:31:23]line [11:31:23]line [11:31:23]line [11:31:23]line [11:31:23]written 0, free lines is 3314 [11:31:23]MH_Cut [11:31:23]Write to MH i2c: D1 01 00 9E 41 01 B1 [11:31:23]Write i2c OK [11:31:23]MH_I2C_Read... [11:31:23]Read from MH i2c: D1 [11:31:23]MH_I2C_Read... [11:31:23]Read from MH i2c: D1 01 00 [11:31:23]MH_I2C_Read... [11:31:23]Read from MH i2c: D1 01 00 9E 41 00 B0 [11:31:23]Write to MH i2c: 01 00 00 9F 41 E0 [11:31:23]Write i2c OK [11:31:23]MH_I2C_Read... [11:31:24]OFD Sender: No OFD packet to send [11:31:24]*** Cut start [11:31:24]*** Partial cut [11:31:24]*** CUTSNS_PIN = 1 [11:31:24]*** CUTSNS_PIN = 0 [11:31:24]*** Brake cut motor [11:31:24]Read from MH i2c: 01 [11:31:24]MH_I2C_Read... [11:31:24]*** Stop cut motor [11:31:24]*** Cut end [11:31:24]Read from MH i2c: 01 07 00 [11:31:24]MH_I2C_Read... [11:31:24]Read from MH i2c: 01 07 00 9F 41 00 00 00 00 00 FF 0F F5 [11:31:24]process_action close_receipt done [11:31:24]requested_data is exist [11:31:24]produce_requested_data [11:31:24]requested_item fm.sn is exist - process it [11:31:24]wFMCommunicate request_size=4 [11:31:24]MH_SAM_APDU [11:31:24]CAPDU: 80 11 00 00 [11:31:24]Write to MH i2c: E2 08 00 A0 41 80 11 00 00 00 00 00 00 5B [11:31:24]Write i2c OK [11:31:24]MH_I2C_Read... [11:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:25]Read from MH i2c: E2 [11:31:25]MH_I2C_Read... [11:31:25]Read from MH i2c: E2 17 00 [11:31:25]MH_I2C_Read... [11:31:25]Read from MH i2c: E2 17 00 A0 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B7 [11:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:31:25]wFMCommunicate OK [11:31:25]requested_item fd.num is exist - process it [11:31:25]SAM_PROTO_GetFieldsCounters [11:31:25]wFMCommunicate request_size=4 [11:31:25]MH_SAM_APDU [11:31:25]CAPDU: 80 13 00 00 [11:31:25]Write to MH i2c: E2 08 00 A1 41 80 13 00 00 00 00 00 00 5E [11:31:25]Write i2c OK [11:31:25]MH_I2C_Read... [11:31:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:25]Read from MH i2c: E2 [11:31:25]MH_I2C_Read... [11:31:25]Read from MH i2c: E2 62 00 [11:31:25]MH_I2C_Read... [11:31:25]Read from MH i2c: E2 62 00 A1 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 3B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [11:31: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 3B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:25]wFMCommunicate OK [11:31:25]SAM_PROTO_GetFieldsCounters done [11:31:25]requested_item shift.num is exist - process it [11:31:25]requested_item shift.opened is exist - process it [11:31:25]req_shift_opened [11:31:25]FM_GetShiftState [11:31:25]SAM_PROTO_GetShiftState [11:31:25]wFMCommunicate request_size=4 [11:31:25]MH_SAM_APDU [11:31:25]CAPDU: 80 13 01 00 [11:31:25]Write to MH i2c: E2 08 00 A2 41 80 13 01 00 00 00 00 00 60 [11:31:25]Write i2c OK [11:31:25]MH_I2C_Read... [11:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:25]Read from MH i2c: E2 [11:31:25]MH_I2C_Read... [11:31:25]Read from MH i2c: E2 0E 00 [11:31:25]MH_I2C_Read... [11:31:25]Read from MH i2c: E2 0E 00 A2 41 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 9D [11:31:25]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:31:25]wFMCommunicate OK [11:31:25]SAM_PROTO_GetShiftState done [11:31:25]FM_GetShiftState done [11:31:25]req_shift_opened done [11:31:25]requested_item shift.open_date is exist - process it [11:31:25]req_shift_open_date [11:31:25]req_shift_open_date done [11:31:25]produce_requested_data done [11:31:25]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69179,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:31:25]process_action_free close_receipt [11:31:25]json_value_free [11:31:25]json_value_free done [11:31:25]process_json_proto returns [11:31:25]Send response to host [11:31:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69179,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:31:25]free response buf [11:31:25]execute_script done [11:31:25]execute_script returns [11:31:25]free content buf [11:31:25]Sock 9.Close socket [11:31:25]Sock 9.Thread stoped [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:26]accept exits with 7 [11:33:26]New connection [11:33:26]New thread 3066785124 created [11:33:26]Thread 3066641764 joined [11:33:26]Waiting for new connection... [11:33:26] Sock 7.Parse request [11:33:26]Sock 7.Check first char [11:33:26]Sock 7.First char is OK [11:33:26]request: POST /json_proto HTTP/1.0 [11:33:26]Method: POST [11:33:26]URL: /json_proto [11:33:26]Method is POST - this is cgi request [11:33:26]url: /json_proto [11:33:26]query_string will be loaded in cgi processing [11:33:26]execute_cgi json_proto POST (null) [11:33:26]execute_cgi path=json_proto method=POST [11:33:26]POST find Content-Length [11:33:26]Host: 172.17.49.132:8080 [11:33:26]Content-Length: 793 [11:33:26]Content-Type: application/json [11:33:26] [11:33:26]POST finish read [11:33:26]Found Content-Length = 793 [11:33:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:26]execute_script... [11:33:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:26]POST & json_proto [11:33:26]process_json_proto [11:33:26]json parsed OK: [11:33:26]protocol is kg_v1.0 [11:33:26]action value=close_receipt [11:33:26]process_action close_receipt [11:33:26]cmd_close_receipt [11:33:26]MH_GetDate [11:33:26]Write to MH i2c: F0 00 00 A3 41 D3 [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: F0 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: F0 09 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: F0 09 00 A3 41 00 8E 2C A6 66 E7 4B C0 64 F8 [11:33:26]GetLastDocTimeStamp 1722166290 [11:33:26]current date 1722166414 [11:33:26]FM_GetShiftState [11:33:26]SAM_PROTO_GetShiftState [11:33:26]wFMCommunicate request_size=4 [11:33:26]MH_SAM_APDU [11:33:26]CAPDU: 80 13 01 00 [11:33:26]Write to MH i2c: E2 08 00 A4 41 80 13 01 00 00 00 00 00 62 [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:26]Read from MH i2c: E2 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 0E 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 0E 00 A4 41 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 9F [11:33:26]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:33:26]wFMCommunicate OK [11:33:26]SAM_PROTO_GetShiftState done [11:33:26]FM_GetShiftState done [11:33:26]opened in 1722127251 [11:33:26]opened+sec_in_day 1722213651 [11:33:26]quantity*price = 50017 [11:33:26]sum+1 = 50019 [11:33:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.18 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 63 28.07.2024 11:33 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874949 ФД: 69180 ФПД: 257999410540035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113335&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69180&fm=257999410540035&tin=02508201610067®Number=0000000000092638&sum=50018 [11:33:27]StoreToDocumentArchive [11:33:27]shift 429 fd 69180 [11:33:27]save to /storage/0429/doc_00069180 [11:33:27]save last doc name /storage/0429/doc_00069180 to /storage/kkm_last_doc_name [11:33:27]save OK [11:33:27]Clear old archive folders... [11:33:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:33:27]tlvbuf is 00A6A7A0 [11:33:27]SAM_PROTO_ClearQueue [11:33:27]wFMCommunicate request_size=4 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 09 00 00 [11:33:27]Write to MH i2c: E2 08 00 B1 41 80 09 00 00 00 00 00 00 64 [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 B1 41 00 90 00 66 [11:33:27]RAPDU: 90 00 [11:33:27]wFMCommunicate OK [11:33:27]SAM_PROTO_ClearQueue done [11:33:27]KKMCreateOFDPacket [11:33:27]OFDProtocolAddRootSTLVToBuf [11:33:27]FM_MakeSignedData [11:33:27]FM_MakeSignedData [11:33:27]SAM_PROTO_SignData [11:33:27]wFMCommunicate request_size=4 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 0D 01 02 [11:33:27]Write to MH i2c: E2 08 00 B2 41 80 0D 01 02 00 00 00 00 6C [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 B2 41 00 90 00 67 [11:33:27]RAPDU: 90 00 [11:33:27]wFMCommunicate OK [11:33:27]wFMCommunicate request_size=255 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 8F 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3C 0E 01 00 35 04 06 00 [11:33:27]Write to MH i2c: E2 02 01 B3 41 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 8F 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3C 0E 01 00 35 04 06 00 00 00 99 [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 B3 41 00 90 00 68 [11:33:27]RAPDU: 90 00 [11:33:27]wFMCommunicate OK [11:33:27]wFMCommunicate request_size=11 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 0D 02 02 06 EA A6 2B 37 AE 03 [11:33:27]Write to MH i2c: E2 0E 00 B4 41 80 0D 02 02 06 00 EA A6 2B 37 AE 03 00 00 1E [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 B4 41 00 90 00 69 [11:33:27]RAPDU: 90 00 [11:33:27]wFMCommunicate OK [11:33:27]wFMCommunicate request_size=4 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 0D 03 02 [11:33:27]Write to MH i2c: E2 08 00 B5 41 80 0D 03 02 00 00 00 00 71 [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 0B 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 0B 00 B5 41 00 FE BF 8F EA 5B FE 3F 55 90 00 95 [11:33:27]RAPDU: FE BF 8F EA 5B FE 3F 55 90 00 [11:33:27]wFMCommunicate OK [11:33:27]SAM_PROTO_SignData done [11:33:27]FM_MakeSignedData done [11:33:27]CreateOFDProtocolMessage [11:33:27]wFMCommunicate request_size=4 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 11 00 00 [11:33:27]Write to MH i2c: E2 08 00 B6 41 80 11 00 00 00 00 00 00 71 [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 17 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 17 00 B6 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 CD [11:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:33:27]wFMCommunicate OK [11:33:27]CreateOFDProtocolMessage done [11:33:27]OFDSenderStorePacket 69180 [11:33:27]StoreOFDPacket docnum=69180 [11:33:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 01 00 00 52 88 08 01 5F 9B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 8F 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3C 0E 01 00 35 04 06 00 EA A6 2B 37 AE 03 FE BF 8F EA 5B FE 3F 55 [11:33:27]CheckFolder [11:33:27]dirname=/storage/ofd_packets [11:33:27]CheckFolder done [11:33:27]ProducePacketName [11:33:27]name=ofd_packets/00069180 [11:33:27]NVStorageSaveData ofd_packets/00069180 [11:33:27]File name is /storage/ofd_packets/00069180 [11:33:27]Write 302 bytes [11:33:27]NVStorageSaveData done [11:33:27]OFDSenderStorePacket done [11:33:27]KKMCreateOFDPacket done [11:33:27]NVStorageSaveData kkm_last_timestamp [11:33:27]File name is /storage/kkm_last_timestamp [11:33:27]Write 4 bytes [11:33:27]NVStorageSaveData done [11:33:27]ExternCall_PrintAddStr [11:33:27]wPrintStart [11:33:27]Write to MH i2c: 01 00 00 B7 41 F8 [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: 01 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: 01 07 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: 01 07 00 B7 41 00 00 00 00 00 FF 0F 0D [11:33:27]RasterBufferAndPrint [11:33:27]line Счет N : (1)871837 [11:33:27]line ИНН: 02508201610067 [11:33:27]line Контрольно-Кассовый Чек [11:33:27]line ПРОДАЖА [11:33:27]line ТРК (МРК, ГНК) : 31 [11:33:27]line Товар: 2710124130 [11:33:27]line SUPER 92-К-5 [11:33:27]line 7.270 * 68.80 [11:33:27]line = 500.18 [11:33:27]line НДС 12% НСП 1% [11:33:27]line > о реализуемом товаре [11:33:27]line ИТОГО: 500.18 [11:33:27]line НСП 1% : 4.43 [11:33:27]line НДС 12% : 53.12 [11:33:27]line Наличными: 0.00 [11:33:27]line Безнал.: 500.18 [11:33:27]line Место: АЗС № 125 "Партнер Нефть" [11:33:27]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:33:27]line СНО: Общий режим [11:33:27]line Чек 63 28.07.2024 11:33 [11:33:27]line Смена: 429 ФФД: 1.0 [11:33:27]line ЗНМ: 0300000049 [11:33:27]line РНМ: 0000000000092638 [11:33:27]line Версия ККМ: 001 [11:33:27]line Платежная система: O! деньги [11:33:27]line ФМ: 0000000000874949 [11:33:27]line ФД: 69180 [11:33:27]line ФПД: 257999410540035 [11:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113335&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69180&fm=257999410540035&tin=02508201610067®Number=0000000000092638&sum=50018 [11:33:28]OFD Sender: Processing packet 69180 [packets to send 19, broken 18] [11:33:28]ProducePacketName [11:33:28]name=ofd_packets/00069180 [11:33:28]OFD Sender: To server: pG, [11:33:28]CommunicateWithHost lk.salyk.kg:30040 [11:33:28]ConnectInit lk.salyk.kg [11:33:28]written 0, free lines is 4095 [11:33:28]Connected sock=10 [11:33:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 01 00 00 52 88 08 01 5F 9B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 8F 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3C 0E 01 00 35 04 06 00 EA A6 2B 37 AE 03 FE BF 8F EA 5B FE 3F 55 [11:33:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 F2 23 47 00 49 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3C 0E 01 00 F4 03 04 00 FE D2 A5 66 B6 04 01 00 00 A2 D6 1C 49 EA C9 8D 82 [11:33:28]CommunicateWithHost err = 0 [11:33:28]CheckOFDResponse [11:33:28]1017 (14) - 77093643461234 [11:33:28]1041 (16) - 0000000000874949 [11:33:28]1040 (4) - 69180 [11:33:28]1012 (4) - 28.07.2024 05:11 [11:33:28]1206 (1) - 0 [11:33:28]OFD Sender: Remove packet 69180 [11:33:28]ProducePacketName [11:33:28]name=ofd_packets/00069180 [11:33:28]NVStorageDeleteData [11:33:28]Write to MH i2c: 01 00 00 E1 41 22 [11:33:28]Write i2c OK [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: 01 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: 01 07 00 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: 01 07 00 E1 41 00 00 00 00 00 F9 0C 2E [11:33:28]RasterBufferAndPrint [11:33:28]line [11:33:28]line [11:33:28]line [11:33:28]line [11:33:28]line [11:33:28]written 0, free lines is 3329 [11:33:28]MH_Cut [11:33:28]Write to MH i2c: D1 01 00 E8 41 01 FB [11:33:28]Write i2c OK [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: D1 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: D1 01 00 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: D1 01 00 E8 41 00 FA [11:33:28]Write to MH i2c: 01 00 00 E9 41 2A [11:33:28]Write i2c OK [11:33:28]MH_I2C_Read... [11:33:29]OFD Sender: No OFD packet to send [11:33:29]*** Cut start [11:33:29]*** Partial cut [11:33:29]*** CUTSNS_PIN = 1 [11:33:29]*** CUTSNS_PIN = 0 [11:33:29]*** Brake cut motor [11:33:29]Read from MH i2c: 01 [11:33:29]MH_I2C_Read... [11:33:29]*** Stop cut motor [11:33:29]*** Cut end [11:33:29]Read from MH i2c: 01 07 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: 01 07 00 E9 41 00 00 00 00 00 FF 0F 3F [11:33:29]process_action close_receipt done [11:33:29]requested_data is exist [11:33:29]produce_requested_data [11:33:29]requested_item fm.sn is exist - process it [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 11 00 00 [11:33:29]Write to MH i2c: E2 08 00 EA 41 80 11 00 00 00 00 00 00 A5 [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:29]Read from MH i2c: E2 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 17 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 17 00 EA 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 01 [11:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:33:29]wFMCommunicate OK [11:33:29]requested_item fd.num is exist - process it [11:33:29]SAM_PROTO_GetFieldsCounters [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 13 00 00 [11:33:29]Write to MH i2c: E2 08 00 EB 41 80 13 00 00 00 00 00 00 A8 [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:30]Read from MH i2c: E2 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 62 00 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 62 00 EB 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 3C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [11:33: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 3C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:30]wFMCommunicate OK [11:33:30]SAM_PROTO_GetFieldsCounters done [11:33:30]requested_item shift.num is exist - process it [11:33:30]requested_item shift.opened is exist - process it [11:33:30]req_shift_opened [11:33:30]FM_GetShiftState [11:33:30]SAM_PROTO_GetShiftState [11:33:30]wFMCommunicate request_size=4 [11:33:30]MH_SAM_APDU [11:33:30]CAPDU: 80 13 01 00 [11:33:30]Write to MH i2c: E2 08 00 EC 41 80 13 01 00 00 00 00 00 AA [11:33:30]Write i2c OK [11:33:30]MH_I2C_Read... [11:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:30]Read from MH i2c: E2 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 0E 00 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 0E 00 EC 41 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 E7 [11:33:30]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:33:30]wFMCommunicate OK [11:33:30]SAM_PROTO_GetShiftState done [11:33:30]FM_GetShiftState done [11:33:30]req_shift_opened done [11:33:30]requested_item shift.open_date is exist - process it [11:33:30]req_shift_open_date [11:33:30]req_shift_open_date done [11:33:30]produce_requested_data done [11:33:30]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69180,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:33:30]process_action_free close_receipt [11:33:30]json_value_free [11:33:30]json_value_free done [11:33:30]process_json_proto returns [11:33:30]Send response to host [11:33:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69180,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:33:30]free response buf [11:33:30]execute_script done [11:33:30]execute_script returns [11:33:30]free content buf [11:33:30]Sock 7.Close socket [11:33:30]Sock 7.Thread stoped [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:01]accept exits with 9 [11:35:01]New connection [11:35:01]New thread 3066641764 created [11:35:01]Thread 3066785124 joined [11:35:01]Waiting for new connection... [11:35:01] Sock 9.Parse request [11:35:01]Sock 9.Check first char [11:35:01]Sock 9.First char is OK [11:35:01]request: POST /json_proto HTTP/1.0 [11:35:01]Method: POST [11:35:01]URL: /json_proto [11:35:01]Method is POST - this is cgi request [11:35:01]url: /json_proto [11:35:01]query_string will be loaded in cgi processing [11:35:01]execute_cgi json_proto POST (null) [11:35:01]execute_cgi path=json_proto method=POST [11:35:01]POST find Content-Length [11:35:01]Host: 172.17.49.132:8080 [11:35:01]Content-Length: 675 [11:35:01]Content-Type: application/json [11:35:01] [11:35:01]POST finish read [11:35:01]Found Content-Length = 675 [11:35:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136564", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:01]execute_script... [11:35: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)136564", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:01]POST & json_proto [11:35:01]process_json_proto [11:35:01]json parsed OK: [11:35:01]protocol is kg_v1.0 [11:35:01]action value=close_receipt [11:35:01]process_action close_receipt [11:35:01]cmd_close_receipt [11:35:01]MH_GetDate [11:35:01]Write to MH i2c: F0 00 00 ED 41 1D [11:35:01]Write i2c OK [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: F0 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: F0 09 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: F0 09 00 ED 41 00 EE 2C A6 66 E7 4B C0 64 A2 [11:35:01]GetLastDocTimeStamp 1722166415 [11:35:01]current date 1722166510 [11:35:01]FM_GetShiftState [11:35:01]SAM_PROTO_GetShiftState [11:35:01]wFMCommunicate request_size=4 [11:35:01]MH_SAM_APDU [11:35:01]CAPDU: 80 13 01 00 [11:35:01]Write to MH i2c: E2 08 00 EE 41 80 13 01 00 00 00 00 00 AC [11:35:01]Write i2c OK [11:35:01]MH_I2C_Read... [11:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:01]Read from MH i2c: E2 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 0E 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 0E 00 EE 41 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 E9 [11:35:01]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:35:01]wFMCommunicate OK [11:35:01]SAM_PROTO_GetShiftState done [11:35:01]FM_GetShiftState done [11:35:01]opened in 1722127251 [11:35:01]opened+sec_in_day 1722213651 [11:35:01]quantity*price = 6500 [11:35:01]sum+1 = 6501 [11:35:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 64 28.07.2024 11:35 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69181 ФПД: 137047263480769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113510&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69181&fm=137047263480769&tin=02508201610067®Number=0000000000092638&sum=6500 0 [11:35:02]StoreToDocumentArchive [11:35:02]shift 429 fd 69181 [11:35:02]save to /storage/0429/doc_00069181 [11:35:02]save last doc name /storage/0429/doc_00069181 to /storage/kkm_last_doc_name [11:35:02]save OK [11:35:02]Clear old archive folders... [11:35:02]ProcessDocumentItem done err = 0, tmpTLVsize=286 [11:35:02]tlvbuf is 00B6A4E0 [11:35:02]SAM_PROTO_ClearQueue [11:35:02]wFMCommunicate request_size=4 [11:35:02]MH_SAM_APDU [11:35:02]CAPDU: 80 09 00 00 [11:35:02]Write to MH i2c: E2 08 00 FB 41 80 09 00 00 00 00 00 00 AE [11:35:02]Write i2c OK [11:35:02]MH_I2C_Read... [11:35:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:02]Read from MH i2c: E2 [11:35:02]MH_I2C_Read... [11:35:02]Read from MH i2c: E2 03 00 [11:35:02]MH_I2C_Read... [11:35:02]Read from MH i2c: E2 03 00 FB 41 00 90 00 B0 [11:35:02]RAPDU: 90 00 [11:35:02]wFMCommunicate OK [11:35:02]SAM_PROTO_ClearQueue done [11:35:02]KKMCreateOFDPacket [11:35:02]OFDProtocolAddRootSTLVToBuf [11:35:02]FM_MakeSignedData [11:35:02]FM_MakeSignedData [11:35:02]SAM_PROTO_SignData [11:35:02]wFMCommunicate request_size=4 [11:35:02]MH_SAM_APDU [11:35:02]CAPDU: 80 0D 01 02 [11:35:02]Write to MH i2c: E2 08 00 FC 41 80 0D 01 02 00 00 00 00 B6 [11:35:02]Write i2c OK [11:35:02]MH_I2C_Read... [11:35:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:02]Read from MH i2c: E2 [11:35:02]MH_I2C_Read... [11:35:02]Read from MH i2c: E2 03 00 [11:35:02]MH_I2C_Read... [11:35:02]Read from MH i2c: E2 03 00 FC 41 00 90 00 B1 [11:35:02]RAPDU: 90 00 [11:35:02]wFMCommunicate OK [11:35:02]wFMCommunicate request_size=255 [11:35:02]MH_SAM_APDU [11:35:02]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 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 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 EE 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 [11:35:02]Write to MH i2c: E2 02 01 FD 41 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 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 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 EE 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 00 00 92 [11:35:02]Write i2c OK [11:35:02]MH_I2C_Read... [11:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:03]Read from MH i2c: E2 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 03 00 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 03 00 FD 41 00 90 00 B2 [11:35:03]RAPDU: 90 00 [11:35:03]wFMCommunicate OK [11:35:03]wFMCommunicate request_size=45 [11:35:03]MH_SAM_APDU [11:35:03]CAPDU: 80 0D 02 02 28 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3D 0E 01 00 35 04 06 00 7C A4 CD 75 0B C1 [11:35:03]Write to MH i2c: E2 30 00 FE 41 80 0D 02 02 28 00 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3D 0E 01 00 35 04 06 00 7C A4 CD 75 0B C1 00 00 93 [11:35:03]Write i2c OK [11:35:03]MH_I2C_Read... [11:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:03]Read from MH i2c: E2 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 03 00 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 03 00 FE 41 00 90 00 B3 [11:35:03]RAPDU: 90 00 [11:35:03]wFMCommunicate OK [11:35:03]wFMCommunicate request_size=4 [11:35:03]MH_SAM_APDU [11:35:03]CAPDU: 80 0D 03 02 [11:35:03]Write to MH i2c: E2 08 00 FF 41 80 0D 03 02 00 00 00 00 BB [11:35:03]Write i2c OK [11:35:03]MH_I2C_Read... [11:35:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:03]Read from MH i2c: E2 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 0B 00 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 0B 00 FF 41 00 34 E6 9B B5 2D 34 F4 00 90 00 7B [11:35:03]RAPDU: 34 E6 9B B5 2D 34 F4 00 90 00 [11:35:03]wFMCommunicate OK [11:35:03]SAM_PROTO_SignData done [11:35:03]FM_MakeSignedData done [11:35:03]CreateOFDProtocolMessage [11:35:03]wFMCommunicate request_size=4 [11:35:03]MH_SAM_APDU [11:35:03]CAPDU: 80 11 00 00 [11:35:03]Write to MH i2c: E2 08 00 00 42 80 11 00 00 00 00 00 00 BC [11:35:03]Write i2c OK [11:35:03]MH_I2C_Read... [11:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:03]Read from MH i2c: E2 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 17 00 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 17 00 00 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 18 [11:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:35:03]wFMCommunicate OK [11:35:03]CreateOFDProtocolMessage done [11:35:03]OFDSenderStorePacket 69181 [11:35:03]StoreOFDPacket docnum=69181 [11:35:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 32 01 00 00 20 71 2A 01 AC F9 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 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 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 EE 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3D 0E 01 00 35 04 06 00 7C A4 CD 75 0B C1 34 E6 9B B5 2D 34 F4 00 [11:35:03]CheckFolder [11:35:03]dirname=/storage/ofd_packets [11:35:03]CheckFolder done [11:35:03]ProducePacketName [11:35:03]name=ofd_packets/00069181 [11:35:03]NVStorageSaveData ofd_packets/00069181 [11:35:03]File name is /storage/ofd_packets/00069181 [11:35:03]Write 336 bytes [11:35:03]NVStorageSaveData done [11:35:03]OFDSenderStorePacket done [11:35:03]KKMCreateOFDPacket done [11:35:03]NVStorageSaveData kkm_last_timestamp [11:35:03]File name is /storage/kkm_last_timestamp [11:35:03]Write 4 bytes [11:35:03]NVStorageSaveData done [11:35:03]ExternCall_PrintAddStr [11:35:03]wPrintStart [11:35:03]Write to MH i2c: 01 00 00 01 42 43 [11:35:03]OFD Sender: Processing packet 69181 [packets to send 19, broken 18] [11:35:03]ProducePacketName [11:35:03]name=ofd_packets/00069181 [11:35:03]OFD Sender: To server: pG, [11:35:03]CommunicateWithHost lk.salyk.kg:30040 [11:35:03]ConnectInit lk.salyk.kg [11:35:03]Write i2c OK [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: 01 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: 01 07 00 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: 01 07 00 01 42 00 00 00 00 00 FF 0F 58 [11:35:03]RasterBufferAndPrint [11:35:03]line Счет N : (3)136564 [11:35:03]line ИНН: 02508201610067 [11:35:03]line Контрольно-Кассовый Чек [11:35:03]line ПРОДАЖА [11:35:03]line Товар: 4700040114120 [11:35:03]line Султан чай 1л. чер персик [11:35:03]line 1.000 * 65.00 [11:35:03]line = 65.00 [11:35:03]line НДС 12% НСП 1% [11:35:03]line > о реализуемом товаре [11:35:03]line ИТОГО: 65.00 [11:35:03]line НСП 1% : 0.57 [11:35:03]line НДС 12% : 6.90 [11:35:03]line Наличными: 65.00 [11:35:03]line Безнал.: 0.00 [11:35:03]line Место: АЗС № 125 "Партнер Нефть" [11:35:03]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:35:03]line СНО: Общий режим [11:35:03]line Чек 64 28.07.2024 11:35 [11:35:03]line Смена: 429 ФФД: 1.0 [11:35:03]line ЗНМ: 0300000049 [11:35:03]line РНМ: 0000000000092638 [11:35:03]line Версия ККМ: 001 [11:35:03]line ФМ: 0000000000874949 [11:35:03]line ФД: 69181 [11:35:03]line ФПД: 137047263480769 [11:35:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113510&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69181&fm=137047263480769&tin=02508201610067®Number=0000000000092638&sum=6500 [11:35:03]Connected sock=10 [11:35: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 39 34 39 32 01 00 00 20 71 2A 01 AC F9 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 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 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 EE 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3D 0E 01 00 35 04 06 00 7C A4 CD 75 0B C1 34 E6 9B B5 2D 34 F4 00 [11:35:03]line 0 [11:35:03]written 0, free lines is 4095 [11:35:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 99 C5 47 00 18 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3D 0E 01 00 F4 03 04 00 5E D3 A5 66 B6 04 01 00 00 77 16 0D 4D 75 4D 2F D7 [11:35:03]CommunicateWithHost err = 0 [11:35:03]CheckOFDResponse [11:35:03]1017 (14) - 77093643461234 [11:35:03]1041 (16) - 0000000000874949 [11:35:03]1040 (4) - 69181 [11:35:03]1012 (4) - 28.07.2024 05:13 [11:35:03]1206 (1) - 0 [11:35:03]OFD Sender: Remove packet 69181 [11:35:03]ProducePacketName [11:35:03]name=ofd_packets/00069181 [11:35:03]NVStorageDeleteData [11:35:04]Write to MH i2c: 01 00 00 29 42 6B [11:35:04]Write i2c OK [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: 01 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: 01 07 00 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: 01 07 00 29 42 00 00 00 00 00 1B 0D 9A [11:35:04]RasterBufferAndPrint [11:35:04]line [11:35:04]line [11:35:04]line [11:35:04]line [11:35:04]line [11:35:04]written 0, free lines is 3362 [11:35:04]MH_Cut [11:35:04]Write to MH i2c: D1 01 00 30 42 01 44 [11:35:04]Write i2c OK [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: D1 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: D1 01 00 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: D1 01 00 30 42 00 43 [11:35:04]Write to MH i2c: 01 00 00 31 42 73 [11:35:04]Write i2c OK [11:35:04]MH_I2C_Read... [11:35:04]OFD Sender: No OFD packet to send [11:35:04]*** Cut start [11:35:04]*** Partial cut [11:35:04]*** CUTSNS_PIN = 1 [11:35:04]*** CUTSNS_PIN = 0 [11:35:04]*** Brake cut motor [11:35:05]Read from MH i2c: 01 [11:35:05]MH_I2C_Read... [11:35:05]*** Stop cut motor [11:35:05]*** Cut end [11:35:05]Read from MH i2c: 01 07 00 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: 01 07 00 31 42 00 00 00 00 00 FF 0F 88 [11:35:05]process_action close_receipt done [11:35:05]requested_data is exist [11:35:05]produce_requested_data [11:35:05]requested_item fm.sn is exist - process it [11:35:05]wFMCommunicate request_size=4 [11:35:05]MH_SAM_APDU [11:35:05]CAPDU: 80 11 00 00 [11:35:05]Write to MH i2c: E2 08 00 32 42 80 11 00 00 00 00 00 00 EE [11:35:05]Write i2c OK [11:35:05]MH_I2C_Read... [11:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:05]Read from MH i2c: E2 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 17 00 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 17 00 32 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 4A [11:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:35:05]wFMCommunicate OK [11:35:05]requested_item fd.num is exist - process it [11:35:05]SAM_PROTO_GetFieldsCounters [11:35:05]wFMCommunicate request_size=4 [11:35:05]MH_SAM_APDU [11:35:05]CAPDU: 80 13 00 00 [11:35:05]Write to MH i2c: E2 08 00 33 42 80 13 00 00 00 00 00 00 F1 [11:35:05]Write i2c OK [11:35:05]MH_I2C_Read... [11:35:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:05]Read from MH i2c: E2 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 62 00 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 62 00 33 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 3D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [11:35: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 3D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:05]wFMCommunicate OK [11:35:05]SAM_PROTO_GetFieldsCounters done [11:35:05]requested_item shift.num is exist - process it [11:35:05]requested_item shift.opened is exist - process it [11:35:05]req_shift_opened [11:35:05]FM_GetShiftState [11:35:05]SAM_PROTO_GetShiftState [11:35:05]wFMCommunicate request_size=4 [11:35:05]MH_SAM_APDU [11:35:05]CAPDU: 80 13 01 00 [11:35:05]Write to MH i2c: E2 08 00 34 42 80 13 01 00 00 00 00 00 F3 [11:35:05]Write i2c OK [11:35:05]MH_I2C_Read... [11:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:05]Read from MH i2c: E2 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 0E 00 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 0E 00 34 42 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 30 [11:35:05]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:35:05]wFMCommunicate OK [11:35:05]SAM_PROTO_GetShiftState done [11:35:05]FM_GetShiftState done [11:35:05]req_shift_opened done [11:35:05]requested_item shift.open_date is exist - process it [11:35:05]req_shift_open_date [11:35:05]req_shift_open_date done [11:35:05]produce_requested_data done [11:35:05]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69181,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:35:05]process_action_free close_receipt [11:35:05]json_value_free [11:35:05]json_value_free done [11:35:05]process_json_proto returns [11:35:05]Send response to host [11:35:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69181,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:35:05]free response buf [11:35:05]execute_script done [11:35:05]execute_script returns [11:35:05]free content buf [11:35:05]Sock 9.Close socket [11:35:05]Sock 9.Thread stoped [11:35:09]OFD Sender: No OFD packet to send [11:35:12]accept exits with 7 [11:35:12]New connection [11:35:12]New thread 3066785124 created [11:35:12]Thread 3066641764 joined [11:35:12]Waiting for new connection... [11:35:12] Sock 7.Parse request [11:35:12]Sock 7.Check first char [11:35:12]Sock 7.First char is OK [11:35:12]request: POST /json_proto HTTP/1.0 [11:35:12]Method: POST [11:35:12]URL: /json_proto [11:35:12]Method is POST - this is cgi request [11:35:12]url: /json_proto [11:35:12]query_string will be loaded in cgi processing [11:35:12]execute_cgi json_proto POST (null) [11:35:12]execute_cgi path=json_proto method=POST [11:35:12]POST find Content-Length [11:35:12]Host: 172.17.49.132:8080 [11:35:12]Content-Length: 815 [11:35:12]Content-Type: application/json [11:35:12] [11:35:12]POST finish read [11:35:12]Found Content-Length = 815 [11:35:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:12]execute_script... [11:35:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:12]POST & json_proto [11:35:12]process_json_proto [11:35:12]json parsed OK: [11:35:12]protocol is kg_v1.0 [11:35:12]action value=close_receipt [11:35:12]process_action close_receipt [11:35:12]cmd_close_receipt [11:35:12]MH_GetDate [11:35:12]Write to MH i2c: F0 00 00 35 42 66 [11:35:12]Write i2c OK [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: F0 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: F0 09 00 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: F0 09 00 35 42 00 F9 2C A6 66 E7 4B C0 64 F6 [11:35:12]GetLastDocTimeStamp 1722166510 [11:35:12]current date 1722166521 [11:35:12]FM_GetShiftState [11:35:12]SAM_PROTO_GetShiftState [11:35:12]wFMCommunicate request_size=4 [11:35:12]MH_SAM_APDU [11:35:12]CAPDU: 80 13 01 00 [11:35:12]Write to MH i2c: E2 08 00 36 42 80 13 01 00 00 00 00 00 F5 [11:35:12]Write i2c OK [11:35:12]MH_I2C_Read... [11:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:12]Read from MH i2c: E2 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 0E 00 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 0E 00 36 42 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 32 [11:35:12]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:35:12]wFMCommunicate OK [11:35:12]SAM_PROTO_GetShiftState done [11:35:12]FM_GetShiftState done [11:35:12]opened in 1722127251 [11:35:12]opened+sec_in_day 1722213651 [11:35:12]quantity*price = 100016 [11:35:12]sum+1 = 100017 [11:35:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 65 28.07.2024 11:35 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874949 ФД: 69182 ФПД: 111257789517931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113521&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69182&fm=111257789517931&tin=02508201610067®Number=0000000000092638&sum=100016 [11:35:13]StoreToDocumentArchive [11:35:13]shift 429 fd 69182 [11:35:13]save to /storage/0429/doc_00069182 [11:35:13]save last doc name /storage/0429/doc_00069182 to /storage/kkm_last_doc_name [11:35:13]save OK [11:35:13]Clear old archive folders... [11:35:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:35:13]tlvbuf is 00A1A8B0 [11:35:13]SAM_PROTO_ClearQueue [11:35:13]wFMCommunicate request_size=4 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 09 00 00 [11:35:13]Write to MH i2c: E2 08 00 43 42 80 09 00 00 00 00 00 00 F7 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 43 42 00 90 00 F9 [11:35:13]RAPDU: 90 00 [11:35:13]wFMCommunicate OK [11:35:13]SAM_PROTO_ClearQueue done [11:35:13]KKMCreateOFDPacket [11:35:13]OFDProtocolAddRootSTLVToBuf [11:35:13]FM_MakeSignedData [11:35:13]FM_MakeSignedData [11:35:13]SAM_PROTO_SignData [11:35:13]wFMCommunicate request_size=4 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 0D 01 02 [11:35:13]Write to MH i2c: E2 08 00 44 42 80 0D 01 02 00 00 00 00 FF [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 44 42 00 90 00 FA [11:35:13]RAPDU: 90 00 [11:35:13]wFMCommunicate OK [11:35:13]wFMCommunicate request_size=255 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 41 00 00 00 F4 03 04 00 F9 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3E 0E 01 00 35 04 06 00 65 30 39 05 [11:35:13]Write to MH i2c: E2 02 01 45 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 41 00 00 00 F4 03 04 00 F9 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3E 0E 01 00 35 04 06 00 65 30 39 05 00 00 0F [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 03 00 45 42 00 90 00 FB [11:35:13]RAPDU: 90 00 [11:35:13]wFMCommunicate OK [11:35:13]wFMCommunicate request_size=7 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 0D 02 02 02 D0 6B [11:35:13]Write to MH i2c: E2 0A 00 46 42 80 0D 02 02 02 00 D0 6B 00 00 41 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:14]Read from MH i2c: E2 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 46 42 00 90 00 FC [11:35:14]RAPDU: 90 00 [11:35:14]wFMCommunicate OK [11:35:14]wFMCommunicate request_size=4 [11:35:14]MH_SAM_APDU [11:35:14]CAPDU: 80 0D 03 02 [11:35:14]Write to MH i2c: E2 08 00 47 42 80 0D 03 02 00 00 00 00 04 [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:14]Read from MH i2c: E2 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 0B 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 0B 00 47 42 00 00 76 0B 58 BA 28 3F FB 90 00 FA [11:35:14]RAPDU: 00 76 0B 58 BA 28 3F FB 90 00 [11:35:14]wFMCommunicate OK [11:35:14]SAM_PROTO_SignData done [11:35:14]FM_MakeSignedData done [11:35:14]CreateOFDProtocolMessage [11:35:14]wFMCommunicate request_size=4 [11:35:14]MH_SAM_APDU [11:35:14]CAPDU: 80 11 00 00 [11:35:14]Write to MH i2c: E2 08 00 48 42 80 11 00 00 00 00 00 00 04 [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:14]Read from MH i2c: E2 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 17 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 17 00 48 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 60 [11:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:35:14]wFMCommunicate OK [11:35:14]CreateOFDProtocolMessage done [11:35:14]OFDSenderStorePacket 69182 [11:35:14]StoreOFDPacket docnum=69182 [11:35:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 C4 1F 04 01 5C 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 41 00 00 00 F4 03 04 00 F9 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3E 0E 01 00 35 04 06 00 65 30 39 05 D0 6B 00 76 0B 58 BA 28 3F FB [11:35:14]CheckFolder [11:35:14]dirname=/storage/ofd_packets [11:35:14]CheckFolder done [11:35:14]ProducePacketName [11:35:14]name=ofd_packets/00069182 [11:35:14]NVStorageSaveData ofd_packets/00069182 [11:35:14]File name is /storage/ofd_packets/00069182 [11:35:14]Write 298 bytes [11:35:14]NVStorageSaveData done [11:35:14]OFDSenderStorePacket done [11:35:14]KKMCreateOFDPacket done [11:35:14]NVStorageSaveData kkm_last_timestamp [11:35:14]File name is /storage/kkm_last_timestamp [11:35:14]Write 4 bytes [11:35:14]NVStorageSaveData done [11:35:14]ExternCall_PrintAddStr [11:35:14]wPrintStart [11:35:14]Write to MH i2c: 01 00 00 49 42 8B [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 07 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 07 00 49 42 00 00 00 00 00 FF 0F A0 [11:35:14]RasterBufferAndPrint [11:35:14]line Счет N : (1)871838 [11:35:14]line ИНН: 02508201610067 [11:35:14]line Контрольно-Кассовый Чек [11:35:14]line ПРОДАЖА [11:35:14]line ТРК (МРК, ГНК) : 1 [11:35:14]line Товар: 2710194210 [11:35:14]line ДТ-К-5 [11:35:14]line 13.300 * 75.20 [11:35:14]line = 1000.16 [11:35:14]line НДС 12% НСП 1% [11:35:14]line > о реализуемом товаре [11:35:14]line ИТОГО: 1000.16 [11:35:14]line НСП 1% : 8.85 [11:35:14]line НДС 12% : 106.21 [11:35:14]line Наличными: 0.00 [11:35:14]line Безнал.: 1000.16 [11:35:14]line Место: АЗС № 125 "Партнер Нефть" [11:35:14]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:35:14]line СНО: Общий режим [11:35:14]line Чек 65 28.07.2024 11:35 [11:35:14]line Смена: 429 ФФД: 1.0 [11:35:14]line ЗНМ: 0300000049 [11:35:14]line РНМ: 0000000000092638 [11:35:14]line Версия ККМ: 001 [11:35:14]line Платежная система: Бакай Банк [11:35:14]line ФМ: 0000000000874949 [11:35:14]line ФД: 69182 [11:35:14]line ФПД: 111257789517931 [11:35:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113521&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69182&fm=111257789517931&tin=02508201610067®Number=0000000000092638&sum=100016 [11:35:14]written 0, free lines is 4095 [11:35:14]OFD Sender: Processing packet 69182 [packets to send 19, broken 18] [11:35:14]ProducePacketName [11:35:14]name=ofd_packets/00069182 [11:35:14]OFD Sender: To server: pG, [11:35:14]CommunicateWithHost lk.salyk.kg:30040 [11:35:14]ConnectInit lk.salyk.kg [11:35:14]Connected sock=10 [11:35:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 C4 1F 04 01 5C 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 41 00 00 00 F4 03 04 00 F9 2C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3E 0E 01 00 35 04 06 00 65 30 39 05 D0 6B 00 76 0B 58 BA 28 3F FB [11:35:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 56 05 47 00 C5 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 39 34 39 10 04 04 00 3E 0E 01 00 F4 03 04 00 68 D3 A5 66 B6 04 01 00 00 32 29 7E 7E 86 6C 62 4D [11:35:14]CommunicateWithHost err = 0 [11:35:14]CheckOFDResponse [11:35:14]1017 (14) - 77093643461234 [11:35:14]1041 (16) - 0000000000874949 [11:35:14]1040 (4) - 69182 [11:35:14]1012 (4) - 28.07.2024 05:13 [11:35:14]1206 (1) - 0 [11:35:14]OFD Sender: Remove packet 69182 [11:35:14]ProducePacketName [11:35:14]name=ofd_packets/00069182 [11:35:14]NVStorageDeleteData [11:35:14]Write to MH i2c: 01 00 00 73 42 B5 [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 07 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 07 00 73 42 00 00 00 00 00 03 0D CC [11:35:14]RasterBufferAndPrint [11:35:14]line [11:35:14]line [11:35:14]line [11:35:14]line [11:35:14]line [11:35:14]written 0, free lines is 3343 [11:35:14]MH_Cut [11:35:14]Write to MH i2c: D1 01 00 7A 42 01 8E [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: D1 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: D1 01 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: D1 01 00 7A 42 00 8D [11:35:14]Write to MH i2c: 01 00 00 7B 42 BD [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]OFD Sender: No OFD packet to send [11:35:15]*** Cut start [11:35:15]*** Partial cut [11:35:15]*** CUTSNS_PIN = 1 [11:35:15]*** CUTSNS_PIN = 0 [11:35:15]*** Brake cut motor [11:35:15]Read from MH i2c: 01 [11:35:15]MH_I2C_Read... [11:35:15]*** Stop cut motor [11:35:15]*** Cut end [11:35:15]Read from MH i2c: 01 07 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: 01 07 00 7B 42 00 00 00 00 00 FF 0F D2 [11:35:15]process_action close_receipt done [11:35:15]requested_data is exist [11:35:15]produce_requested_data [11:35:15]requested_item fm.sn is exist - process it [11:35:15]wFMCommunicate request_size=4 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 11 00 00 [11:35:15]Write to MH i2c: E2 08 00 7C 42 80 11 00 00 00 00 00 00 38 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 17 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 17 00 7C 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 94 [11:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:35:15]wFMCommunicate OK [11:35:15]requested_item fd.num is exist - process it [11:35:15]SAM_PROTO_GetFieldsCounters [11:35:15]wFMCommunicate request_size=4 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 13 00 00 [11:35:15]Write to MH i2c: E2 08 00 7D 42 80 13 00 00 00 00 00 00 3B [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:16]Read from MH i2c: E2 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: E2 62 00 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: E2 62 00 7D 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 3E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [11:35:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 3E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:16]wFMCommunicate OK [11:35:16]SAM_PROTO_GetFieldsCounters done [11:35:16]requested_item shift.num is exist - process it [11:35:16]requested_item shift.opened is exist - process it [11:35:16]req_shift_opened [11:35:16]FM_GetShiftState [11:35:16]SAM_PROTO_GetShiftState [11:35:16]wFMCommunicate request_size=4 [11:35:16]MH_SAM_APDU [11:35:16]CAPDU: 80 13 01 00 [11:35:16]Write to MH i2c: E2 08 00 7E 42 80 13 01 00 00 00 00 00 3D [11:35:16]Write i2c OK [11:35:16]MH_I2C_Read... [11:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:16]Read from MH i2c: E2 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: E2 0E 00 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: E2 0E 00 7E 42 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 7A [11:35:16]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:35:16]wFMCommunicate OK [11:35:16]SAM_PROTO_GetShiftState done [11:35:16]FM_GetShiftState done [11:35:16]req_shift_opened done [11:35:16]requested_item shift.open_date is exist - process it [11:35:16]req_shift_open_date [11:35:16]req_shift_open_date done [11:35:16]produce_requested_data done [11:35:16]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69182,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:35:16]process_action_free close_receipt [11:35:16]json_value_free [11:35:16]json_value_free done [11:35:16]process_json_proto returns [11:35:16]Send response to host [11:35:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69182,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:35:16]free response buf [11:35:16]execute_script done [11:35:16]execute_script returns [11:35:16]free content buf [11:35:16]Sock 7.Close socket [11:35:16]Sock 7.Thread stoped [11:35:19]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:16]accept exits with 9 [11:38:16]New connection [11:38:16]New thread 3066641764 created [11:38:16]Thread 3066785124 joined [11:38:16]Waiting for new connection... [11:38:16] Sock 9.Parse request [11:38:16]Sock 9.Check first char [11:38:16]Sock 9.First char is OK [11:38:16]request: POST /json_proto HTTP/1.0 [11:38:16]Method: POST [11:38:16]URL: /json_proto [11:38:16]Method is POST - this is cgi request [11:38:16]url: /json_proto [11:38:16]query_string will be loaded in cgi processing [11:38:16]execute_cgi json_proto POST (null) [11:38:16]execute_cgi path=json_proto method=POST [11:38:16]POST find Content-Length [11:38:16]Host: 172.17.49.132:8080 [11:38:16]Content-Length: 946 [11:38:16]Content-Type: application/json [11:38:16] [11:38:16]POST finish read [11:38:16]Found Content-Length = 946 [11:38:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 120.000, "sum" : 8016.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 120.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 8016.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:16]execute_script... [11:38:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 120.000, "sum" : 8016.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 120.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 8016.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:16]POST & json_proto [11:38:16]process_json_proto [11:38:16]json parsed OK: [11:38:16]protocol is kg_v1.0 [11:38:16]action value=close_receipt [11:38:16]process_action close_receipt [11:38:16]cmd_close_receipt [11:38:16]MH_GetDate [11:38:16]Write to MH i2c: F0 00 00 7F 42 B0 [11:38:16]Write i2c OK [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: F0 [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: F0 09 00 [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: F0 09 00 7F 42 00 B1 2D A6 66 E7 4B C0 64 F9 [11:38:16]GetLastDocTimeStamp 1722166521 [11:38:16]current date 1722166705 [11:38:16]FM_GetShiftState [11:38:16]SAM_PROTO_GetShiftState [11:38:16]wFMCommunicate request_size=4 [11:38:16]MH_SAM_APDU [11:38:16]CAPDU: 80 13 01 00 [11:38:16]Write to MH i2c: E2 08 00 80 42 80 13 01 00 00 00 00 00 3F [11:38:16]Write i2c OK [11:38:16]MH_I2C_Read... [11:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:16]Read from MH i2c: E2 [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: E2 0E 00 [11:38:16]MH_I2C_Read... [11:38:16]Read from MH i2c: E2 0E 00 80 42 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 7C [11:38:16]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:38:16]wFMCommunicate OK [11:38:16]SAM_PROTO_GetShiftState done [11:38:16]FM_GetShiftState done [11:38:16]opened in 1722127251 [11:38:16]opened+sec_in_day 1722213651 [11:38:16]quantity*price = 801600 [11:38:16]sum+1 = 801601 [11:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8016.00 НСП 1% : 70.94 НДС 12% : 851.26 Наличными: 8016.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 66 28.07.2024 11:38 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Дисконтная программа АИ-92 номер 125 сэкономлено 120.00 сом ФМ: 0000000000874949 ФД: 69183 ФПД: 46224220212481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113825&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69183&fm=46224220212481&tin=02508201610067®Number=0000000000092638&sum=801600 [11:38:17]StoreToDocumentArchive [11:38:17]shift 429 fd 69183 [11:38:17]save to /storage/0429/doc_00069183 [11:38:17]save last doc name /storage/0429/doc_00069183 to /storage/kkm_last_doc_name [11:38:17]save OK [11:38:17]Clear old archive folders... [11:38:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:17]tlvbuf is 00A5F250 [11:38:17]SAM_PROTO_ClearQueue [11:38:17]wFMCommunicate request_size=4 [11:38:17]MH_SAM_APDU [11:38:17]CAPDU: 80 09 00 00 [11:38:17]Write to MH i2c: E2 08 00 8D 42 80 09 00 00 00 00 00 00 41 [11:38:17]Write i2c OK [11:38:17]MH_I2C_Read... [11:38:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:17]Read from MH i2c: E2 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: E2 03 00 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: E2 03 00 8D 42 00 90 00 43 [11:38:17]RAPDU: 90 00 [11:38:17]wFMCommunicate OK [11:38:17]SAM_PROTO_ClearQueue done [11:38:17]KKMCreateOFDPacket [11:38:17]OFDProtocolAddRootSTLVToBuf [11:38:17]FM_MakeSignedData [11:38:17]FM_MakeSignedData [11:38:17]SAM_PROTO_SignData [11:38:17]wFMCommunicate request_size=4 [11:38:17]MH_SAM_APDU [11:38:17]CAPDU: 80 0D 01 02 [11:38:17]Write to MH i2c: E2 08 00 8E 42 80 0D 01 02 00 00 00 00 49 [11:38:17]Write i2c OK [11:38:17]MH_I2C_Read... [11:38:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:17]Read from MH i2c: E2 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: E2 03 00 [11:38:17]MH_I2C_Read... [11:38:17]Read from MH i2c: E2 03 00 8E 42 00 90 00 44 [11:38:17]RAPDU: 90 00 [11:38:17]wFMCommunicate OK [11:38:17]wFMCommunicate request_size=255 [11:38:17]MH_SAM_APDU [11:38:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 40 3B 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 3B 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 4C 01 00 00 00 07 04 06 00 40 3B 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 B1 2D A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3F 0E 01 00 35 04 06 00 2A [11:38:17]Write to MH i2c: E2 02 01 8F 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 40 3B 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 3B 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 4C 01 00 00 00 07 04 06 00 40 3B 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 B1 2D A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3F 0E 01 00 35 04 06 00 2A 00 00 B1 [11:38:17]Write i2c OK [11:38:17]MH_I2C_Read... [11:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:18]Read from MH i2c: E2 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 03 00 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 03 00 8F 42 00 90 00 45 [11:38:18]RAPDU: 90 00 [11:38:18]wFMCommunicate OK [11:38:18]wFMCommunicate request_size=10 [11:38:18]MH_SAM_APDU [11:38:18]CAPDU: 80 0D 02 02 05 0A 6A 39 CD 01 [11:38:18]Write to MH i2c: E2 0D 00 90 42 80 0D 02 02 05 00 0A 6A 39 CD 01 00 00 D1 [11:38:18]Write i2c OK [11:38:18]MH_I2C_Read... [11:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:18]Read from MH i2c: E2 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 03 00 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 03 00 90 42 00 90 00 46 [11:38:18]RAPDU: 90 00 [11:38:18]wFMCommunicate OK [11:38:18]wFMCommunicate request_size=4 [11:38:18]MH_SAM_APDU [11:38:18]CAPDU: 80 0D 03 02 [11:38:18]Write to MH i2c: E2 08 00 91 42 80 0D 03 02 00 00 00 00 4E [11:38:18]Write i2c OK [11:38:18]MH_I2C_Read... [11:38:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:18]Read from MH i2c: E2 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 0B 00 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 0B 00 91 42 00 2F 1E 43 52 E3 81 DD DC 90 00 4E [11:38:18]RAPDU: 2F 1E 43 52 E3 81 DD DC 90 00 [11:38:18]wFMCommunicate OK [11:38:18]SAM_PROTO_SignData done [11:38:18]FM_MakeSignedData done [11:38:18]CreateOFDProtocolMessage [11:38:18]wFMCommunicate request_size=4 [11:38:18]MH_SAM_APDU [11:38:18]CAPDU: 80 11 00 00 [11:38:18]Write to MH i2c: E2 08 00 92 42 80 11 00 00 00 00 00 00 4E [11:38:18]Write i2c OK [11:38:18]MH_I2C_Read... [11:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:18]Read from MH i2c: E2 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 17 00 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: E2 17 00 92 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AA [11:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:38:18]wFMCommunicate OK [11:38:18]CreateOFDProtocolMessage done [11:38:18]OFDSenderStorePacket 69183 [11:38:18]StoreOFDPacket docnum=69183 [11:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 1C 04 07 01 A5 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 40 3B 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 3B 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 4C 01 00 00 00 07 04 06 00 40 3B 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 B1 2D A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3F 0E 01 00 35 04 06 00 2A 0A 6A 39 CD 01 2F 1E 43 52 E3 81 DD DC [11:38:18]CheckFolder [11:38:18]dirname=/storage/ofd_packets [11:38:18]CheckFolder done [11:38:18]ProducePacketName [11:38:18]name=ofd_packets/00069183 [11:38:18]NVStorageSaveData ofd_packets/00069183 [11:38:18]File name is /storage/ofd_packets/00069183 [11:38:18]Write 301 bytes [11:38:18]NVStorageSaveData done [11:38:18]OFDSenderStorePacket done [11:38:18]KKMCreateOFDPacket done [11:38:18]NVStorageSaveData kkm_last_timestamp [11:38:18]File name is /storage/kkm_last_timestamp [11:38:18]OFD Sender: Processing packet 69183 [packets to send 19, broken 18] [11:38:18]ProducePacketName [11:38:18]name=ofd_packets/00069183 [11:38:18]OFD Sender: To server: pG, [11:38:18]CommunicateWithHost lk.salyk.kg:30040 [11:38:18]ConnectInit lk.salyk.kg [11:38:18]Write 4 bytes [11:38:18]NVStorageSaveData done [11:38:18]ExternCall_PrintAddStr [11:38:18]wPrintStart [11:38:18]Write to MH i2c: 01 00 00 93 42 D5 [11:38:18]Write i2c OK [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: 01 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: 01 07 00 [11:38:18]MH_I2C_Read... [11:38:18]Read from MH i2c: 01 07 00 93 42 00 00 00 00 00 FF 0F EA [11:38:18]RasterBufferAndPrint [11:38:18]line Счет N : (1)871842 [11:38:18]line ИНН: 02508201610067 [11:38:18]line Контрольно-Кассовый Чек [11:38:18]line ПРОДАЖА [11:38:18]line ТРК (МРК, ГНК) : 42 [11:38:18]line Товар: 2710124130 [11:38:18]line Аи-92-К-5 [11:38:18]line 120.000 * 66.80 [11:38:18]line = 8016.00 [11:38:18]line НДС 12% НСП 1% [11:38:18]line > о реализуемом товаре [11:38:18]line ИТОГО: 8016.00 [11:38:18]line НСП 1% : 70.94 [11:38:18]line НДС 12% : 851.26 [11:38:18]line Наличными: 8016.00 [11:38:18]line Безнал.: 0.00 [11:38:18]line Место: АЗС № 125 "Партнер Нефть" [11:38:18]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:38:18]line СНО: Общий режим [11:38:18]line Чек 66 28.07.2024 11:38 [11:38:18]line Смена: 429 ФФД: 1.0 [11:38:18]line ЗНМ: 0300000049 [11:38:18]line РНМ: 0000000000092638 [11:38:18]line Версия ККМ: 001 [11:38:18]line [11:38:18]line Дисконтная программа [11:38:18]line АИ-92 [11:38:18]line номер 125 [11:38:18]line сэкономлено 120.00 сом [11:38:18]line ФМ: 0000000000874949 [11:38:18]line ФД: 69183 [11:38:18]line ФПД: 46224220212481 [11:38:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T113825&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69183&fm=46224220212481&tin=02508201610067®Number=0000000000092638&sum=801600 [11:38:18]Connected sock=11 [11:38: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 39 34 39 0F 01 00 00 1C 04 07 01 A5 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 40 3B 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 3B 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 4C 01 00 00 00 07 04 06 00 40 3B 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 B1 2D A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3F 0E 01 00 35 04 06 00 2A 0A 6A 39 CD 01 2F 1E 43 52 E3 81 DD DC [11:38:18]written 0, free lines is 4095 [11:38:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 8E 12 47 00 AD 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 3F 0E 01 00 F4 03 04 00 21 D4 A5 66 B6 04 01 00 00 48 FD A4 4D 73 19 31 DF [11:38:18]CommunicateWithHost err = 0 [11:38:18]CheckOFDResponse [11:38:18]1017 (14) - 77093643461234 [11:38:18]1041 (16) - 0000000000874949 [11:38:18]1040 (4) - 69183 [11:38:18]1012 (4) - 28.07.2024 05:16 [11:38:18]1206 (1) - 0 [11:38:18]OFD Sender: Remove packet 69183 [11:38:18]ProducePacketName [11:38:18]name=ofd_packets/00069183 [11:38:18]NVStorageDeleteData [11:38:19]Write to MH i2c: 01 00 00 C0 42 02 [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: 01 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: 01 07 00 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: 01 07 00 C0 42 00 00 00 00 00 C5 0C DA [11:38:19]RasterBufferAndPrint [11:38:19]line [11:38:19]line [11:38:19]line [11:38:19]line [11:38:19]line [11:38:19]written 0, free lines is 3278 [11:38:19]MH_Cut [11:38:19]Write to MH i2c: D1 01 00 C7 42 01 DB [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: D1 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: D1 01 00 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: D1 01 00 C7 42 00 DA [11:38:19]Write to MH i2c: 01 00 00 C8 42 0A [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:19]OFD Sender: No OFD packet to send [11:38:19]*** Cut start [11:38:19]*** Partial cut [11:38:19]*** CUTSNS_PIN = 1 [11:38:19]*** CUTSNS_PIN = 0 [11:38:20]*** Brake cut motor [11:38:20]Read from MH i2c: 01 [11:38:20]MH_I2C_Read... [11:38:20]*** Stop cut motor [11:38:20]*** Cut end [11:38:20]Read from MH i2c: 01 07 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: 01 07 00 C8 42 00 00 00 00 00 FF 0F 1F [11:38:20]process_action close_receipt done [11:38:20]requested_data is exist [11:38:20]produce_requested_data [11:38:20]requested_item fm.sn is exist - process it [11:38:20]wFMCommunicate request_size=4 [11:38:20]MH_SAM_APDU [11:38:20]CAPDU: 80 11 00 00 [11:38:20]Write to MH i2c: E2 08 00 C9 42 80 11 00 00 00 00 00 00 85 [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 17 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 17 00 C9 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E1 [11:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:38:20]wFMCommunicate OK [11:38:20]requested_item fd.num is exist - process it [11:38:20]SAM_PROTO_GetFieldsCounters [11:38:20]wFMCommunicate request_size=4 [11:38:20]MH_SAM_APDU [11:38:20]CAPDU: 80 13 00 00 [11:38:20]Write to MH i2c: E2 08 00 CA 42 80 13 00 00 00 00 00 00 88 [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 62 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 62 00 CA 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 3F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [11:38: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 3F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:20]wFMCommunicate OK [11:38:20]SAM_PROTO_GetFieldsCounters done [11:38:20]requested_item shift.num is exist - process it [11:38:20]requested_item shift.opened is exist - process it [11:38:20]req_shift_opened [11:38:20]FM_GetShiftState [11:38:20]SAM_PROTO_GetShiftState [11:38:20]wFMCommunicate request_size=4 [11:38:20]MH_SAM_APDU [11:38:20]CAPDU: 80 13 01 00 [11:38:20]Write to MH i2c: E2 08 00 CB 42 80 13 01 00 00 00 00 00 8A [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 0E 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 0E 00 CB 42 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 C7 [11:38:20]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:38:20]wFMCommunicate OK [11:38:20]SAM_PROTO_GetShiftState done [11:38:20]FM_GetShiftState done [11:38:20]req_shift_opened done [11:38:20]requested_item shift.open_date is exist - process it [11:38:20]req_shift_open_date [11:38:20]req_shift_open_date done [11:38:20]produce_requested_data done [11:38:20]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69183,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:38:20]process_action_free close_receipt [11:38:20]json_value_free [11:38:20]json_value_free done [11:38:20]process_json_proto returns [11:38:20]Send response to host [11:38:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69183,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:38:20]free response buf [11:38:20]execute_script done [11:38:20]execute_script returns [11:38:20]free content buf [11:38:20]Sock 9.Close socket [11:38:20]Sock 9.Thread stoped [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:10]accept exits with 7 [11:42:10]New connection [11:42:10]New thread 3066785124 created [11:42:10]Thread 3066641764 joined [11:42:10]Waiting for new connection... [11:42:10] Sock 7.Parse request [11:42:10]Sock 7.Check first char [11:42:10]Sock 7.First char is OK [11:42:10]request: POST /json_proto HTTP/1.0 [11:42:10]Method: POST [11:42:10]URL: /json_proto [11:42:10]Method is POST - this is cgi request [11:42:10]url: /json_proto [11:42:10]query_string will be loaded in cgi processing [11:42:10]execute_cgi json_proto POST (null) [11:42:10]execute_cgi path=json_proto method=POST [11:42:10]POST find Content-Length [11:42:10]Host: 172.17.49.132:8080 [11:42:10]Content-Length: 673 [11:42:10]Content-Type: application/json [11:42:10] [11:42:10]POST finish read [11:42:10]Found Content-Length = 673 [11:42:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 5.320, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:10]execute_script... [11:42:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 5.320, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:10]POST & json_proto [11:42:10]process_json_proto [11:42:10]json parsed OK: [11:42:10]protocol is kg_v1.0 [11:42:10]action value=close_receipt [11:42:10]process_action close_receipt [11:42:10]cmd_close_receipt [11:42:10]MH_GetDate [11:42:10]Write to MH i2c: F0 00 00 CC 42 FD [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: F0 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: F0 09 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: F0 09 00 CC 42 00 9A 2E A6 66 E7 4B C0 64 30 [11:42:10]GetLastDocTimeStamp 1722166705 [11:42:10]current date 1722166938 [11:42:10]FM_GetShiftState [11:42:10]SAM_PROTO_GetShiftState [11:42:10]wFMCommunicate request_size=4 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 13 01 00 [11:42:10]Write to MH i2c: E2 08 00 CD 42 80 13 01 00 00 00 00 00 8C [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 0E 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 0E 00 CD 42 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 C9 [11:42:10]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:42:10]wFMCommunicate OK [11:42:10]SAM_PROTO_GetShiftState done [11:42:10]FM_GetShiftState done [11:42:10]opened in 1722127251 [11:42:10]opened+sec_in_day 1722213651 [11:42:10]quantity*price = 40006 [11:42:10]sum+1 = 40007 [11:42:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 67 28.07.2024 11:42 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69184 ФПД: 232340290378371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114218&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69184&fm=232340290378371&tin=02508201610067®Number=0000000000092638&sum=40000 [11:42:11]StoreToDocumentArchive [11:42:11]shift 429 fd 69184 [11:42:11]save to /storage/0429/doc_00069184 [11:42:11]save last doc name /storage/0429/doc_00069184 to /storage/kkm_last_doc_name [11:42:11]save OK [11:42:11]Clear old archive folders... [11:42:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:42:11]tlvbuf is 00A17000 [11:42:11]SAM_PROTO_ClearQueue [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 09 00 00 [11:42:11]Write to MH i2c: E2 08 00 DA 42 80 09 00 00 00 00 00 00 8E [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 DA 42 00 90 00 90 [11:42:11]RAPDU: 90 00 [11:42:11]wFMCommunicate OK [11:42:11]SAM_PROTO_ClearQueue done [11:42:11]KKMCreateOFDPacket [11:42:11]OFDProtocolAddRootSTLVToBuf [11:42:11]FM_MakeSignedData [11:42:11]FM_MakeSignedData [11:42:11]SAM_PROTO_SignData [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 0D 01 02 [11:42:11]Write to MH i2c: E2 08 00 DB 42 80 0D 01 02 00 00 00 00 96 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 DB 42 00 90 00 91 [11:42:11]RAPDU: 90 00 [11:42:11]wFMCommunicate OK [11:42:11]wFMCommunicate request_size=255 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9A 2E A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 40 0E 01 00 35 04 06 00 D3 4F F0 79 [11:42:11]Write to MH i2c: E2 02 01 DC 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9A 2E A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 40 0E 01 00 35 04 06 00 D3 4F F0 79 00 00 9C [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 DC 42 00 90 00 92 [11:42:11]RAPDU: 90 00 [11:42:11]wFMCommunicate OK [11:42:11]wFMCommunicate request_size=7 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 0D 02 02 02 9A 83 [11:42:11]Write to MH i2c: E2 0A 00 DD 42 80 0D 02 02 02 00 9A 83 00 00 BA [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 03 00 DD 42 00 90 00 93 [11:42:11]RAPDU: 90 00 [11:42:11]wFMCommunicate OK [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 0D 03 02 [11:42:11]Write to MH i2c: E2 08 00 DE 42 80 0D 03 02 00 00 00 00 9B [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 0B 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 0B 00 DE 42 00 F7 60 60 C4 53 25 EF 0D 90 00 8B [11:42:11]RAPDU: F7 60 60 C4 53 25 EF 0D 90 00 [11:42:11]wFMCommunicate OK [11:42:11]SAM_PROTO_SignData done [11:42:11]FM_MakeSignedData done [11:42:11]CreateOFDProtocolMessage [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 11 00 00 [11:42:11]Write to MH i2c: E2 08 00 DF 42 80 11 00 00 00 00 00 00 9B [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 17 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 17 00 DF 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F7 [11:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:42:11]wFMCommunicate OK [11:42:11]CreateOFDProtocolMessage done [11:42:11]OFDSenderStorePacket 69184 [11:42:11]StoreOFDPacket docnum=69184 [11:42:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 6C 36 04 01 12 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9A 2E A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 40 0E 01 00 35 04 06 00 D3 4F F0 79 9A 83 F7 60 60 C4 53 25 EF 0D [11:42:11]CheckFolder [11:42:11]dirname=/storage/ofd_packets [11:42:11]CheckFolder done [11:42:11]ProducePacketName [11:42:11]name=ofd_packets/00069184 [11:42:11]NVStorageSaveData ofd_packets/00069184 [11:42:11]File name is /storage/ofd_packets/00069184 [11:42:11]Write 298 bytes [11:42:11]NVStorageSaveData done [11:42:11]OFDSenderStorePacket done [11:42:11]KKMCreateOFDPacket done [11:42:11]NVStorageSaveData kkm_last_timestamp [11:42:11]File name is /storage/kkm_last_timestamp [11:42:11]Write 4 bytes [11:42:11]NVStorageSaveData done [11:42:11]ExternCall_PrintAddStr [11:42:11]wPrintStart [11:42:11]Write to MH i2c: 01 00 00 E0 42 22 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 07 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 07 00 E0 42 00 00 00 00 00 FF 0F 37 [11:42:11]RasterBufferAndPrint [11:42:11]line Счет N : (1)871844 [11:42:11]line ИНН: 02508201610067 [11:42:11]line Контрольно-Кассовый Чек [11:42:11]line ПРОДАЖА [11:42:11]line ТРК (МРК, ГНК) : 2 [11:42:11]line Товар: 2710194210 [11:42:11]line ДТ-К-5 [11:42:11]line 5.320 * 75.20 [11:42:11]line = 400.06 [11:42:11]line НДС 12% НСП 1% [11:42:11]line > о реализуемом товаре [11:42:11]line ОКРУГЛЕНИЕ: -0.06 [11:42:11]line ИТОГО: 400.00 [11:42:11]line Внесено: 400.00 [11:42:11]line СДАЧА: 0.00 [11:42:11]line НСП 1% : 3.54 [11:42:11]line НДС 12% : 42.48 [11:42:11]line Наличными: 400.00 [11:42:11]line Безнал.: 0.00 [11:42:11]line Место: АЗС № 125 "Партнер Нефть" [11:42:11]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:42:11]line СНО: Общий режим [11:42:11]line Чек 67 28.07.2024 11:42 [11:42:11]line Смена: 429 ФФД: 1.0 [11:42:11]line ЗНМ: 0300000049 [11:42:11]line РНМ: 0000000000092638 [11:42:11]line Версия ККМ: 001 [11:42:11]line ФМ: 0000000000874949 [11:42:11]line ФД: 69184 [11:42:11]line ФПД: 232340290378371 [11:42:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114218&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69184&fm=232340290378371&tin=02508201610067®Number=0000000000092638&sum=40000 [11:42:12]OFD Sender: Processing packet 69184 [packets to send 19, broken 18] [11:42:12]ProducePacketName [11:42:12]name=ofd_packets/00069184 [11:42:12]OFD Sender: To server: pG, [11:42:12]CommunicateWithHost lk.salyk.kg:30040 [11:42:12]ConnectInit lk.salyk.kg [11:42:12]written 0, free lines is 4095 [11:42:12]Connected sock=10 [11:42: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 39 34 39 0C 01 00 00 6C 36 04 01 12 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9A 2E A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 40 0E 01 00 35 04 06 00 D3 4F F0 79 9A 83 F7 60 60 C4 53 25 EF 0D [11:42:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 E8 D4 47 00 00 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 40 0E 01 00 F4 03 04 00 0A D5 A5 66 B6 04 01 00 00 30 85 BE 36 41 5C A1 A4 [11:42:12]CommunicateWithHost err = 0 [11:42:12]CheckOFDResponse [11:42:12]1017 (14) - 77093643461234 [11:42:12]1041 (16) - 0000000000874949 [11:42:12]1040 (4) - 69184 [11:42:12]1012 (4) - 28.07.2024 05:20 [11:42:12]1206 (1) - 0 [11:42:12]OFD Sender: Remove packet 69184 [11:42:12]ProducePacketName [11:42:12]name=ofd_packets/00069184 [11:42:12]NVStorageDeleteData [11:42:12]Write to MH i2c: 01 00 00 0B 43 4E [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: 01 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: 01 07 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: 01 07 00 0B 43 00 00 00 00 00 EF 0C 50 [11:42:12]RasterBufferAndPrint [11:42:12]line [11:42:12]line [11:42:12]line [11:42:12]line [11:42:12]line [11:42:12]written 0, free lines is 3320 [11:42:12]MH_Cut [11:42:12]Write to MH i2c: D1 01 00 12 43 01 27 [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: D1 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: D1 01 00 [11:42:12]MH_I2C_Read... [11:42:12]Read from MH i2c: D1 01 00 12 43 00 26 [11:42:12]Write to MH i2c: 01 00 00 13 43 56 [11:42:12]Write i2c OK [11:42:12]MH_I2C_Read... [11:42:12]OFD Sender: No OFD packet to send [11:42:13]*** Cut start [11:42:13]*** Partial cut [11:42:13]*** CUTSNS_PIN = 1 [11:42:13]*** CUTSNS_PIN = 0 [11:42:13]*** Brake cut motor [11:42:13]Read from MH i2c: 01 [11:42:13]MH_I2C_Read... [11:42:13]*** Stop cut motor [11:42:13]*** Cut end [11:42:13]Read from MH i2c: 01 07 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: 01 07 00 13 43 00 00 00 00 00 FF 0F 6B [11:42:13]process_action close_receipt done [11:42:13]requested_data is exist [11:42:13]produce_requested_data [11:42:13]requested_item fm.sn is exist - process it [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 11 00 00 [11:42:13]Write to MH i2c: E2 08 00 14 43 80 11 00 00 00 00 00 00 D1 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 17 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 17 00 14 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 2D [11:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:42:13]wFMCommunicate OK [11:42:13]requested_item fd.num is exist - process it [11:42:13]SAM_PROTO_GetFieldsCounters [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 13 00 00 [11:42:13]Write to MH i2c: E2 08 00 15 43 80 13 00 00 00 00 00 00 D4 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:14]Read from MH i2c: E2 [11:42:14]MH_I2C_Read... [11:42:14]Read from MH i2c: E2 62 00 [11:42:14]MH_I2C_Read... [11:42:14]Read from MH i2c: E2 62 00 15 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 40 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [11:42: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 40 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:14]wFMCommunicate OK [11:42:14]SAM_PROTO_GetFieldsCounters done [11:42:14]requested_item shift.num is exist - process it [11:42:14]requested_item shift.opened is exist - process it [11:42:14]req_shift_opened [11:42:14]FM_GetShiftState [11:42:14]SAM_PROTO_GetShiftState [11:42:14]wFMCommunicate request_size=4 [11:42:14]MH_SAM_APDU [11:42:14]CAPDU: 80 13 01 00 [11:42:14]Write to MH i2c: E2 08 00 16 43 80 13 01 00 00 00 00 00 D6 [11:42:14]Write i2c OK [11:42:14]MH_I2C_Read... [11:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:14]Read from MH i2c: E2 [11:42:14]MH_I2C_Read... [11:42:14]Read from MH i2c: E2 0E 00 [11:42:14]MH_I2C_Read... [11:42:14]Read from MH i2c: E2 0E 00 16 43 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 13 [11:42:14]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:42:14]wFMCommunicate OK [11:42:14]SAM_PROTO_GetShiftState done [11:42:14]FM_GetShiftState done [11:42:14]req_shift_opened done [11:42:14]requested_item shift.open_date is exist - process it [11:42:14]req_shift_open_date [11:42:14]req_shift_open_date done [11:42:14]produce_requested_data done [11:42:14]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69184,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:42:14]process_action_free close_receipt [11:42:14]json_value_free [11:42:14]json_value_free done [11:42:14]process_json_proto returns [11:42:14]Send response to host [11:42:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69184,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:42:14]free response buf [11:42:14]execute_script done [11:42:14]execute_script returns [11:42:14]free content buf [11:42:14]Sock 7.Close socket [11:42:14]Sock 7.Thread stoped [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:36]accept exits with 9 [11:43:36]New connection [11:43:36]New thread 3066641764 created [11:43:36]Thread 3066785124 joined [11:43:36]Waiting for new connection... [11:43:36] Sock 9.Parse request [11:43:36]Sock 9.Check first char [11:43:36]Sock 9.First char is OK [11:43:36]request: POST /json_proto HTTP/1.0 [11:43:36]Method: POST [11:43:36]URL: /json_proto [11:43:36]Method is POST - this is cgi request [11:43:36]url: /json_proto [11:43:36]query_string will be loaded in cgi processing [11:43:36]execute_cgi json_proto POST (null) [11:43:36]execute_cgi path=json_proto method=POST [11:43:36]POST find Content-Length [11:43:36]Host: 172.17.49.132:8080 [11:43:36]Content-Length: 677 [11:43:36]Content-Type: application/json [11:43:36] [11:43:36]POST finish read [11:43:36]Found Content-Length = 677 [11:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.440, "sum" : 640.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:36]execute_script... [11:43:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.440, "sum" : 640.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:36]POST & json_proto [11:43:36]process_json_proto [11:43:36]json parsed OK: [11:43:36]protocol is kg_v1.0 [11:43:36]action value=close_receipt [11:43:36]process_action close_receipt [11:43:36]cmd_close_receipt [11:43:36]MH_GetDate [11:43:36]Write to MH i2c: F0 00 00 17 43 49 [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: F0 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: F0 09 00 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: F0 09 00 17 43 00 F1 2E A6 66 E7 4B C0 64 D3 [11:43:36]GetLastDocTimeStamp 1722166938 [11:43:36]current date 1722167025 [11:43:36]FM_GetShiftState [11:43:36]SAM_PROTO_GetShiftState [11:43:36]wFMCommunicate request_size=4 [11:43:36]MH_SAM_APDU [11:43:36]CAPDU: 80 13 01 00 [11:43:36]Write to MH i2c: E2 08 00 18 43 80 13 01 00 00 00 00 00 D8 [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:36]Read from MH i2c: E2 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 0E 00 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 0E 00 18 43 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 15 [11:43:36]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:43:36]wFMCommunicate OK [11:43:36]SAM_PROTO_GetShiftState done [11:43:36]FM_GetShiftState done [11:43:36]opened in 1722127251 [11:43:36]opened+sec_in_day 1722213651 [11:43:36]quantity*price = 64003 [11:43:36]sum+1 = 64004 [11:43:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.66 НДС 12% : 67.97 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 68 28.07.2024 11:43 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69185 ФПД: 276397519393946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114345&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69185&fm=276397519393946&tin=02508201610067®Number=0000000000092638&sum=64000 [11:43:37]StoreToDocumentArchive [11:43:37]shift 429 fd 69185 [11:43:37]save to /storage/0429/doc_00069185 [11:43:37]save last doc name /storage/0429/doc_00069185 to /storage/kkm_last_doc_name [11:43:37]save OK [11:43:37]Clear old archive folders... [11:43:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:37]tlvbuf is 00A25F80 [11:43:37]SAM_PROTO_ClearQueue [11:43:37]wFMCommunicate request_size=4 [11:43:37]MH_SAM_APDU [11:43:37]CAPDU: 80 09 00 00 [11:43:37]Write to MH i2c: E2 08 00 25 43 80 09 00 00 00 00 00 00 DA [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 25 43 00 90 00 DC [11:43:38]RAPDU: 90 00 [11:43:38]wFMCommunicate OK [11:43:38]SAM_PROTO_ClearQueue done [11:43:38]KKMCreateOFDPacket [11:43:38]OFDProtocolAddRootSTLVToBuf [11:43:38]FM_MakeSignedData [11:43:38]FM_MakeSignedData [11:43:38]SAM_PROTO_SignData [11:43:38]wFMCommunicate request_size=4 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 0D 01 02 [11:43:38]Write to MH i2c: E2 08 00 26 43 80 0D 01 02 00 00 00 00 E2 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]OFD Sender: No OFD packet to send [11:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 26 43 00 90 00 DD [11:43:38]RAPDU: 90 00 [11:43:38]wFMCommunicate OK [11:43:38]wFMCommunicate request_size=255 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 03 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F1 2E A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 41 0E 01 00 35 04 06 00 FB [11:43:38]Write to MH i2c: E2 02 01 27 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 03 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F1 2E A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 41 0E 01 00 35 04 06 00 FB 00 00 CA [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 27 43 00 90 00 DE [11:43:38]RAPDU: 90 00 [11:43:38]wFMCommunicate OK [11:43:38]wFMCommunicate request_size=10 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 0D 02 02 05 61 CF F5 D4 9A [11:43:38]Write to MH i2c: E2 0D 00 28 43 80 0D 02 02 05 00 61 CF F5 D4 9A 00 00 82 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 28 43 00 90 00 DF [11:43:38]RAPDU: 90 00 [11:43:38]wFMCommunicate OK [11:43:38]wFMCommunicate request_size=4 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 0D 03 02 [11:43:38]Write to MH i2c: E2 08 00 29 43 80 0D 03 02 00 00 00 00 E7 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 0B 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 0B 00 29 43 00 03 24 C0 A3 A1 73 2A 51 90 00 01 [11:43:38]RAPDU: 03 24 C0 A3 A1 73 2A 51 90 00 [11:43:38]wFMCommunicate OK [11:43:38]SAM_PROTO_SignData done [11:43:38]FM_MakeSignedData done [11:43:38]CreateOFDProtocolMessage [11:43:38]wFMCommunicate request_size=4 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 11 00 00 [11:43:38]Write to MH i2c: E2 08 00 2A 43 80 11 00 00 00 00 00 00 E7 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 17 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 17 00 2A 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 43 [11:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:43:38]wFMCommunicate OK [11:43:38]CreateOFDProtocolMessage done [11:43:38]OFDSenderStorePacket 69185 [11:43:38]StoreOFDPacket docnum=69185 [11:43:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 A5 8D 07 01 31 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 03 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F1 2E A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 41 0E 01 00 35 04 06 00 FB 61 CF F5 D4 9A 03 24 C0 A3 A1 73 2A 51 [11:43:38]CheckFolder [11:43:38]dirname=/storage/ofd_packets [11:43:38]CheckFolder done [11:43:38]ProducePacketName [11:43:38]name=ofd_packets/00069185 [11:43:38]NVStorageSaveData ofd_packets/00069185 [11:43:38]File name is /storage/ofd_packets/00069185 [11:43:38]Write 301 bytes [11:43:38]NVStorageSaveData done [11:43:38]OFDSenderStorePacket done [11:43:38]KKMCreateOFDPacket done [11:43:38]NVStorageSaveData kkm_last_timestamp [11:43:38]File name is /storage/kkm_last_timestamp [11:43:38]Write 4 bytes [11:43:38]NVStorageSaveData done [11:43:38]ExternCall_PrintAddStr [11:43:38]wPrintStart [11:43:38]Write to MH i2c: 01 00 00 2B 43 6E [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 2B 43 00 00 00 00 00 FF 0F 83 [11:43:38]RasterBufferAndPrint [11:43:38]line Счет N : (1)871845 [11:43:38]line ИНН: 02508201610067 [11:43:38]line Контрольно-Кассовый Чек [11:43:38]line ПРОДАЖА [11:43:38]line ТРК (МРК, ГНК) : 52 [11:43:38]line Товар: 2710124130 [11:43:38]line Аи-92-К-5 [11:43:38]line 9.440 * 67.80 [11:43:38]line = 640.03 [11:43:38]line НДС 12% НСП 1% [11:43:38]line > о реализуемом товаре [11:43:38]line ОКРУГЛЕНИЕ: -0.03 [11:43:38]line ИТОГО: 640.00 [11:43:38]line Внесено: 640.00 [11:43:38]line СДАЧА: 0.00 [11:43:38]line НСП 1% : 5.66 [11:43:38]line НДС 12% : 67.97 [11:43:38]line Наличными: 640.00 [11:43:38]line Безнал.: 0.00 [11:43:38]line Место: АЗС № 125 "Партнер Нефть" [11:43:38]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:43:38]line СНО: Общий режим [11:43:38]line Чек 68 28.07.2024 11:43 [11:43:38]line Смена: 429 ФФД: 1.0 [11:43:38]line ЗНМ: 0300000049 [11:43:38]line РНМ: 0000000000092638 [11:43:38]line Версия ККМ: 001 [11:43:38]line ФМ: 0000000000874949 [11:43:38]line ФД: 69185 [11:43:38]line ФПД: 276397519393946 [11:43:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114345&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69185&fm=276397519393946&tin=02508201610067®Number=0000000000092638&sum=64000 [11:43:38]OFD Sender: Processing packet 69185 [packets to send 19, broken 18] [11:43:38]ProducePacketName [11:43:38]name=ofd_packets/00069185 [11:43:38]OFD Sender: To server: pG, [11:43:38]CommunicateWithHost lk.salyk.kg:30040 [11:43:38]ConnectInit lk.salyk.kg [11:43:38]written 0, free lines is 4095 [11:43:38]Connected sock=10 [11:43: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 39 34 39 0F 01 00 00 A5 8D 07 01 31 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 03 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F1 2E A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 41 0E 01 00 35 04 06 00 FB 61 CF F5 D4 9A 03 24 C0 A3 A1 73 2A 51 [11:43:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 EE 6F 47 00 E2 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 39 34 39 10 04 04 00 41 0E 01 00 F4 03 04 00 61 D5 A5 66 B6 04 01 00 00 7F 07 06 26 31 5F 73 51 [11:43:39]CommunicateWithHost err = 0 [11:43:39]CheckOFDResponse [11:43:39]1017 (14) - 77093643461234 [11:43:39]1041 (16) - 0000000000874949 [11:43:39]1040 (4) - 69185 [11:43:39]1012 (4) - 28.07.2024 05:21 [11:43:39]1206 (1) - 0 [11:43:39]OFD Sender: Remove packet 69185 [11:43:39]ProducePacketName [11:43:39]name=ofd_packets/00069185 [11:43:39]NVStorageDeleteData [11:43:39]Write to MH i2c: 01 00 00 56 43 99 [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 07 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 07 00 56 43 00 00 00 00 00 F0 0C 9C [11:43:39]RasterBufferAndPrint [11:43:39]line [11:43:39]line [11:43:39]line [11:43:39]line [11:43:39]line [11:43:39]written 0, free lines is 3318 [11:43:39]MH_Cut [11:43:39]Write to MH i2c: D1 01 00 5D 43 01 72 [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: D1 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: D1 01 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: D1 01 00 5D 43 00 71 [11:43:39]Write to MH i2c: 01 00 00 5E 43 A1 [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]OFD Sender: No OFD packet to send [11:43:39]*** Cut start [11:43:39]*** Partial cut [11:43:39]*** CUTSNS_PIN = 1 [11:43:39]*** CUTSNS_PIN = 0 [11:43:40]*** Brake cut motor [11:43:40]Read from MH i2c: 01 [11:43:40]MH_I2C_Read... [11:43:40]*** Stop cut motor [11:43:40]*** Cut end [11:43:40]Read from MH i2c: 01 07 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: 01 07 00 5E 43 00 00 00 00 00 FF 0F B6 [11:43:40]process_action close_receipt done [11:43:40]requested_data is exist [11:43:40]produce_requested_data [11:43:40]requested_item fm.sn is exist - process it [11:43:40]wFMCommunicate request_size=4 [11:43:40]MH_SAM_APDU [11:43:40]CAPDU: 80 11 00 00 [11:43:40]Write to MH i2c: E2 08 00 5F 43 80 11 00 00 00 00 00 00 1C [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:40]Read from MH i2c: E2 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 17 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 17 00 5F 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 78 [11:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:43:40]wFMCommunicate OK [11:43:40]requested_item fd.num is exist - process it [11:43:40]SAM_PROTO_GetFieldsCounters [11:43:40]wFMCommunicate request_size=4 [11:43:40]MH_SAM_APDU [11:43:40]CAPDU: 80 13 00 00 [11:43:40]Write to MH i2c: E2 08 00 60 43 80 13 00 00 00 00 00 00 1F [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:40]Read from MH i2c: E2 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 62 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 62 00 60 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 41 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [11:43: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 41 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:40]wFMCommunicate OK [11:43:40]SAM_PROTO_GetFieldsCounters done [11:43:40]requested_item shift.num is exist - process it [11:43:40]requested_item shift.opened is exist - process it [11:43:40]req_shift_opened [11:43:40]FM_GetShiftState [11:43:40]SAM_PROTO_GetShiftState [11:43:40]wFMCommunicate request_size=4 [11:43:40]MH_SAM_APDU [11:43:40]CAPDU: 80 13 01 00 [11:43:40]Write to MH i2c: E2 08 00 61 43 80 13 01 00 00 00 00 00 21 [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:40]Read from MH i2c: E2 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 0E 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 0E 00 61 43 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 5E [11:43:40]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:43:40]wFMCommunicate OK [11:43:40]SAM_PROTO_GetShiftState done [11:43:40]FM_GetShiftState done [11:43:40]req_shift_opened done [11:43:40]requested_item shift.open_date is exist - process it [11:43:40]req_shift_open_date [11:43:40]req_shift_open_date done [11:43:40]produce_requested_data done [11:43:40]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69185,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:43:40]process_action_free close_receipt [11:43:40]json_value_free [11:43:40]json_value_free done [11:43:40]process_json_proto returns [11:43:40]Send response to host [11:43:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69185,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:43:40]free response buf [11:43:40]execute_script done [11:43:40]execute_script returns [11:43:40]free content buf [11:43:40]Sock 9.Close socket [11:43:40]Sock 9.Thread stoped [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:31]accept exits with 7 [11:44:31]New connection [11:44:31]New thread 3066785124 created [11:44:31]Thread 3066641764 joined [11:44:31]Waiting for new connection... [11:44:31] Sock 7.Parse request [11:44:31]Sock 7.Check first char [11:44:31]Sock 7.First char is OK [11:44:31]request: POST /json_proto HTTP/1.0 [11:44:31]Method: POST [11:44:31]URL: /json_proto [11:44:31]Method is POST - this is cgi request [11:44:31]url: /json_proto [11:44:31]query_string will be loaded in cgi processing [11:44:31]execute_cgi json_proto POST (null) [11:44:31]execute_cgi path=json_proto method=POST [11:44:31]POST find Content-Length [11:44:31]Host: 172.17.49.132:8080 [11:44:31]Content-Length: 682 [11:44:31]Content-Type: application/json [11:44:31] [11:44:31]POST finish read [11:44:31]Found Content-Length = 682 [11:44:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:31]execute_script... [11:44: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)871847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:31]POST & json_proto [11:44:31]process_json_proto [11:44:31]json parsed OK: [11:44:31]protocol is kg_v1.0 [11:44:31]action value=close_receipt [11:44:31]process_action close_receipt [11:44:31]cmd_close_receipt [11:44:31]MH_GetDate [11:44:31]Write to MH i2c: F0 00 00 62 43 94 [11:44:31]Write i2c OK [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: F0 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: F0 09 00 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: F0 09 00 62 43 00 28 2F A6 66 E7 4B C0 64 56 [11:44:31]GetLastDocTimeStamp 1722167025 [11:44:31]current date 1722167080 [11:44:31]FM_GetShiftState [11:44:31]SAM_PROTO_GetShiftState [11:44:31]wFMCommunicate request_size=4 [11:44:31]MH_SAM_APDU [11:44:31]CAPDU: 80 13 01 00 [11:44:31]Write to MH i2c: E2 08 00 63 43 80 13 01 00 00 00 00 00 23 [11:44:31]Write i2c OK [11:44:31]MH_I2C_Read... [11:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:31]Read from MH i2c: E2 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 0E 00 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 0E 00 63 43 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 60 [11:44:31]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:44:31]wFMCommunicate OK [11:44:31]SAM_PROTO_GetShiftState done [11:44:31]FM_GetShiftState done [11:44:31]opened in 1722127251 [11:44:31]opened+sec_in_day 1722213651 [11:44:31]quantity*price = 100005 [11:44:31]sum+1 = 100006 [11:44:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 69 28.07.2024 11:44 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69186 ФПД: 17067640724350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114440&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69186&fm=17067640724350&tin=02508201610067®Number=0000000000092638&sum=100000 [11:44:32]StoreToDocumentArchive [11:44:32]shift 429 fd 69186 [11:44:32]save to /storage/0429/doc_00069186 [11:44:32]save last doc name /storage/0429/doc_00069186 to /storage/kkm_last_doc_name [11:44:32]save OK [11:44:32]Clear old archive folders... [11:44:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:32]tlvbuf is 00B15090 [11:44:32]SAM_PROTO_ClearQueue [11:44:32]wFMCommunicate request_size=4 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 09 00 00 [11:44:32]Write to MH i2c: E2 08 00 70 43 80 09 00 00 00 00 00 00 25 [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 03 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 03 00 70 43 00 90 00 27 [11:44:32]RAPDU: 90 00 [11:44:32]wFMCommunicate OK [11:44:32]SAM_PROTO_ClearQueue done [11:44:32]KKMCreateOFDPacket [11:44:32]OFDProtocolAddRootSTLVToBuf [11:44:32]FM_MakeSignedData [11:44:32]FM_MakeSignedData [11:44:32]SAM_PROTO_SignData [11:44:32]wFMCommunicate request_size=4 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 0D 01 02 [11:44:32]Write to MH i2c: E2 08 00 71 43 80 0D 01 02 00 00 00 00 2D [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 03 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 03 00 71 43 00 90 00 28 [11:44:32]RAPDU: 90 00 [11:44:32]wFMCommunicate OK [11:44:32]wFMCommunicate request_size=255 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 28 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 42 0E 01 00 35 04 06 00 0F [11:44:32]Write to MH i2c: E2 02 01 72 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 28 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 42 0E 01 00 35 04 06 00 0F 00 00 FD [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:33]Read from MH i2c: E2 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: E2 03 00 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: E2 03 00 72 43 00 90 00 29 [11:44:33]RAPDU: 90 00 [11:44:33]wFMCommunicate OK [11:44:33]wFMCommunicate request_size=10 [11:44:33]MH_SAM_APDU [11:44:33]CAPDU: 80 0D 02 02 05 85 DE A9 9B 7E [11:44:33]Write to MH i2c: E2 0D 00 73 43 80 0D 02 02 05 00 85 DE A9 9B 7E 00 00 5F [11:44:33]Write i2c OK [11:44:33]MH_I2C_Read... [11:44:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:33]Read from MH i2c: E2 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: E2 03 00 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: E2 03 00 73 43 00 90 00 2A [11:44:33]RAPDU: 90 00 [11:44:33]wFMCommunicate OK [11:44:33]wFMCommunicate request_size=4 [11:44:33]MH_SAM_APDU [11:44:33]CAPDU: 80 0D 03 02 [11:44:33]Write to MH i2c: E2 08 00 74 43 80 0D 03 02 00 00 00 00 32 [11:44:33]Write i2c OK [11:44:33]MH_I2C_Read... [11:44:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:33]Read from MH i2c: E2 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: E2 0B 00 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: E2 0B 00 74 43 00 95 06 E2 B2 6E E3 79 2A 90 00 56 [11:44:33]RAPDU: 95 06 E2 B2 6E E3 79 2A 90 00 [11:44:33]wFMCommunicate OK [11:44:33]SAM_PROTO_SignData done [11:44:33]FM_MakeSignedData done [11:44:33]CreateOFDProtocolMessage [11:44:33]wFMCommunicate request_size=4 [11:44:33]MH_SAM_APDU [11:44:33]CAPDU: 80 11 00 00 [11:44:33]Write to MH i2c: E2 08 00 75 43 80 11 00 00 00 00 00 00 32 [11:44:33]Write i2c OK [11:44:33]MH_I2C_Read... [11:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:33]Read from MH i2c: E2 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: E2 17 00 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: E2 17 00 75 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 8E [11:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:44:33]wFMCommunicate OK [11:44:33]CreateOFDProtocolMessage done [11:44:33]OFDSenderStorePacket 69186 [11:44:33]StoreOFDPacket docnum=69186 [11:44:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 68 40 07 01 41 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 28 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 42 0E 01 00 35 04 06 00 0F 85 DE A9 9B 7E 95 06 E2 B2 6E E3 79 2A [11:44:33]CheckFolder [11:44:33]dirname=/storage/ofd_packets [11:44:33]CheckFolder done [11:44:33]ProducePacketName [11:44:33]name=ofd_packets/00069186 [11:44:33]NVStorageSaveData ofd_packets/00069186 [11:44:33]File name is /storage/ofd_packets/00069186 [11:44:33]Write 301 bytes [11:44:33]NVStorageSaveData done [11:44:33]OFDSenderStorePacket done [11:44:33]KKMCreateOFDPacket done [11:44:33]NVStorageSaveData kkm_last_timestamp [11:44:33]File name is /storage/kkm_last_timestamp [11:44:33]Write 4 bytes [11:44:33]NVStorageSaveData done [11:44:33]ExternCall_PrintAddStr [11:44:33]wPrintStart [11:44:33]Write to MH i2c: 01 00 00 76 43 B9 [11:44:33]Write i2c OK [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: 01 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: 01 07 00 [11:44:33]MH_I2C_Read... [11:44:33]Read from MH i2c: 01 07 00 76 43 00 00 00 00 00 FF 0F CE [11:44:33]RasterBufferAndPrint [11:44:33]line Счет N : (1)871847 [11:44:33]line ИНН: 02508201610067 [11:44:33]line Контрольно-Кассовый Чек [11:44:33]line ПРОДАЖА [11:44:33]line ТРК (МРК, ГНК) : 32 [11:44:33]line Товар: 2710124130 [11:44:33]line Аи-92-К-5 [11:44:33]line 14.750 * 67.80 [11:44:33]line = 1000.05 [11:44:33]line НДС 12% НСП 1% [11:44:33]line > о реализуемом товаре [11:44:33]line ОКРУГЛЕНИЕ: -0.05 [11:44:33]line ИТОГО: 1000.00 [11:44:33]line Внесено: 1000.00 [11:44:33]line СДАЧА: 0.00 [11:44:33]line НСП 1% : 8.85 [11:44:33]line НДС 12% : 106.20 [11:44:33]line Наличными: 1000.00 [11:44:33]line Безнал.: 0.00 [11:44:33]line Место: АЗС № 125 "Партнер Нефть" [11:44:33]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:44:33]line СНО: Общий режим [11:44:33]line Чек 69 28.07.2024 11:44 [11:44:33]line Смена: 429 ФФД: 1.0 [11:44:33]line ЗНМ: 0300000049 [11:44:33]line РНМ: 0000000000092638 [11:44:33]line Версия ККМ: 001 [11:44:33]line ФМ: 0000000000874949 [11:44:33]line ФД: 69186 [11:44:33]line ФПД: 17067640724350 [11:44:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114440&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69186&fm=17067640724350&tin=02508201610067®Number=0000000000092638&sum=100000 [11:44:33]OFD Sender: Processing packet 69186 [packets to send 19, broken 18] [11:44:33]ProducePacketName [11:44:33]name=ofd_packets/00069186 [11:44:33]OFD Sender: To server: pG, [11:44:33]CommunicateWithHost lk.salyk.kg:30040 [11:44:33]ConnectInit lk.salyk.kg [11:44:33]written 0, free lines is 4095 [11:44:33]Connected sock=10 [11: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 39 34 39 0F 01 00 00 68 40 07 01 41 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 28 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 42 0E 01 00 35 04 06 00 0F 85 DE A9 9B 7E 95 06 E2 B2 6E E3 79 2A [11: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 39 34 39 4F 00 00 00 32 91 47 00 9F 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 42 0E 01 00 F4 03 04 00 98 D5 A5 66 B6 04 01 00 00 C9 51 75 D6 19 F0 D9 74 [11:44:33]CommunicateWithHost err = 0 [11:44:33]CheckOFDResponse [11:44:33]1017 (14) - 77093643461234 [11:44:33]1041 (16) - 0000000000874949 [11:44:33]1040 (4) - 69186 [11:44:33]1012 (4) - 28.07.2024 05:22 [11:44:33]1206 (1) - 0 [11:44:33]OFD Sender: Remove packet 69186 [11:44:33]ProducePacketName [11:44:33]name=ofd_packets/00069186 [11:44:33]NVStorageDeleteData [11:44:34]Write to MH i2c: 01 00 00 A1 43 E4 [11:44:34]Write i2c OK [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: 01 [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: 01 07 00 [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: 01 07 00 A1 43 00 00 00 00 00 F1 0C E8 [11:44:34]RasterBufferAndPrint [11:44:34]line [11:44:34]line [11:44:34]line [11:44:34]line [11:44:34]line [11:44:34]written 0, free lines is 3322 [11:44:34]MH_Cut [11:44:34]Write to MH i2c: D1 01 00 A8 43 01 BD [11:44:34]Write i2c OK [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: D1 [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: D1 01 00 [11:44:34]MH_I2C_Read... [11:44:34]Read from MH i2c: D1 01 00 A8 43 00 BC [11:44:34]Write to MH i2c: 01 00 00 A9 43 EC [11:44:34]Write i2c OK [11:44:34]MH_I2C_Read... [11:44:34]OFD Sender: No OFD packet to send [11:44:34]*** Cut start [11:44:34]*** Partial cut [11:44:34]*** CUTSNS_PIN = 1 [11:44:34]*** CUTSNS_PIN = 0 [11:44:35]*** Brake cut motor [11:44:35]Read from MH i2c: 01 [11:44:35]MH_I2C_Read... [11:44:35]*** Stop cut motor [11:44:35]*** Cut end [11:44:35]Read from MH i2c: 01 07 00 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: 01 07 00 A9 43 00 00 00 00 00 FF 0F 01 [11:44:35]process_action close_receipt done [11:44:35]requested_data is exist [11:44:35]produce_requested_data [11:44:35]requested_item fm.sn is exist - process it [11:44:35]wFMCommunicate request_size=4 [11:44:35]MH_SAM_APDU [11:44:35]CAPDU: 80 11 00 00 [11:44:35]Write to MH i2c: E2 08 00 AA 43 80 11 00 00 00 00 00 00 67 [11:44:35]Write i2c OK [11:44:35]MH_I2C_Read... [11:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:35]Read from MH i2c: E2 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 17 00 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 17 00 AA 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C3 [11:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:44:35]wFMCommunicate OK [11:44:35]requested_item fd.num is exist - process it [11:44:35]SAM_PROTO_GetFieldsCounters [11:44:35]wFMCommunicate request_size=4 [11:44:35]MH_SAM_APDU [11:44:35]CAPDU: 80 13 00 00 [11:44:35]Write to MH i2c: E2 08 00 AB 43 80 13 00 00 00 00 00 00 6A [11:44:35]Write i2c OK [11:44:35]MH_I2C_Read... [11:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:35]Read from MH i2c: E2 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 62 00 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 62 00 AB 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 42 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [11: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 42 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:35]wFMCommunicate OK [11:44:35]SAM_PROTO_GetFieldsCounters done [11:44:35]requested_item shift.num is exist - process it [11:44:35]requested_item shift.opened is exist - process it [11:44:35]req_shift_opened [11:44:35]FM_GetShiftState [11:44:35]SAM_PROTO_GetShiftState [11:44:35]wFMCommunicate request_size=4 [11:44:35]MH_SAM_APDU [11:44:35]CAPDU: 80 13 01 00 [11:44:35]Write to MH i2c: E2 08 00 AC 43 80 13 01 00 00 00 00 00 6C [11:44:35]Write i2c OK [11:44:35]MH_I2C_Read... [11:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:35]Read from MH i2c: E2 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 0E 00 [11:44:35]MH_I2C_Read... [11:44:35]Read from MH i2c: E2 0E 00 AC 43 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A9 [11:44:35]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:44:35]wFMCommunicate OK [11:44:35]SAM_PROTO_GetShiftState done [11:44:35]FM_GetShiftState done [11:44:35]req_shift_opened done [11:44:35]requested_item shift.open_date is exist - process it [11:44:35]req_shift_open_date [11:44:35]req_shift_open_date done [11:44:35]produce_requested_data done [11:44:35]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69186,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:44:35]process_action_free close_receipt [11:44:35]json_value_free [11:44:35]json_value_free done [11:44:35]process_json_proto returns [11:44:35]Send response to host [11:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69186,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:44:35]free response buf [11:44:35]execute_script done [11:44:35]execute_script returns [11:44:35]free content buf [11:44:35]Sock 7.Close socket [11:44:35]Sock 7.Thread stoped [11:44:36]accept exits with 9 [11:44:36]New connection [11:44:36]New thread 3066641764 created [11:44:36]Thread 3066785124 joined [11:44:36]Waiting for new connection... [11:44:36] Sock 9.Parse request [11:44:36]Sock 9.Check first char [11:44:36]Sock 9.First char is OK [11:44:36]request: POST /json_proto HTTP/1.0 [11:44:36]Method: POST [11:44:36]URL: /json_proto [11:44:36]Method is POST - this is cgi request [11:44:36]url: /json_proto [11:44:36]query_string will be loaded in cgi processing [11:44:36]execute_cgi json_proto POST (null) [11:44:36]execute_cgi path=json_proto method=POST [11:44:36]POST find Content-Length [11:44:36]Host: 172.17.49.132:8080 [11:44:36]Content-Length: 677 [11:44:36]Content-Type: application/json [11:44:36] [11:44:36]POST finish read [11:44:36]Found Content-Length = 677 [11:44:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:36]execute_script... [11:44:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:36]POST & json_proto [11:44:36]process_json_proto [11:44:36]json parsed OK: [11:44:36]protocol is kg_v1.0 [11:44:36]action value=close_receipt [11:44:36]process_action close_receipt [11:44:36]cmd_close_receipt [11:44:36]MH_GetDate [11:44:36]Write to MH i2c: F0 00 00 AD 43 DF [11:44:36]Write i2c OK [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: F0 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: F0 09 00 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: F0 09 00 AD 43 00 2C 2F A6 66 E7 4B C0 64 A5 [11:44:36]GetLastDocTimeStamp 1722167080 [11:44:36]current date 1722167084 [11:44:36]FM_GetShiftState [11:44:36]SAM_PROTO_GetShiftState [11:44:36]wFMCommunicate request_size=4 [11:44:36]MH_SAM_APDU [11:44:36]CAPDU: 80 13 01 00 [11:44:36]Write to MH i2c: E2 08 00 AE 43 80 13 01 00 00 00 00 00 6E [11:44:36]Write i2c OK [11:44:36]MH_I2C_Read... [11:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:36]Read from MH i2c: E2 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 0E 00 [11:44:36]MH_I2C_Read... [11:44:36]Read from MH i2c: E2 0E 00 AE 43 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 AB [11:44:36]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:44:36]wFMCommunicate OK [11:44:36]SAM_PROTO_GetShiftState done [11:44:36]FM_GetShiftState done [11:44:36]opened in 1722127251 [11:44:36]opened+sec_in_day 1722213651 [11:44:36]quantity*price = 60003 [11:44:36]sum+1 = 60004 [11:44:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 70 28.07.2024 11:44 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69187 ФПД: 250317913153184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114444&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69187&fm=250317913153184&tin=02508201610067®Number=0000000000092638&sum=60000 [11:44:37]StoreToDocumentArchive [11:44:37]shift 429 fd 69187 [11:44:37]save to /storage/0429/doc_00069187 [11:44:37]save last doc name /storage/0429/doc_00069187 to /storage/kkm_last_doc_name [11:44:37]save OK [11:44:37]Clear old archive folders... [11:44:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:37]tlvbuf is 00AB3DA0 [11:44:37]SAM_PROTO_ClearQueue [11:44:37]wFMCommunicate request_size=4 [11:44:37]MH_SAM_APDU [11:44:37]CAPDU: 80 09 00 00 [11:44:37]Write to MH i2c: E2 08 00 BB 43 80 09 00 00 00 00 00 00 70 [11:44:37]Write i2c OK [11:44:37]MH_I2C_Read... [11:44:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:37]Read from MH i2c: E2 [11:44:37]MH_I2C_Read... [11:44:37]Read from MH i2c: E2 03 00 [11:44:37]MH_I2C_Read... [11:44:37]Read from MH i2c: E2 03 00 BB 43 00 90 00 72 [11:44:37]RAPDU: 90 00 [11:44:37]wFMCommunicate OK [11:44:37]SAM_PROTO_ClearQueue done [11:44:37]KKMCreateOFDPacket [11:44:37]OFDProtocolAddRootSTLVToBuf [11:44:37]FM_MakeSignedData [11:44:37]FM_MakeSignedData [11:44:37]SAM_PROTO_SignData [11:44:37]wFMCommunicate request_size=4 [11:44:37]MH_SAM_APDU [11:44:37]CAPDU: 80 0D 01 02 [11:44:37]Write to MH i2c: E2 08 00 BC 43 80 0D 01 02 00 00 00 00 78 [11:44:37]Write i2c OK [11:44:37]MH_I2C_Read... [11:44:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:37]Read from MH i2c: E2 [11:44:37]MH_I2C_Read... [11:44:37]Read from MH i2c: E2 03 00 [11:44:37]MH_I2C_Read... [11:44:37]Read from MH i2c: E2 03 00 BC 43 00 90 00 73 [11:44:37]RAPDU: 90 00 [11:44:37]wFMCommunicate OK [11:44:37]wFMCommunicate request_size=255 [11:44:37]MH_SAM_APDU [11:44:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2C 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 43 0E 01 00 35 04 06 00 E3 [11:44:37]Write to MH i2c: E2 02 01 BD 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2C 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 43 0E 01 00 35 04 06 00 E3 00 00 5A [11:44:37]Write i2c OK [11:44:37]MH_I2C_Read... [11:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:37]Read from MH i2c: E2 [11:44:37]MH_I2C_Read... [11:44:37]Read from MH i2c: E2 03 00 [11:44:37]MH_I2C_Read... [11:44:37]Read from MH i2c: E2 03 00 BD 43 00 90 00 74 [11:44:37]RAPDU: 90 00 [11:44:37]wFMCommunicate OK [11:44:37]wFMCommunicate request_size=10 [11:44:37]MH_SAM_APDU [11:44:37]CAPDU: 80 0D 02 02 05 A9 AE 4B 5E A0 [11:44:37]Write to MH i2c: E2 0D 00 BE 43 80 0D 02 02 05 00 A9 AE 4B 5E A0 00 00 25 [11:44:37]Write i2c OK [11:44:37]MH_I2C_Read... [11:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:38]Read from MH i2c: E2 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: E2 03 00 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: E2 03 00 BE 43 00 90 00 75 [11:44:38]RAPDU: 90 00 [11:44:38]wFMCommunicate OK [11:44:38]wFMCommunicate request_size=4 [11:44:38]MH_SAM_APDU [11:44:38]CAPDU: 80 0D 03 02 [11:44:38]Write to MH i2c: E2 08 00 BF 43 80 0D 03 02 00 00 00 00 7D [11:44:38]Write i2c OK [11:44:38]MH_I2C_Read... [11:44:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:38]Read from MH i2c: E2 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: E2 0B 00 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: E2 0B 00 BF 43 00 90 46 E0 02 8A 4D 17 C6 90 00 EA [11:44:38]RAPDU: 90 46 E0 02 8A 4D 17 C6 90 00 [11:44:38]wFMCommunicate OK [11:44:38]SAM_PROTO_SignData done [11:44:38]FM_MakeSignedData done [11:44:38]CreateOFDProtocolMessage [11:44:38]wFMCommunicate request_size=4 [11:44:38]MH_SAM_APDU [11:44:38]CAPDU: 80 11 00 00 [11:44:38]Write to MH i2c: E2 08 00 C0 43 80 11 00 00 00 00 00 00 7D [11:44:38]Write i2c OK [11:44:38]MH_I2C_Read... [11:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:38]Read from MH i2c: E2 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: E2 17 00 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: E2 17 00 C0 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D9 [11:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:44:38]wFMCommunicate OK [11:44:38]CreateOFDProtocolMessage done [11:44:38]OFDSenderStorePacket 69187 [11:44:38]StoreOFDPacket docnum=69187 [11:44:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 E1 D7 07 01 00 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2C 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 43 0E 01 00 35 04 06 00 E3 A9 AE 4B 5E A0 90 46 E0 02 8A 4D 17 C6 [11:44:38]CheckFolder [11:44:38]dirname=/storage/ofd_packets [11:44:38]CheckFolder done [11:44:38]ProducePacketName [11:44:38]name=ofd_packets/00069187 [11:44:38]NVStorageSaveData ofd_packets/00069187 [11:44:38]File name is /storage/ofd_packets/00069187 [11:44:38]Write 301 bytes [11:44:38]NVStorageSaveData done [11:44:38]OFDSenderStorePacket done [11:44:38]KKMCreateOFDPacket done [11:44:38]NVStorageSaveData kkm_last_timestamp [11:44:38]File name is /storage/kkm_last_timestamp [11:44:38]Write 4 bytes [11:44:38]NVStorageSaveData done [11:44:38]ExternCall_PrintAddStr [11:44:38]wPrintStart [11:44:38]Write to MH i2c: 01 00 00 C1 43 04 [11:44:38]Write i2c OK [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: 01 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: 01 07 00 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: 01 07 00 C1 43 00 00 00 00 00 FF 0F 19 [11:44:38]RasterBufferAndPrint [11:44:38]line Счет N : (1)871846 [11:44:38]line ИНН: 02508201610067 [11:44:38]line Контрольно-Кассовый Чек [11:44:38]line ПРОДАЖА [11:44:38]line ТРК (МРК, ГНК) : 62 [11:44:38]line Товар: 2710124130 [11:44:38]line Аи-92-К-5 [11:44:38]line 8.850 * 67.80 [11:44:38]line = 600.03 [11:44:38]line НДС 12% НСП 1% [11:44:38]line > о реализуемом товаре [11:44:38]line ОКРУГЛЕНИЕ: -0.03 [11:44:38]line ИТОГО: 600.00 [11:44:38]line Внесено: 600.00 [11:44:38]line СДАЧА: 0.00 [11:44:38]line НСП 1% : 5.31 [11:44:38]line НДС 12% : 63.72 [11:44:38]line Наличными: 600.00 [11:44:38]line Безнал.: 0.00 [11:44:38]line Место: АЗС № 125 "Партнер Нефть" [11:44:38]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:44:38]line СНО: Общий режим [11:44:38]line Чек 70 28.07.2024 11:44 [11:44:38]line Смена: 429 ФФД: 1.0 [11:44:38]line ЗНМ: 0300000049 [11:44:38]line РНМ: 0000000000092638 [11:44:38]line Версия ККМ: 001 [11:44:38]line ФМ: 0000000000874949 [11:44:38]line ФД: 69187 [11:44:38]line ФПД: 250317913153184 [11:44:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114444&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69187&fm=250317913153184&tin=02508201610067®Number=0000000000092638&sum=60000 [11:44:38]OFD Sender: Processing packet 69187 [packets to send 19, broken 18] [11:44:38]ProducePacketName [11:44:38]name=ofd_packets/00069187 [11:44:38]OFD Sender: To server: pG, [11:44:38]CommunicateWithHost lk.salyk.kg:30040 [11:44:38]ConnectInit lk.salyk.kg [11:44:38]written 0, free lines is 4095 [11:44:38]Connected sock=10 [11:44: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 39 34 39 0F 01 00 00 E1 D7 07 01 00 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2C 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 43 0E 01 00 35 04 06 00 E3 A9 AE 4B 5E A0 90 46 E0 02 8A 4D 17 C6 [11:44:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 F3 93 47 00 45 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 39 34 39 10 04 04 00 43 0E 01 00 F4 03 04 00 9C D5 A5 66 B6 04 01 00 00 35 9E E0 DD ED BB E2 24 [11:44:38]CommunicateWithHost err = 0 [11:44:38]CheckOFDResponse [11:44:38]1017 (14) - 77093643461234 [11:44:38]1041 (16) - 0000000000874949 [11:44:38]1040 (4) - 69187 [11:44:38]1012 (4) - 28.07.2024 05:22 [11:44:38]1206 (1) - 0 [11:44:38]OFD Sender: Remove packet 69187 [11:44:38]ProducePacketName [11:44:38]name=ofd_packets/00069187 [11:44:38]NVStorageDeleteData [11:44:38]Write to MH i2c: 01 00 00 EC 43 2F [11:44:38]Write i2c OK [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: 01 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: 01 07 00 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: 01 07 00 EC 43 00 00 00 00 00 F8 0C 3A [11:44:38]RasterBufferAndPrint [11:44:38]line [11:44:38]line [11:44:38]line [11:44:38]line [11:44:38]line [11:44:38]written 0, free lines is 3335 [11:44:38]MH_Cut [11:44:38]Write to MH i2c: D1 01 00 F3 43 01 08 [11:44:38]Write i2c OK [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: D1 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: D1 01 00 [11:44:38]MH_I2C_Read... [11:44:38]Read from MH i2c: D1 01 00 F3 43 00 07 [11:44:38]Write to MH i2c: 01 00 00 F4 43 37 [11:44:38]Write i2c OK [11:44:38]MH_I2C_Read... [11:44:39]OFD Sender: No OFD packet to send [11:44:39]*** Cut start [11:44:39]*** Partial cut [11:44:39]*** CUTSNS_PIN = 1 [11:44:39]*** CUTSNS_PIN = 0 [11:44:39]*** Brake cut motor [11:44:39]Read from MH i2c: 01 [11:44:39]MH_I2C_Read... [11:44:39]*** Stop cut motor [11:44:39]*** Cut end [11:44:39]Read from MH i2c: 01 07 00 [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: 01 07 00 F4 43 00 00 00 00 00 FF 0F 4C [11:44:39]process_action close_receipt done [11:44:39]requested_data is exist [11:44:39]produce_requested_data [11:44:39]requested_item fm.sn is exist - process it [11:44:39]wFMCommunicate request_size=4 [11:44:39]MH_SAM_APDU [11:44:39]CAPDU: 80 11 00 00 [11:44:39]Write to MH i2c: E2 08 00 F5 43 80 11 00 00 00 00 00 00 B2 [11:44:39]Write i2c OK [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: E2 [11:44:39]MH_I2C_Read... [11:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:39]Read from MH i2c: E2 17 00 [11:44:39]MH_I2C_Read... [11:44:39]Read from MH i2c: E2 17 00 F5 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 0E [11:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:44:39]wFMCommunicate OK [11:44:39]requested_item fd.num is exist - process it [11:44:39]SAM_PROTO_GetFieldsCounters [11:44:39]wFMCommunicate request_size=4 [11:44:39]MH_SAM_APDU [11:44:39]CAPDU: 80 13 00 00 [11:44:39]Write to MH i2c: E2 08 00 F6 43 80 13 00 00 00 00 00 00 B5 [11:44:39]Write i2c OK [11:44:39]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 62 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 62 00 F6 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 43 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [11:44: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 43 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:40]wFMCommunicate OK [11:44:40]SAM_PROTO_GetFieldsCounters done [11:44:40]requested_item shift.num is exist - process it [11:44:40]requested_item shift.opened is exist - process it [11:44:40]req_shift_opened [11:44:40]FM_GetShiftState [11:44:40]SAM_PROTO_GetShiftState [11:44:40]wFMCommunicate request_size=4 [11:44:40]MH_SAM_APDU [11:44:40]CAPDU: 80 13 01 00 [11:44:40]Write to MH i2c: E2 08 00 F7 43 80 13 01 00 00 00 00 00 B7 [11:44:40]Write i2c OK [11:44:40]MH_I2C_Read... [11:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:40]Read from MH i2c: E2 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 0E 00 [11:44:40]MH_I2C_Read... [11:44:40]Read from MH i2c: E2 0E 00 F7 43 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F4 [11:44:40]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:44:40]wFMCommunicate OK [11:44:40]SAM_PROTO_GetShiftState done [11:44:40]FM_GetShiftState done [11:44:40]req_shift_opened done [11:44:40]requested_item shift.open_date is exist - process it [11:44:40]req_shift_open_date [11:44:40]req_shift_open_date done [11:44:40]produce_requested_data done [11:44:40]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69187,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:44:40]process_action_free close_receipt [11:44:40]json_value_free [11:44:40]json_value_free done [11:44:40]process_json_proto returns [11:44:40]Send response to host [11:44:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69187,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:44:40]free response buf [11:44:40]execute_script done [11:44:40]execute_script returns [11:44:40]free content buf [11:44:40]Sock 9.Close socket [11:44:40]Sock 9.Thread stoped [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:29]accept exits with 7 [11:45:29]New connection [11:45:29]New thread 3066785124 created [11:45:29]Thread 3066641764 joined [11:45:29]Waiting for new connection... [11:45:29] Sock 7.Parse request [11:45:29]Sock 7.Check first char [11:45:29]Sock 7.First char is OK [11:45:29]request: POST /json_proto HTTP/1.0 [11:45:29]Method: POST [11:45:29]URL: /json_proto [11:45:29]Method is POST - this is cgi request [11:45:29]url: /json_proto [11:45:29]query_string will be loaded in cgi processing [11:45:29]execute_cgi json_proto POST (null) [11:45:29]execute_cgi path=json_proto method=POST [11:45:29]POST find Content-Length [11:45:29]Host: 172.17.49.132:8080 [11:45:29]Content-Length: 614 [11:45:29]Content-Type: application/json [11:45:29] [11:45:29]POST finish read [11:45:29]Found Content-Length = 614 [11:45:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136565", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:29]execute_script... [11:45:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136565", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:29]POST & json_proto [11:45:29]process_json_proto [11:45:29]json parsed OK: [11:45:29]protocol is kg_v1.0 [11:45:29]action value=close_receipt [11:45:29]process_action close_receipt [11:45:29]cmd_close_receipt [11:45:29]MH_GetDate [11:45:29]Write to MH i2c: F0 00 00 F8 43 2A [11:45:29]Write i2c OK [11:45:29]MH_I2C_Read... [11:45:29]Read from MH i2c: F0 [11:45:29]MH_I2C_Read... [11:45:29]Read from MH i2c: F0 09 00 [11:45:29]MH_I2C_Read... [11:45:29]Read from MH i2c: F0 09 00 F8 43 00 62 2F A6 66 E7 4B C0 64 26 [11:45:29]GetLastDocTimeStamp 1722167084 [11:45:29]current date 1722167138 [11:45:29]FM_GetShiftState [11:45:29]SAM_PROTO_GetShiftState [11:45:29]wFMCommunicate request_size=4 [11:45:29]MH_SAM_APDU [11:45:29]CAPDU: 80 13 01 00 [11:45:29]Write to MH i2c: E2 08 00 F9 43 80 13 01 00 00 00 00 00 B9 [11:45:29]Write i2c OK [11:45:29]MH_I2C_Read... [11:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:29]Read from MH i2c: E2 [11:45:29]MH_I2C_Read... [11:45:29]Read from MH i2c: E2 0E 00 [11:45:29]MH_I2C_Read... [11:45:29]Read from MH i2c: E2 0E 00 F9 43 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F6 [11:45:29]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:45:29]wFMCommunicate OK [11:45:29]SAM_PROTO_GetShiftState done [11:45:29]FM_GetShiftState done [11:45:29]opened in 1722127251 [11:45:29]opened+sec_in_day 1722213651 [11:45:29]quantity*price = 11100 [11:45:29]sum+1 = 11101 [11:45:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 71 28.07.2024 11:45 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69188 ФПД: 183071827310070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114538&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69188&fm=183071827310070&tin=02508201610067®Number=0000000000092638&sum=11100 0 [11:45:30]StoreToDocumentArchive [11:45:30]shift 429 fd 69188 [11:45:30]save to /storage/0429/doc_00069188 [11:45:30]save last doc name /storage/0429/doc_00069188 to /storage/kkm_last_doc_name [11:45:30]save OK [11:45:30]Clear old archive folders... [11:45:30]ProcessDocumentItem done err = 0, tmpTLVsize=266 [11:45:30]tlvbuf is 00A83000 [11:45:30]SAM_PROTO_ClearQueue [11:45:30]wFMCommunicate request_size=4 [11:45:30]MH_SAM_APDU [11:45:30]CAPDU: 80 09 00 00 [11:45:30]Write to MH i2c: E2 08 00 06 44 80 09 00 00 00 00 00 00 BC [11:45:30]Write i2c OK [11:45:30]MH_I2C_Read... [11:45:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:30]Read from MH i2c: E2 [11:45:30]MH_I2C_Read... [11:45:30]Read from MH i2c: E2 03 00 [11:45:30]MH_I2C_Read... [11:45:30]Read from MH i2c: E2 03 00 06 44 00 90 00 BE [11:45:30]RAPDU: 90 00 [11:45:30]wFMCommunicate OK [11:45:30]SAM_PROTO_ClearQueue done [11:45:30]KKMCreateOFDPacket [11:45:30]OFDProtocolAddRootSTLVToBuf [11:45:30]FM_MakeSignedData [11:45:30]FM_MakeSignedData [11:45:30]SAM_PROTO_SignData [11:45:30]wFMCommunicate request_size=4 [11:45:30]MH_SAM_APDU [11:45:30]CAPDU: 80 0D 01 02 [11:45:30]Write to MH i2c: E2 08 00 07 44 80 0D 01 02 00 00 00 00 C4 [11:45:30]Write i2c OK [11:45:30]MH_I2C_Read... [11:45:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:30]Read from MH i2c: E2 [11:45:30]MH_I2C_Read... [11:45:30]Read from MH i2c: E2 03 00 [11:45:30]MH_I2C_Read... [11:45:30]Read from MH i2c: E2 03 00 07 44 00 90 00 BF [11:45:30]RAPDU: 90 00 [11:45:30]wFMCommunicate OK [11:45:30]wFMCommunicate request_size=255 [11:45:30]MH_SAM_APDU [11:45:30]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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 62 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 [11:45:30]Write to MH i2c: E2 02 01 08 44 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 62 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 00 00 74 [11:45:30]Write i2c OK [11:45:30]MH_I2C_Read... [11:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:31]Read from MH i2c: E2 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 03 00 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 03 00 08 44 00 90 00 C0 [11:45:31]RAPDU: 90 00 [11:45:31]wFMCommunicate OK [11:45:31]wFMCommunicate request_size=25 [11:45:31]MH_SAM_APDU [11:45:31]CAPDU: 80 0D 02 02 14 34 39 10 04 04 00 44 0E 01 00 35 04 06 00 A6 80 BB 3C 35 F6 [11:45:31]Write to MH i2c: E2 1C 00 09 44 80 0D 02 02 14 00 34 39 10 04 04 00 44 0E 01 00 35 04 06 00 A6 80 BB 3C 35 F6 00 00 4E [11:45:31]Write i2c OK [11:45:31]MH_I2C_Read... [11:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:31]Read from MH i2c: E2 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 03 00 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 03 00 09 44 00 90 00 C1 [11:45:31]RAPDU: 90 00 [11:45:31]wFMCommunicate OK [11:45:31]wFMCommunicate request_size=4 [11:45:31]MH_SAM_APDU [11:45:31]CAPDU: 80 0D 03 02 [11:45:31]Write to MH i2c: E2 08 00 0A 44 80 0D 03 02 00 00 00 00 C9 [11:45:31]Write i2c OK [11:45:31]MH_I2C_Read... [11:45:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:31]Read from MH i2c: E2 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 0B 00 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 0B 00 0A 44 00 6C 1F 73 2B 8F 94 14 84 90 00 AE [11:45:31]RAPDU: 6C 1F 73 2B 8F 94 14 84 90 00 [11:45:31]wFMCommunicate OK [11:45:31]SAM_PROTO_SignData done [11:45:31]FM_MakeSignedData done [11:45:31]CreateOFDProtocolMessage [11:45:31]wFMCommunicate request_size=4 [11:45:31]MH_SAM_APDU [11:45:31]CAPDU: 80 11 00 00 [11:45:31]Write to MH i2c: E2 08 00 0B 44 80 11 00 00 00 00 00 00 C9 [11:45:31]Write i2c OK [11:45:31]MH_I2C_Read... [11:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:31]Read from MH i2c: E2 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 17 00 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 17 00 0B 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 25 [11:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:45:31]wFMCommunicate OK [11:45:31]CreateOFDProtocolMessage done [11:45:31]OFDSenderStorePacket 69188 [11:45:31]StoreOFDPacket docnum=69188 [11:45:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 1E 01 00 00 B2 42 16 01 1A BD 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 62 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 44 0E 01 00 35 04 06 00 A6 80 BB 3C 35 F6 6C 1F 73 2B 8F 94 14 84 [11:45:31]CheckFolder [11:45:31]dirname=/storage/ofd_packets [11:45:31]CheckFolder done [11:45:31]ProducePacketName [11:45:31]name=ofd_packets/00069188 [11:45:31]NVStorageSaveData ofd_packets/00069188 [11:45:31]File name is /storage/ofd_packets/00069188 [11:45:31]Write 316 bytes [11:45:31]NVStorageSaveData done [11:45:31]OFDSenderStorePacket done [11:45:31]KKMCreateOFDPacket done [11:45:31]NVStorageSaveData kkm_last_timestamp [11:45:31]File name is /storage/kkm_last_timestamp [11:45:31]Write 4 bytes [11:45:31]NVStorageSaveData done [11:45:31]ExternCall_PrintAddStr [11:45:31]wPrintStart [11:45:31]Write to MH i2c: 01 00 00 0C 44 50 [11:45:31]Write i2c OK [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: 01 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: 01 07 00 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: 01 07 00 0C 44 00 00 00 00 00 FF 0F 65 [11:45:31]RasterBufferAndPrint [11:45:31]line Счет N : (3)136565 [11:45:31]line ИНН: 02508201610067 [11:45:31]line Контрольно-Кассовый Чек [11:45:31]line ПРОДАЖА [11:45:31]line Товар: 4870001570071 [11:45:31]line Напиток Pepsi 1л [11:45:31]line 1.000 * 111.00 [11:45:31]line = 111.00 [11:45:31]line НДС 12% НСП 1% [11:45:31]line > о реализуемом товаре [11:45:31]line ИТОГО: 111.00 [11:45:31]line НСП 1% : 0.98 [11:45:31]line НДС 12% : 11.79 [11:45:31]line Наличными: 111.00 [11:45:31]line Безнал.: 0.00 [11:45:31]line Место: АЗС № 125 "Партнер Нефть" [11:45:31]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:45:31]line СНО: Общий режим [11:45:31]line Чек 71 28.07.2024 11:45 [11:45:31]line Смена: 429 ФФД: 1.0 [11:45:31]line ЗНМ: 0300000049 [11:45:31]line РНМ: 0000000000092638 [11:45:31]line Версия ККМ: 001 [11:45:31]line ФМ: 0000000000874949 [11:45:31]line ФД: 69188 [11:45:31]line ФПД: 183071827310070 [11:45:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114538&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69188&fm=183071827310070&tin=02508201610067®Number=0000000000092638&sum=11100 [11:45:31]OFD Sender: Processing packet 69188 [packets to send 19, broken 18] [11:45:31]ProducePacketName [11:45:31]name=ofd_packets/00069188 [11:45:31]OFD Sender: To server: pG, [11:45:31]CommunicateWithHost lk.salyk.kg:30040 [11:45:31]ConnectInit lk.salyk.kg [11:45:31]line 0 [11:45:31]written 0, free lines is 4095 [11:45:31]Connected sock=10 [11:45:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 1E 01 00 00 B2 42 16 01 1A BD 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 62 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 44 0E 01 00 35 04 06 00 A6 80 BB 3C 35 F6 6C 1F 73 2B 8F 94 14 84 [11:45:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 9C C3 47 00 1C F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 44 0E 01 00 F4 03 04 00 D2 D5 A5 66 B6 04 01 00 00 DF 32 CA 64 3A 93 FA 33 [11:45:31]CommunicateWithHost err = 0 [11:45:31]CheckOFDResponse [11:45:31]1017 (14) - 77093643461234 [11:45:31]1041 (16) - 0000000000874949 [11:45:31]1040 (4) - 69188 [11:45:31]1012 (4) - 28.07.2024 05:23 [11:45:31]1206 (1) - 0 [11:45:31]OFD Sender: Remove packet 69188 [11:45:31]ProducePacketName [11:45:31]name=ofd_packets/00069188 [11:45:31]NVStorageDeleteData [11:45:31]Write to MH i2c: 01 00 00 34 44 78 [11:45:31]Write i2c OK [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: 01 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: 01 07 00 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: 01 07 00 34 44 00 00 00 00 00 0C 0D 98 [11:45:31]RasterBufferAndPrint [11:45:31]line [11:45:31]line [11:45:31]line [11:45:31]line [11:45:31]line [11:45:31]written 0, free lines is 3349 [11:45:32]MH_Cut [11:45:32]Write to MH i2c: D1 01 00 3B 44 01 51 [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: D1 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: D1 01 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: D1 01 00 3B 44 00 50 [11:45:32]Write to MH i2c: 01 00 00 3C 44 80 [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]OFD Sender: No OFD packet to send [11:45:32]*** Cut start [11:45:32]*** Partial cut [11:45:32]*** CUTSNS_PIN = 1 [11:45:32]*** CUTSNS_PIN = 0 [11:45:32]*** Brake cut motor [11:45:33]Read from MH i2c: 01 [11:45:33]MH_I2C_Read... [11:45:33]*** Stop cut motor [11:45:33]*** Cut end [11:45:33]Read from MH i2c: 01 07 00 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: 01 07 00 3C 44 00 00 00 00 00 FF 0F 95 [11:45:33]process_action close_receipt done [11:45:33]requested_data is exist [11:45:33]produce_requested_data [11:45:33]requested_item fm.sn is exist - process it [11:45:33]wFMCommunicate request_size=4 [11:45:33]MH_SAM_APDU [11:45:33]CAPDU: 80 11 00 00 [11:45:33]Write to MH i2c: E2 08 00 3D 44 80 11 00 00 00 00 00 00 FB [11:45:33]Write i2c OK [11:45:33]MH_I2C_Read... [11:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:33]Read from MH i2c: E2 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 17 00 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 17 00 3D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 57 [11:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:45:33]wFMCommunicate OK [11:45:33]requested_item fd.num is exist - process it [11:45:33]SAM_PROTO_GetFieldsCounters [11:45:33]wFMCommunicate request_size=4 [11:45:33]MH_SAM_APDU [11:45:33]CAPDU: 80 13 00 00 [11:45:33]Write to MH i2c: E2 08 00 3E 44 80 13 00 00 00 00 00 00 FE [11:45:33]Write i2c OK [11:45:33]MH_I2C_Read... [11:45:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:33]Read from MH i2c: E2 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 62 00 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 62 00 3E 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 44 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [11:45:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 44 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:33]wFMCommunicate OK [11:45:33]SAM_PROTO_GetFieldsCounters done [11:45:33]requested_item shift.num is exist - process it [11:45:33]requested_item shift.opened is exist - process it [11:45:33]req_shift_opened [11:45:33]FM_GetShiftState [11:45:33]SAM_PROTO_GetShiftState [11:45:33]wFMCommunicate request_size=4 [11:45:33]MH_SAM_APDU [11:45:33]CAPDU: 80 13 01 00 [11:45:33]Write to MH i2c: E2 08 00 3F 44 80 13 01 00 00 00 00 00 00 [11:45:33]Write i2c OK [11:45:33]MH_I2C_Read... [11:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:33]Read from MH i2c: E2 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 0E 00 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 0E 00 3F 44 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 3D [11:45:33]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:45:33]wFMCommunicate OK [11:45:33]SAM_PROTO_GetShiftState done [11:45:33]FM_GetShiftState done [11:45:33]req_shift_opened done [11:45:33]requested_item shift.open_date is exist - process it [11:45:33]req_shift_open_date [11:45:33]req_shift_open_date done [11:45:33]produce_requested_data done [11:45:33]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69188,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:45:33]process_action_free close_receipt [11:45:33]json_value_free [11:45:33]json_value_free done [11:45:33]process_json_proto returns [11:45:33]Send response to host [11:45:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69188,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:45:33]free response buf [11:45:33]execute_script done [11:45:33]execute_script returns [11:45:33]free content buf [11:45:33]Sock 7.Close socket [11:45:33]Sock 7.Thread stoped [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:23]accept exits with 9 [11:46:23]New connection [11:46:23]New thread 3066641764 created [11:46:23]Thread 3066785124 joined [11:46:23]Waiting for new connection... [11:46:23] Sock 9.Parse request [11:46:23]Sock 9.Check first char [11:46:23]Sock 9.First char is OK [11:46:23]request: POST /json_proto HTTP/1.0 [11:46:23]Method: POST [11:46:23]URL: /json_proto [11:46:23]Method is POST - this is cgi request [11:46:23]url: /json_proto [11:46:23]query_string will be loaded in cgi processing [11:46:23]execute_cgi json_proto POST (null) [11:46:23]execute_cgi path=json_proto method=POST [11:46:23]POST find Content-Length [11:46:23]Host: 172.17.49.132:8080 [11:46:23]Content-Length: 682 [11:46:23]Content-Type: application/json [11:46:23] [11:46:23]POST finish read [11:46:23]Found Content-Length = 682 [11:46:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:23]execute_script... [11:46:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:23]POST & json_proto [11:46:23]process_json_proto [11:46:23]json parsed OK: [11:46:23]protocol is kg_v1.0 [11:46:23]action value=close_receipt [11:46:23]process_action close_receipt [11:46:23]cmd_close_receipt [11:46:23]MH_GetDate [11:46:23]Write to MH i2c: F0 00 00 40 44 73 [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: F0 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: F0 09 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: F0 09 00 40 44 00 98 2F A6 66 E7 4B C0 64 A5 [11:46:23]GetLastDocTimeStamp 1722167138 [11:46:23]current date 1722167192 [11:46:23]FM_GetShiftState [11:46:23]SAM_PROTO_GetShiftState [11:46:23]wFMCommunicate request_size=4 [11:46:23]MH_SAM_APDU [11:46:23]CAPDU: 80 13 01 00 [11:46:23]Write to MH i2c: E2 08 00 41 44 80 13 01 00 00 00 00 00 02 [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:23]Read from MH i2c: E2 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 0E 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 0E 00 41 44 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 3F [11:46:23]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:46:23]wFMCommunicate OK [11:46:23]SAM_PROTO_GetShiftState done [11:46:23]FM_GetShiftState done [11:46:23]opened in 1722127251 [11:46:23]opened+sec_in_day 1722213651 [11:46:23]quantity*price = 100005 [11:46:23]sum+1 = 100006 [11:46:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 72 28.07.2024 11:46 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69189 ФПД: 265694887069163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114632&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69189&fm=265694887069163&tin=02508201610067®Number=0000000000092638&sum=100000 [11:46:24]StoreToDocumentArchive [11:46:24]shift 429 fd 69189 [11:46:24]save to /storage/0429/doc_00069189 [11:46:24]save last doc name /storage/0429/doc_00069189 to /storage/kkm_last_doc_name [11:46:24]save OK [11:46:24]Clear old archive folders... [11:46:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:24]tlvbuf is 00A2A6F0 [11:46:24]SAM_PROTO_ClearQueue [11:46:24]wFMCommunicate request_size=4 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 09 00 00 [11:46:24]Write to MH i2c: E2 08 00 4E 44 80 09 00 00 00 00 00 00 04 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 4E 44 00 90 00 06 [11:46:24]RAPDU: 90 00 [11:46:24]wFMCommunicate OK [11:46:24]SAM_PROTO_ClearQueue done [11:46:24]KKMCreateOFDPacket [11:46:24]OFDProtocolAddRootSTLVToBuf [11:46:24]FM_MakeSignedData [11:46:24]FM_MakeSignedData [11:46:24]SAM_PROTO_SignData [11:46:24]wFMCommunicate request_size=4 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 0D 01 02 [11:46:24]Write to MH i2c: E2 08 00 4F 44 80 0D 01 02 00 00 00 00 0C [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 4F 44 00 90 00 07 [11:46:24]RAPDU: 90 00 [11:46:24]wFMCommunicate OK [11:46:24]wFMCommunicate request_size=255 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 98 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 45 0E 01 00 35 04 06 00 F1 [11:46:24]Write to MH i2c: E2 02 01 50 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 98 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 45 0E 01 00 35 04 06 00 F1 00 00 34 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:25]Read from MH i2c: E2 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 03 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 03 00 50 44 00 90 00 08 [11:46:25]RAPDU: 90 00 [11:46:25]wFMCommunicate OK [11:46:25]wFMCommunicate request_size=10 [11:46:25]MH_SAM_APDU [11:46:25]CAPDU: 80 0D 02 02 05 A5 E9 5C C5 EB [11:46:25]Write to MH i2c: E2 0D 00 51 44 80 0D 02 02 05 00 A5 E9 5C C5 EB 00 00 B3 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:25]Read from MH i2c: E2 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 03 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 03 00 51 44 00 90 00 09 [11:46:25]RAPDU: 90 00 [11:46:25]wFMCommunicate OK [11:46:25]wFMCommunicate request_size=4 [11:46:25]MH_SAM_APDU [11:46:25]CAPDU: 80 0D 03 02 [11:46:25]Write to MH i2c: E2 08 00 52 44 80 0D 03 02 00 00 00 00 11 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:25]Read from MH i2c: E2 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 0B 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 0B 00 52 44 00 5C 10 20 72 45 6B CF EB 90 00 7A [11:46:25]RAPDU: 5C 10 20 72 45 6B CF EB 90 00 [11:46:25]wFMCommunicate OK [11:46:25]SAM_PROTO_SignData done [11:46:25]FM_MakeSignedData done [11:46:25]CreateOFDProtocolMessage [11:46:25]wFMCommunicate request_size=4 [11:46:25]MH_SAM_APDU [11:46:25]CAPDU: 80 11 00 00 [11:46:25]Write to MH i2c: E2 08 00 53 44 80 11 00 00 00 00 00 00 11 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:25]Read from MH i2c: E2 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 17 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 17 00 53 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 6D [11:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:46:25]wFMCommunicate OK [11:46:25]CreateOFDProtocolMessage done [11:46:25]OFDSenderStorePacket 69189 [11:46:25]StoreOFDPacket docnum=69189 [11:46:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 49 3E 07 01 53 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 98 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 45 0E 01 00 35 04 06 00 F1 A5 E9 5C C5 EB 5C 10 20 72 45 6B CF EB [11:46:25]CheckFolder [11:46:25]dirname=/storage/ofd_packets [11:46:25]CheckFolder done [11:46:25]ProducePacketName [11:46:25]name=ofd_packets/00069189 [11:46:25]NVStorageSaveData ofd_packets/00069189 [11:46:25]File name is /storage/ofd_packets/00069189 [11:46:25]Write 301 bytes [11:46:25]NVStorageSaveData done [11:46:25]OFDSenderStorePacket done [11:46:25]KKMCreateOFDPacket done [11:46:25]NVStorageSaveData kkm_last_timestamp [11:46:25]File name is /storage/kkm_last_timestamp [11:46:25]Write 4 bytes [11:46:25]NVStorageSaveData done [11:46:25]ExternCall_PrintAddStr [11:46:25]wPrintStart [11:46:25]Write to MH i2c: 01 00 00 54 44 98 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 07 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 07 00 54 44 00 00 00 00 00 FF 0F AD [11:46:25]RasterBufferAndPrint [11:46:25]line Счет N : (1)871848 [11:46:25]line ИНН: 02508201610067 [11:46:25]line Контрольно-Кассовый Чек [11:46:25]line ПРОДАЖА [11:46:25]line ТРК (МРК, ГНК) : 42 [11:46:25]line Товар: 2710124130 [11:46:25]line Аи-92-К-5 [11:46:25]line 14.750 * 67.80 [11:46:25]line = 1000.05 [11:46:25]line НДС 12% НСП 1% [11:46:25]line > о реализуемом товаре [11:46:25]line ОКРУГЛЕНИЕ: -0.05 [11:46:25]line ИТОГО: 1000.00 [11:46:25]line Внесено: 1000.00 [11:46:25]line СДАЧА: 0.00 [11:46:25]line НСП 1% : 8.85 [11:46:25]line НДС 12% : 106.20 [11:46:25]line Наличными: 1000.00 [11:46:25]line Безнал.: 0.00 [11:46:25]line Место: АЗС № 125 "Партнер Нефть" [11:46:25]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:46:25]line СНО: Общий режим [11:46:25]line Чек 72 28.07.2024 11:46 [11:46:25]line Смена: 429 ФФД: 1.0 [11:46:25]line ЗНМ: 0300000049 [11:46:25]line РНМ: 0000000000092638 [11:46:25]line Версия ККМ: 001 [11:46:25]line ФМ: 0000000000874949 [11:46:25]line ФД: 69189 [11:46:25]line ФПД: 265694887069163 [11:46:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114632&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69189&fm=265694887069163&tin=02508201610067®Number=0000000000092638&sum=100000 [11:46:25]OFD Sender: Processing packet 69189 [packets to send 19, broken 18] [11:46:25]ProducePacketName [11:46:25]name=ofd_packets/00069189 [11:46:25]OFD Sender: To server: pG, [11:46:25]CommunicateWithHost lk.salyk.kg:30040 [11:46:25]ConnectInit lk.salyk.kg [11:46:25]written 0, free lines is 4095 [11:46:25]Connected sock=10 [11:46:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 49 3E 07 01 53 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 98 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 45 0E 01 00 35 04 06 00 F1 A5 E9 5C C5 EB 5C 10 20 72 45 6B CF EB [11:46:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 31 43 47 00 2B 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 45 0E 01 00 F4 03 04 00 08 D6 A5 66 B6 04 01 00 00 7E FF 72 04 D6 C0 97 00 [11:46:25]CommunicateWithHost err = 0 [11:46:25]CheckOFDResponse [11:46:25]1017 (14) - 77093643461234 [11:46:25]1041 (16) - 0000000000874949 [11:46:25]1040 (4) - 69189 [11:46:25]1012 (4) - 28.07.2024 05:24 [11:46:25]1206 (1) - 0 [11:46:25]OFD Sender: Remove packet 69189 [11:46:25]ProducePacketName [11:46:25]name=ofd_packets/00069189 [11:46:25]NVStorageDeleteData [11:46:26]Write to MH i2c: 01 00 00 7F 44 C3 [11:46:26]Write i2c OK [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: 01 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: 01 07 00 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: 01 07 00 7F 44 00 00 00 00 00 EF 0C C5 [11:46:26]RasterBufferAndPrint [11:46:26]line [11:46:26]line [11:46:26]line [11:46:26]line [11:46:26]line [11:46:26]written 0, free lines is 3320 [11:46:26]MH_Cut [11:46:26]Write to MH i2c: D1 01 00 86 44 01 9C [11:46:26]Write i2c OK [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: D1 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: D1 01 00 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: D1 01 00 86 44 00 9B [11:46:26]Write to MH i2c: 01 00 00 87 44 CB [11:46:26]Write i2c OK [11:46:26]MH_I2C_Read... [11:46:26]OFD Sender: No OFD packet to send [11:46:26]*** Cut start [11:46:26]*** Partial cut [11:46:26]*** CUTSNS_PIN = 1 [11:46:26]*** CUTSNS_PIN = 0 [11:46:26]*** Brake cut motor [11:46:27]Read from MH i2c: 01 [11:46:27]MH_I2C_Read... [11:46:27]*** Stop cut motor [11:46:27]*** Cut end [11:46:27]Read from MH i2c: 01 07 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: 01 07 00 87 44 00 00 00 00 00 FF 0F E0 [11:46:27]process_action close_receipt done [11:46:27]requested_data is exist [11:46:27]produce_requested_data [11:46:27]requested_item fm.sn is exist - process it [11:46:27]wFMCommunicate request_size=4 [11:46:27]MH_SAM_APDU [11:46:27]CAPDU: 80 11 00 00 [11:46:27]Write to MH i2c: E2 08 00 88 44 80 11 00 00 00 00 00 00 46 [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:27]Read from MH i2c: E2 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 17 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 17 00 88 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A2 [11:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:46:27]wFMCommunicate OK [11:46:27]requested_item fd.num is exist - process it [11:46:27]SAM_PROTO_GetFieldsCounters [11:46:27]wFMCommunicate request_size=4 [11:46:27]MH_SAM_APDU [11:46:27]CAPDU: 80 13 00 00 [11:46:27]Write to MH i2c: E2 08 00 89 44 80 13 00 00 00 00 00 00 49 [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:27]Read from MH i2c: E2 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 62 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 62 00 89 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 45 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [11:46:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 45 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:27]wFMCommunicate OK [11:46:27]SAM_PROTO_GetFieldsCounters done [11:46:27]requested_item shift.num is exist - process it [11:46:27]requested_item shift.opened is exist - process it [11:46:27]req_shift_opened [11:46:27]FM_GetShiftState [11:46:27]SAM_PROTO_GetShiftState [11:46:27]wFMCommunicate request_size=4 [11:46:27]MH_SAM_APDU [11:46:27]CAPDU: 80 13 01 00 [11:46:27]Write to MH i2c: E2 08 00 8A 44 80 13 01 00 00 00 00 00 4B [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:27]Read from MH i2c: E2 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 0E 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 0E 00 8A 44 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 88 [11:46:27]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:46:27]wFMCommunicate OK [11:46:27]SAM_PROTO_GetShiftState done [11:46:27]FM_GetShiftState done [11:46:27]req_shift_opened done [11:46:27]requested_item shift.open_date is exist - process it [11:46:27]req_shift_open_date [11:46:27]req_shift_open_date done [11:46:27]produce_requested_data done [11:46:27]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69189,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:46:27]process_action_free close_receipt [11:46:27]json_value_free [11:46:27]json_value_free done [11:46:27]process_json_proto returns [11:46:27]Send response to host [11:46:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69189,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:46:27]free response buf [11:46:27]execute_script done [11:46:27]execute_script returns [11:46:27]free content buf [11:46:27]Sock 9.Close socket [11:46:27]Sock 9.Thread stoped [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:15]accept exits with 7 [11:47:15]New connection [11:47:15]New thread 3066785124 created [11:47:15]Thread 3066641764 joined [11:47:15]Waiting for new connection... [11:47:15] Sock 7.Parse request [11:47:15]Sock 7.Check first char [11:47:15]Sock 7.First char is OK [11:47:15]request: POST /json_proto HTTP/1.0 [11:47:15]Method: POST [11:47:15]URL: /json_proto [11:47:15]Method is POST - this is cgi request [11:47:15]url: /json_proto [11:47:15]query_string will be loaded in cgi processing [11:47:15]execute_cgi json_proto POST (null) [11:47:15]execute_cgi path=json_proto method=POST [11:47:15]POST find Content-Length [11:47:15]Host: 172.17.49.132:8080 [11:47:15]Content-Length: 677 [11:47:15]Content-Type: application/json [11:47:15] [11:47:15]POST finish read [11:47:15]Found Content-Length = 677 [11:47:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:15]execute_script... [11:47: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)871849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:15]POST & json_proto [11:47:15]process_json_proto [11:47:15]json parsed OK: [11:47:15]protocol is kg_v1.0 [11:47:15]action value=close_receipt [11:47:15]process_action close_receipt [11:47:15]cmd_close_receipt [11:47:15]MH_GetDate [11:47:15]Write to MH i2c: F0 00 00 8B 44 BE [11:47:15]Write i2c OK [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: F0 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: F0 09 00 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: F0 09 00 8B 44 00 CC 2F A6 66 E7 4B C0 64 24 [11:47:15]GetLastDocTimeStamp 1722167192 [11:47:15]current date 1722167244 [11:47:15]FM_GetShiftState [11:47:15]SAM_PROTO_GetShiftState [11:47:15]wFMCommunicate request_size=4 [11:47:15]MH_SAM_APDU [11:47:15]CAPDU: 80 13 01 00 [11:47:15]Write to MH i2c: E2 08 00 8C 44 80 13 01 00 00 00 00 00 4D [11:47:15]Write i2c OK [11:47:15]MH_I2C_Read... [11:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:15]Read from MH i2c: E2 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 0E 00 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 0E 00 8C 44 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 8A [11:47:15]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:47:15]wFMCommunicate OK [11:47:15]SAM_PROTO_GetShiftState done [11:47:15]FM_GetShiftState done [11:47:15]opened in 1722127251 [11:47:15]opened+sec_in_day 1722213651 [11:47:15]quantity*price = 40002 [11:47:15]sum+1 = 40003 [11:47:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 73 28.07.2024 11:47 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69190 ФПД: 252927718261328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114724&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69190&fm=252927718261328&tin=02508201610067®Number=0000000000092638&sum=40000 [11:47:16]StoreToDocumentArchive [11:47:16]shift 429 fd 69190 [11:47:16]save to /storage/0429/doc_00069190 [11:47:16]save last doc name /storage/0429/doc_00069190 to /storage/kkm_last_doc_name [11:47:16]save OK [11:47:16]Clear old archive folders... [11:47:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:16]tlvbuf is 00AF93B0 [11:47:16]SAM_PROTO_ClearQueue [11:47:16]wFMCommunicate request_size=4 [11:47:16]MH_SAM_APDU [11:47:16]CAPDU: 80 09 00 00 [11:47:16]Write to MH i2c: E2 08 00 99 44 80 09 00 00 00 00 00 00 4F [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:16]Read from MH i2c: E2 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 03 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 03 00 99 44 00 90 00 51 [11:47:16]RAPDU: 90 00 [11:47:16]wFMCommunicate OK [11:47:16]SAM_PROTO_ClearQueue done [11:47:16]KKMCreateOFDPacket [11:47:16]OFDProtocolAddRootSTLVToBuf [11:47:16]FM_MakeSignedData [11:47:16]FM_MakeSignedData [11:47:16]SAM_PROTO_SignData [11:47:16]wFMCommunicate request_size=4 [11:47:16]MH_SAM_APDU [11:47:16]CAPDU: 80 0D 01 02 [11:47:16]Write to MH i2c: E2 08 00 9A 44 80 0D 01 02 00 00 00 00 57 [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:16]Read from MH i2c: E2 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 03 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 03 00 9A 44 00 90 00 52 [11:47:16]RAPDU: 90 00 [11:47:16]wFMCommunicate OK [11:47:16]wFMCommunicate request_size=255 [11:47:16]MH_SAM_APDU [11:47:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CC 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 46 0E 01 00 35 04 06 00 E6 [11:47:16]Write to MH i2c: E2 02 01 9B 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CC 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 46 0E 01 00 35 04 06 00 E6 00 00 00 [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:17]Read from MH i2c: E2 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: E2 03 00 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: E2 03 00 9B 44 00 90 00 53 [11:47:17]RAPDU: 90 00 [11:47:17]wFMCommunicate OK [11:47:17]wFMCommunicate request_size=10 [11:47:17]MH_SAM_APDU [11:47:17]CAPDU: 80 0D 02 02 05 09 52 CD 02 50 [11:47:17]Write to MH i2c: E2 0D 00 9C 44 80 0D 02 02 05 00 09 52 CD 02 50 00 00 DE [11:47:17]Write i2c OK [11:47:17]MH_I2C_Read... [11:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:17]Read from MH i2c: E2 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: E2 03 00 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: E2 03 00 9C 44 00 90 00 54 [11:47:17]RAPDU: 90 00 [11:47:17]wFMCommunicate OK [11:47:17]wFMCommunicate request_size=4 [11:47:17]MH_SAM_APDU [11:47:17]CAPDU: 80 0D 03 02 [11:47:17]Write to MH i2c: E2 08 00 9D 44 80 0D 03 02 00 00 00 00 5C [11:47:17]Write i2c OK [11:47:17]MH_I2C_Read... [11:47:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:17]Read from MH i2c: E2 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: E2 0B 00 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: E2 0B 00 9D 44 00 41 35 AD CD 8C CE 61 9D 90 00 A5 [11:47:17]RAPDU: 41 35 AD CD 8C CE 61 9D 90 00 [11:47:17]wFMCommunicate OK [11:47:17]SAM_PROTO_SignData done [11:47:17]FM_MakeSignedData done [11:47:17]CreateOFDProtocolMessage [11:47:17]wFMCommunicate request_size=4 [11:47:17]MH_SAM_APDU [11:47:17]CAPDU: 80 11 00 00 [11:47:17]Write to MH i2c: E2 08 00 9E 44 80 11 00 00 00 00 00 00 5C [11:47:17]Write i2c OK [11:47:17]MH_I2C_Read... [11:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:17]Read from MH i2c: E2 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: E2 17 00 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: E2 17 00 9E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B8 [11:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:47:17]wFMCommunicate OK [11:47:17]CreateOFDProtocolMessage done [11:47:17]OFDSenderStorePacket 69190 [11:47:17]StoreOFDPacket docnum=69190 [11:47:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 3B A4 07 01 69 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CC 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 46 0E 01 00 35 04 06 00 E6 09 52 CD 02 50 41 35 AD CD 8C CE 61 9D [11:47:17]CheckFolder [11:47:17]dirname=/storage/ofd_packets [11:47:17]CheckFolder done [11:47:17]ProducePacketName [11:47:17]name=ofd_packets/00069190 [11:47:17]NVStorageSaveData ofd_packets/00069190 [11:47:17]File name is /storage/ofd_packets/00069190 [11:47:17]Write 301 bytes [11:47:17]NVStorageSaveData done [11:47:17]OFDSenderStorePacket done [11:47:17]KKMCreateOFDPacket done [11:47:17]NVStorageSaveData kkm_last_timestamp [11:47:17]File name is /storage/kkm_last_timestamp [11:47:17]Write 4 bytes [11:47:17]NVStorageSaveData done [11:47:17]ExternCall_PrintAddStr [11:47:17]wPrintStart [11:47:17]Write to MH i2c: 01 00 00 9F 44 E3 [11:47:17]Write i2c OK [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: 01 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: 01 07 00 [11:47:17]MH_I2C_Read... [11:47:17]Read from MH i2c: 01 07 00 9F 44 00 00 00 00 00 FF 0F F8 [11:47:17]RasterBufferAndPrint [11:47:17]line Счет N : (1)871849 [11:47:17]line ИНН: 02508201610067 [11:47:17]line Контрольно-Кассовый Чек [11:47:17]line ПРОДАЖА [11:47:17]line ТРК (МРК, ГНК) : 62 [11:47:17]line Товар: 2710124130 [11:47:17]line Аи-92-К-5 [11:47:17]line 5.900 * 67.80 [11:47:17]line = 400.02 [11:47:17]line НДС 12% НСП 1% [11:47:17]line > о реализуемом товаре [11:47:17]line ОКРУГЛЕНИЕ: -0.02 [11:47:17]line ИТОГО: 400.00 [11:47:17]line Внесено: 400.00 [11:47:17]line СДАЧА: 0.00 [11:47:17]line НСП 1% : 3.54 [11:47:17]line НДС 12% : 42.48 [11:47:17]line Наличными: 400.00 [11:47:17]line Безнал.: 0.00 [11:47:17]line Место: АЗС № 125 "Партнер Нефть" [11:47:17]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:47:17]line СНО: Общий режим [11:47:17]line Чек 73 28.07.2024 11:47 [11:47:17]line Смена: 429 ФФД: 1.0 [11:47:17]line ЗНМ: 0300000049 [11:47:17]line РНМ: 0000000000092638 [11:47:17]line Версия ККМ: 001 [11:47:17]line ФМ: 0000000000874949 [11:47:17]line ФД: 69190 [11:47:17]line ФПД: 252927718261328 [11:47:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T114724&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69190&fm=252927718261328&tin=02508201610067®Number=0000000000092638&sum=40000 [11:47:17]written 0, free lines is 4095 [11:47:17]OFD Sender: Processing packet 69190 [packets to send 19, broken 18] [11:47:17]ProducePacketName [11:47:17]name=ofd_packets/00069190 [11:47:17]OFD Sender: To server: pG, [11:47:17]CommunicateWithHost lk.salyk.kg:30040 [11:47:17]ConnectInit lk.salyk.kg [11:47:17]Connected sock=10 [11:47: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 39 34 39 0F 01 00 00 3B A4 07 01 69 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CC 2F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 46 0E 01 00 35 04 06 00 E6 09 52 CD 02 50 41 35 AD CD 8C CE 61 9D [11:47:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 7B 84 47 00 CE 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 46 0E 01 00 F4 03 04 00 3C D6 A5 66 B6 04 01 00 00 D0 87 D3 B9 96 60 AC 8D [11:47:17]CommunicateWithHost err = 0 [11:47:17]CheckOFDResponse [11:47:17]1017 (14) - 77093643461234 [11:47:17]1041 (16) - 0000000000874949 [11:47:17]1040 (4) - 69190 [11:47:17]1012 (4) - 28.07.2024 05:25 [11:47:17]1206 (1) - 0 [11:47:17]OFD Sender: Remove packet 69190 [11:47:17]ProducePacketName [11:47:17]name=ofd_packets/00069190 [11:47:17]NVStorageDeleteData [11:47:18]Write to MH i2c: 01 00 00 CA 44 0E [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: 01 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: 01 07 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: 01 07 00 CA 44 00 00 00 00 00 F2 0C 13 [11:47:18]RasterBufferAndPrint [11:47:18]line [11:47:18]line [11:47:18]line [11:47:18]line [11:47:18]line [11:47:18]written 0, free lines is 3320 [11:47:18]MH_Cut [11:47:18]Write to MH i2c: D1 01 00 D1 44 01 E7 [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: D1 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: D1 01 00 [11:47:18]MH_I2C_Read... [11:47:18]Read from MH i2c: D1 01 00 D1 44 00 E6 [11:47:18]Write to MH i2c: 01 00 00 D2 44 16 [11:47:18]Write i2c OK [11:47:18]MH_I2C_Read... [11:47:18]OFD Sender: No OFD packet to send [11:47:18]*** Cut start [11:47:18]*** Partial cut [11:47:18]*** CUTSNS_PIN = 1 [11:47:18]*** CUTSNS_PIN = 0 [11:47:19]*** Brake cut motor [11:47:19]Read from MH i2c: 01 [11:47:19]MH_I2C_Read... [11:47:19]*** Stop cut motor [11:47:19]*** Cut end [11:47:19]Read from MH i2c: 01 07 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: 01 07 00 D2 44 00 00 00 00 00 FF 0F 2B [11:47:19]process_action close_receipt done [11:47:19]requested_data is exist [11:47:19]produce_requested_data [11:47:19]requested_item fm.sn is exist - process it [11:47:19]wFMCommunicate request_size=4 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 11 00 00 [11:47:19]Write to MH i2c: E2 08 00 D3 44 80 11 00 00 00 00 00 00 91 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 17 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 17 00 D3 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 ED [11:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:47:19]wFMCommunicate OK [11:47:19]requested_item fd.num is exist - process it [11:47:19]SAM_PROTO_GetFieldsCounters [11:47:19]wFMCommunicate request_size=4 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 13 00 00 [11:47:19]Write to MH i2c: E2 08 00 D4 44 80 13 00 00 00 00 00 00 94 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 62 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 62 00 D4 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 46 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [11:47: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 46 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:19]wFMCommunicate OK [11:47:19]SAM_PROTO_GetFieldsCounters done [11:47:19]requested_item shift.num is exist - process it [11:47:19]requested_item shift.opened is exist - process it [11:47:19]req_shift_opened [11:47:19]FM_GetShiftState [11:47:19]SAM_PROTO_GetShiftState [11:47:19]wFMCommunicate request_size=4 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 13 01 00 [11:47:19]Write to MH i2c: E2 08 00 D5 44 80 13 01 00 00 00 00 00 96 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 0E 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 0E 00 D5 44 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 D3 [11:47:19]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:47:19]wFMCommunicate OK [11:47:19]SAM_PROTO_GetShiftState done [11:47:19]FM_GetShiftState done [11:47:19]req_shift_opened done [11:47:19]requested_item shift.open_date is exist - process it [11:47:19]req_shift_open_date [11:47:19]req_shift_open_date done [11:47:19]produce_requested_data done [11:47:19]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69190,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:47:19]process_action_free close_receipt [11:47:19]json_value_free [11:47:19]json_value_free done [11:47:19]process_json_proto returns [11:47:19]Send response to host [11:47:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69190,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:47:19]free response buf [11:47:19]execute_script done [11:47:19]execute_script returns [11:47:19]free content buf [11:47:19]Sock 7.Close socket [11:47:19]Sock 7.Thread stoped [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:40]accept exits with 9 [11:50:40]New connection [11:50:40]New thread 3066641764 created [11:50:40]Thread 3066785124 joined [11:50:40]Waiting for new connection... [11:50:40] Sock 9.Parse request [11:50:40]Sock 9.Check first char [11:50:40]Sock 9.First char is OK [11:50:40]request: POST /json_proto HTTP/1.0 [11:50:40]Method: POST [11:50:40]URL: /json_proto [11:50:40]Method is POST - this is cgi request [11:50:40]url: /json_proto [11:50:40]query_string will be loaded in cgi processing [11:50:40]execute_cgi json_proto POST (null) [11:50:40]execute_cgi path=json_proto method=POST [11:50:40]POST find Content-Length [11:50:40]Host: 172.17.49.132:8080 [11:50:40]Content-Length: 678 [11:50:40]Content-Type: application/json [11:50:40] [11:50:40]POST finish read [11:50:40]Found Content-Length = 678 [11:50:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.030, "sum" : 680.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:40]execute_script... [11:50: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)871850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.030, "sum" : 680.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:40]POST & json_proto [11:50:40]process_json_proto [11:50:40]json parsed OK: [11:50:40]protocol is kg_v1.0 [11:50:40]action value=close_receipt [11:50:40]process_action close_receipt [11:50:40]cmd_close_receipt [11:50:40]MH_GetDate [11:50:40]Write to MH i2c: F0 00 00 D6 44 09 [11:50:40]Write i2c OK [11:50:40]MH_I2C_Read... [11:50:40]Read from MH i2c: F0 [11:50:40]MH_I2C_Read... [11:50:40]Read from MH i2c: F0 09 00 [11:50:40]MH_I2C_Read... [11:50:40]Read from MH i2c: F0 09 00 D6 44 00 99 30 A6 66 E7 4B C0 64 3D [11:50:40]GetLastDocTimeStamp 1722167244 [11:50:40]current date 1722167449 [11:50:40]FM_GetShiftState [11:50:40]SAM_PROTO_GetShiftState [11:50:40]wFMCommunicate request_size=4 [11:50:40]MH_SAM_APDU [11:50:40]CAPDU: 80 13 01 00 [11:50:40]Write to MH i2c: E2 08 00 D7 44 80 13 01 00 00 00 00 00 98 [11:50:40]Write i2c OK [11:50:40]MH_I2C_Read... [11:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:41]Read from MH i2c: E2 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: E2 0E 00 [11:50:41]MH_I2C_Read... [11:50:41]Read from MH i2c: E2 0E 00 D7 44 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 D5 [11:50:41]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:50:41]wFMCommunicate OK [11:50:41]SAM_PROTO_GetShiftState done [11:50:41]FM_GetShiftState done [11:50:41]opened in 1722127251 [11:50:41]opened+sec_in_day 1722213651 [11:50:41]quantity*price = 68003 [11:50:41]sum+1 = 68004 [11:50:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.22 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 74 28.07.2024 11:50 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69191 ФПД: 166073414839490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115049&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69191&fm=166073414839490&tin=02508201610067®Number=0000000000092638&sum=68000 [11:50:42]StoreToDocumentArchive [11:50:42]shift 429 fd 69191 [11:50:42]save to /storage/0429/doc_00069191 [11:50:42]save last doc name /storage/0429/doc_00069191 to /storage/kkm_last_doc_name [11:50:42]save OK [11:50:42]Clear old archive folders... [11:50:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:42]tlvbuf is 00AF9260 [11:50:42]SAM_PROTO_ClearQueue [11:50:42]wFMCommunicate request_size=4 [11:50:42]MH_SAM_APDU [11:50:42]CAPDU: 80 09 00 00 [11:50:42]Write to MH i2c: E2 08 00 E4 44 80 09 00 00 00 00 00 00 9A [11:50:42]Write i2c OK [11:50:42]MH_I2C_Read... [11:50:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:42]Read from MH i2c: E2 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: E2 03 00 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: E2 03 00 E4 44 00 90 00 9C [11:50:42]RAPDU: 90 00 [11:50:42]wFMCommunicate OK [11:50:42]SAM_PROTO_ClearQueue done [11:50:42]KKMCreateOFDPacket [11:50:42]OFDProtocolAddRootSTLVToBuf [11:50:42]FM_MakeSignedData [11:50:42]FM_MakeSignedData [11:50:42]SAM_PROTO_SignData [11:50:42]wFMCommunicate request_size=4 [11:50:42]MH_SAM_APDU [11:50:42]CAPDU: 80 0D 01 02 [11:50:42]Write to MH i2c: E2 08 00 E5 44 80 0D 01 02 00 00 00 00 A2 [11:50:42]Write i2c OK [11:50:42]MH_I2C_Read... [11:50:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:42]Read from MH i2c: E2 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: E2 03 00 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: E2 03 00 E5 44 00 90 00 9D [11:50:42]RAPDU: 90 00 [11:50:42]wFMCommunicate OK [11:50:42]wFMCommunicate request_size=255 [11:50:42]MH_SAM_APDU [11:50:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A3 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 99 30 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 47 0E 01 00 35 04 06 00 97 [11:50:42]Write to MH i2c: E2 02 01 E6 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A3 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 99 30 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 47 0E 01 00 35 04 06 00 97 00 00 0C [11:50:42]Write i2c OK [11:50:42]MH_I2C_Read... [11:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:42]Read from MH i2c: E2 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: E2 03 00 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: E2 03 00 E6 44 00 90 00 9E [11:50:42]RAPDU: 90 00 [11:50:42]wFMCommunicate OK [11:50:42]wFMCommunicate request_size=10 [11:50:42]MH_SAM_APDU [11:50:42]CAPDU: 80 0D 02 02 05 0A FA E5 EC C2 [11:50:42]Write to MH i2c: E2 0D 00 E7 44 80 0D 02 02 05 00 0A FA E5 EC C2 00 00 46 [11:50:42]Write i2c OK [11:50:42]MH_I2C_Read... [11:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:42]Read from MH i2c: E2 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: E2 03 00 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: E2 03 00 E7 44 00 90 00 9F [11:50:42]RAPDU: 90 00 [11:50:42]wFMCommunicate OK [11:50:42]wFMCommunicate request_size=4 [11:50:42]MH_SAM_APDU [11:50:42]CAPDU: 80 0D 03 02 [11:50:42]Write to MH i2c: E2 08 00 E8 44 80 0D 03 02 00 00 00 00 A7 [11:50:42]Write i2c OK [11:50:42]MH_I2C_Read... [11:50:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:42]Read from MH i2c: E2 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: E2 0B 00 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: E2 0B 00 E8 44 00 93 53 71 CC AF BF 95 35 90 00 03 [11:50:42]RAPDU: 93 53 71 CC AF BF 95 35 90 00 [11:50:42]wFMCommunicate OK [11:50:42]SAM_PROTO_SignData done [11:50:42]FM_MakeSignedData done [11:50:42]CreateOFDProtocolMessage [11:50:42]wFMCommunicate request_size=4 [11:50:42]MH_SAM_APDU [11:50:42]CAPDU: 80 11 00 00 [11:50:42]Write to MH i2c: E2 08 00 E9 44 80 11 00 00 00 00 00 00 A7 [11:50:42]Write i2c OK [11:50:42]MH_I2C_Read... [11:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:42]Read from MH i2c: E2 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: E2 17 00 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: E2 17 00 E9 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 03 [11:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:50:42]wFMCommunicate OK [11:50:42]CreateOFDProtocolMessage done [11:50:42]OFDSenderStorePacket 69191 [11:50:42]StoreOFDPacket docnum=69191 [11:50:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 E4 82 07 01 1C F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A3 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 99 30 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 47 0E 01 00 35 04 06 00 97 0A FA E5 EC C2 93 53 71 CC AF BF 95 35 [11:50:42]CheckFolder [11:50:42]dirname=/storage/ofd_packets [11:50:42]CheckFolder done [11:50:42]ProducePacketName [11:50:42]name=ofd_packets/00069191 [11:50:42]NVStorageSaveData ofd_packets/00069191 [11:50:42]File name is /storage/ofd_packets/00069191 [11:50:42]Write 301 bytes [11:50:42]NVStorageSaveData done [11:50:42]OFDSenderStorePacket done [11:50:42]KKMCreateOFDPacket done [11:50:42]NVStorageSaveData kkm_last_timestamp [11:50:42]File name is /storage/kkm_last_timestamp [11:50:42]Write 4 bytes [11:50:42]NVStorageSaveData done [11:50:42]ExternCall_PrintAddStr [11:50:42]wPrintStart [11:50:42]Write to MH i2c: 01 00 00 EA 44 2E [11:50:42]Write i2c OK [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: 01 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: 01 07 00 [11:50:42]MH_I2C_Read... [11:50:42]Read from MH i2c: 01 07 00 EA 44 00 00 00 00 00 FF 0F 43 [11:50:42]RasterBufferAndPrint [11:50:42]line Счет N : (1)871850 [11:50:42]line ИНН: 02508201610067 [11:50:42]line Контрольно-Кассовый Чек [11:50:42]line ПРОДАЖА [11:50:42]line ТРК (МРК, ГНК) : 42 [11:50:42]line Товар: 2710124130 [11:50:42]line Аи-92-К-5 [11:50:42]line 10.030 * 67.80 [11:50:42]line = 680.03 [11:50:42]line НДС 12% НСП 1% [11:50:42]line > о реализуемом товаре [11:50:42]line ОКРУГЛЕНИЕ: -0.03 [11:50:42]line ИТОГО: 680.00 [11:50:42]line Внесено: 680.00 [11:50:42]line СДАЧА: 0.00 [11:50:42]line НСП 1% : 6.02 [11:50:42]line НДС 12% : 72.22 [11:50:42]line Наличными: 680.00 [11:50:42]line Безнал.: 0.00 [11:50:42]line Место: АЗС № 125 "Партнер Нефть" [11:50:42]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:50:42]line СНО: Общий режим [11:50:42]line Чек 74 28.07.2024 11:50 [11:50:42]line Смена: 429 ФФД: 1.0 [11:50:42]line ЗНМ: 0300000049 [11:50:42]line РНМ: 0000000000092638 [11:50:42]line Версия ККМ: 001 [11:50:42]line ФМ: 0000000000874949 [11:50:42]line ФД: 69191 [11:50:42]line ФПД: 166073414839490 [11:50:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115049&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69191&fm=166073414839490&tin=02508201610067®Number=0000000000092638&sum=68000 [11:50:43]OFD Sender: Processing packet 69191 [packets to send 19, broken 18] [11:50:43]ProducePacketName [11:50:43]name=ofd_packets/00069191 [11:50:43]OFD Sender: To server: pG, [11:50:43]CommunicateWithHost lk.salyk.kg:30040 [11:50:43]ConnectInit lk.salyk.kg [11:50:43]written 0, free lines is 4095 [11:50:43]Connected sock=10 [11:50: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 39 34 39 0F 01 00 00 E4 82 07 01 1C F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A3 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 99 30 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 47 0E 01 00 35 04 06 00 97 0A FA E5 EC C2 93 53 71 CC AF BF 95 35 [11:50:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 2B 84 47 00 0E EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 47 0E 01 00 F4 03 04 00 09 D7 A5 66 B6 04 01 00 00 F8 50 90 18 6B E0 8B 89 [11:50:43]CommunicateWithHost err = 0 [11:50:43]CheckOFDResponse [11:50:43]1017 (14) - 77093643461234 [11:50:43]1041 (16) - 0000000000874949 [11:50:43]1040 (4) - 69191 [11:50:43]1012 (4) - 28.07.2024 05:28 [11:50:43]1206 (1) - 0 [11:50:43]OFD Sender: Remove packet 69191 [11:50:43]ProducePacketName [11:50:43]name=ofd_packets/00069191 [11:50:43]NVStorageDeleteData [11:50:43]Write to MH i2c: 01 00 00 15 45 5A [11:50:43]Write i2c OK [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: 01 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: 01 07 00 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: 01 07 00 15 45 00 00 00 00 00 F4 0C 61 [11:50:43]RasterBufferAndPrint [11:50:43]line [11:50:43]line [11:50:43]line [11:50:43]line [11:50:43]line [11:50:43]written 0, free lines is 3326 [11:50:43]MH_Cut [11:50:43]Write to MH i2c: D1 01 00 1C 45 01 33 [11:50:43]Write i2c OK [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: D1 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: D1 01 00 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: D1 01 00 1C 45 00 32 [11:50:43]Write to MH i2c: 01 00 00 1D 45 62 [11:50:43]Write i2c OK [11:50:43]MH_I2C_Read... [11:50:43]OFD Sender: No OFD packet to send [11:50:44]*** Cut start [11:50:44]*** Partial cut [11:50:44]*** CUTSNS_PIN = 1 [11:50:44]*** CUTSNS_PIN = 0 [11:50:44]*** Brake cut motor [11:50:44]Read from MH i2c: 01 [11:50:44]MH_I2C_Read... [11:50:44]*** Stop cut motor [11:50:44]*** Cut end [11:50:44]Read from MH i2c: 01 07 00 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: 01 07 00 1D 45 00 00 00 00 00 FF 0F 77 [11:50:44]process_action close_receipt done [11:50:44]requested_data is exist [11:50:44]produce_requested_data [11:50:44]requested_item fm.sn is exist - process it [11:50:44]wFMCommunicate request_size=4 [11:50:44]MH_SAM_APDU [11:50:44]CAPDU: 80 11 00 00 [11:50:44]Write to MH i2c: E2 08 00 1E 45 80 11 00 00 00 00 00 00 DD [11:50:44]Write i2c OK [11:50:44]MH_I2C_Read... [11:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:44]Read from MH i2c: E2 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 17 00 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 17 00 1E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 39 [11:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:50:44]wFMCommunicate OK [11:50:44]requested_item fd.num is exist - process it [11:50:44]SAM_PROTO_GetFieldsCounters [11:50:44]wFMCommunicate request_size=4 [11:50:44]MH_SAM_APDU [11:50:44]CAPDU: 80 13 00 00 [11:50:44]Write to MH i2c: E2 08 00 1F 45 80 13 00 00 00 00 00 00 E0 [11:50:44]Write i2c OK [11:50:44]MH_I2C_Read... [11:50:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:44]Read from MH i2c: E2 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 62 00 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 62 00 1F 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 47 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [11:50: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 47 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:44]wFMCommunicate OK [11:50:44]SAM_PROTO_GetFieldsCounters done [11:50:44]requested_item shift.num is exist - process it [11:50:44]requested_item shift.opened is exist - process it [11:50:44]req_shift_opened [11:50:44]FM_GetShiftState [11:50:44]SAM_PROTO_GetShiftState [11:50:44]wFMCommunicate request_size=4 [11:50:44]MH_SAM_APDU [11:50:44]CAPDU: 80 13 01 00 [11:50:44]Write to MH i2c: E2 08 00 20 45 80 13 01 00 00 00 00 00 E2 [11:50:44]Write i2c OK [11:50:44]MH_I2C_Read... [11:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:44]Read from MH i2c: E2 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 0E 00 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 0E 00 20 45 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 1F [11:50:44]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:50:44]wFMCommunicate OK [11:50:44]SAM_PROTO_GetShiftState done [11:50:44]FM_GetShiftState done [11:50:44]req_shift_opened done [11:50:44]requested_item shift.open_date is exist - process it [11:50:44]req_shift_open_date [11:50:44]req_shift_open_date done [11:50:44]produce_requested_data done [11:50:44]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69191,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:50:44]process_action_free close_receipt [11:50:44]json_value_free [11:50:44]json_value_free done [11:50:44]process_json_proto returns [11:50:44]Send response to host [11:50:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69191,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:50:44]free response buf [11:50:44]execute_script done [11:50:44]execute_script returns [11:50:44]free content buf [11:50:44]Sock 9.Close socket [11:50:44]Sock 9.Thread stoped [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]accept exits with 7 [11:51:18]New connection [11:51:18]New thread 3066785124 created [11:51:18]Thread 3066641764 joined [11:51:18]Waiting for new connection... [11:51:18] Sock 7.Parse request [11:51:18]Sock 7.Check first char [11:51:18]Sock 7.First char is OK [11:51:18]request: POST /json_proto HTTP/1.0 [11:51:18]Method: POST [11:51:18]URL: /json_proto [11:51:18]Method is POST - this is cgi request [11:51:18]url: /json_proto [11:51:18]query_string will be loaded in cgi processing [11:51:18]execute_cgi json_proto POST (null) [11:51:18]execute_cgi path=json_proto method=POST [11:51:18]POST find Content-Length [11:51:18]Host: 172.17.49.132:8080 [11:51:18]Content-Length: 622 [11:51:18]Content-Type: application/json [11:51:18] [11:51:18]POST finish read [11:51:18]Found Content-Length = 622 [11:51:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136566", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:18]execute_script... [11:51: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)136566", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:18]POST & json_proto [11:51:18]process_json_proto [11:51:18]json parsed OK: [11:51:18]protocol is kg_v1.0 [11:51:18]action value=close_receipt [11:51:18]process_action close_receipt [11:51:18]cmd_close_receipt [11:51:18]MH_GetDate [11:51:18]Write to MH i2c: F0 00 00 21 45 55 [11:51:18]Write i2c OK [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: F0 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: F0 09 00 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: F0 09 00 21 45 00 BF 30 A6 66 E7 4B C0 64 AF [11:51:18]GetLastDocTimeStamp 1722167449 [11:51:18]current date 1722167487 [11:51:18]FM_GetShiftState [11:51:18]SAM_PROTO_GetShiftState [11:51:18]wFMCommunicate request_size=4 [11:51:18]MH_SAM_APDU [11:51:18]CAPDU: 80 13 01 00 [11:51:18]Write to MH i2c: E2 08 00 22 45 80 13 01 00 00 00 00 00 E4 [11:51:18]Write i2c OK [11:51:18]MH_I2C_Read... [11:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:18]Read from MH i2c: E2 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 0E 00 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 0E 00 22 45 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 21 [11:51:18]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:51:18]wFMCommunicate OK [11:51:18]SAM_PROTO_GetShiftState done [11:51:18]FM_GetShiftState done [11:51:18]opened in 1722127251 [11:51:18]opened+sec_in_day 1722213651 [11:51:18]quantity*price = 15000 [11:51:18]sum+1 = 15001 [11:51:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 75 28.07.2024 11:51 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69192 ФПД: 10040512680099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115127&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69192&fm=10040512680099&tin=02508201610067®Number=0000000000092638&sum=15000 0 [11:51:19]StoreToDocumentArchive [11:51:19]shift 429 fd 69192 [11:51:19]save to /storage/0429/doc_00069192 [11:51:19]save last doc name /storage/0429/doc_00069192 to /storage/kkm_last_doc_name [11:51:19]save OK [11:51:19]Clear old archive folders... [11:51:19]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:51:19]tlvbuf is 00AF98A0 [11:51:19]SAM_PROTO_ClearQueue [11:51:19]wFMCommunicate request_size=4 [11:51:19]MH_SAM_APDU [11:51:19]CAPDU: 80 09 00 00 [11:51:19]Write to MH i2c: E2 08 00 2F 45 80 09 00 00 00 00 00 00 E6 [11:51:19]Write i2c OK [11:51:19]MH_I2C_Read... [11:51:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:19]Read from MH i2c: E2 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 03 00 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 03 00 2F 45 00 90 00 E8 [11:51:19]RAPDU: 90 00 [11:51:19]wFMCommunicate OK [11:51:19]SAM_PROTO_ClearQueue done [11:51:19]KKMCreateOFDPacket [11:51:19]OFDProtocolAddRootSTLVToBuf [11:51:19]FM_MakeSignedData [11:51:19]FM_MakeSignedData [11:51:19]SAM_PROTO_SignData [11:51:19]wFMCommunicate request_size=4 [11:51:19]MH_SAM_APDU [11:51:19]CAPDU: 80 0D 01 02 [11:51:19]Write to MH i2c: E2 08 00 30 45 80 0D 01 02 00 00 00 00 EE [11:51:19]Write i2c OK [11:51:19]MH_I2C_Read... [11:51:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:19]Read from MH i2c: E2 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 03 00 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 03 00 30 45 00 90 00 E9 [11:51:19]RAPDU: 90 00 [11:51:19]wFMCommunicate OK [11:51:19]wFMCommunicate request_size=255 [11:51:19]MH_SAM_APDU [11:51:19]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 BF 30 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 [11:51:19]Write to MH i2c: E2 02 01 31 45 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 BF 30 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 00 00 FD [11:51:19]Write i2c OK [11:51:19]MH_I2C_Read... [11:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:20]Read from MH i2c: E2 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 31 45 00 90 00 EA [11:51:20]RAPDU: 90 00 [11:51:20]wFMCommunicate OK [11:51:20]wFMCommunicate request_size=33 [11:51:20]MH_SAM_APDU [11:51:20]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 34 39 10 04 04 00 48 0E 01 00 35 04 06 00 09 21 BD 31 10 A3 [11:51:20]Write to MH i2c: E2 24 00 32 45 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 34 39 10 04 04 00 48 0E 01 00 35 04 06 00 09 21 BD 31 10 A3 00 00 AB [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:20]Read from MH i2c: E2 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 32 45 00 90 00 EB [11:51:20]RAPDU: 90 00 [11:51:20]wFMCommunicate OK [11:51:20]wFMCommunicate request_size=4 [11:51:20]MH_SAM_APDU [11:51:20]CAPDU: 80 0D 03 02 [11:51:20]Write to MH i2c: E2 08 00 33 45 80 0D 03 02 00 00 00 00 F3 [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:20]Read from MH i2c: E2 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 0B 00 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 0B 00 33 45 00 5A 00 8D B5 02 9B 7D 4B 90 00 F5 [11:51:20]RAPDU: 5A 00 8D B5 02 9B 7D 4B 90 00 [11:51:20]wFMCommunicate OK [11:51:20]SAM_PROTO_SignData done [11:51:20]FM_MakeSignedData done [11:51:20]CreateOFDProtocolMessage [11:51:20]wFMCommunicate request_size=4 [11:51:20]MH_SAM_APDU [11:51:20]CAPDU: 80 11 00 00 [11:51:20]Write to MH i2c: E2 08 00 34 45 80 11 00 00 00 00 00 00 F3 [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:20]Read from MH i2c: E2 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 17 00 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 17 00 34 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 4F [11:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:51:20]wFMCommunicate OK [11:51:20]CreateOFDProtocolMessage done [11:51:20]OFDSenderStorePacket 69192 [11:51:20]StoreOFDPacket docnum=69192 [11:51:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 26 01 00 00 E6 F6 1E 01 55 9D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 BF 30 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 48 0E 01 00 35 04 06 00 09 21 BD 31 10 A3 5A 00 8D B5 02 9B 7D 4B [11:51:20]CheckFolder [11:51:20]dirname=/storage/ofd_packets [11:51:20]CheckFolder done [11:51:20]ProducePacketName [11:51:20]name=ofd_packets/00069192 [11:51:20]NVStorageSaveData ofd_packets/00069192 [11:51:20]File name is /storage/ofd_packets/00069192 [11:51:20]Write 324 bytes [11:51:20]NVStorageSaveData done [11:51:20]OFDSenderStorePacket done [11:51:20]KKMCreateOFDPacket done [11:51:20]NVStorageSaveData kkm_last_timestamp [11:51:20]File name is /storage/kkm_last_timestamp [11:51:20]Write 4 bytes [11:51:20]NVStorageSaveData done [11:51:20]ExternCall_PrintAddStr [11:51:20]wPrintStart [11:51:20]Write to MH i2c: 01 00 00 35 45 7A [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: 01 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: 01 07 00 [11:51:20]MH_I2C_Read... [11:51:20]OFD Sender: Processing packet 69192 [packets to send 19, broken 18] [11:51:20]ProducePacketName [11:51:20]name=ofd_packets/00069192 [11:51:20]OFD Sender: To server: pG, [11:51:20]CommunicateWithHost lk.salyk.kg:30040 [11:51:20]ConnectInit lk.salyk.kg [11:51:20]Read from MH i2c: 01 07 00 35 45 00 00 00 00 00 FF 0F 8F [11:51:20]RasterBufferAndPrint [11:51:20]line Счет N : (3)136566 [11:51:20]line ИНН: 02508201610067 [11:51:20]line Контрольно-Кассовый Чек [11:51:20]line ПРОДАЖА [11:51:20]line Товар: 46230614 [11:51:20]line Сигареты Richmond Red Edition [11:51:20]line 1.000 * 150.00 [11:51:20]line = 150.00 [11:51:20]line НДС 12% НСП 1% [11:51:20]line > о реализуемом товаре [11:51:20]line ИТОГО: 150.00 [11:51:20]line НСП 1% : 1.33 [11:51:20]line НДС 12% : 15.93 [11:51:20]line Наличными: 150.00 [11:51:20]line Безнал.: 0.00 [11:51:20]line Место: АЗС № 125 "Партнер Нефть" [11:51:20]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:51:20]line СНО: Общий режим [11:51:20]line Чек 75 28.07.2024 11:51 [11:51:20]line Смена: 429 ФФД: 1.0 [11:51:20]line ЗНМ: 0300000049 [11:51:20]line РНМ: 0000000000092638 [11:51:20]line Версия ККМ: 001 [11:51:20]line ФМ: 0000000000874949 [11:51:20]line ФД: 69192 [11:51:20]line ФПД: 10040512680099 [11:51:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115127&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69192&fm=10040512680099&tin=02508201610067®Number=0000000000092638&sum=15000 [11:51:20]line 0 [11:51:20]written 0, free lines is 4095 [11:51:20]Connected sock=10 [11:51: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 39 34 39 26 01 00 00 E6 F6 1E 01 55 9D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 BF 30 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 48 0E 01 00 35 04 06 00 09 21 BD 31 10 A3 5A 00 8D B5 02 9B 7D 4B [11:51:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 57 F1 47 00 50 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 48 0E 01 00 F4 03 04 00 2F D7 A5 66 B6 04 01 00 00 57 55 C8 DC 3D 99 9F DB [11:51:20]CommunicateWithHost err = 0 [11:51:20]CheckOFDResponse [11:51:20]1017 (14) - 77093643461234 [11:51:20]1041 (16) - 0000000000874949 [11:51:20]1040 (4) - 69192 [11:51:20]1012 (4) - 28.07.2024 05:29 [11:51:20]1206 (1) - 0 [11:51:20]OFD Sender: Remove packet 69192 [11:51:20]ProducePacketName [11:51:20]name=ofd_packets/00069192 [11:51:20]NVStorageDeleteData [11:51:20]Write to MH i2c: 01 00 00 5E 45 A3 [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: 01 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: 01 07 00 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: 01 07 00 5E 45 00 00 00 00 00 01 0D B8 [11:51:20]RasterBufferAndPrint [11:51:20]line [11:51:20]line [11:51:20]line [11:51:20]line [11:51:20]line [11:51:20]written 0, free lines is 3338 [11:51:20]MH_Cut [11:51:20]Write to MH i2c: D1 01 00 65 45 01 7C [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: D1 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: D1 01 00 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: D1 01 00 65 45 00 7B [11:51:20]Write to MH i2c: 01 00 00 66 45 AB [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:21]OFD Sender: No OFD packet to send [11:51:21]*** Cut start [11:51:21]*** Partial cut [11:51:21]*** CUTSNS_PIN = 1 [11:51:21]*** CUTSNS_PIN = 0 [11:51:21]*** Brake cut motor [11:51:22]Read from MH i2c: 01 [11:51:22]MH_I2C_Read... [11:51:22]*** Stop cut motor [11:51:22]*** Cut end [11:51:22]Read from MH i2c: 01 07 00 [11:51:22]MH_I2C_Read... [11:51:22]Read from MH i2c: 01 07 00 66 45 00 00 00 00 00 FF 0F C0 [11:51:22]process_action close_receipt done [11:51:22]requested_data is exist [11:51:22]produce_requested_data [11:51:22]requested_item fm.sn is exist - process it [11:51:22]wFMCommunicate request_size=4 [11:51:22]MH_SAM_APDU [11:51:22]CAPDU: 80 11 00 00 [11:51:22]Write to MH i2c: E2 08 00 67 45 80 11 00 00 00 00 00 00 26 [11:51:22]Write i2c OK [11:51:22]MH_I2C_Read... [11:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:22]Read from MH i2c: E2 [11:51:22]MH_I2C_Read... [11:51:22]Read from MH i2c: E2 17 00 [11:51:22]MH_I2C_Read... [11:51:22]Read from MH i2c: E2 17 00 67 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 82 [11:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:51:22]wFMCommunicate OK [11:51:22]requested_item fd.num is exist - process it [11:51:22]SAM_PROTO_GetFieldsCounters [11:51:22]wFMCommunicate request_size=4 [11:51:22]MH_SAM_APDU [11:51:22]CAPDU: 80 13 00 00 [11:51:22]Write to MH i2c: E2 08 00 68 45 80 13 00 00 00 00 00 00 29 [11:51:22]Write i2c OK [11:51:22]MH_I2C_Read... [11:51:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:22]Read from MH i2c: E2 [11:51:22]MH_I2C_Read... [11:51:22]Read from MH i2c: E2 62 00 [11:51:22]MH_I2C_Read... [11:51:22]Read from MH i2c: E2 62 00 68 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 48 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [11:51: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 48 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:22]wFMCommunicate OK [11:51:22]SAM_PROTO_GetFieldsCounters done [11:51:22]requested_item shift.num is exist - process it [11:51:22]requested_item shift.opened is exist - process it [11:51:22]req_shift_opened [11:51:22]FM_GetShiftState [11:51:22]SAM_PROTO_GetShiftState [11:51:22]wFMCommunicate request_size=4 [11:51:22]MH_SAM_APDU [11:51:22]CAPDU: 80 13 01 00 [11:51:22]Write to MH i2c: E2 08 00 69 45 80 13 01 00 00 00 00 00 2B [11:51:22]Write i2c OK [11:51:22]MH_I2C_Read... [11:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:22]Read from MH i2c: E2 [11:51:22]MH_I2C_Read... [11:51:22]Read from MH i2c: E2 0E 00 [11:51:22]MH_I2C_Read... [11:51:22]Read from MH i2c: E2 0E 00 69 45 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 68 [11:51:22]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:51:22]wFMCommunicate OK [11:51:22]SAM_PROTO_GetShiftState done [11:51:22]FM_GetShiftState done [11:51:22]req_shift_opened done [11:51:22]requested_item shift.open_date is exist - process it [11:51:22]req_shift_open_date [11:51:22]req_shift_open_date done [11:51:22]produce_requested_data done [11:51:22]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69192,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:51:22]process_action_free close_receipt [11:51:22]json_value_free [11:51:22]json_value_free done [11:51:22]process_json_proto returns [11:51:22]Send response to host [11:51:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69192,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:51:22]free response buf [11:51:22]execute_script done [11:51:22]execute_script returns [11:51:22]free content buf [11:51:22]Sock 7.Close socket [11:51:22]Sock 7.Thread stoped [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:16]accept exits with 9 [11:54:16]New connection [11:54:16]New thread 3066641764 created [11:54:16]Thread 3066785124 joined [11:54:16]Waiting for new connection... [11:54:16] Sock 9.Parse request [11:54:16]Sock 9.Check first char [11:54:16]Sock 9.First char is OK [11:54:16]request: POST /json_proto HTTP/1.0 [11:54:16]Method: POST [11:54:16]URL: /json_proto [11:54:16]Method is POST - this is cgi request [11:54:16]url: /json_proto [11:54:16]query_string will be loaded in cgi processing [11:54:16]execute_cgi json_proto POST (null) [11:54:16]execute_cgi path=json_proto method=POST [11:54:16]POST find Content-Length [11:54:16]Host: 172.17.49.132:8080 [11:54:16]Content-Length: 678 [11:54:16]Content-Type: application/json [11:54:16] [11:54:16]POST finish read [11:54:16]Found Content-Length = 678 [11:54:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:16]execute_script... [11:54:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:16]POST & json_proto [11:54:16]process_json_proto [11:54:16]json parsed OK: [11:54:16]protocol is kg_v1.0 [11:54:16]action value=close_receipt [11:54:16]process_action close_receipt [11:54:16]cmd_close_receipt [11:54:16]MH_GetDate [11:54:16]Write to MH i2c: F0 00 00 6A 45 9E [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: F0 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: F0 09 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: F0 09 00 6A 45 00 71 31 A6 66 E7 4B C0 64 AB [11:54:16]GetLastDocTimeStamp 1722167487 [11:54:16]current date 1722167665 [11:54:16]FM_GetShiftState [11:54:16]SAM_PROTO_GetShiftState [11:54:16]wFMCommunicate request_size=4 [11:54:16]MH_SAM_APDU [11:54:16]CAPDU: 80 13 01 00 [11:54:16]Write to MH i2c: E2 08 00 6B 45 80 13 01 00 00 00 00 00 2D [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:16]Read from MH i2c: E2 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 0E 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 0E 00 6B 45 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 6A [11:54:16]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:54:16]wFMCommunicate OK [11:54:16]SAM_PROTO_GetShiftState done [11:54:16]FM_GetShiftState done [11:54:16]opened in 1722127251 [11:54:16]opened+sec_in_day 1722213651 [11:54:16]quantity*price = 100016 [11:54:16]sum+1 = 100017 [11:54:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 76 28.07.2024 11:54 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69193 ФПД: 182106205776200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115425&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69193&fm=182106205776200&tin=02508201610067®Number=0000000000092638&sum=100000 [11:54:17]StoreToDocumentArchive [11:54:17]shift 429 fd 69193 [11:54:17]save to /storage/0429/doc_00069193 [11:54:17]save last doc name /storage/0429/doc_00069193 to /storage/kkm_last_doc_name [11:54:17]save OK [11:54:17]Clear old archive folders... [11:54:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:54:17]tlvbuf is 00ADB3E0 [11:54:17]SAM_PROTO_ClearQueue [11:54:17]wFMCommunicate request_size=4 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 09 00 00 [11:54:17]Write to MH i2c: E2 08 00 78 45 80 09 00 00 00 00 00 00 2F [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 78 45 00 90 00 31 [11:54:17]RAPDU: 90 00 [11:54:17]wFMCommunicate OK [11:54:17]SAM_PROTO_ClearQueue done [11:54:17]KKMCreateOFDPacket [11:54:17]OFDProtocolAddRootSTLVToBuf [11:54:17]FM_MakeSignedData [11:54:17]FM_MakeSignedData [11:54:17]SAM_PROTO_SignData [11:54:17]wFMCommunicate request_size=4 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 0D 01 02 [11:54:17]Write to MH i2c: E2 08 00 79 45 80 0D 01 02 00 00 00 00 37 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 79 45 00 90 00 32 [11:54:17]RAPDU: 90 00 [11:54:17]wFMCommunicate OK [11:54:17]wFMCommunicate request_size=255 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 4C 00 00 00 F4 03 04 00 71 31 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 49 0E 01 00 35 04 06 00 A5 9F E7 B4 [11:54:17]Write to MH i2c: E2 02 01 7A 45 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 4C 00 00 00 F4 03 04 00 71 31 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 49 0E 01 00 35 04 06 00 A5 9F E7 B4 00 00 C6 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:17]Read from MH i2c: E2 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: E2 03 00 7A 45 00 90 00 33 [11:54:17]RAPDU: 90 00 [11:54:17]wFMCommunicate OK [11:54:17]wFMCommunicate request_size=7 [11:54:17]MH_SAM_APDU [11:54:17]CAPDU: 80 0D 02 02 02 E9 48 [11:54:17]Write to MH i2c: E2 0A 00 7B 45 80 0D 02 02 02 00 E9 48 00 00 6F [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:18]Read from MH i2c: E2 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 03 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 03 00 7B 45 00 90 00 34 [11:54:18]RAPDU: 90 00 [11:54:18]wFMCommunicate OK [11:54:18]wFMCommunicate request_size=4 [11:54:18]MH_SAM_APDU [11:54:18]CAPDU: 80 0D 03 02 [11:54:18]Write to MH i2c: E2 08 00 7C 45 80 0D 03 02 00 00 00 00 3C [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:18]Read from MH i2c: E2 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 0B 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 0B 00 7C 45 00 B9 C7 D6 B3 65 85 C9 7F 90 00 78 [11:54:18]RAPDU: B9 C7 D6 B3 65 85 C9 7F 90 00 [11:54:18]wFMCommunicate OK [11:54:18]SAM_PROTO_SignData done [11:54:18]FM_MakeSignedData done [11:54:18]CreateOFDProtocolMessage [11:54:18]wFMCommunicate request_size=4 [11:54:18]MH_SAM_APDU [11:54:18]CAPDU: 80 11 00 00 [11:54:18]Write to MH i2c: E2 08 00 7D 45 80 11 00 00 00 00 00 00 3C [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:18]Read from MH i2c: E2 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 17 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 17 00 7D 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 98 [11:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:54:18]wFMCommunicate OK [11:54:18]CreateOFDProtocolMessage done [11:54:18]OFDSenderStorePacket 69193 [11:54:18]StoreOFDPacket docnum=69193 [11:54:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 CE 4A 04 01 96 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 4C 00 00 00 F4 03 04 00 71 31 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 49 0E 01 00 35 04 06 00 A5 9F E7 B4 E9 48 B9 C7 D6 B3 65 85 C9 7F [11:54:18]CheckFolder [11:54:18]dirname=/storage/ofd_packets [11:54:18]CheckFolder done [11:54:18]ProducePacketName [11:54:18]name=ofd_packets/00069193 [11:54:18]NVStorageSaveData ofd_packets/00069193 [11:54:18]File name is /storage/ofd_packets/00069193 [11:54:18]Write 298 bytes [11:54:18]NVStorageSaveData done [11:54:18]OFDSenderStorePacket done [11:54:18]KKMCreateOFDPacket done [11:54:18]NVStorageSaveData kkm_last_timestamp [11:54:18]File name is /storage/kkm_last_timestamp [11:54:18]Write 4 bytes [11:54:18]NVStorageSaveData done [11:54:18]ExternCall_PrintAddStr [11:54:18]wPrintStart [11:54:18]Write to MH i2c: 01 00 00 7E 45 C3 [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 07 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 07 00 7E 45 00 00 00 00 00 FF 0F D8 [11:54:18]RasterBufferAndPrint [11:54:18]line Счет N : (1)871851 [11:54:18]line ИНН: 02508201610067 [11:54:18]line Контрольно-Кассовый Чек [11:54:18]line ПРОДАЖА [11:54:18]line ТРК (МРК, ГНК) : 2 [11:54:18]line Товар: 2710194210 [11:54:18]line ДТ-К-5 [11:54:18]line 13.300 * 75.20 [11:54:18]line = 1000.16 [11:54:18]line НДС 12% НСП 1% [11:54:18]line > о реализуемом товаре [11:54:18]line ОКРУГЛЕНИЕ: -0.16 [11:54:18]line ИТОГО: 1000.00 [11:54:18]line Внесено: 1000.00 [11:54:18]line СДАЧА: 0.00 [11:54:18]line НСП 1% : 8.85 [11:54:18]line НДС 12% : 106.21 [11:54:18]line Наличными: 1000.00 [11:54:18]line Безнал.: 0.00 [11:54:18]line Место: АЗС № 125 "Партнер Нефть" [11:54:18]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:54:18]line СНО: Общий режим [11:54:18]line Чек 76 28.07.2024 11:54 [11:54:18]line Смена: 429 ФФД: 1.0 [11:54:18]line ЗНМ: 0300000049 [11:54:18]line РНМ: 0000000000092638 [11:54:18]line Версия ККМ: 001 [11:54:18]line ФМ: 0000000000874949 [11:54:18]line ФД: 69193 [11:54:18]line ФПД: 182106205776200 [11:54:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115425&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69193&fm=182106205776200&tin=02508201610067®Number=0000000000092638&sum=100000 [11:54:18]OFD Sender: Processing packet 69193 [packets to send 19, broken 18] [11:54:18]ProducePacketName [11:54:18]name=ofd_packets/00069193 [11:54:18]OFD Sender: To server: pG, [11:54:18]CommunicateWithHost lk.salyk.kg:30040 [11:54:18]ConnectInit lk.salyk.kg [11:54:18]written 0, free lines is 4095 [11:54:18]Connected sock=7 [11:54: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 39 34 39 0C 01 00 00 CE 4A 04 01 96 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 4C 00 00 00 F4 03 04 00 71 31 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 49 0E 01 00 35 04 06 00 A5 9F E7 B4 E9 48 B9 C7 D6 B3 65 85 C9 7F [11:54:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 15 5B 47 00 18 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 39 34 39 10 04 04 00 49 0E 01 00 F4 03 04 00 E1 D7 A5 66 B6 04 01 00 00 F2 6B 5C 2F A6 39 2F 7F [11:54:18]CommunicateWithHost err = 0 [11:54:18]CheckOFDResponse [11:54:18]1017 (14) - 77093643461234 [11:54:18]1041 (16) - 0000000000874949 [11:54:18]1040 (4) - 69193 [11:54:18]1012 (4) - 28.07.2024 05:32 [11:54:18]1206 (1) - 0 [11:54:18]OFD Sender: Remove packet 69193 [11:54:18]ProducePacketName [11:54:18]name=ofd_packets/00069193 [11:54:18]NVStorageDeleteData [11:54:18]Write to MH i2c: 01 00 00 A9 45 EE [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 07 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 07 00 A9 45 00 00 00 00 00 F0 0C F1 [11:54:18]RasterBufferAndPrint [11:54:18]line [11:54:18]line [11:54:18]line [11:54:18]line [11:54:18]line [11:54:18]written 0, free lines is 3318 [11:54:18]MH_Cut [11:54:18]Write to MH i2c: D1 01 00 B0 45 01 C7 [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: D1 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: D1 01 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: D1 01 00 B0 45 00 C6 [11:54:18]Write to MH i2c: 01 00 00 B1 45 F6 [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:19]OFD Sender: No OFD packet to send [11:54:19]*** Cut start [11:54:19]*** Partial cut [11:54:19]*** CUTSNS_PIN = 1 [11:54:19]*** CUTSNS_PIN = 0 [11:54:19]*** Brake cut motor [11:54:20]Read from MH i2c: 01 [11:54:20]MH_I2C_Read... [11:54:20]*** Stop cut motor [11:54:20]*** Cut end [11:54:20]Read from MH i2c: 01 07 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 07 00 B1 45 00 00 00 00 00 FF 0F 0B [11:54:20]process_action close_receipt done [11:54:20]requested_data is exist [11:54:20]produce_requested_data [11:54:20]requested_item fm.sn is exist - process it [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 11 00 00 [11:54:20]Write to MH i2c: E2 08 00 B2 45 80 11 00 00 00 00 00 00 71 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 17 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 17 00 B2 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 CD [11:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:54:20]wFMCommunicate OK [11:54:20]requested_item fd.num is exist - process it [11:54:20]SAM_PROTO_GetFieldsCounters [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 13 00 00 [11:54:20]Write to MH i2c: E2 08 00 B3 45 80 13 00 00 00 00 00 00 74 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 62 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 62 00 B3 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 49 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [11:54: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 49 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:20]wFMCommunicate OK [11:54:20]SAM_PROTO_GetFieldsCounters done [11:54:20]requested_item shift.num is exist - process it [11:54:20]requested_item shift.opened is exist - process it [11:54:20]req_shift_opened [11:54:20]FM_GetShiftState [11:54:20]SAM_PROTO_GetShiftState [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 13 01 00 [11:54:20]Write to MH i2c: E2 08 00 B4 45 80 13 01 00 00 00 00 00 76 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 0E 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 0E 00 B4 45 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 B3 [11:54:20]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:54:20]wFMCommunicate OK [11:54:20]SAM_PROTO_GetShiftState done [11:54:20]FM_GetShiftState done [11:54:20]req_shift_opened done [11:54:20]requested_item shift.open_date is exist - process it [11:54:20]req_shift_open_date [11:54:20]req_shift_open_date done [11:54:20]produce_requested_data done [11:54:20]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69193,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:54:20]process_action_free close_receipt [11:54:20]json_value_free [11:54:20]json_value_free done [11:54:20]process_json_proto returns [11:54:20]Send response to host [11:54:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69193,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:54:20]free response buf [11:54:20]execute_script done [11:54:20]execute_script returns [11:54:20]free content buf [11:54:20]Sock 9.Close socket [11:54:20]Sock 9.Thread stoped [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:31]accept exits with 10 [11:54:31]New connection [11:54:31]New thread 3066785124 created [11:54:31]Thread 3066641764 joined [11:54:31]Waiting for new connection... [11:54:31] Sock 10.Parse request [11:54:31]Sock 10.Check first char [11:54:31]Sock 10.First char is OK [11:54:31]request: POST /json_proto HTTP/1.0 [11:54:31]Method: POST [11:54:31]URL: /json_proto [11:54:31]Method is POST - this is cgi request [11:54:31]url: /json_proto [11:54:31]query_string will be loaded in cgi processing [11:54:31]execute_cgi json_proto POST (null) [11:54:31]execute_cgi path=json_proto method=POST [11:54:31]POST find Content-Length [11:54:31]Host: 172.17.49.132:8080 [11:54:31]Content-Length: 678 [11:54:31]Content-Type: application/json [11:54:31] [11:54:31]POST finish read [11:54:31]Found Content-Length = 678 [11:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:31]execute_script... [11:54:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:31]POST & json_proto [11:54:31]process_json_proto [11:54:31]json parsed OK: [11:54:31]protocol is kg_v1.0 [11:54:31]action value=close_receipt [11:54:31]process_action close_receipt [11:54:31]cmd_close_receipt [11:54:31]MH_GetDate [11:54:31]Write to MH i2c: F0 00 00 B5 45 E9 [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: F0 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: F0 09 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: F0 09 00 B5 45 00 80 31 A6 66 E7 4B C0 64 05 [11:54:31]GetLastDocTimeStamp 1722167665 [11:54:31]current date 1722167680 [11:54:31]FM_GetShiftState [11:54:31]SAM_PROTO_GetShiftState [11:54:31]wFMCommunicate request_size=4 [11:54:31]MH_SAM_APDU [11:54:31]CAPDU: 80 13 01 00 [11:54:31]Write to MH i2c: E2 08 00 B6 45 80 13 01 00 00 00 00 00 78 [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:31]Read from MH i2c: E2 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 0E 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: E2 0E 00 B6 45 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 B5 [11:54:31]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:54:31]wFMCommunicate OK [11:54:31]SAM_PROTO_GetShiftState done [11:54:31]FM_GetShiftState done [11:54:31]opened in 1722127251 [11:54:31]opened+sec_in_day 1722213651 [11:54:31]quantity*price = 70037 [11:54:31]sum+1 = 70038 [11:54:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 77 28.07.2024 11:54 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69194 ФПД: 169442291735475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115440&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69194&fm=169442291735475&tin=02508201610067®Number=0000000000092638&sum=70000 [11:54:32]StoreToDocumentArchive [11:54:32]shift 429 fd 69194 [11:54:32]save to /storage/0429/doc_00069194 [11:54:32]save last doc name /storage/0429/doc_00069194 to /storage/kkm_last_doc_name [11:54:32]save OK [11:54:32]Clear old archive folders... [11:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:32]tlvbuf is 00B14E30 [11:54:32]SAM_PROTO_ClearQueue [11:54:32]wFMCommunicate request_size=4 [11:54:32]MH_SAM_APDU [11:54:32]CAPDU: 80 09 00 00 [11:54:32]Write to MH i2c: E2 08 00 C3 45 80 09 00 00 00 00 00 00 7A [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:32]Read from MH i2c: E2 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: E2 03 00 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: E2 03 00 C3 45 00 90 00 7C [11:54:32]RAPDU: 90 00 [11:54:32]wFMCommunicate OK [11:54:32]SAM_PROTO_ClearQueue done [11:54:32]KKMCreateOFDPacket [11:54:32]OFDProtocolAddRootSTLVToBuf [11:54:32]FM_MakeSignedData [11:54:32]FM_MakeSignedData [11:54:32]SAM_PROTO_SignData [11:54:32]wFMCommunicate request_size=4 [11:54:32]MH_SAM_APDU [11:54:32]CAPDU: 80 0D 01 02 [11:54:32]Write to MH i2c: E2 08 00 C4 45 80 0D 01 02 00 00 00 00 82 [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:32]Read from MH i2c: E2 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: E2 03 00 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: E2 03 00 C4 45 00 90 00 7D [11:54:32]RAPDU: 90 00 [11:54:32]wFMCommunicate OK [11:54:32]wFMCommunicate request_size=255 [11:54:32]MH_SAM_APDU [11:54:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 80 31 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4A 0E 01 00 35 04 06 00 9A [11:54:32]Write to MH i2c: E2 02 01 C5 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 80 31 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4A 0E 01 00 35 04 06 00 9A 00 00 9F [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 03 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 03 00 C5 45 00 90 00 7E [11:54:33]RAPDU: 90 00 [11:54:33]wFMCommunicate OK [11:54:33]wFMCommunicate request_size=10 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 0D 02 02 05 1B 5B 9B DB B3 [11:54:33]Write to MH i2c: E2 0D 00 C6 45 80 0D 02 02 05 00 1B 5B 9B DB B3 00 00 2E [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 03 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 03 00 C6 45 00 90 00 7F [11:54:33]RAPDU: 90 00 [11:54:33]wFMCommunicate OK [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 0D 03 02 [11:54:33]Write to MH i2c: E2 08 00 C7 45 80 0D 03 02 00 00 00 00 87 [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 0B 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 0B 00 C7 45 00 C9 EC 69 FB 6D AC A9 18 90 00 7B [11:54:33]RAPDU: C9 EC 69 FB 6D AC A9 18 90 00 [11:54:33]wFMCommunicate OK [11:54:33]SAM_PROTO_SignData done [11:54:33]FM_MakeSignedData done [11:54:33]CreateOFDProtocolMessage [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 11 00 00 [11:54:33]Write to MH i2c: E2 08 00 C8 45 80 11 00 00 00 00 00 00 87 [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 17 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 17 00 C8 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E3 [11:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:54:33]wFMCommunicate OK [11:54:33]CreateOFDProtocolMessage done [11:54:33]OFDSenderStorePacket 69194 [11:54:33]StoreOFDPacket docnum=69194 [11:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 CA B2 07 01 25 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 80 31 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4A 0E 01 00 35 04 06 00 9A 1B 5B 9B DB B3 C9 EC 69 FB 6D AC A9 18 [11:54:33]CheckFolder [11:54:33]dirname=/storage/ofd_packets [11:54:33]CheckFolder done [11:54:33]ProducePacketName [11:54:33]name=ofd_packets/00069194 [11:54:33]NVStorageSaveData ofd_packets/00069194 [11:54:33]File name is /storage/ofd_packets/00069194 [11:54:33]Write 301 bytes [11:54:33]NVStorageSaveData done [11:54:33]OFDSenderStorePacket done [11:54:33]KKMCreateOFDPacket done [11:54:33]NVStorageSaveData kkm_last_timestamp [11:54:33]File name is /storage/kkm_last_timestamp [11:54:33]Write 4 bytes [11:54:33]NVStorageSaveData done [11:54:33]ExternCall_PrintAddStr [11:54:33]wPrintStart [11:54:33]Write to MH i2c: 01 00 00 C9 45 0E [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: 01 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: 01 07 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: 01 07 00 C9 45 00 00 00 00 00 FF 0F 23 [11:54:33]RasterBufferAndPrint [11:54:33]line Счет N : (1)871852 [11:54:33]line ИНН: 02508201610067 [11:54:33]line Контрольно-Кассовый Чек [11:54:33]line ПРОДАЖА [11:54:33]line ТРК (МРК, ГНК) : 42 [11:54:33]line Товар: 2710124130 [11:54:33]line Аи-92-К-5 [11:54:33]line 10.330 * 67.80 [11:54:33]line = 700.37 [11:54:33]line НДС 12% НСП 1% [11:54:33]line > о реализуемом товаре [11:54:33]line ОКРУГЛЕНИЕ: -0.37 [11:54:33]line ИТОГО: 700.00 [11:54:33]line Внесено: 700.00 [11:54:33]line СДАЧА: 0.00 [11:54:33]line НСП 1% : 6.20 [11:54:33]line НДС 12% : 74.38 [11:54:33]line Наличными: 700.00 [11:54:33]line Безнал.: 0.00 [11:54:33]line Место: АЗС № 125 "Партнер Нефть" [11:54:33]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:54:33]line СНО: Общий режим [11:54:33]line Чек 77 28.07.2024 11:54 [11:54:33]line Смена: 429 ФФД: 1.0 [11:54:33]line ЗНМ: 0300000049 [11:54:33]line РНМ: 0000000000092638 [11:54:33]line Версия ККМ: 001 [11:54:33]line ФМ: 0000000000874949 [11:54:33]line ФД: 69194 [11:54:33]line ФПД: 169442291735475 [11:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115440&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69194&fm=169442291735475&tin=02508201610067®Number=0000000000092638&sum=70000 [11:54:33]written 0, free lines is 4095 [11:54:33]OFD Sender: Processing packet 69194 [packets to send 19, broken 18] [11:54:33]ProducePacketName [11:54:33]name=ofd_packets/00069194 [11:54:33]OFD Sender: To server: pG, [11:54:33]CommunicateWithHost lk.salyk.kg:30040 [11:54:33]ConnectInit lk.salyk.kg [11:54:33]Connected sock=9 [11:54:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 CA B2 07 01 25 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 80 31 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4A 0E 01 00 35 04 06 00 9A 1B 5B 9B DB B3 C9 EC 69 FB 6D AC A9 18 [11:54:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 79 57 47 00 0C 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4A 0E 01 00 F4 03 04 00 F0 D7 A5 66 B6 04 01 00 00 84 22 C3 17 DD 45 87 8C [11:54:33]CommunicateWithHost err = 0 [11:54:33]CheckOFDResponse [11:54:33]1017 (14) - 77093643461234 [11:54:33]1041 (16) - 0000000000874949 [11:54:33]1040 (4) - 69194 [11:54:33]1012 (4) - 28.07.2024 05:32 [11:54:33]1206 (1) - 0 [11:54:33]OFD Sender: Remove packet 69194 [11:54:33]ProducePacketName [11:54:33]name=ofd_packets/00069194 [11:54:33]NVStorageDeleteData [11:54:34]Write to MH i2c: 01 00 00 F4 45 39 [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 07 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 07 00 F4 45 00 00 00 00 00 F1 0C 3D [11:54:34]RasterBufferAndPrint [11:54:34]line [11:54:34]line [11:54:34]line [11:54:34]line [11:54:34]line [11:54:34]written 0, free lines is 3322 [11:54:34]MH_Cut [11:54:34]Write to MH i2c: D1 01 00 FB 45 01 12 [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: D1 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: D1 01 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: D1 01 00 FB 45 00 11 [11:54:34]Write to MH i2c: 01 00 00 FC 45 41 [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]OFD Sender: No OFD packet to send [11:54:34]*** Cut start [11:54:34]*** Partial cut [11:54:34]*** CUTSNS_PIN = 1 [11:54:34]*** CUTSNS_PIN = 0 [11:54:34]*** Brake cut motor [11:54:35]Read from MH i2c: 01 [11:54:35]MH_I2C_Read... [11:54:35]*** Stop cut motor [11:54:35]*** Cut end [11:54:35]Read from MH i2c: 01 07 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: 01 07 00 FC 45 00 00 00 00 00 FF 0F 56 [11:54:35]process_action close_receipt done [11:54:35]requested_data is exist [11:54:35]produce_requested_data [11:54:35]requested_item fm.sn is exist - process it [11:54:35]wFMCommunicate request_size=4 [11:54:35]MH_SAM_APDU [11:54:35]CAPDU: 80 11 00 00 [11:54:35]Write to MH i2c: E2 08 00 FD 45 80 11 00 00 00 00 00 00 BC [11:54:35]Write i2c OK [11:54:35]MH_I2C_Read... [11:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:35]Read from MH i2c: E2 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 17 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 17 00 FD 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 18 [11:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:54:35]wFMCommunicate OK [11:54:35]requested_item fd.num is exist - process it [11:54:35]SAM_PROTO_GetFieldsCounters [11:54:35]wFMCommunicate request_size=4 [11:54:35]MH_SAM_APDU [11:54:35]CAPDU: 80 13 00 00 [11:54:35]Write to MH i2c: E2 08 00 FE 45 80 13 00 00 00 00 00 00 BF [11:54:35]Write i2c OK [11:54:35]MH_I2C_Read... [11:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:35]Read from MH i2c: E2 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 62 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 62 00 FE 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 4A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [11:54:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 4A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:35]wFMCommunicate OK [11:54:35]SAM_PROTO_GetFieldsCounters done [11:54:35]requested_item shift.num is exist - process it [11:54:35]requested_item shift.opened is exist - process it [11:54:35]req_shift_opened [11:54:35]FM_GetShiftState [11:54:35]SAM_PROTO_GetShiftState [11:54:35]wFMCommunicate request_size=4 [11:54:35]MH_SAM_APDU [11:54:35]CAPDU: 80 13 01 00 [11:54:35]Write to MH i2c: E2 08 00 FF 45 80 13 01 00 00 00 00 00 C1 [11:54:35]Write i2c OK [11:54:35]MH_I2C_Read... [11:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:35]Read from MH i2c: E2 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 0E 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 0E 00 FF 45 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 FE [11:54:35]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:54:35]wFMCommunicate OK [11:54:35]SAM_PROTO_GetShiftState done [11:54:35]FM_GetShiftState done [11:54:35]req_shift_opened done [11:54:35]requested_item shift.open_date is exist - process it [11:54:35]req_shift_open_date [11:54:35]req_shift_open_date done [11:54:35]produce_requested_data done [11:54:35]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69194,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:54:35]process_action_free close_receipt [11:54:35]json_value_free [11:54:35]json_value_free done [11:54:35]process_json_proto returns [11:54:35]Send response to host [11:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69194,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:54:35]free response buf [11:54:35]execute_script done [11:54:35]execute_script returns [11:54:35]free content buf [11:54:35]Sock 10.Close socket [11:54:35]Sock 10.Thread stoped [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:48]accept exits with 7 [11:54:48]New connection [11:54:48]New thread 3066641764 created [11:54:48]Thread 3066785124 joined [11:54:48]Waiting for new connection... [11:54:48] Sock 7.Parse request [11:54:48]Sock 7.Check first char [11:54:48]Sock 7.First char is OK [11:54:48]request: POST /json_proto HTTP/1.0 [11:54:48]Method: POST [11:54:48]URL: /json_proto [11:54:48]Method is POST - this is cgi request [11:54:48]url: /json_proto [11:54:48]query_string will be loaded in cgi processing [11:54:48]execute_cgi json_proto POST (null) [11:54:48]execute_cgi path=json_proto method=POST [11:54:48]POST find Content-Length [11:54:48]Host: 172.17.49.132:8080 [11:54:48]Content-Length: 734 [11:54:48]Content-Type: application/json [11:54:48] [11:54:48]POST finish read [11:54:48]Found Content-Length = 734 [11:54:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69194, "base_FM": "0000000000874949", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:48]execute_script... [11:54:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69194, "base_FM": "0000000000874949", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:48]POST & json_proto [11:54:48]process_json_proto [11:54:48]json parsed OK: [11:54:48]protocol is kg_v1.0 [11:54:48]action value=close_receipt [11:54:48]process_action close_receipt [11:54:48]cmd_close_receipt [11:54:48]MH_GetDate [11:54:48]Write to MH i2c: F0 00 00 00 46 35 [11:54:48]Write i2c OK [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: F0 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: F0 09 00 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: F0 09 00 00 46 00 91 31 A6 66 E7 4B C0 64 62 [11:54:48]GetLastDocTimeStamp 1722167680 [11:54:48]current date 1722167697 [11:54:48]FM_GetShiftState [11:54:48]SAM_PROTO_GetShiftState [11:54:48]wFMCommunicate request_size=4 [11:54:48]MH_SAM_APDU [11:54:48]CAPDU: 80 13 01 00 [11:54:48]Write to MH i2c: E2 08 00 01 46 80 13 01 00 00 00 00 00 C4 [11:54:48]Write i2c OK [11:54:48]MH_I2C_Read... [11:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:48]Read from MH i2c: E2 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: E2 0E 00 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: E2 0E 00 01 46 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 01 [11:54:48]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:54:48]wFMCommunicate OK [11:54:48]SAM_PROTO_GetShiftState done [11:54:48]FM_GetShiftState done [11:54:48]opened in 1722127251 [11:54:48]opened+sec_in_day 1722213651 [11:54:48]quantity*price = 70037 [11:54:48]sum+1 = 70038 [11:54:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 78 28.07.2024 11:54 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФД осн.: 69194 ФМ осн.: 0000000000874949 ФМ: 0000000000874949 ФД: 69195 ФПД: 52526086530844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115457&type=2&operation_type=1&fn_number=0000000000874949&fd_number=69195&fm=52526086530844&tin=02508201610067®Number=0000000000092638&sum=70000 [11:54:49]StoreToDocumentArchive [11:54:49]shift 429 fd 69195 [11:54:49]save to /storage/0429/doc_00069195 [11:54:49]save last doc name /storage/0429/doc_00069195 to /storage/kkm_last_doc_name [11:54:49]save OK [11:54:49]Clear old archive folders... [11:54:49]ProcessDocumentItem done err = 0, tmpTLVsize=279 [11:54:49]tlvbuf is 00A48E20 [11:54:49]SAM_PROTO_ClearQueue [11:54:49]wFMCommunicate request_size=4 [11:54:49]MH_SAM_APDU [11:54:49]CAPDU: 80 09 00 00 [11:54:49]Write to MH i2c: E2 08 00 10 46 80 09 00 00 00 00 00 00 C8 [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:49]Read from MH i2c: E2 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 03 00 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 03 00 10 46 00 90 00 CA [11:54:49]RAPDU: 90 00 [11:54:49]wFMCommunicate OK [11:54:49]SAM_PROTO_ClearQueue done [11:54:49]KKMCreateOFDPacket [11:54:49]OFDProtocolAddRootSTLVToBuf [11:54:49]FM_MakeSignedData [11:54:49]FM_MakeSignedData [11:54:49]SAM_PROTO_SignData [11:54:49]wFMCommunicate request_size=4 [11:54:49]MH_SAM_APDU [11:54:49]CAPDU: 80 0D 01 02 [11:54:49]Write to MH i2c: E2 08 00 11 46 80 0D 01 02 00 00 00 00 D0 [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:49]Read from MH i2c: E2 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 03 00 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 03 00 11 46 00 90 00 CB [11:54:49]RAPDU: 90 00 [11:54:49]wFMCommunicate OK [11:54:49]wFMCommunicate request_size=255 [11:54:49]MH_SAM_APDU [11:54:49]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 91 31 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 27 04 04 00 4A 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 11 04 10 00 30 [11:54:49]Write to MH i2c: E2 02 01 12 46 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 91 31 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 27 04 04 00 4A 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 11 04 10 00 30 00 00 C7 [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 12 46 00 90 00 CC [11:54:50]RAPDU: 90 00 [11:54:50]wFMCommunicate OK [11:54:50]wFMCommunicate request_size=38 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4B 0E 01 00 35 04 06 00 2F C5 AE BA A7 1C [11:54:50]Write to MH i2c: E2 29 00 13 46 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4B 0E 01 00 35 04 06 00 2F C5 AE BA A7 1C 00 00 DE [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 13 46 00 90 00 CD [11:54:50]RAPDU: 90 00 [11:54:50]wFMCommunicate OK [11:54:50]wFMCommunicate request_size=4 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 0D 03 02 [11:54:50]Write to MH i2c: E2 08 00 14 46 80 0D 03 02 00 00 00 00 D5 [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 0B 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 0B 00 14 46 00 3E 53 A6 4A B2 DC 23 27 90 00 2F [11:54:50]RAPDU: 3E 53 A6 4A B2 DC 23 27 90 00 [11:54:50]wFMCommunicate OK [11:54:50]SAM_PROTO_SignData done [11:54:50]FM_MakeSignedData done [11:54:50]CreateOFDProtocolMessage [11:54:50]wFMCommunicate request_size=4 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 11 00 00 [11:54:50]Write to MH i2c: E2 08 00 15 46 80 11 00 00 00 00 00 00 D5 [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 17 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 17 00 15 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 31 [11:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:54:50]wFMCommunicate OK [11:54:50]CreateOFDProtocolMessage done [11:54:50]OFDSenderStorePacket 69195 [11:54:50]StoreOFDPacket docnum=69195 [11:54:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2B 01 00 00 D8 5A 23 01 F7 3C 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 91 31 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 27 04 04 00 4A 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4B 0E 01 00 35 04 06 00 2F C5 AE BA A7 1C 3E 53 A6 4A B2 DC 23 27 [11:54:50]CheckFolder [11:54:50]dirname=/storage/ofd_packets [11:54:50]CheckFolder done [11:54:50]ProducePacketName [11:54:50]name=ofd_packets/00069195 [11:54:50]NVStorageSaveData ofd_packets/00069195 [11:54:50]File name is /storage/ofd_packets/00069195 [11:54:50]Write 329 bytes [11:54:50]NVStorageSaveData done [11:54:50]OFDSenderStorePacket done [11:54:50]KKMCreateOFDPacket done [11:54:50]NVStorageSaveData kkm_last_timestamp [11:54:50]File name is /storage/kkm_last_timestamp [11:54:50]Write 4 bytes [11:54:50]NVStorageSaveData done [11:54:50]ExternCall_PrintAddStr [11:54:50]wPrintStart [11:54:50]Write to MH i2c: 01 00 00 16 46 5C [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: 01 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: 01 07 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: 01 07 00 16 46 00 00 00 00 00 FF 0F 71 [11:54:50]RasterBufferAndPrint [11:54:50]line Счет N : (1)871852 [11:54:50]line ИНН: 02508201610067 [11:54:50]line Контрольно-Кассовый Чек [11:54:50]line ВОЗВРАТ ПРОДАЖИ [11:54:50]line ТРК (МРК, ГНК) : 42 [11:54:50]line Товар: 2710124130 [11:54:50]line Аи-92-К-5 [11:54:50]line 10.330 * 67.80 [11:54:50]line = 700.37 [11:54:50]line НДС 12% НСП 1% [11:54:50]line > о реализуемом товаре [11:54:50]line ОКРУГЛЕНИЕ: -0.37 [11:54:50]line ИТОГО: 700.00 [11:54:50]line НСП 1% : 6.20 [11:54:50]line НДС 12% : 74.38 [11:54:50]line Наличными: 700.00 [11:54:50]line Безнал.: 0.00 [11:54:50]line Место: АЗС № 125 "Партнер Нефть" [11:54:50]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:54:50]line СНО: Общий режим [11:54:50]line Чек 78 28.07.2024 11:54 [11:54:50]line Смена: 429 ФФД: 1.0 [11:54:50]line ЗНМ: 0300000049 [11:54:50]line РНМ: 0000000000092638 [11:54:50]line Версия ККМ: 001 [11:54:50]line ФД осн.: 69194 [11:54:50]line ФМ осн.: 0000000000874949 [11:54:50]line ФМ: 0000000000874949 [11:54:50]line ФД: 69195 [11:54:50]line ФПД: 52526086530844 [11:54:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115457&type=2&operation_type=1&fn_number=0000000000874949&fd_number=69195&fm=52526086530844&tin=02508201610067®Number=0000000000092638&sum=70000 [11:54:50]OFD Sender: Processing packet 69195 [packets to send 19, broken 18] [11:54:50]ProducePacketName [11:54:50]name=ofd_packets/00069195 [11:54:50]OFD Sender: To server: pG, [11:54:50]CommunicateWithHost lk.salyk.kg:30040 [11:54:50]ConnectInit lk.salyk.kg [11:54:50]written 0, free lines is 4095 [11:54:50]Connected sock=10 [11:54: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 39 34 39 2B 01 00 00 D8 5A 23 01 F7 3C 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 91 31 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 27 04 04 00 4A 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4B 0E 01 00 35 04 06 00 2F C5 AE BA A7 1C 3E 53 A6 4A B2 DC 23 27 [11:54:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 7C 5D 47 00 55 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 39 34 39 10 04 04 00 4B 0E 01 00 F4 03 04 00 01 D8 A5 66 B6 04 01 00 00 C8 4F CD E8 70 A8 FE BF [11:54:51]CommunicateWithHost err = 0 [11:54:51]CheckOFDResponse [11:54:51]1017 (14) - 77093643461234 [11:54:51]1041 (16) - 0000000000874949 [11:54:51]1040 (4) - 69195 [11:54:51]1012 (4) - 28.07.2024 05:32 [11:54:51]1206 (1) - 0 [11:54:51]OFD Sender: Remove packet 69195 [11:54:51]ProducePacketName [11:54:51]name=ofd_packets/00069195 [11:54:51]NVStorageDeleteData [11:54:51]Write to MH i2c: 01 00 00 41 46 87 [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 07 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 07 00 41 46 00 00 00 00 00 FE 0C 98 [11:54:51]RasterBufferAndPrint [11:54:51]line [11:54:51]line [11:54:51]line [11:54:51]line [11:54:51]line [11:54:51]written 0, free lines is 3334 [11:54:51]MH_Cut [11:54:51]Write to MH i2c: D1 01 00 48 46 01 60 [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: D1 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: D1 01 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: D1 01 00 48 46 00 5F [11:54:51]Write to MH i2c: 01 00 00 49 46 8F [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]OFD Sender: No OFD packet to send [11:54:51]*** Cut start [11:54:51]*** Partial cut [11:54:51]*** CUTSNS_PIN = 1 [11:54:51]*** CUTSNS_PIN = 0 [11:54:52]*** Brake cut motor [11:54:52]Read from MH i2c: 01 [11:54:52]MH_I2C_Read... [11:54:52]*** Stop cut motor [11:54:52]*** Cut end [11:54:52]Read from MH i2c: 01 07 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: 01 07 00 49 46 00 00 00 00 00 FF 0F A4 [11:54:52]process_action close_receipt done [11:54:52]requested_data is exist [11:54:52]produce_requested_data [11:54:52]requested_item fm.sn is exist - process it [11:54:52]wFMCommunicate request_size=4 [11:54:52]MH_SAM_APDU [11:54:52]CAPDU: 80 11 00 00 [11:54:52]Write to MH i2c: E2 08 00 4A 46 80 11 00 00 00 00 00 00 0A [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:52]Read from MH i2c: E2 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 17 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 17 00 4A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 66 [11:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:54:52]wFMCommunicate OK [11:54:52]requested_item fd.num is exist - process it [11:54:52]SAM_PROTO_GetFieldsCounters [11:54:52]wFMCommunicate request_size=4 [11:54:52]MH_SAM_APDU [11:54:52]CAPDU: 80 13 00 00 [11:54:52]Write to MH i2c: E2 08 00 4B 46 80 13 00 00 00 00 00 00 0D [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:52]Read from MH i2c: E2 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 62 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 62 00 4B 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 4B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [11:54: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 4B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:52]wFMCommunicate OK [11:54:52]SAM_PROTO_GetFieldsCounters done [11:54:52]requested_item shift.num is exist - process it [11:54:52]requested_item shift.opened is exist - process it [11:54:52]req_shift_opened [11:54:52]FM_GetShiftState [11:54:52]SAM_PROTO_GetShiftState [11:54:52]wFMCommunicate request_size=4 [11:54:52]MH_SAM_APDU [11:54:52]CAPDU: 80 13 01 00 [11:54:52]Write to MH i2c: E2 08 00 4C 46 80 13 01 00 00 00 00 00 0F [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:52]Read from MH i2c: E2 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 0E 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 0E 00 4C 46 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 4C [11:54:52]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:54:52]wFMCommunicate OK [11:54:52]SAM_PROTO_GetShiftState done [11:54:52]FM_GetShiftState done [11:54:52]req_shift_opened done [11:54:52]requested_item shift.open_date is exist - process it [11:54:52]req_shift_open_date [11:54:52]req_shift_open_date done [11:54:52]produce_requested_data done [11:54:52]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69195,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:54:52]process_action_free close_receipt [11:54:52]json_value_free [11:54:52]json_value_free done [11:54:52]process_json_proto returns [11:54:52]Send response to host [11:54:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69195,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:54:52]free response buf [11:54:52]execute_script done [11:54:52]execute_script returns [11:54:52]free content buf [11:54:52]Sock 7.Close socket [11:54:52]Sock 7.Thread stoped [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:07]accept exits with 9 [11:57:07]New connection [11:57:07]New thread 3066785124 created [11:57:07]Thread 3066641764 joined [11:57:07]Waiting for new connection... [11:57:07] Sock 9.Parse request [11:57:07]Sock 9.Check first char [11:57:07]Sock 9.First char is OK [11:57:07]request: POST /json_proto HTTP/1.0 [11:57:07]Method: POST [11:57:07]URL: /json_proto [11:57:07]Method is POST - this is cgi request [11:57:07]url: /json_proto [11:57:07]query_string will be loaded in cgi processing [11:57:07]execute_cgi json_proto POST (null) [11:57:07]execute_cgi path=json_proto method=POST [11:57:07]POST find Content-Length [11:57:07]Host: 172.17.49.132:8080 [11:57:07]Content-Length: 772 [11:57:07]Content-Type: application/json [11:57:07] [11:57:07]POST finish read [11:57:07]Found Content-Length = 772 [11:57:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136567", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:07]execute_script... [11:57:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136567", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:07]POST & json_proto [11:57:07]process_json_proto [11:57:07]json parsed OK: [11:57:07]protocol is kg_v1.0 [11:57:07]action value=close_receipt [11:57:07]process_action close_receipt [11:57:07]cmd_close_receipt [11:57:07]MH_GetDate [11:57:07]Write to MH i2c: F0 00 00 4D 46 82 [11:57:07]Write i2c OK [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: F0 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: F0 09 00 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: F0 09 00 4D 46 00 1C 32 A6 66 E7 4B C0 64 3B [11:57:07]GetLastDocTimeStamp 1722167697 [11:57:07]current date 1722167836 [11:57:07]FM_GetShiftState [11:57:07]SAM_PROTO_GetShiftState [11:57:07]wFMCommunicate request_size=4 [11:57:07]MH_SAM_APDU [11:57:07]CAPDU: 80 13 01 00 [11:57:07]Write to MH i2c: E2 08 00 4E 46 80 13 01 00 00 00 00 00 11 [11:57:07]Write i2c OK [11:57:07]MH_I2C_Read... [11:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:07]Read from MH i2c: E2 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 0E 00 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 0E 00 4E 46 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 4E [11:57:07]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:57:07]wFMCommunicate OK [11:57:07]SAM_PROTO_GetShiftState done [11:57:07]FM_GetShiftState done [11:57:07]opened in 1722127251 [11:57:07]opened+sec_in_day 1722213651 [11:57:07]quantity*price = 6000 [11:57:07]sum+1 = 6001 [11:57:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 79 28.07.2024 11:57 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874949 ФД: 69196 ФПД: 13295270779716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115716&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69196&fm=13295270779716&tin=02508201610067®Number=0000000000092638&sum=6000 0 [11:57:08]StoreToDocumentArchive [11:57:08]shift 429 fd 69196 [11:57:08]save to /storage/0429/doc_00069196 [11:57:08]save last doc name /storage/0429/doc_00069196 to /storage/kkm_last_doc_name [11:57:08]save OK [11:57:08]Clear old archive folders... [11:57:08]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:57:08]tlvbuf is 00B6A220 [11:57:08]SAM_PROTO_ClearQueue [11:57:08]wFMCommunicate request_size=4 [11:57:08]MH_SAM_APDU [11:57:08]CAPDU: 80 09 00 00 [11:57:08]Write to MH i2c: E2 08 00 5B 46 80 09 00 00 00 00 00 00 13 [11:57:08]Write i2c OK [11:57:08]MH_I2C_Read... [11:57:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:08]Read from MH i2c: E2 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: E2 03 00 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: E2 03 00 5B 46 00 90 00 15 [11:57:08]RAPDU: 90 00 [11:57:08]wFMCommunicate OK [11:57:08]SAM_PROTO_ClearQueue done [11:57:08]KKMCreateOFDPacket [11:57:08]OFDProtocolAddRootSTLVToBuf [11:57:08]FM_MakeSignedData [11:57:08]FM_MakeSignedData [11:57:08]SAM_PROTO_SignData [11:57:08]wFMCommunicate request_size=4 [11:57:08]MH_SAM_APDU [11:57:08]CAPDU: 80 0D 01 02 [11:57:08]Write to MH i2c: E2 08 00 5C 46 80 0D 01 02 00 00 00 00 1B [11:57:08]Write i2c OK [11:57:08]MH_I2C_Read... [11:57:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:08]Read from MH i2c: E2 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: E2 03 00 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: E2 03 00 5C 46 00 90 00 16 [11:57:08]RAPDU: 90 00 [11:57:08]wFMCommunicate OK [11:57:08]wFMCommunicate request_size=255 [11:57:08]MH_SAM_APDU [11:57:08]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 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 31 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 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 1C 32 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 [11:57:08]Write to MH i2c: E2 02 01 5D 46 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 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 31 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 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 1C 32 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 00 00 B0 [11:57:08]Write i2c OK [11:57:08]MH_I2C_Read... [11:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:09]Read from MH i2c: E2 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 03 00 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 03 00 5D 46 00 90 00 17 [11:57:09]RAPDU: 90 00 [11:57:09]wFMCommunicate OK [11:57:09]wFMCommunicate request_size=35 [11:57:09]MH_SAM_APDU [11:57:09]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4C 0E 01 00 35 04 06 00 0C 17 8B E4 5B 44 [11:57:09]Write to MH i2c: E2 26 00 5E 46 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4C 0E 01 00 35 04 06 00 0C 17 8B E4 5B 44 00 00 A6 [11:57:09]Write i2c OK [11:57:09]MH_I2C_Read... [11:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:09]Read from MH i2c: E2 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 03 00 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 03 00 5E 46 00 90 00 18 [11:57:09]RAPDU: 90 00 [11:57:09]wFMCommunicate OK [11:57:09]wFMCommunicate request_size=4 [11:57:09]MH_SAM_APDU [11:57:09]CAPDU: 80 0D 03 02 [11:57:09]Write to MH i2c: E2 08 00 5F 46 80 0D 03 02 00 00 00 00 20 [11:57:09]Write i2c OK [11:57:09]MH_I2C_Read... [11:57:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:09]Read from MH i2c: E2 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 0B 00 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 0B 00 5F 46 00 5B C7 2F 51 04 F1 41 6A 90 00 63 [11:57:09]RAPDU: 5B C7 2F 51 04 F1 41 6A 90 00 [11:57:09]wFMCommunicate OK [11:57:09]SAM_PROTO_SignData done [11:57:09]FM_MakeSignedData done [11:57:09]CreateOFDProtocolMessage [11:57:09]wFMCommunicate request_size=4 [11:57:09]MH_SAM_APDU [11:57:09]CAPDU: 80 11 00 00 [11:57:09]Write to MH i2c: E2 08 00 60 46 80 11 00 00 00 00 00 00 20 [11:57:09]Write i2c OK [11:57:09]MH_I2C_Read... [11:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:09]Read from MH i2c: E2 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 17 00 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: E2 17 00 60 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 7C [11:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:57:09]wFMCommunicate OK [11:57:09]CreateOFDProtocolMessage done [11:57:09]OFDSenderStorePacket 69196 [11:57:09]StoreOFDPacket docnum=69196 [11:57:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 28 01 00 00 5B C4 20 01 BB 07 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 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 31 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 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 1C 32 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4C 0E 01 00 35 04 06 00 0C 17 8B E4 5B 44 5B C7 2F 51 04 F1 41 6A [11:57:09]CheckFolder [11:57:09]dirname=/storage/ofd_packets [11:57:09]CheckFolder done [11:57:09]ProducePacketName [11:57:09]name=ofd_packets/00069196 [11:57:09]NVStorageSaveData ofd_packets/00069196 [11:57:09]File name is /storage/ofd_packets/00069196 [11:57:09]Write 326 bytes [11:57:09]NVStorageSaveData done [11:57:09]OFDSenderStorePacket done [11:57:09]KKMCreateOFDPacket done [11:57:09]NVStorageSaveData kkm_last_timestamp [11:57:09]File name is /storage/kkm_last_timestamp [11:57:09]Write 4 bytes [11:57:09]NVStorageSaveData done [11:57:09]ExternCall_PrintAddStr [11:57:09]wPrintStart [11:57:09]Write to MH i2c: 01 00 00 61 46 A7 [11:57:09]Write i2c OK [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: 01 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: 01 07 00 [11:57:09]MH_I2C_Read... [11:57:09]Read from MH i2c: 01 07 00 61 46 00 00 00 00 00 FF 0F BC [11:57:09]RasterBufferAndPrint [11:57:09]line Счет N : (3)136567 [11:57:09]line ИНН: 02508201610067 [11:57:09]line Контрольно-Кассовый Чек [11:57:09]line ПРОДАЖА [11:57:09]line Товар: 4700000310043 [11:57:09]line Вода Жалалабат 27 1л [11:57:09]line 1.000 * 60.00 [11:57:09]line = 60.00 [11:57:09]line НДС 12% НСП 1% [11:57:09]line > о реализуемом товаре [11:57:09]line ИТОГО: 60.00 [11:57:09]line НСП 1% : 0.53 [11:57:09]line НДС 12% : 6.37 [11:57:09]line Наличными: 0.00 [11:57:09]line Безнал.: 60.00 [11:57:09]line Место: АЗС № 125 "Партнер Нефть" [11:57:09]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:57:09]line СНО: Общий режим [11:57:09]line Чек 79 28.07.2024 11:57 [11:57:09]line Смена: 429 ФФД: 1.0 [11:57:09]line ЗНМ: 0300000049 [11:57:09]line РНМ: 0000000000092638 [11:57:09]line Версия ККМ: 001 [11:57:09]line Платежная система: Mbank [11:57:09]line ФМ: 0000000000874949 [11:57:09]line ФД: 69196 [11:57:09]line ФПД: 13295270779716 [11:57:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115716&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69196&fm=13295270779716&tin=02508201610067®Number=0000000000092638&sum=6000 [11:57:09]OFD Sender: Processing packet 69196 [packets to send 19, broken 18] [11:57:09]ProducePacketName [11:57:09]name=ofd_packets/00069196 [11:57:09]OFD Sender: To server: pG, [11:57:09]CommunicateWithHost lk.salyk.kg:30040 [11:57:09]ConnectInit lk.salyk.kg [11:57:09]line 0 [11:57:09]written 0, free lines is 4095 [11:57:09]Connected sock=10 [11:57: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 39 34 39 28 01 00 00 5B C4 20 01 BB 07 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 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 31 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 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 1C 32 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4C 0E 01 00 35 04 06 00 0C 17 8B E4 5B 44 5B C7 2F 51 04 F1 41 6A [11:57:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 95 A0 47 00 4D 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 39 34 39 10 04 04 00 4C 0E 01 00 F4 03 04 00 8C D8 A5 66 B6 04 01 00 00 C5 1B 05 DE 41 25 C0 FC [11:57:09]CommunicateWithHost err = 0 [11:57:09]CheckOFDResponse [11:57:09]1017 (14) - 77093643461234 [11:57:09]1041 (16) - 0000000000874949 [11:57:09]1040 (4) - 69196 [11:57:09]1012 (4) - 28.07.2024 05:35 [11:57:09]1206 (1) - 0 [11:57:09]OFD Sender: Remove packet 69196 [11:57:09]ProducePacketName [11:57:09]name=ofd_packets/00069196 [11:57:09]NVStorageDeleteData [11:57:10]Write to MH i2c: 01 00 00 8A 46 D0 [11:57:10]Write i2c OK [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: 01 [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: 01 07 00 [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: 01 07 00 8A 46 00 00 00 00 00 29 0D 0D [11:57:10]RasterBufferAndPrint [11:57:10]line [11:57:10]line [11:57:10]line [11:57:10]line [11:57:10]line [11:57:10]written 0, free lines is 3378 [11:57:10]MH_Cut [11:57:10]Write to MH i2c: D1 01 00 91 46 01 A9 [11:57:10]Write i2c OK [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: D1 [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: D1 01 00 [11:57:10]MH_I2C_Read... [11:57:10]Read from MH i2c: D1 01 00 91 46 00 A8 [11:57:10]Write to MH i2c: 01 00 00 92 46 D8 [11:57:10]Write i2c OK [11:57:10]MH_I2C_Read... [11:57:10]OFD Sender: No OFD packet to send [11:57:10]*** Cut start [11:57:10]*** Partial cut [11:57:10]*** CUTSNS_PIN = 1 [11:57:10]*** CUTSNS_PIN = 0 [11:57:10]*** Brake cut motor [11:57:11]Read from MH i2c: 01 [11:57:11]MH_I2C_Read... [11:57:11]*** Stop cut motor [11:57:11]*** Cut end [11:57:11]Read from MH i2c: 01 07 00 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: 01 07 00 92 46 00 00 00 00 00 FF 0F ED [11:57:11]process_action close_receipt done [11:57:11]requested_data is exist [11:57:11]produce_requested_data [11:57:11]requested_item fm.sn is exist - process it [11:57:11]wFMCommunicate request_size=4 [11:57:11]MH_SAM_APDU [11:57:11]CAPDU: 80 11 00 00 [11:57:11]Write to MH i2c: E2 08 00 93 46 80 11 00 00 00 00 00 00 53 [11:57:11]Write i2c OK [11:57:11]MH_I2C_Read... [11:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:11]Read from MH i2c: E2 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 17 00 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 17 00 93 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AF [11:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:57:11]wFMCommunicate OK [11:57:11]requested_item fd.num is exist - process it [11:57:11]SAM_PROTO_GetFieldsCounters [11:57:11]wFMCommunicate request_size=4 [11:57:11]MH_SAM_APDU [11:57:11]CAPDU: 80 13 00 00 [11:57:11]Write to MH i2c: E2 08 00 94 46 80 13 00 00 00 00 00 00 56 [11:57:11]Write i2c OK [11:57:11]MH_I2C_Read... [11:57:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:11]Read from MH i2c: E2 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 62 00 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 62 00 94 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 4C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [11:57: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 4C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:11]wFMCommunicate OK [11:57:11]SAM_PROTO_GetFieldsCounters done [11:57:11]requested_item shift.num is exist - process it [11:57:11]requested_item shift.opened is exist - process it [11:57:11]req_shift_opened [11:57:11]FM_GetShiftState [11:57:11]SAM_PROTO_GetShiftState [11:57:11]wFMCommunicate request_size=4 [11:57:11]MH_SAM_APDU [11:57:11]CAPDU: 80 13 01 00 [11:57:11]Write to MH i2c: E2 08 00 95 46 80 13 01 00 00 00 00 00 58 [11:57:11]Write i2c OK [11:57:11]MH_I2C_Read... [11:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:11]Read from MH i2c: E2 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 0E 00 [11:57:11]MH_I2C_Read... [11:57:11]Read from MH i2c: E2 0E 00 95 46 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 95 [11:57:11]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:57:11]wFMCommunicate OK [11:57:11]SAM_PROTO_GetShiftState done [11:57:11]FM_GetShiftState done [11:57:11]req_shift_opened done [11:57:11]requested_item shift.open_date is exist - process it [11:57:11]req_shift_open_date [11:57:11]req_shift_open_date done [11:57:11]produce_requested_data done [11:57:11]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69196,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:57:11]process_action_free close_receipt [11:57:11]json_value_free [11:57:11]json_value_free done [11:57:11]process_json_proto returns [11:57:11]Send response to host [11:57:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69196,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:57:11]free response buf [11:57:11]execute_script done [11:57:11]execute_script returns [11:57:11]free content buf [11:57:11]Sock 9.Close socket [11:57:11]Sock 9.Thread stoped [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:21]accept exits with 7 [11:58:21]New connection [11:58:21]New thread 3066641764 created [11:58:21]Thread 3066785124 joined [11:58:21]Waiting for new connection... [11:58:21] Sock 7.Parse request [11:58:21]Sock 7.Check first char [11:58:21]Sock 7.First char is OK [11:58:21]request: POST /json_proto HTTP/1.0 [11:58:21]Method: POST [11:58:21]URL: /json_proto [11:58:21]Method is POST - this is cgi request [11:58:21]url: /json_proto [11:58:21]query_string will be loaded in cgi processing [11:58:21]execute_cgi json_proto POST (null) [11:58:21]execute_cgi path=json_proto method=POST [11:58:21]POST find Content-Length [11:58:21]Host: 172.17.49.132:8080 [11:58:21]Content-Length: 769 [11:58:21]Content-Type: application/json [11:58:21] [11:58:21]POST finish read [11:58:21]Found Content-Length = 769 [11:58:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:21]execute_script... [11:58:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:21]POST & json_proto [11:58:21]process_json_proto [11:58:21]json parsed OK: [11:58:21]protocol is kg_v1.0 [11:58:21]action value=close_receipt [11:58:21]process_action close_receipt [11:58:21]cmd_close_receipt [11:58:21]MH_GetDate [11:58:21]Write to MH i2c: F0 00 00 96 46 CB [11:58:21]Write i2c OK [11:58:21]MH_I2C_Read... [11:58:21]Read from MH i2c: F0 [11:58:21]MH_I2C_Read... [11:58:21]Read from MH i2c: F0 09 00 [11:58:21]MH_I2C_Read... [11:58:21]Read from MH i2c: F0 09 00 96 46 00 65 32 A6 66 E7 4B C0 64 CD [11:58:21]GetLastDocTimeStamp 1722167836 [11:58:21]current date 1722167909 [11:58:21]FM_GetShiftState [11:58:21]SAM_PROTO_GetShiftState [11:58:21]wFMCommunicate request_size=4 [11:58:21]MH_SAM_APDU [11:58:21]CAPDU: 80 13 01 00 [11:58:21]Write to MH i2c: E2 08 00 97 46 80 13 01 00 00 00 00 00 5A [11:58:21]Write i2c OK [11:58:21]MH_I2C_Read... [11:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:21]Read from MH i2c: E2 [11:58:21]MH_I2C_Read... [11:58:21]Read from MH i2c: E2 0E 00 [11:58:21]MH_I2C_Read... [11:58:21]Read from MH i2c: E2 0E 00 97 46 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 97 [11:58:21]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:58:21]wFMCommunicate OK [11:58:21]SAM_PROTO_GetShiftState done [11:58:21]FM_GetShiftState done [11:58:21]opened in 1722127251 [11:58:21]opened+sec_in_day 1722213651 [11:58:21]quantity*price = 100005 [11:58:21]sum+1 = 100006 [11:58:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 80 28.07.2024 11:58 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874949 ФД: 69197 ФПД: 12912186305499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115830&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69197&fm=12912186305499&tin=02508201610067®Number=0000000000092638&sum=100005 [11:58:22]StoreToDocumentArchive [11:58:22]shift 429 fd 69197 [11:58:22]save to /storage/0429/doc_00069197 [11:58:22]save last doc name /storage/0429/doc_00069197 to /storage/kkm_last_doc_name [11:58:22]save OK [11:58:22]Clear old archive folders... [11:58:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:22]tlvbuf is 00B6A100 [11:58:22]SAM_PROTO_ClearQueue [11:58:22]wFMCommunicate request_size=4 [11:58:22]MH_SAM_APDU [11:58:22]CAPDU: 80 09 00 00 [11:58:22]Write to MH i2c: E2 08 00 A4 46 80 09 00 00 00 00 00 00 5C [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:22]Read from MH i2c: E2 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 03 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 03 00 A4 46 00 90 00 5E [11:58:22]RAPDU: 90 00 [11:58:22]wFMCommunicate OK [11:58:22]SAM_PROTO_ClearQueue done [11:58:22]KKMCreateOFDPacket [11:58:22]OFDProtocolAddRootSTLVToBuf [11:58:22]FM_MakeSignedData [11:58:22]FM_MakeSignedData [11:58:22]SAM_PROTO_SignData [11:58:22]wFMCommunicate request_size=4 [11:58:22]MH_SAM_APDU [11:58:22]CAPDU: 80 0D 01 02 [11:58:22]Write to MH i2c: E2 08 00 A5 46 80 0D 01 02 00 00 00 00 64 [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:22]Read from MH i2c: E2 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 03 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 03 00 A5 46 00 90 00 5F [11:58:22]RAPDU: 90 00 [11:58:22]wFMCommunicate OK [11:58:22]wFMCommunicate request_size=255 [11:58:22]MH_SAM_APDU [11:58:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 66 32 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4D 0E 01 00 35 04 06 00 0B [11:58:22]Write to MH i2c: E2 02 01 A6 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 66 32 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4D 0E 01 00 35 04 06 00 0B 00 00 91 [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:22]Read from MH i2c: E2 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 03 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 03 00 A6 46 00 90 00 60 [11:58:22]RAPDU: 90 00 [11:58:22]wFMCommunicate OK [11:58:22]wFMCommunicate request_size=10 [11:58:22]MH_SAM_APDU [11:58:22]CAPDU: 80 0D 02 02 05 BE 5A 47 2B DB [11:58:22]Write to MH i2c: E2 0D 00 A7 46 80 0D 02 02 05 00 BE 5A 47 2B DB 00 00 D6 [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:22]Read from MH i2c: E2 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 03 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 03 00 A7 46 00 90 00 61 [11:58:22]RAPDU: 90 00 [11:58:22]wFMCommunicate OK [11:58:22]wFMCommunicate request_size=4 [11:58:22]MH_SAM_APDU [11:58:22]CAPDU: 80 0D 03 02 [11:58:22]Write to MH i2c: E2 08 00 A8 46 80 0D 03 02 00 00 00 00 69 [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:22]Read from MH i2c: E2 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 0B 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 0B 00 A8 46 00 52 0F 7C DE A0 31 8D 5C 90 00 DF [11:58:22]RAPDU: 52 0F 7C DE A0 31 8D 5C 90 00 [11:58:22]wFMCommunicate OK [11:58:22]SAM_PROTO_SignData done [11:58:22]FM_MakeSignedData done [11:58:22]CreateOFDProtocolMessage [11:58:22]wFMCommunicate request_size=4 [11:58:22]MH_SAM_APDU [11:58:22]CAPDU: 80 11 00 00 [11:58:22]Write to MH i2c: E2 08 00 A9 46 80 11 00 00 00 00 00 00 69 [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:22]Read from MH i2c: E2 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 17 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 17 00 A9 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C5 [11:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:58:22]wFMCommunicate OK [11:58:22]CreateOFDProtocolMessage done [11:58:22]OFDSenderStorePacket 69197 [11:58:22]StoreOFDPacket docnum=69197 [11:58:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 E0 23 07 01 5F 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 66 32 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4D 0E 01 00 35 04 06 00 0B BE 5A 47 2B DB 52 0F 7C DE A0 31 8D 5C [11:58:22]CheckFolder [11:58:22]dirname=/storage/ofd_packets [11:58:22]CheckFolder done [11:58:22]ProducePacketName [11:58:22]name=ofd_packets/00069197 [11:58:22]NVStorageSaveData ofd_packets/00069197 [11:58:22]File name is /storage/ofd_packets/00069197 [11:58:22]Write 301 bytes [11:58:22]NVStorageSaveData done [11:58:22]OFDSenderStorePacket done [11:58:22]KKMCreateOFDPacket done [11:58:22]NVStorageSaveData kkm_last_timestamp [11:58:22]File name is /storage/kkm_last_timestamp [11:58:22]Write 4 bytes [11:58:22]NVStorageSaveData done [11:58:22]ExternCall_PrintAddStr [11:58:22]wPrintStart [11:58:22]Write to MH i2c: 01 00 00 AA 46 F0 [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: 01 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: 01 07 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: 01 07 00 AA 46 00 00 00 00 00 FF 0F 05 [11:58:22]RasterBufferAndPrint [11:58:22]line Счет N : (1)871855 [11:58:22]line ИНН: 02508201610067 [11:58:22]line Контрольно-Кассовый Чек [11:58:22]line ПРОДАЖА [11:58:22]line ТРК (МРК, ГНК) : 32 [11:58:22]line Товар: 2710124130 [11:58:22]line Аи-92-К-5 [11:58:22]line 14.750 * 67.80 [11:58:22]line = 1000.05 [11:58:22]line НДС 12% НСП 1% [11:58:22]line > о реализуемом товаре [11:58:22]line ИТОГО: 1000.05 [11:58:22]line НСП 1% : 8.85 [11:58:22]line НДС 12% : 106.20 [11:58:22]line Наличными: 0.00 [11:58:22]line Безнал.: 1000.05 [11:58:22]line Место: АЗС № 125 "Партнер Нефть" [11:58:22]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:58:22]line СНО: Общий режим [11:58:22]line Чек 80 28.07.2024 11:58 [11:58:22]line Смена: 429 ФФД: 1.0 [11:58:22]line ЗНМ: 0300000049 [11:58:22]line РНМ: 0000000000092638 [11:58:22]line Версия ККМ: 001 [11:58:22]line Платежная система: Mbank [11:58:22]line ФМ: 0000000000874949 [11:58:22]line ФД: 69197 [11:58:22]line ФПД: 12912186305499 [11:58:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115830&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69197&fm=12912186305499&tin=02508201610067®Number=0000000000092638&sum=100005 [11:58:23]OFD Sender: Processing packet 69197 [packets to send 19, broken 18] [11:58:23]ProducePacketName [11:58:23]name=ofd_packets/00069197 [11:58:23]OFD Sender: To server: pG, [11:58:23]CommunicateWithHost lk.salyk.kg:30040 [11:58:23]ConnectInit lk.salyk.kg [11:58:23]written 0, free lines is 4095 [11:58:23]Connected sock=10 [11:58: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 39 34 39 0F 01 00 00 E0 23 07 01 5F 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 66 32 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4D 0E 01 00 35 04 06 00 0B BE 5A 47 2B DB 52 0F 7C DE A0 31 8D 5C [11:58:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 37 94 47 00 29 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4D 0E 01 00 F4 03 04 00 D5 D8 A5 66 B6 04 01 00 00 49 AC 01 65 C0 EB C6 C2 [11:58:23]CommunicateWithHost err = 0 [11:58:23]CheckOFDResponse [11:58:23]1017 (14) - 77093643461234 [11:58:23]1041 (16) - 0000000000874949 [11:58:23]1040 (4) - 69197 [11:58:23]1012 (4) - 28.07.2024 05:36 [11:58:23]1206 (1) - 0 [11:58:23]OFD Sender: Remove packet 69197 [11:58:23]ProducePacketName [11:58:23]name=ofd_packets/00069197 [11:58:23]NVStorageDeleteData [11:58:23]Write to MH i2c: 01 00 00 D3 46 19 [11:58:23]Write i2c OK [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: 01 [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: 01 07 00 [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: 01 07 00 D3 46 00 00 00 00 00 14 0D 41 [11:58:23]RasterBufferAndPrint [11:58:23]line [11:58:23]line [11:58:23]line [11:58:23]line [11:58:23]line [11:58:23]written 0, free lines is 3355 [11:58:23]MH_Cut [11:58:23]Write to MH i2c: D1 01 00 DA 46 01 F2 [11:58:23]Write i2c OK [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: D1 [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: D1 01 00 [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: D1 01 00 DA 46 00 F1 [11:58:23]Write to MH i2c: 01 00 00 DB 46 21 [11:58:23]Write i2c OK [11:58:23]MH_I2C_Read... [11:58:23]OFD Sender: No OFD packet to send [11:58:24]*** Cut start [11:58:24]*** Partial cut [11:58:24]*** CUTSNS_PIN = 1 [11:58:24]*** CUTSNS_PIN = 0 [11:58:24]*** Brake cut motor [11:58:24]Read from MH i2c: 01 [11:58:24]MH_I2C_Read... [11:58:24]*** Stop cut motor [11:58:24]*** Cut end [11:58:24]Read from MH i2c: 01 07 00 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: 01 07 00 DB 46 00 00 00 00 00 FF 0F 36 [11:58:24]process_action close_receipt done [11:58:24]requested_data is exist [11:58:24]produce_requested_data [11:58:24]requested_item fm.sn is exist - process it [11:58:24]wFMCommunicate request_size=4 [11:58:24]MH_SAM_APDU [11:58:24]CAPDU: 80 11 00 00 [11:58:24]Write to MH i2c: E2 08 00 DC 46 80 11 00 00 00 00 00 00 9C [11:58:24]Write i2c OK [11:58:24]MH_I2C_Read... [11:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:24]Read from MH i2c: E2 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 17 00 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 17 00 DC 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F8 [11:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:58:24]wFMCommunicate OK [11:58:24]requested_item fd.num is exist - process it [11:58:24]SAM_PROTO_GetFieldsCounters [11:58:24]wFMCommunicate request_size=4 [11:58:24]MH_SAM_APDU [11:58:24]CAPDU: 80 13 00 00 [11:58:24]Write to MH i2c: E2 08 00 DD 46 80 13 00 00 00 00 00 00 9F [11:58:24]Write i2c OK [11:58:24]MH_I2C_Read... [11:58:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:24]Read from MH i2c: E2 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 62 00 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 62 00 DD 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 4D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [11:58: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 4D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:24]wFMCommunicate OK [11:58:24]SAM_PROTO_GetFieldsCounters done [11:58:24]requested_item shift.num is exist - process it [11:58:24]requested_item shift.opened is exist - process it [11:58:24]req_shift_opened [11:58:24]FM_GetShiftState [11:58:24]SAM_PROTO_GetShiftState [11:58:24]wFMCommunicate request_size=4 [11:58:24]MH_SAM_APDU [11:58:24]CAPDU: 80 13 01 00 [11:58:24]Write to MH i2c: E2 08 00 DE 46 80 13 01 00 00 00 00 00 A1 [11:58:24]Write i2c OK [11:58:24]MH_I2C_Read... [11:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:25]Read from MH i2c: E2 [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: E2 0E 00 [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: E2 0E 00 DE 46 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 DE [11:58:25]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:58:25]wFMCommunicate OK [11:58:25]SAM_PROTO_GetShiftState done [11:58:25]FM_GetShiftState done [11:58:25]req_shift_opened done [11:58:25]requested_item shift.open_date is exist - process it [11:58:25]req_shift_open_date [11:58:25]req_shift_open_date done [11:58:25]produce_requested_data done [11:58:25]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69197,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:58:25]process_action_free close_receipt [11:58:25]json_value_free [11:58:25]json_value_free done [11:58:25]process_json_proto returns [11:58:25]Send response to host [11:58:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69197,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:58:25]free response buf [11:58:25]execute_script done [11:58:25]execute_script returns [11:58:25]free content buf [11:58:25]Sock 7.Close socket [11:58:25]Sock 7.Thread stoped [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:22]accept exits with 9 [11:59:22]New connection [11:59:22]New thread 3066785124 created [11:59:22]Thread 3066641764 joined [11:59:22]Waiting for new connection... [11:59:22] Sock 9.Parse request [11:59:22]Sock 9.Check first char [11:59:22]Sock 9.First char is OK [11:59:22]request: POST /json_proto HTTP/1.0 [11:59:22]Method: POST [11:59:22]URL: /json_proto [11:59:22]Method is POST - this is cgi request [11:59:22]url: /json_proto [11:59:22]query_string will be loaded in cgi processing [11:59:22]execute_cgi json_proto POST (null) [11:59:22]execute_cgi path=json_proto method=POST [11:59:22]POST find Content-Length [11:59:22]Host: 172.17.49.132:8080 [11:59:22]Content-Length: 678 [11:59:22]Content-Type: application/json [11:59:22] [11:59:22]POST finish read [11:59:22]Found Content-Length = 678 [11:59:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 39.900, "sum" : 3000.48, "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" ] } } [11:59:22]execute_script... [11:59:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 39.900, "sum" : 3000.48, "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" ] } } [11:59:22]POST & json_proto [11:59:22]process_json_proto [11:59:22]json parsed OK: [11:59:22]protocol is kg_v1.0 [11:59:22]action value=close_receipt [11:59:22]process_action close_receipt [11:59:22]cmd_close_receipt [11:59:22]MH_GetDate [11:59:22]Write to MH i2c: F0 00 00 DF 46 14 [11:59:22]Write i2c OK [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: F0 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: F0 09 00 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: F0 09 00 DF 46 00 A3 32 A6 66 E7 4B C0 64 54 [11:59:22]GetLastDocTimeStamp 1722167910 [11:59:22]current date 1722167971 [11:59:22]FM_GetShiftState [11:59:22]SAM_PROTO_GetShiftState [11:59:22]wFMCommunicate request_size=4 [11:59:22]MH_SAM_APDU [11:59:22]CAPDU: 80 13 01 00 [11:59:22]Write to MH i2c: E2 08 00 E0 46 80 13 01 00 00 00 00 00 A3 [11:59:22]Write i2c OK [11:59:22]MH_I2C_Read... [11:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:22]Read from MH i2c: E2 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: E2 0E 00 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: E2 0E 00 E0 46 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 E0 [11:59:22]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:59:22]wFMCommunicate OK [11:59:22]SAM_PROTO_GetShiftState done [11:59:22]FM_GetShiftState done [11:59:22]opened in 1722127251 [11:59:22]opened+sec_in_day 1722213651 [11:59:22]quantity*price = 300048 [11:59:22]sum+1 = 300049 [11:59:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 81 28.07.2024 11:59 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69198 ФПД: 70786011547448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115931&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69198&fm=70786011547448&tin=02508201610067®Number=0000000000092638&sum=300000 [11:59:23]StoreToDocumentArchive [11:59:23]shift 429 fd 69198 [11:59:23]save to /storage/0429/doc_00069198 [11:59:23]save last doc name /storage/0429/doc_00069198 to /storage/kkm_last_doc_name [11:59:23]save OK [11:59:23]Clear old archive folders... [11:59:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:59:23]tlvbuf is 00A4FC80 [11:59:23]SAM_PROTO_ClearQueue [11:59:23]wFMCommunicate request_size=4 [11:59:23]MH_SAM_APDU [11:59:23]CAPDU: 80 09 00 00 [11:59:23]Write to MH i2c: E2 08 00 ED 46 80 09 00 00 00 00 00 00 A5 [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:23]Read from MH i2c: E2 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 ED 46 00 90 00 A7 [11:59:23]RAPDU: 90 00 [11:59:23]wFMCommunicate OK [11:59:23]SAM_PROTO_ClearQueue done [11:59:23]KKMCreateOFDPacket [11:59:23]OFDProtocolAddRootSTLVToBuf [11:59:23]FM_MakeSignedData [11:59:23]FM_MakeSignedData [11:59:23]SAM_PROTO_SignData [11:59:23]wFMCommunicate request_size=4 [11:59:23]MH_SAM_APDU [11:59:23]CAPDU: 80 0D 01 02 [11:59:23]Write to MH i2c: E2 08 00 EE 46 80 0D 01 02 00 00 00 00 AD [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:23]Read from MH i2c: E2 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 EE 46 00 90 00 A8 [11:59:23]RAPDU: 90 00 [11:59:23]wFMCommunicate OK [11:59:23]wFMCommunicate request_size=255 [11:59:23]MH_SAM_APDU [11:59:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 9B 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 10 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 77 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 51 00 00 00 F4 03 04 00 A3 32 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4E 0E 01 00 35 04 06 00 40 61 27 12 [11:59:23]Write to MH i2c: E2 02 01 EF 46 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 9B 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 10 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 77 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 51 00 00 00 F4 03 04 00 A3 32 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4E 0E 01 00 35 04 06 00 40 61 27 12 00 00 13 [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:24]OFD Sender: No OFD packet to send [11:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:24]Read from MH i2c: E2 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 03 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 03 00 EF 46 00 90 00 A9 [11:59:24]RAPDU: 90 00 [11:59:24]wFMCommunicate OK [11:59:24]wFMCommunicate request_size=7 [11:59:24]MH_SAM_APDU [11:59:24]CAPDU: 80 0D 02 02 02 C7 38 [11:59:24]Write to MH i2c: E2 0A 00 F0 46 80 0D 02 02 02 00 C7 38 00 00 B3 [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:24]Read from MH i2c: E2 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 03 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 03 00 F0 46 00 90 00 AA [11:59:24]RAPDU: 90 00 [11:59:24]wFMCommunicate OK [11:59:24]wFMCommunicate request_size=4 [11:59:24]MH_SAM_APDU [11:59:24]CAPDU: 80 0D 03 02 [11:59:24]Write to MH i2c: E2 08 00 F1 46 80 0D 03 02 00 00 00 00 B2 [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:24]Read from MH i2c: E2 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 0B 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 0B 00 F1 46 00 14 BD 91 5E 44 32 CD B2 90 00 68 [11:59:24]RAPDU: 14 BD 91 5E 44 32 CD B2 90 00 [11:59:24]wFMCommunicate OK [11:59:24]SAM_PROTO_SignData done [11:59:24]FM_MakeSignedData done [11:59:24]CreateOFDProtocolMessage [11:59:24]wFMCommunicate request_size=4 [11:59:24]MH_SAM_APDU [11:59:24]CAPDU: 80 11 00 00 [11:59:24]Write to MH i2c: E2 08 00 F2 46 80 11 00 00 00 00 00 00 B2 [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:24]Read from MH i2c: E2 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 17 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 17 00 F2 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 0E [11:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:59:24]wFMCommunicate OK [11:59:24]CreateOFDProtocolMessage done [11:59:24]OFDSenderStorePacket 69198 [11:59:24]StoreOFDPacket docnum=69198 [11:59:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 8E B2 04 01 3A DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 9B 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 10 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 77 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 51 00 00 00 F4 03 04 00 A3 32 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4E 0E 01 00 35 04 06 00 40 61 27 12 C7 38 14 BD 91 5E 44 32 CD B2 [11:59:24]CheckFolder [11:59:24]dirname=/storage/ofd_packets [11:59:24]CheckFolder done [11:59:24]ProducePacketName [11:59:24]name=ofd_packets/00069198 [11:59:24]NVStorageSaveData ofd_packets/00069198 [11:59:24]File name is /storage/ofd_packets/00069198 [11:59:24]Write 298 bytes [11:59:24]NVStorageSaveData done [11:59:24]OFDSenderStorePacket done [11:59:24]KKMCreateOFDPacket done [11:59:24]NVStorageSaveData kkm_last_timestamp [11:59:24]File name is /storage/kkm_last_timestamp [11:59:24]Write 4 bytes [11:59:24]NVStorageSaveData done [11:59:24]ExternCall_PrintAddStr [11:59:24]wPrintStart [11:59:24]Write to MH i2c: 01 00 00 F3 46 39 [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: 01 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: 01 07 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: 01 07 00 F3 46 00 00 00 00 00 FF 0F 4E [11:59:24]RasterBufferAndPrint [11:59:24]line Счет N : (1)871854 [11:59:24]line ИНН: 02508201610067 [11:59:24]line Контрольно-Кассовый Чек [11:59:24]line ПРОДАЖА [11:59:24]line ТРК (МРК, ГНК) : 1 [11:59:24]line Товар: 2710194210 [11:59:24]line ДТ-К-5 [11:59:24]line 39.900 * 75.20 [11:59:24]line = 3000.48 [11:59:24]line НДС 12% НСП 1% [11:59:24]line > о реализуемом товаре [11:59:24]line ОКРУГЛЕНИЕ: -0.48 [11:59:24]line ИТОГО: 3000.00 [11:59:24]line Внесено: 3000.00 [11:59:24]line СДАЧА: 0.00 [11:59:24]line НСП 1% : 26.55 [11:59:24]line НДС 12% : 318.63 [11:59:24]line Наличными: 3000.00 [11:59:24]line Безнал.: 0.00 [11:59:24]line Место: АЗС № 125 "Партнер Нефть" [11:59:24]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:59:24]line СНО: Общий режим [11:59:24]line Чек 81 28.07.2024 11:59 [11:59:24]line Смена: 429 ФФД: 1.0 [11:59:24]line ЗНМ: 0300000049 [11:59:24]line РНМ: 0000000000092638 [11:59:24]line Версия ККМ: 001 [11:59:24]line ФМ: 0000000000874949 [11:59:24]line ФД: 69198 [11:59:24]line ФПД: 70786011547448 [11:59:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T115931&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69198&fm=70786011547448&tin=02508201610067®Number=0000000000092638&sum=300000 [11:59:24]OFD Sender: Processing packet 69198 [packets to send 19, broken 18] [11:59:24]ProducePacketName [11:59:24]name=ofd_packets/00069198 [11:59:24]OFD Sender: To server: pG, [11:59:24]CommunicateWithHost lk.salyk.kg:30040 [11:59:24]ConnectInit lk.salyk.kg [11:59:24]written 0, free lines is 4095 [11:59:24]Connected sock=10 [11:59: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 39 34 39 0C 01 00 00 8E B2 04 01 3A DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 9B 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 10 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 77 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 51 00 00 00 F4 03 04 00 A3 32 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4E 0E 01 00 35 04 06 00 40 61 27 12 C7 38 14 BD 91 5E 44 32 CD B2 [11:59:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 F0 65 47 00 F6 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 39 34 39 10 04 04 00 4E 0E 01 00 F4 03 04 00 13 D9 A5 66 B6 04 01 00 00 EE 20 D8 6C F4 16 57 CD [11:59:24]CommunicateWithHost err = 0 [11:59:24]CheckOFDResponse [11:59:24]1017 (14) - 77093643461234 [11:59:24]1041 (16) - 0000000000874949 [11:59:24]1040 (4) - 69198 [11:59:24]1012 (4) - 28.07.2024 05:37 [11:59:24]1206 (1) - 0 [11:59:24]OFD Sender: Remove packet 69198 [11:59:24]ProducePacketName [11:59:24]name=ofd_packets/00069198 [11:59:24]NVStorageDeleteData [11:59:25]Write to MH i2c: 01 00 00 1E 47 65 [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: 01 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: 01 07 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: 01 07 00 1E 47 00 00 00 00 00 E7 0C 5F [11:59:25]RasterBufferAndPrint [11:59:25]line [11:59:25]line [11:59:25]line [11:59:25]line [11:59:25]line [11:59:25]written 0, free lines is 3312 [11:59:25]MH_Cut [11:59:25]Write to MH i2c: D1 01 00 25 47 01 3E [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: D1 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: D1 01 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: D1 01 00 25 47 00 3D [11:59:25]Write to MH i2c: 01 00 00 26 47 6D [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]OFD Sender: No OFD packet to send [11:59:25]*** Cut start [11:59:25]*** Partial cut [11:59:25]*** CUTSNS_PIN = 1 [11:59:25]*** CUTSNS_PIN = 0 [11:59:25]*** Brake cut motor [11:59:26]Read from MH i2c: 01 [11:59:26]MH_I2C_Read... [11:59:26]*** Stop cut motor [11:59:26]*** Cut end [11:59:26]Read from MH i2c: 01 07 00 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: 01 07 00 26 47 00 00 00 00 00 FF 0F 82 [11:59:26]process_action close_receipt done [11:59:26]requested_data is exist [11:59:26]produce_requested_data [11:59:26]requested_item fm.sn is exist - process it [11:59:26]wFMCommunicate request_size=4 [11:59:26]MH_SAM_APDU [11:59:26]CAPDU: 80 11 00 00 [11:59:26]Write to MH i2c: E2 08 00 27 47 80 11 00 00 00 00 00 00 E8 [11:59:26]Write i2c OK [11:59:26]MH_I2C_Read... [11:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:26]Read from MH i2c: E2 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: E2 17 00 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: E2 17 00 27 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 44 [11:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:59:26]wFMCommunicate OK [11:59:26]requested_item fd.num is exist - process it [11:59:26]SAM_PROTO_GetFieldsCounters [11:59:26]wFMCommunicate request_size=4 [11:59:26]MH_SAM_APDU [11:59:26]CAPDU: 80 13 00 00 [11:59:26]Write to MH i2c: E2 08 00 28 47 80 13 00 00 00 00 00 00 EB [11:59:26]Write i2c OK [11:59:26]MH_I2C_Read... [11:59:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:26]Read from MH i2c: E2 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: E2 62 00 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: E2 62 00 28 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 4E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [11:59: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 4E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:26]wFMCommunicate OK [11:59:26]SAM_PROTO_GetFieldsCounters done [11:59:26]requested_item shift.num is exist - process it [11:59:26]requested_item shift.opened is exist - process it [11:59:26]req_shift_opened [11:59:26]FM_GetShiftState [11:59:26]SAM_PROTO_GetShiftState [11:59:26]wFMCommunicate request_size=4 [11:59:26]MH_SAM_APDU [11:59:26]CAPDU: 80 13 01 00 [11:59:26]Write to MH i2c: E2 08 00 29 47 80 13 01 00 00 00 00 00 ED [11:59:26]Write i2c OK [11:59:26]MH_I2C_Read... [11:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:26]Read from MH i2c: E2 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: E2 0E 00 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: E2 0E 00 29 47 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 2A [11:59:26]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [11:59:26]wFMCommunicate OK [11:59:26]SAM_PROTO_GetShiftState done [11:59:26]FM_GetShiftState done [11:59:26]req_shift_opened done [11:59:26]requested_item shift.open_date is exist - process it [11:59:26]req_shift_open_date [11:59:26]req_shift_open_date done [11:59:26]produce_requested_data done [11:59:26]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69198,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [11:59:26]process_action_free close_receipt [11:59:26]json_value_free [11:59:26]json_value_free done [11:59:26]process_json_proto returns [11:59:26]Send response to host [11:59:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69198,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [11:59:26]free response buf [11:59:26]execute_script done [11:59:26]execute_script returns [11:59:26]free content buf [11:59:26]Sock 9.Close socket [11:59:26]Sock 9.Thread stoped [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:04]accept exits with 7 [12:01:04]New connection [12:01:04]New thread 3066641764 created [12:01:04]Thread 3066785124 joined [12:01:04]Waiting for new connection... [12:01:04] Sock 7.Parse request [12:01:04]Sock 7.Check first char [12:01:04]Sock 7.First char is OK [12:01:04]request: POST /json_proto HTTP/1.0 [12:01:04]Method: POST [12:01:04]URL: /json_proto [12:01:04]Method is POST - this is cgi request [12:01:04]url: /json_proto [12:01:04]query_string will be loaded in cgi processing [12:01:04]execute_cgi json_proto POST (null) [12:01:04]execute_cgi path=json_proto method=POST [12:01:04]POST find Content-Length [12:01:04]Host: 172.17.49.132:8080 [12:01:04]Content-Length: 977 [12:01:04]Content-Type: application/json [12:01:04] [12:01:04]POST finish read [12:01:04]Found Content-Length = 977 [12:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.91 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:04]execute_script... [12:01:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.91 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:04]POST & json_proto [12:01:04]process_json_proto [12:01:04]json parsed OK: [12:01:04]protocol is kg_v1.0 [12:01:04]action value=close_receipt [12:01:04]process_action close_receipt [12:01:04]cmd_close_receipt [12:01:04]MH_GetDate [12:01:04]Write to MH i2c: F0 00 00 2A 47 60 [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: F0 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: F0 09 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: F0 09 00 2A 47 00 09 33 A6 66 E7 4B C0 64 07 [12:01:04]GetLastDocTimeStamp 1722167971 [12:01:04]current date 1722168073 [12:01:04]FM_GetShiftState [12:01:04]SAM_PROTO_GetShiftState [12:01:04]wFMCommunicate request_size=4 [12:01:04]MH_SAM_APDU [12:01:04]CAPDU: 80 13 01 00 [12:01:04]Write to MH i2c: E2 08 00 2B 47 80 13 01 00 00 00 00 00 EF [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:04]Read from MH i2c: E2 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 0E 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 0E 00 2B 47 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 2C [12:01:04]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:01:04]wFMCommunicate OK [12:01:04]SAM_PROTO_GetShiftState done [12:01:04]FM_GetShiftState done [12:01:04]opened in 1722127251 [12:01:04]opened+sec_in_day 1722213651 [12:01:04]quantity*price = 400012 [12:01:04]sum+1 = 400013 [12:01:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 82 28.07.2024 12:01 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Дисконтная программа ДТ номер 125 сэкономлено 53.91 сом ФМ: 0000000000874949 ФД: 69199 ФПД: 210556073236531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120113&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69199&fm=210556073236531&tin=02508201610067®Number=0000000000092638&sum=400000 [12:01:05]StoreToDocumentArchive [12:01:05]shift 429 fd 69199 [12:01:05]save to /storage/0429/doc_00069199 [12:01:05]save last doc name /storage/0429/doc_00069199 to /storage/kkm_last_doc_name [12:01:05]save OK [12:01:05]Clear old archive folders... [12:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:01:05]tlvbuf is 00A6A640 [12:01:05]SAM_PROTO_ClearQueue [12:01:05]wFMCommunicate request_size=4 [12:01:05]MH_SAM_APDU [12:01:05]CAPDU: 80 09 00 00 [12:01:05]Write to MH i2c: E2 08 00 38 47 80 09 00 00 00 00 00 00 F1 [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:05]Read from MH i2c: E2 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 38 47 00 90 00 F3 [12:01:05]RAPDU: 90 00 [12:01:05]wFMCommunicate OK [12:01:05]SAM_PROTO_ClearQueue done [12:01:05]KKMCreateOFDPacket [12:01:05]OFDProtocolAddRootSTLVToBuf [12:01:05]FM_MakeSignedData [12:01:05]FM_MakeSignedData [12:01:05]SAM_PROTO_SignData [12:01:05]wFMCommunicate request_size=4 [12:01:05]MH_SAM_APDU [12:01:05]CAPDU: 80 0D 01 02 [12:01:05]Write to MH i2c: E2 08 00 39 47 80 0D 01 02 00 00 00 00 F9 [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:05]Read from MH i2c: E2 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 39 47 00 90 00 F4 [12:01:05]RAPDU: 90 00 [12:01:05]wFMCommunicate OK [12:01:05]wFMCommunicate request_size=255 [12:01:05]MH_SAM_APDU [12:01:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 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 09 33 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4F 0E 01 00 35 04 06 00 BF 7F E7 F3 [12:01:05]Write to MH i2c: E2 02 01 3A 47 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 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 09 33 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4F 0E 01 00 35 04 06 00 BF 7F E7 F3 00 00 01 [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:05]Read from MH i2c: E2 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 3A 47 00 90 00 F5 [12:01:05]RAPDU: 90 00 [12:01:05]wFMCommunicate OK [12:01:05]wFMCommunicate request_size=7 [12:01:05]MH_SAM_APDU [12:01:05]CAPDU: 80 0D 02 02 02 58 33 [12:01:05]Write to MH i2c: E2 0A 00 3B 47 80 0D 02 02 02 00 58 33 00 00 8B [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:06]Read from MH i2c: E2 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 03 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 03 00 3B 47 00 90 00 F6 [12:01:06]RAPDU: 90 00 [12:01:06]wFMCommunicate OK [12:01:06]wFMCommunicate request_size=4 [12:01:06]MH_SAM_APDU [12:01:06]CAPDU: 80 0D 03 02 [12:01:06]Write to MH i2c: E2 08 00 3C 47 80 0D 03 02 00 00 00 00 FE [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:06]Read from MH i2c: E2 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 0B 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 0B 00 3C 47 00 F6 1C 04 32 5F 7A FA B9 90 00 D3 [12:01:06]RAPDU: F6 1C 04 32 5F 7A FA B9 90 00 [12:01:06]wFMCommunicate OK [12:01:06]SAM_PROTO_SignData done [12:01:06]FM_MakeSignedData done [12:01:06]CreateOFDProtocolMessage [12:01:06]wFMCommunicate request_size=4 [12:01:06]MH_SAM_APDU [12:01:06]CAPDU: 80 11 00 00 [12:01:06]Write to MH i2c: E2 08 00 3D 47 80 11 00 00 00 00 00 00 FE [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:06]Read from MH i2c: E2 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 17 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 17 00 3D 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 5A [12:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:01:06]wFMCommunicate OK [12:01:06]CreateOFDProtocolMessage done [12:01:06]OFDSenderStorePacket 69199 [12:01:06]StoreOFDPacket docnum=69199 [12:01:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 64 7F 04 01 DE F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 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 09 33 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4F 0E 01 00 35 04 06 00 BF 7F E7 F3 58 33 F6 1C 04 32 5F 7A FA B9 [12:01:06]CheckFolder [12:01:06]dirname=/storage/ofd_packets [12:01:06]CheckFolder done [12:01:06]ProducePacketName [12:01:06]name=ofd_packets/00069199 [12:01:06]NVStorageSaveData ofd_packets/00069199 [12:01:06]File name is /storage/ofd_packets/00069199 [12:01:06]Write 298 bytes [12:01:06]NVStorageSaveData done [12:01:06]OFDSenderStorePacket done [12:01:06]KKMCreateOFDPacket done [12:01:06]NVStorageSaveData kkm_last_timestamp [12:01:06]File name is /storage/kkm_last_timestamp [12:01:06]Write 4 bytes [12:01:06]NVStorageSaveData done [12:01:06]ExternCall_PrintAddStr [12:01:06]wPrintStart [12:01:06]Write to MH i2c: 01 00 00 3E 47 85 [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 3E 47 00 00 00 00 00 FF 0F 9A [12:01:06]RasterBufferAndPrint [12:01:06]line Счет N : (1)871856 [12:01:06]line ИНН: 02508201610067 [12:01:06]line Контрольно-Кассовый Чек [12:01:06]line ПРОДАЖА [12:01:06]line ТРК (МРК, ГНК) : 2 [12:01:06]line Товар: 2710194210 [12:01:06]line ДТ-К-5 [12:01:06]line 53.910 * 74.20 [12:01:06]line = 4000.12 [12:01:06]line НДС 12% НСП 1% [12:01:06]line > о реализуемом товаре [12:01:06]line ОКРУГЛЕНИЕ: -0.12 [12:01:06]line ИТОГО: 4000.00 [12:01:06]line Внесено: 4000.00 [12:01:06]line СДАЧА: 0.00 [12:01:06]line НСП 1% : 35.40 [12:01:06]line НДС 12% : 424.79 [12:01:06]line Наличными: 4000.00 [12:01:06]line Безнал.: 0.00 [12:01:06]line Место: АЗС № 125 "Партнер Нефть" [12:01:06]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:01:06]line СНО: Общий режим [12:01:06]line Чек 82 28.07.2024 12:01 [12:01:06]line Смена: 429 ФФД: 1.0 [12:01:06]line ЗНМ: 0300000049 [12:01:06]line РНМ: 0000000000092638 [12:01:06]line Версия ККМ: 001 [12:01:06]line [12:01:06]line Дисконтная программа [12:01:06]line ДТ [12:01:06]line номер 125 [12:01:06]line сэкономлено 53.91 сом [12:01:06]line ФМ: 0000000000874949 [12:01:06]line ФД: 69199 [12:01:06]line ФПД: 210556073236531 [12:01:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120113&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69199&fm=210556073236531&tin=02508201610067®Number=0000000000092638&sum=400000 [12:01:06]OFD Sender: Processing packet 69199 [packets to send 19, broken 18] [12:01:06]ProducePacketName [12:01:06]name=ofd_packets/00069199 [12:01:06]OFD Sender: To server: pG, [12:01:06]CommunicateWithHost lk.salyk.kg:30040 [12:01:06]ConnectInit lk.salyk.kg [12:01:06]written 0, free lines is 4095 [12:01:06]Connected sock=10 [12:01:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 64 7F 04 01 DE F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 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 09 33 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 4F 0E 01 00 35 04 06 00 BF 7F E7 F3 58 33 F6 1C 04 32 5F 7A FA B9 [12:01:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 3C C5 47 00 57 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 39 34 39 10 04 04 00 4F 0E 01 00 F4 03 04 00 79 D9 A5 66 B6 04 01 00 00 2B E9 AB 9C 6F 2D 02 26 [12:01:06]CommunicateWithHost err = 0 [12:01:06]CheckOFDResponse [12:01:06]1017 (14) - 77093643461234 [12:01:06]1041 (16) - 0000000000874949 [12:01:06]1040 (4) - 69199 [12:01:06]1012 (4) - 28.07.2024 05:39 [12:01:06]1206 (1) - 0 [12:01:06]OFD Sender: Remove packet 69199 [12:01:06]ProducePacketName [12:01:06]name=ofd_packets/00069199 [12:01:06]NVStorageDeleteData [12:01:06]Write to MH i2c: 01 00 00 6E 47 B5 [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 6E 47 00 00 00 00 00 A6 0C 6E [12:01:06]RasterBufferAndPrint [12:01:06]line [12:01:06]line [12:01:06]line [12:01:06]line [12:01:06]line [12:01:06]written 0, free lines is 3247 [12:01:06]MH_Cut [12:01:06]Write to MH i2c: D1 01 00 75 47 01 8E [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: D1 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: D1 01 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: D1 01 00 75 47 00 8D [12:01:06]Write to MH i2c: 01 00 00 76 47 BD [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:07]OFD Sender: No OFD packet to send [12:01:07]*** Cut start [12:01:07]*** Partial cut [12:01:07]*** CUTSNS_PIN = 1 [12:01:07]*** CUTSNS_PIN = 0 [12:01:07]*** Brake cut motor [12:01:08]Read from MH i2c: 01 [12:01:08]MH_I2C_Read... [12:01:08]*** Stop cut motor [12:01:08]*** Cut end [12:01:08]Read from MH i2c: 01 07 00 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: 01 07 00 76 47 00 00 00 00 00 FF 0F D2 [12:01:08]process_action close_receipt done [12:01:08]requested_data is exist [12:01:08]produce_requested_data [12:01:08]requested_item fm.sn is exist - process it [12:01:08]wFMCommunicate request_size=4 [12:01:08]MH_SAM_APDU [12:01:08]CAPDU: 80 11 00 00 [12:01:08]Write to MH i2c: E2 08 00 77 47 80 11 00 00 00 00 00 00 38 [12:01:08]Write i2c OK [12:01:08]MH_I2C_Read... [12:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:08]Read from MH i2c: E2 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 17 00 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 17 00 77 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 94 [12:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:01:08]wFMCommunicate OK [12:01:08]requested_item fd.num is exist - process it [12:01:08]SAM_PROTO_GetFieldsCounters [12:01:08]wFMCommunicate request_size=4 [12:01:08]MH_SAM_APDU [12:01:08]CAPDU: 80 13 00 00 [12:01:08]Write to MH i2c: E2 08 00 78 47 80 13 00 00 00 00 00 00 3B [12:01:08]Write i2c OK [12:01:08]MH_I2C_Read... [12:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:08]Read from MH i2c: E2 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 62 00 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 62 00 78 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 4F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [12:01: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 4F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:08]wFMCommunicate OK [12:01:08]SAM_PROTO_GetFieldsCounters done [12:01:08]requested_item shift.num is exist - process it [12:01:08]requested_item shift.opened is exist - process it [12:01:08]req_shift_opened [12:01:08]FM_GetShiftState [12:01:08]SAM_PROTO_GetShiftState [12:01:08]wFMCommunicate request_size=4 [12:01:08]MH_SAM_APDU [12:01:08]CAPDU: 80 13 01 00 [12:01:08]Write to MH i2c: E2 08 00 79 47 80 13 01 00 00 00 00 00 3D [12:01:08]Write i2c OK [12:01:08]MH_I2C_Read... [12:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:08]Read from MH i2c: E2 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 0E 00 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 0E 00 79 47 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 7A [12:01:08]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:01:08]wFMCommunicate OK [12:01:08]SAM_PROTO_GetShiftState done [12:01:08]FM_GetShiftState done [12:01:08]req_shift_opened done [12:01:08]requested_item shift.open_date is exist - process it [12:01:08]req_shift_open_date [12:01:08]req_shift_open_date done [12:01:08]produce_requested_data done [12:01:08]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69199,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:01:08]process_action_free close_receipt [12:01:08]json_value_free [12:01:08]json_value_free done [12:01:08]process_json_proto returns [12:01:08]Send response to host [12:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69199,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:01:08]free response buf [12:01:08]execute_script done [12:01:08]execute_script returns [12:01:08]free content buf [12:01:08]Sock 7.Close socket [12:01:08]Sock 7.Thread stoped [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:29]accept exits with 9 [12:01:29]New connection [12:01:29]New thread 3066785124 created [12:01:29]Thread 3066641764 joined [12:01:29]Waiting for new connection... [12:01:29] Sock 9.Parse request [12:01:29]Sock 9.Check first char [12:01:29]Sock 9.First char is OK [12:01:29]request: POST /json_proto HTTP/1.0 [12:01:29]Method: POST [12:01:29]URL: /json_proto [12:01:29]Method is POST - this is cgi request [12:01:29]url: /json_proto [12:01:29]query_string will be loaded in cgi processing [12:01:29]execute_cgi json_proto POST (null) [12:01:29]execute_cgi path=json_proto method=POST [12:01:29]POST find Content-Length [12:01:29]Host: 172.17.49.132:8080 [12:01:29]Content-Length: 673 [12:01:29]Content-Type: application/json [12:01:29] [12:01:29]POST finish read [12:01:29]Found Content-Length = 673 [12:01:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 9.310, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:29]execute_script... [12:01:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 9.310, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:29]POST & json_proto [12:01:29]process_json_proto [12:01:29]json parsed OK: [12:01:29]protocol is kg_v1.0 [12:01:29]action value=close_receipt [12:01:29]process_action close_receipt [12:01:29]cmd_close_receipt [12:01:29]MH_GetDate [12:01:29]Write to MH i2c: F0 00 00 7A 47 B0 [12:01:29]Write i2c OK [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: F0 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: F0 09 00 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: F0 09 00 7A 47 00 22 33 A6 66 E7 4B C0 64 70 [12:01:29]GetLastDocTimeStamp 1722168073 [12:01:29]current date 1722168098 [12:01:29]FM_GetShiftState [12:01:29]SAM_PROTO_GetShiftState [12:01:29]wFMCommunicate request_size=4 [12:01:29]MH_SAM_APDU [12:01:29]CAPDU: 80 13 01 00 [12:01:29]Write to MH i2c: E2 08 00 7B 47 80 13 01 00 00 00 00 00 3F [12:01:29]Write i2c OK [12:01:29]MH_I2C_Read... [12:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:29]Read from MH i2c: E2 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 0E 00 [12:01:29]MH_I2C_Read... [12:01:29]Read from MH i2c: E2 0E 00 7B 47 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 7C [12:01:29]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:01:29]wFMCommunicate OK [12:01:29]SAM_PROTO_GetShiftState done [12:01:29]FM_GetShiftState done [12:01:29]opened in 1722127251 [12:01:29]opened+sec_in_day 1722213651 [12:01:29]quantity*price = 70011 [12:01:29]sum+1 = 70012 [12:01:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 83 28.07.2024 12:01 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69200 ФПД: 78191368216620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120138&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69200&fm=78191368216620&tin=02508201610067®Number=0000000000092638&sum=70000 [12:01:31]StoreToDocumentArchive [12:01:31]shift 429 fd 69200 [12:01:31]save to /storage/0429/doc_00069200 [12:01:31]save last doc name /storage/0429/doc_00069200 to /storage/kkm_last_doc_name [12:01:31]save OK [12:01:31]Clear old archive folders... [12:01:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:01:31]tlvbuf is 00A262E0 [12:01:31]SAM_PROTO_ClearQueue [12:01:31]wFMCommunicate request_size=4 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 09 00 00 [12:01:31]Write to MH i2c: E2 08 00 88 47 80 09 00 00 00 00 00 00 41 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 88 47 00 90 00 43 [12:01:31]RAPDU: 90 00 [12:01:31]wFMCommunicate OK [12:01:31]SAM_PROTO_ClearQueue done [12:01:31]KKMCreateOFDPacket [12:01:31]OFDProtocolAddRootSTLVToBuf [12:01:31]FM_MakeSignedData [12:01:31]FM_MakeSignedData [12:01:31]SAM_PROTO_SignData [12:01:31]wFMCommunicate request_size=4 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 0D 01 02 [12:01:31]Write to MH i2c: E2 08 00 89 47 80 0D 01 02 00 00 00 00 49 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 89 47 00 90 00 44 [12:01:31]RAPDU: 90 00 [12:01:31]wFMCommunicate OK [12:01:31]wFMCommunicate request_size=255 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5E 24 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 22 33 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 50 0E 01 00 35 04 06 00 47 1D 58 BA [12:01:31]Write to MH i2c: E2 02 01 8A 47 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5E 24 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 22 33 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 50 0E 01 00 35 04 06 00 47 1D 58 BA 00 00 0F [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 8A 47 00 90 00 45 [12:01:31]RAPDU: 90 00 [12:01:31]wFMCommunicate OK [12:01:31]wFMCommunicate request_size=7 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 0D 02 02 02 20 2C [12:01:31]Write to MH i2c: E2 0A 00 8B 47 80 0D 02 02 02 00 20 2C 00 00 9C [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 03 00 8B 47 00 90 00 46 [12:01:31]RAPDU: 90 00 [12:01:31]wFMCommunicate OK [12:01:31]wFMCommunicate request_size=4 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 0D 03 02 [12:01:31]Write to MH i2c: E2 08 00 8C 47 80 0D 03 02 00 00 00 00 4E [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 0B 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 0B 00 8C 47 00 A9 68 CA 3A EC A7 91 E4 90 00 6C [12:01:31]RAPDU: A9 68 CA 3A EC A7 91 E4 90 00 [12:01:31]wFMCommunicate OK [12:01:31]SAM_PROTO_SignData done [12:01:31]FM_MakeSignedData done [12:01:31]CreateOFDProtocolMessage [12:01:31]wFMCommunicate request_size=4 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 11 00 00 [12:01:31]Write to MH i2c: E2 08 00 8D 47 80 11 00 00 00 00 00 00 4E [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 17 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 17 00 8D 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AA [12:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:01:31]wFMCommunicate OK [12:01:31]CreateOFDProtocolMessage done [12:01:31]OFDSenderStorePacket 69200 [12:01:31]StoreOFDPacket docnum=69200 [12:01:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 12 B2 04 01 55 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5E 24 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 22 33 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 50 0E 01 00 35 04 06 00 47 1D 58 BA 20 2C A9 68 CA 3A EC A7 91 E4 [12:01:31]CheckFolder [12:01:31]dirname=/storage/ofd_packets [12:01:31]CheckFolder done [12:01:31]ProducePacketName [12:01:31]name=ofd_packets/00069200 [12:01:31]NVStorageSaveData ofd_packets/00069200 [12:01:31]File name is /storage/ofd_packets/00069200 [12:01:31]Write 298 bytes [12:01:31]NVStorageSaveData done [12:01:31]OFDSenderStorePacket done [12:01:31]KKMCreateOFDPacket done [12:01:31]NVStorageSaveData kkm_last_timestamp [12:01:31]File name is /storage/kkm_last_timestamp [12:01:31]Write 4 bytes [12:01:31]NVStorageSaveData done [12:01:31]ExternCall_PrintAddStr [12:01:31]wPrintStart [12:01:31]Write to MH i2c: 01 00 00 8E 47 D5 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: 01 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: 01 07 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: 01 07 00 8E 47 00 00 00 00 00 FF 0F EA [12:01:31]RasterBufferAndPrint [12:01:31]line Счет N : (1)871857 [12:01:31]line ИНН: 02508201610067 [12:01:31]line Контрольно-Кассовый Чек [12:01:31]line ПРОДАЖА [12:01:31]line ТРК (МРК, ГНК) : 1 [12:01:31]line Товар: 2710194210 [12:01:31]line ДТ-К-5 [12:01:31]line 9.310 * 75.20 [12:01:31]line = 700.11 [12:01:31]line НДС 12% НСП 1% [12:01:31]line > о реализуемом товаре [12:01:31]line ОКРУГЛЕНИЕ: -0.11 [12:01:31]line ИТОГО: 700.00 [12:01:31]line Внесено: 700.00 [12:01:31]line СДАЧА: 0.00 [12:01:31]line НСП 1% : 6.20 [12:01:31]line НДС 12% : 74.35 [12:01:31]line Наличными: 700.00 [12:01:31]line Безнал.: 0.00 [12:01:31]line Место: АЗС № 125 "Партнер Нефть" [12:01:31]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:01:31]line СНО: Общий режим [12:01:31]line Чек 83 28.07.2024 12:01 [12:01:31]line Смена: 429 ФФД: 1.0 [12:01:31]line ЗНМ: 0300000049 [12:01:31]line РНМ: 0000000000092638 [12:01:31]line Версия ККМ: 001 [12:01:31]line ФМ: 0000000000874949 [12:01:31]line ФД: 69200 [12:01:31]line ФПД: 78191368216620 [12:01:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120138&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69200&fm=78191368216620&tin=02508201610067®Number=0000000000092638&sum=70000 [12:01:31]OFD Sender: Processing packet 69200 [packets to send 19, broken 18] [12:01:31]ProducePacketName [12:01:31]name=ofd_packets/00069200 [12:01:31]OFD Sender: To server: pG, [12:01:31]CommunicateWithHost lk.salyk.kg:30040 [12:01:31]ConnectInit lk.salyk.kg [12:01:31]written 0, free lines is 4095 [12:01:31]Connected sock=10 [12:01:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 12 B2 04 01 55 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5E 24 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 22 33 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 50 0E 01 00 35 04 06 00 47 1D 58 BA 20 2C A9 68 CA 3A EC A7 91 E4 [12:01:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 2E 33 47 00 70 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 50 0E 01 00 F4 03 04 00 92 D9 A5 66 B6 04 01 00 00 2A D1 F4 C3 AA 3A FC A9 [12:01:32]CommunicateWithHost err = 0 [12:01:32]CheckOFDResponse [12:01:32]1017 (14) - 77093643461234 [12:01:32]1041 (16) - 0000000000874949 [12:01:32]1040 (4) - 69200 [12:01:32]1012 (4) - 28.07.2024 05:39 [12:01:32]1206 (1) - 0 [12:01:32]OFD Sender: Remove packet 69200 [12:01:32]ProducePacketName [12:01:32]name=ofd_packets/00069200 [12:01:32]NVStorageDeleteData [12:01:32]Write to MH i2c: 01 00 00 B9 47 00 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: 01 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: 01 07 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: 01 07 00 B9 47 00 00 00 00 00 EF 0C 02 [12:01:32]RasterBufferAndPrint [12:01:32]line [12:01:32]line [12:01:32]line [12:01:32]line [12:01:32]line [12:01:32]written 0, free lines is 3320 [12:01:32]MH_Cut [12:01:32]Write to MH i2c: D1 01 00 C0 47 01 D9 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: D1 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: D1 01 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: D1 01 00 C0 47 00 D8 [12:01:32]Write to MH i2c: 01 00 00 C1 47 08 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]OFD Sender: No OFD packet to send [12:01:33]*** Cut start [12:01:33]*** Partial cut [12:01:33]*** CUTSNS_PIN = 1 [12:01:33]*** CUTSNS_PIN = 0 [12:01:33]*** Brake cut motor [12:01:33]Read from MH i2c: 01 [12:01:33]MH_I2C_Read... [12:01:33]*** Stop cut motor [12:01:33]*** Cut end [12:01:33]Read from MH i2c: 01 07 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 C1 47 00 00 00 00 00 FF 0F 1D [12:01:33]process_action close_receipt done [12:01:33]requested_data is exist [12:01:33]produce_requested_data [12:01:33]requested_item fm.sn is exist - process it [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 11 00 00 [12:01:33]Write to MH i2c: E2 08 00 C2 47 80 11 00 00 00 00 00 00 83 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 17 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 17 00 C2 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 DF [12:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:01:33]wFMCommunicate OK [12:01:33]requested_item fd.num is exist - process it [12:01:33]SAM_PROTO_GetFieldsCounters [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 13 00 00 [12:01:33]Write to MH i2c: E2 08 00 C3 47 80 13 00 00 00 00 00 00 86 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 62 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 62 00 C3 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 50 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [12:01:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 50 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:33]wFMCommunicate OK [12:01:33]SAM_PROTO_GetFieldsCounters done [12:01:33]requested_item shift.num is exist - process it [12:01:33]requested_item shift.opened is exist - process it [12:01:33]req_shift_opened [12:01:33]FM_GetShiftState [12:01:33]SAM_PROTO_GetShiftState [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 13 01 00 [12:01:33]Write to MH i2c: E2 08 00 C4 47 80 13 01 00 00 00 00 00 88 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 0E 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 0E 00 C4 47 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 C5 [12:01:33]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:01:33]wFMCommunicate OK [12:01:33]SAM_PROTO_GetShiftState done [12:01:33]FM_GetShiftState done [12:01:33]req_shift_opened done [12:01:33]requested_item shift.open_date is exist - process it [12:01:33]req_shift_open_date [12:01:33]req_shift_open_date done [12:01:33]produce_requested_data done [12:01:33]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69200,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:01:33]process_action_free close_receipt [12:01:33]json_value_free [12:01:33]json_value_free done [12:01:33]process_json_proto returns [12:01:33]Send response to host [12:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69200,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:01:33]free response buf [12:01:33]execute_script done [12:01:33]execute_script returns [12:01:33]free content buf [12:01:33]Sock 9.Close socket [12:01:33]Sock 9.Thread stoped [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]accept exits with 7 [12:03:07]New connection [12:03:07]New thread 3066641764 created [12:03:07]Thread 3066785124 joined [12:03:07]Waiting for new connection... [12:03:07] Sock 7.Parse request [12:03:07]Sock 7.Check first char [12:03:07]Sock 7.First char is OK [12:03:07]request: POST /json_proto HTTP/1.0 [12:03:07]Method: POST [12:03:07]URL: /json_proto [12:03:07]Method is POST - this is cgi request [12:03:07]url: /json_proto [12:03:07]query_string will be loaded in cgi processing [12:03:07]execute_cgi json_proto POST (null) [12:03:07]execute_cgi path=json_proto method=POST [12:03:07]POST find Content-Length [12:03:07]Host: 172.17.49.132:8080 [12:03:07]Content-Length: 825 [12:03:07]Content-Type: application/json [12:03:07] [12:03:07]POST finish read [12:03:07]Found Content-Length = 825 [12:03:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136568", "tax_sys" : 0, "items" : [ { "code": "48746656", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims", "price" : 138.00, "quantity" : 2.000, "sum" : 276.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:07]execute_script... [12:03:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136568", "tax_sys" : 0, "items" : [ { "code": "48746656", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims", "price" : 138.00, "quantity" : 2.000, "sum" : 276.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:07]POST & json_proto [12:03:07]process_json_proto [12:03:07]json parsed OK: [12:03:07]protocol is kg_v1.0 [12:03:07]action value=close_receipt [12:03:07]process_action close_receipt [12:03:07]cmd_close_receipt [12:03:07]MH_GetDate [12:03:07]Write to MH i2c: F0 00 00 C5 47 FB [12:03:07]Write i2c OK [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: F0 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: F0 09 00 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: F0 09 00 C5 47 00 84 33 A6 66 E7 4B C0 64 1D [12:03:07]GetLastDocTimeStamp 1722168098 [12:03:07]current date 1722168196 [12:03:07]FM_GetShiftState [12:03:07]SAM_PROTO_GetShiftState [12:03:07]wFMCommunicate request_size=4 [12:03:07]MH_SAM_APDU [12:03:07]CAPDU: 80 13 01 00 [12:03:07]Write to MH i2c: E2 08 00 C6 47 80 13 01 00 00 00 00 00 8A [12:03:07]Write i2c OK [12:03:07]MH_I2C_Read... [12:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:07]Read from MH i2c: E2 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: E2 0E 00 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: E2 0E 00 C6 47 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 C7 [12:03:07]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:03:07]wFMCommunicate OK [12:03:07]SAM_PROTO_GetShiftState done [12:03:07]FM_GetShiftState done [12:03:07]opened in 1722127251 [12:03:07]opened+sec_in_day 1722213651 [12:03:07]quantity*price = 27600 [12:03:07]sum+1 = 27601 [12:03:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 276.00 НСП 1% : 2.44 НДС 12% : 29.31 Наличными: 0.00 Безнал.: 276.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 84 28.07.2024 12:03 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69201 ФПД: 269076800420287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120316&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69201&fm=269076800420287&tin=02508201610067®Number=0000000000092638&sum=27600 0 [12:03:08]StoreToDocumentArchive [12:03:08]shift 429 fd 69201 [12:03:08]save to /storage/0429/doc_00069201 [12:03:08]save last doc name /storage/0429/doc_00069201 to /storage/kkm_last_doc_name [12:03:08]save OK [12:03:08]Clear old archive folders... [12:03:08]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:03:08]tlvbuf is 00B6A780 [12:03:08]SAM_PROTO_ClearQueue [12:03:08]wFMCommunicate request_size=4 [12:03:08]MH_SAM_APDU [12:03:08]CAPDU: 80 09 00 00 [12:03:08]Write to MH i2c: E2 08 00 D3 47 80 09 00 00 00 00 00 00 8C [12:03:08]Write i2c OK [12:03:08]MH_I2C_Read... [12:03:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:08]Read from MH i2c: E2 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 03 00 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 03 00 D3 47 00 90 00 8E [12:03:08]RAPDU: 90 00 [12:03:08]wFMCommunicate OK [12:03:08]SAM_PROTO_ClearQueue done [12:03:08]KKMCreateOFDPacket [12:03:08]OFDProtocolAddRootSTLVToBuf [12:03:08]FM_MakeSignedData [12:03:08]FM_MakeSignedData [12:03:08]SAM_PROTO_SignData [12:03:08]wFMCommunicate request_size=4 [12:03:08]MH_SAM_APDU [12:03:08]CAPDU: 80 0D 01 02 [12:03:08]Write to MH i2c: E2 08 00 D4 47 80 0D 01 02 00 00 00 00 94 [12:03:08]Write i2c OK [12:03:08]MH_I2C_Read... [12:03:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:08]Read from MH i2c: E2 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 03 00 [12:03:08]MH_I2C_Read... [12:03:08]Read from MH i2c: E2 03 00 D4 47 00 90 00 8F [12:03:08]RAPDU: 90 00 [12:03:08]wFMCommunicate OK [12:03:08]wFMCommunicate request_size=255 [12:03:08]MH_SAM_APDU [12:03:08]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 36 36 35 36 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 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 84 33 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 [12:03:08]Write to MH i2c: E2 02 01 D5 47 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 36 36 35 36 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 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 84 33 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 00 00 57 [12:03:08]Write i2c OK [12:03:08]MH_I2C_Read... [12:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:09]Read from MH i2c: E2 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 03 00 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 03 00 D5 47 00 90 00 90 [12:03:09]RAPDU: 90 00 [12:03:09]wFMCommunicate OK [12:03:09]wFMCommunicate request_size=35 [12:03:09]MH_SAM_APDU [12:03:09]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 51 0E 01 00 35 04 06 00 F4 B9 53 1B 39 BF [12:03:09]Write to MH i2c: E2 26 00 D6 47 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 51 0E 01 00 35 04 06 00 F4 B9 53 1B 39 BF 00 00 06 [12:03:09]Write i2c OK [12:03:09]MH_I2C_Read... [12:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:09]Read from MH i2c: E2 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 03 00 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 03 00 D6 47 00 90 00 91 [12:03:09]RAPDU: 90 00 [12:03:09]wFMCommunicate OK [12:03:09]wFMCommunicate request_size=4 [12:03:09]MH_SAM_APDU [12:03:09]CAPDU: 80 0D 03 02 [12:03:09]Write to MH i2c: E2 08 00 D7 47 80 0D 03 02 00 00 00 00 99 [12:03:09]Write i2c OK [12:03:09]MH_I2C_Read... [12:03:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:09]Read from MH i2c: E2 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 0B 00 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 0B 00 D7 47 00 04 2D B2 93 7A 41 59 60 90 00 84 [12:03:09]RAPDU: 04 2D B2 93 7A 41 59 60 90 00 [12:03:09]wFMCommunicate OK [12:03:09]SAM_PROTO_SignData done [12:03:09]FM_MakeSignedData done [12:03:09]CreateOFDProtocolMessage [12:03:09]wFMCommunicate request_size=4 [12:03:09]MH_SAM_APDU [12:03:09]CAPDU: 80 11 00 00 [12:03:09]Write to MH i2c: E2 08 00 D8 47 80 11 00 00 00 00 00 00 99 [12:03:09]Write i2c OK [12:03:09]MH_I2C_Read... [12:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:09]Read from MH i2c: E2 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 17 00 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 17 00 D8 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F5 [12:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:03:09]wFMCommunicate OK [12:03:09]CreateOFDProtocolMessage done [12:03:09]OFDSenderStorePacket 69201 [12:03:09]StoreOFDPacket docnum=69201 [12:03:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 28 01 00 00 D4 6A 20 01 1A 7D 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 36 36 35 36 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 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 84 33 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 51 0E 01 00 35 04 06 00 F4 B9 53 1B 39 BF 04 2D B2 93 7A 41 59 60 [12:03:09]CheckFolder [12:03:09]dirname=/storage/ofd_packets [12:03:09]CheckFolder done [12:03:09]ProducePacketName [12:03:09]name=ofd_packets/00069201 [12:03:09]NVStorageSaveData ofd_packets/00069201 [12:03:09]File name is /storage/ofd_packets/00069201 [12:03:09]Write 326 bytes [12:03:09]NVStorageSaveData done [12:03:09]OFDSenderStorePacket done [12:03:09]KKMCreateOFDPacket done [12:03:09]NVStorageSaveData kkm_last_timestamp [12:03:09]File name is /storage/kkm_last_timestamp [12:03:09]Write 4 bytes [12:03:09]NVStorageSaveData done [12:03:09]ExternCall_PrintAddStr [12:03:09]wPrintStart [12:03:09]Write to MH i2c: 01 00 00 D9 47 20 [12:03:09]OFD Sender: Processing packet 69201 [packets to send 19, broken 18] [12:03:09]ProducePacketName [12:03:09]name=ofd_packets/00069201 [12:03:09]OFD Sender: To server: pG, [12:03:09]CommunicateWithHost lk.salyk.kg:30040 [12:03:09]ConnectInit lk.salyk.kg [12:03:09]Write i2c OK [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: 01 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: 01 07 00 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: 01 07 00 D9 47 00 00 00 00 00 FF 0F 35 [12:03:09]RasterBufferAndPrint [12:03:09]line Счет N : (3)136568 [12:03:09]line ИНН: 02508201610067 [12:03:09]line Контрольно-Кассовый Чек [12:03:09]line ПРОДАЖА [12:03:09]line Товар: 48746656 [12:03:09]line Сигареты Parliament Super Slims [12:03:09]line 2.000 * 138.00 [12:03:09]line = 276.00 [12:03:09]line НДС 12% НСП 1% [12:03:09]line > о реализуемом товаре [12:03:09]line ИТОГО: 276.00 [12:03:09]line НСП 1% : 2.44 [12:03:09]line НДС 12% : 29.31 [12:03:09]line Наличными: 0.00 [12:03:09]line Безнал.: 276.00 [12:03:09]line Место: АЗС № 125 "Партнер Нефть" [12:03:09]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:03:09]line СНО: Общий режим [12:03:09]line Чек 84 28.07.2024 12:03 [12:03:09]line Смена: 429 ФФД: 1.0 [12:03:09]line ЗНМ: 0300000049 [12:03:09]line РНМ: 0000000000092638 [12:03:09]line Версия ККМ: 001 [12:03:09]line Платежная система: АКБ Кыргызстан [12:03:09]line ФМ: 0000000000874949 [12:03:09]line ФД: 69201 [12:03:09]line ФПД: 269076800420287 [12:03:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120316&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69201&fm=269076800420287&tin=02508201610067®Number=0000000000092638&sum=27600 [12:03:09]line 0 [12:03:09]Connected sock=10 [12:03:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 28 01 00 00 D4 6A 20 01 1A 7D 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 36 36 35 36 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 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 84 33 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 51 0E 01 00 35 04 06 00 F4 B9 53 1B 39 BF 04 2D B2 93 7A 41 59 60 [12:03:09]written 0, free lines is 4095 [12:03:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 20 37 47 00 2F 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 51 0E 01 00 F4 03 04 00 F4 D9 A5 66 B6 04 01 00 00 D6 4A 95 56 E2 DE B9 E9 [12:03:09]CommunicateWithHost err = 0 [12:03:09]CheckOFDResponse [12:03:09]1017 (14) - 77093643461234 [12:03:09]1041 (16) - 0000000000874949 [12:03:09]1040 (4) - 69201 [12:03:09]1012 (4) - 28.07.2024 05:41 [12:03:09]1206 (1) - 0 [12:03:09]OFD Sender: Remove packet 69201 [12:03:09]ProducePacketName [12:03:09]name=ofd_packets/00069201 [12:03:09]NVStorageDeleteData [12:03:10]Write to MH i2c: 01 00 00 04 48 4C [12:03:10]Write i2c OK [12:03:10]MH_I2C_Read... [12:03:10]Read from MH i2c: 01 [12:03:10]MH_I2C_Read... [12:03:10]Read from MH i2c: 01 07 00 [12:03:10]MH_I2C_Read... [12:03:10]Read from MH i2c: 01 07 00 04 48 00 00 00 00 00 E8 0C 47 [12:03:10]RasterBufferAndPrint [12:03:10]line [12:03:10]line [12:03:10]line [12:03:10]line [12:03:10]line [12:03:10]written 0, free lines is 3310 [12:03:10]MH_Cut [12:03:10]Write to MH i2c: D1 01 00 0B 48 01 25 [12:03:10]Write i2c OK [12:03:10]MH_I2C_Read... [12:03:10]Read from MH i2c: D1 [12:03:10]MH_I2C_Read... [12:03:10]Read from MH i2c: D1 01 00 [12:03:10]MH_I2C_Read... [12:03:10]Read from MH i2c: D1 01 00 0B 48 00 24 [12:03:10]Write to MH i2c: 01 00 00 0C 48 54 [12:03:10]Write i2c OK [12:03:10]MH_I2C_Read... [12:03:10]OFD Sender: No OFD packet to send [12:03:10]*** Cut start [12:03:10]*** Partial cut [12:03:10]*** CUTSNS_PIN = 1 [12:03:10]*** CUTSNS_PIN = 0 [12:03:10]*** Brake cut motor [12:03:11]Read from MH i2c: 01 [12:03:11]MH_I2C_Read... [12:03:11]*** Stop cut motor [12:03:11]*** Cut end [12:03:11]Read from MH i2c: 01 07 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: 01 07 00 0C 48 00 00 00 00 00 FF 0F 69 [12:03:11]process_action close_receipt done [12:03:11]requested_data is exist [12:03:11]produce_requested_data [12:03:11]requested_item fm.sn is exist - process it [12:03:11]wFMCommunicate request_size=4 [12:03:11]MH_SAM_APDU [12:03:11]CAPDU: 80 11 00 00 [12:03:11]Write to MH i2c: E2 08 00 0D 48 80 11 00 00 00 00 00 00 CF [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:11]Read from MH i2c: E2 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 17 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 17 00 0D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 2B [12:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:03:11]wFMCommunicate OK [12:03:11]requested_item fd.num is exist - process it [12:03:11]SAM_PROTO_GetFieldsCounters [12:03:11]wFMCommunicate request_size=4 [12:03:11]MH_SAM_APDU [12:03:11]CAPDU: 80 13 00 00 [12:03:11]Write to MH i2c: E2 08 00 0E 48 80 13 00 00 00 00 00 00 D2 [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:11]Read from MH i2c: E2 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 62 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 62 00 0E 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 51 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [12:03: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 51 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:11]wFMCommunicate OK [12:03:11]SAM_PROTO_GetFieldsCounters done [12:03:11]requested_item shift.num is exist - process it [12:03:11]requested_item shift.opened is exist - process it [12:03:11]req_shift_opened [12:03:11]FM_GetShiftState [12:03:11]SAM_PROTO_GetShiftState [12:03:11]wFMCommunicate request_size=4 [12:03:11]MH_SAM_APDU [12:03:11]CAPDU: 80 13 01 00 [12:03:11]Write to MH i2c: E2 08 00 0F 48 80 13 01 00 00 00 00 00 D4 [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:11]Read from MH i2c: E2 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 0E 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 0E 00 0F 48 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 11 [12:03:11]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:03:11]wFMCommunicate OK [12:03:11]SAM_PROTO_GetShiftState done [12:03:11]FM_GetShiftState done [12:03:11]req_shift_opened done [12:03:11]requested_item shift.open_date is exist - process it [12:03:11]req_shift_open_date [12:03:11]req_shift_open_date done [12:03:11]produce_requested_data done [12:03:11]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69201,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:03:11]process_action_free close_receipt [12:03:11]json_value_free [12:03:11]json_value_free done [12:03:11]process_json_proto returns [12:03:11]Send response to host [12:03:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69201,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:03:11]free response buf [12:03:11]execute_script done [12:03:11]execute_script returns [12:03:11]free content buf [12:03:11]Sock 7.Close socket [12:03:11]Sock 7.Thread stoped [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:27]accept exits with 9 [12:05:27]New connection [12:05:27]New thread 3066785124 created [12:05:27]Thread 3066641764 joined [12:05:27]Waiting for new connection... [12:05:27] Sock 9.Parse request [12:05:27]Sock 9.Check first char [12:05:27]Sock 9.First char is OK [12:05:27]request: POST /json_proto HTTP/1.0 [12:05:27]Method: POST [12:05:27]URL: /json_proto [12:05:27]Method is POST - this is cgi request [12:05:27]url: /json_proto [12:05:27]query_string will be loaded in cgi processing [12:05:27]execute_cgi json_proto POST (null) [12:05:27]execute_cgi path=json_proto method=POST [12:05:27]POST find Content-Length [12:05:27]Host: 172.17.49.132:8080 [12:05:27]Content-Length: 677 [12:05:27]Content-Type: application/json [12:05:27] [12:05:27]POST finish read [12:05:27]Found Content-Length = 677 [12:05:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:27]execute_script... [12:05:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:27]POST & json_proto [12:05:27]process_json_proto [12:05:27]json parsed OK: [12:05:27]protocol is kg_v1.0 [12:05:27]action value=close_receipt [12:05:27]process_action close_receipt [12:05:27]cmd_close_receipt [12:05:27]MH_GetDate [12:05:27]Write to MH i2c: F0 00 00 10 48 47 [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: F0 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: F0 09 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: F0 09 00 10 48 00 10 34 A6 66 E7 4B C0 64 F6 [12:05:27]GetLastDocTimeStamp 1722168196 [12:05:27]current date 1722168336 [12:05:27]FM_GetShiftState [12:05:27]SAM_PROTO_GetShiftState [12:05:27]wFMCommunicate request_size=4 [12:05:27]MH_SAM_APDU [12:05:27]CAPDU: 80 13 01 00 [12:05:27]Write to MH i2c: E2 08 00 11 48 80 13 01 00 00 00 00 00 D6 [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:27]Read from MH i2c: E2 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 0E 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 0E 00 11 48 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 13 [12:05:27]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:05:27]wFMCommunicate OK [12:05:27]SAM_PROTO_GetShiftState done [12:05:27]FM_GetShiftState done [12:05:27]opened in 1722127251 [12:05:27]opened+sec_in_day 1722213651 [12:05:27]quantity*price = 50036 [12:05:27]sum+1 = 50037 [12:05:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 85 28.07.2024 12:05 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69202 ФПД: 57100102680535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120536&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69202&fm=57100102680535&tin=02508201610067®Number=0000000000092638&sum=50000 [12:05:28]StoreToDocumentArchive [12:05:28]shift 429 fd 69202 [12:05:28]save to /storage/0429/doc_00069202 [12:05:28]save last doc name /storage/0429/doc_00069202 to /storage/kkm_last_doc_name [12:05:28]save OK [12:05:28]Clear old archive folders... [12:05:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:28]tlvbuf is 00A9C330 [12:05:28]SAM_PROTO_ClearQueue [12:05:28]wFMCommunicate request_size=4 [12:05:28]MH_SAM_APDU [12:05:28]CAPDU: 80 09 00 00 [12:05:28]Write to MH i2c: E2 08 00 1E 48 80 09 00 00 00 00 00 00 D8 [12:05:28]Write i2c OK [12:05:28]MH_I2C_Read... [12:05:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:28]Read from MH i2c: E2 [12:05:28]MH_I2C_Read... [12:05:28]Read from MH i2c: E2 03 00 [12:05:28]MH_I2C_Read... [12:05:28]Read from MH i2c: E2 03 00 1E 48 00 90 00 DA [12:05:28]RAPDU: 90 00 [12:05:28]wFMCommunicate OK [12:05:28]SAM_PROTO_ClearQueue done [12:05:28]KKMCreateOFDPacket [12:05:28]OFDProtocolAddRootSTLVToBuf [12:05:28]FM_MakeSignedData [12:05:28]FM_MakeSignedData [12:05:28]SAM_PROTO_SignData [12:05:28]wFMCommunicate request_size=4 [12:05:28]MH_SAM_APDU [12:05:28]CAPDU: 80 0D 01 02 [12:05:28]Write to MH i2c: E2 08 00 1F 48 80 0D 01 02 00 00 00 00 E0 [12:05:28]Write i2c OK [12:05:28]MH_I2C_Read... [12:05:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:28]Read from MH i2c: E2 [12:05:28]MH_I2C_Read... [12:05:28]Read from MH i2c: E2 03 00 [12:05:28]MH_I2C_Read... [12:05:28]Read from MH i2c: E2 03 00 1F 48 00 90 00 DB [12:05:28]RAPDU: 90 00 [12:05:28]wFMCommunicate OK [12:05:28]wFMCommunicate request_size=255 [12:05:28]MH_SAM_APDU [12:05:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 55 00 00 00 F4 03 04 00 10 34 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 52 0E 01 00 35 04 06 00 33 [12:05:28]Write to MH i2c: E2 02 01 20 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 55 00 00 00 F4 03 04 00 10 34 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 52 0E 01 00 35 04 06 00 33 00 00 52 [12:05:28]Write i2c OK [12:05:28]MH_I2C_Read... [12:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:29]Read from MH i2c: E2 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 03 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 03 00 20 48 00 90 00 DC [12:05:29]RAPDU: 90 00 [12:05:29]wFMCommunicate OK [12:05:29]wFMCommunicate request_size=10 [12:05:29]MH_SAM_APDU [12:05:29]CAPDU: 80 0D 02 02 05 EE A7 56 3F D7 [12:05:29]Write to MH i2c: E2 0D 00 21 48 80 0D 02 02 05 00 EE A7 56 3F D7 00 00 EE [12:05:29]Write i2c OK [12:05:29]MH_I2C_Read... [12:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:29]Read from MH i2c: E2 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 03 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 03 00 21 48 00 90 00 DD [12:05:29]RAPDU: 90 00 [12:05:29]wFMCommunicate OK [12:05:29]wFMCommunicate request_size=4 [12:05:29]MH_SAM_APDU [12:05:29]CAPDU: 80 0D 03 02 [12:05:29]Write to MH i2c: E2 08 00 22 48 80 0D 03 02 00 00 00 00 E5 [12:05:29]Write i2c OK [12:05:29]MH_I2C_Read... [12:05:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:29]Read from MH i2c: E2 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 0B 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 0B 00 22 48 00 17 52 8B 8E D0 E9 E4 33 90 00 38 [12:05:29]RAPDU: 17 52 8B 8E D0 E9 E4 33 90 00 [12:05:29]wFMCommunicate OK [12:05:29]SAM_PROTO_SignData done [12:05:29]FM_MakeSignedData done [12:05:29]CreateOFDProtocolMessage [12:05:29]wFMCommunicate request_size=4 [12:05:29]MH_SAM_APDU [12:05:29]CAPDU: 80 11 00 00 [12:05:29]Write to MH i2c: E2 08 00 23 48 80 11 00 00 00 00 00 00 E5 [12:05:29]Write i2c OK [12:05:29]MH_I2C_Read... [12:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:29]Read from MH i2c: E2 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 17 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 17 00 23 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 41 [12:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:05:29]wFMCommunicate OK [12:05:29]CreateOFDProtocolMessage done [12:05:29]OFDSenderStorePacket 69202 [12:05:29]StoreOFDPacket docnum=69202 [12:05:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 33 DB 07 01 F2 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 55 00 00 00 F4 03 04 00 10 34 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 52 0E 01 00 35 04 06 00 33 EE A7 56 3F D7 17 52 8B 8E D0 E9 E4 33 [12:05:29]CheckFolder [12:05:29]dirname=/storage/ofd_packets [12:05:29]CheckFolder done [12:05:29]ProducePacketName [12:05:29]name=ofd_packets/00069202 [12:05:29]NVStorageSaveData ofd_packets/00069202 [12:05:29]File name is /storage/ofd_packets/00069202 [12:05:29]Write 301 bytes [12:05:29]NVStorageSaveData done [12:05:29]OFDSenderStorePacket done [12:05:29]KKMCreateOFDPacket done [12:05:29]NVStorageSaveData kkm_last_timestamp [12:05:29]File name is /storage/kkm_last_timestamp [12:05:29]Write 4 bytes [12:05:29]NVStorageSaveData done [12:05:29]ExternCall_PrintAddStr [12:05:29]wPrintStart [12:05:29]Write to MH i2c: 01 00 00 24 48 6C [12:05:29]Write i2c OK [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: 01 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: 01 07 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: 01 07 00 24 48 00 00 00 00 00 FF 0F 81 [12:05:29]RasterBufferAndPrint [12:05:29]line Счет N : (1)871859 [12:05:29]line ИНН: 02508201610067 [12:05:29]line Контрольно-Кассовый Чек [12:05:29]line ПРОДАЖА [12:05:29]line ТРК (МРК, ГНК) : 42 [12:05:29]line Товар: 2710124130 [12:05:29]line Аи-92-К-5 [12:05:29]line 7.380 * 67.80 [12:05:29]line = 500.36 [12:05:29]line НДС 12% НСП 1% [12:05:29]line > о реализуемом товаре [12:05:29]line ОКРУГЛЕНИЕ: -0.36 [12:05:29]line ИТОГО: 500.00 [12:05:29]line Внесено: 500.00 [12:05:29]line СДАЧА: 0.00 [12:05:29]line НСП 1% : 4.43 [12:05:29]line НДС 12% : 53.14 [12:05:29]line Наличными: 500.00 [12:05:29]line Безнал.: 0.00 [12:05:29]line Место: АЗС № 125 "Партнер Нефть" [12:05:29]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:05:29]line СНО: Общий режим [12:05:29]line Чек 85 28.07.2024 12:05 [12:05:29]line Смена: 429 ФФД: 1.0 [12:05:29]line ЗНМ: 0300000049 [12:05:29]line РНМ: 0000000000092638 [12:05:29]line Версия ККМ: 001 [12:05:29]line ФМ: 0000000000874949 [12:05:29]line ФД: 69202 [12:05:29]line ФПД: 57100102680535 [12:05:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120536&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69202&fm=57100102680535&tin=02508201610067®Number=0000000000092638&sum=50000 [12:05:29]written 0, free lines is 4095 [12:05:29]OFD Sender: Processing packet 69202 [packets to send 19, broken 18] [12:05:29]ProducePacketName [12:05:29]name=ofd_packets/00069202 [12:05:29]OFD Sender: To server: pG, [12:05:29]CommunicateWithHost lk.salyk.kg:30040 [12:05:29]ConnectInit lk.salyk.kg [12:05:29]Connected sock=10 [12:05: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 39 34 39 0F 01 00 00 33 DB 07 01 F2 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 55 00 00 00 F4 03 04 00 10 34 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 52 0E 01 00 35 04 06 00 33 EE A7 56 3F D7 17 52 8B 8E D0 E9 E4 33 [12:05:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 F4 FB 47 00 C1 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 52 0E 01 00 F4 03 04 00 80 DA A5 66 B6 04 01 00 00 23 F4 A4 47 A9 92 0C A2 [12:05:29]CommunicateWithHost err = 0 [12:05:29]CheckOFDResponse [12:05:29]1017 (14) - 77093643461234 [12:05:29]1041 (16) - 0000000000874949 [12:05:29]1040 (4) - 69202 [12:05:29]1012 (4) - 28.07.2024 05:43 [12:05:29]1206 (1) - 0 [12:05:29]OFD Sender: Remove packet 69202 [12:05:29]ProducePacketName [12:05:29]name=ofd_packets/00069202 [12:05:29]NVStorageDeleteData [12:05:30]Write to MH i2c: 01 00 00 4F 48 97 [12:05:30]Write i2c OK [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: 01 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: 01 07 00 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: 01 07 00 4F 48 00 00 00 00 00 EC 0C 96 [12:05:30]RasterBufferAndPrint [12:05:30]line [12:05:30]line [12:05:30]line [12:05:30]line [12:05:30]line [12:05:30]written 0, free lines is 3314 [12:05:30]MH_Cut [12:05:30]Write to MH i2c: D1 01 00 56 48 01 70 [12:05:30]Write i2c OK [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: D1 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: D1 01 00 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: D1 01 00 56 48 00 6F [12:05:30]Write to MH i2c: 01 00 00 57 48 9F [12:05:30]Write i2c OK [12:05:30]MH_I2C_Read... [12:05:30]OFD Sender: No OFD packet to send [12:05:30]*** Cut start [12:05:30]*** Partial cut [12:05:30]*** CUTSNS_PIN = 1 [12:05:30]*** CUTSNS_PIN = 0 [12:05:30]*** Brake cut motor [12:05:31]Read from MH i2c: 01 [12:05:31]MH_I2C_Read... [12:05:31]*** Stop cut motor [12:05:31]*** Cut end [12:05:31]Read from MH i2c: 01 07 00 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: 01 07 00 57 48 00 00 00 00 00 FF 0F B4 [12:05:31]process_action close_receipt done [12:05:31]requested_data is exist [12:05:31]produce_requested_data [12:05:31]requested_item fm.sn is exist - process it [12:05:31]wFMCommunicate request_size=4 [12:05:31]MH_SAM_APDU [12:05:31]CAPDU: 80 11 00 00 [12:05:31]Write to MH i2c: E2 08 00 58 48 80 11 00 00 00 00 00 00 1A [12:05:31]Write i2c OK [12:05:31]MH_I2C_Read... [12:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:31]Read from MH i2c: E2 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 17 00 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 17 00 58 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 76 [12:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:05:31]wFMCommunicate OK [12:05:31]requested_item fd.num is exist - process it [12:05:31]SAM_PROTO_GetFieldsCounters [12:05:31]wFMCommunicate request_size=4 [12:05:31]MH_SAM_APDU [12:05:31]CAPDU: 80 13 00 00 [12:05:31]Write to MH i2c: E2 08 00 59 48 80 13 00 00 00 00 00 00 1D [12:05:31]Write i2c OK [12:05:31]MH_I2C_Read... [12:05:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:31]Read from MH i2c: E2 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 62 00 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 62 00 59 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 52 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [12:05: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 52 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:31]wFMCommunicate OK [12:05:31]SAM_PROTO_GetFieldsCounters done [12:05:31]requested_item shift.num is exist - process it [12:05:31]requested_item shift.opened is exist - process it [12:05:31]req_shift_opened [12:05:31]FM_GetShiftState [12:05:31]SAM_PROTO_GetShiftState [12:05:31]wFMCommunicate request_size=4 [12:05:31]MH_SAM_APDU [12:05:31]CAPDU: 80 13 01 00 [12:05:31]Write to MH i2c: E2 08 00 5A 48 80 13 01 00 00 00 00 00 1F [12:05:31]Write i2c OK [12:05:31]MH_I2C_Read... [12:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:31]Read from MH i2c: E2 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 0E 00 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 0E 00 5A 48 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 5C [12:05:31]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:05:31]wFMCommunicate OK [12:05:31]SAM_PROTO_GetShiftState done [12:05:31]FM_GetShiftState done [12:05:31]req_shift_opened done [12:05:31]requested_item shift.open_date is exist - process it [12:05:31]req_shift_open_date [12:05:31]req_shift_open_date done [12:05:31]produce_requested_data done [12:05:31]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69202,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:05:31]process_action_free close_receipt [12:05:31]json_value_free [12:05:31]json_value_free done [12:05:31]process_json_proto returns [12:05:31]Send response to host [12:05:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69202,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:05:31]free response buf [12:05:31]execute_script done [12:05:31]execute_script returns [12:05:31]free content buf [12:05:31]Sock 9.Close socket [12:05:31]Sock 9.Thread stoped [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:01]accept exits with 7 [12:06:01]New connection [12:06:01]New thread 3066641764 created [12:06:01]Thread 3066785124 joined [12:06:01]Waiting for new connection... [12:06:01] Sock 7.Parse request [12:06:01]Sock 7.Check first char [12:06:01]Sock 7.First char is OK [12:06:01]request: POST /json_proto HTTP/1.0 [12:06:01]Method: POST [12:06:01]URL: /json_proto [12:06:01]Method is POST - this is cgi request [12:06:01]url: /json_proto [12:06:01]query_string will be loaded in cgi processing [12:06:01]execute_cgi json_proto POST (null) [12:06:01]execute_cgi path=json_proto method=POST [12:06:01]POST find Content-Length [12:06:01]Host: 172.17.49.132:8080 [12:06:01]Content-Length: 678 [12:06:01]Content-Type: application/json [12:06:01] [12:06:01]POST finish read [12:06:01]Found Content-Length = 678 [12:06:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:01]execute_script... [12:06:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:01]POST & json_proto [12:06:01]process_json_proto [12:06:01]json parsed OK: [12:06:01]protocol is kg_v1.0 [12:06:01]action value=close_receipt [12:06:01]process_action close_receipt [12:06:01]cmd_close_receipt [12:06:01]MH_GetDate [12:06:01]Write to MH i2c: F0 00 00 5B 48 92 [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: F0 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: F0 09 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: F0 09 00 5B 48 00 32 34 A6 66 E7 4B C0 64 63 [12:06:01]GetLastDocTimeStamp 1722168336 [12:06:01]current date 1722168370 [12:06:01]FM_GetShiftState [12:06:01]SAM_PROTO_GetShiftState [12:06:01]wFMCommunicate request_size=4 [12:06:01]MH_SAM_APDU [12:06:01]CAPDU: 80 13 01 00 [12:06:01]Write to MH i2c: E2 08 00 5C 48 80 13 01 00 00 00 00 00 21 [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 5C 48 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 5E [12:06:02]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:06:02]wFMCommunicate OK [12:06:02]SAM_PROTO_GetShiftState done [12:06:02]FM_GetShiftState done [12:06:02]opened in 1722127251 [12:06:02]opened+sec_in_day 1722213651 [12:06:02]quantity*price = 80004 [12:06:02]sum+1 = 80005 [12:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 86 28.07.2024 12:06 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69203 ФПД: 22759683577154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120610&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69203&fm=22759683577154&tin=02508201610067®Number=0000000000092638&sum=80000 [12:06:03]StoreToDocumentArchive [12:06:03]shift 429 fd 69203 [12:06:03]save to /storage/0429/doc_00069203 [12:06:03]save last doc name /storage/0429/doc_00069203 to /storage/kkm_last_doc_name [12:06:03]save OK [12:06:03]Clear old archive folders... [12:06:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:03]tlvbuf is 00B62F50 [12:06:03]SAM_PROTO_ClearQueue [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 09 00 00 [12:06:03]Write to MH i2c: E2 08 00 69 48 80 09 00 00 00 00 00 00 23 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 69 48 00 90 00 25 [12:06:03]RAPDU: 90 00 [12:06:03]wFMCommunicate OK [12:06:03]SAM_PROTO_ClearQueue done [12:06:03]KKMCreateOFDPacket [12:06:03]OFDProtocolAddRootSTLVToBuf [12:06:03]FM_MakeSignedData [12:06:03]FM_MakeSignedData [12:06:03]SAM_PROTO_SignData [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 0D 01 02 [12:06:03]Write to MH i2c: E2 08 00 6A 48 80 0D 01 02 00 00 00 00 2B [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 6A 48 00 90 00 26 [12:06:03]RAPDU: 90 00 [12:06:03]wFMCommunicate OK [12:06:03]wFMCommunicate request_size=255 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 32 34 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 53 0E 01 00 35 04 06 00 14 [12:06:03]Write to MH i2c: E2 02 01 6B 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 32 34 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 53 0E 01 00 35 04 06 00 14 00 00 4F [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 6B 48 00 90 00 27 [12:06:03]RAPDU: 90 00 [12:06:03]wFMCommunicate OK [12:06:03]wFMCommunicate request_size=10 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 0D 02 02 05 B3 26 DA D5 42 [12:06:03]Write to MH i2c: E2 0D 00 6C 48 80 0D 02 02 05 00 B3 26 DA D5 42 00 00 02 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 6C 48 00 90 00 28 [12:06:03]RAPDU: 90 00 [12:06:03]wFMCommunicate OK [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 0D 03 02 [12:06:03]Write to MH i2c: E2 08 00 6D 48 80 0D 03 02 00 00 00 00 30 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 0B 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 0B 00 6D 48 00 CB C8 94 BF 3E 08 81 37 90 00 15 [12:06:03]RAPDU: CB C8 94 BF 3E 08 81 37 90 00 [12:06:03]wFMCommunicate OK [12:06:03]SAM_PROTO_SignData done [12:06:03]FM_MakeSignedData done [12:06:03]CreateOFDProtocolMessage [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 11 00 00 [12:06:03]Write to MH i2c: E2 08 00 6E 48 80 11 00 00 00 00 00 00 30 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 17 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 17 00 6E 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 8C [12:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:06:03]wFMCommunicate OK [12:06:03]CreateOFDProtocolMessage done [12:06:03]OFDSenderStorePacket 69203 [12:06:03]StoreOFDPacket docnum=69203 [12:06:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 5E 92 07 01 0D 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 32 34 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 53 0E 01 00 35 04 06 00 14 B3 26 DA D5 42 CB C8 94 BF 3E 08 81 37 [12:06:03]CheckFolder [12:06:03]dirname=/storage/ofd_packets [12:06:03]CheckFolder done [12:06:03]ProducePacketName [12:06:03]name=ofd_packets/00069203 [12:06:03]NVStorageSaveData ofd_packets/00069203 [12:06:03]File name is /storage/ofd_packets/00069203 [12:06:03]Write 301 bytes [12:06:03]NVStorageSaveData done [12:06:03]OFDSenderStorePacket done [12:06:03]KKMCreateOFDPacket done [12:06:03]NVStorageSaveData kkm_last_timestamp [12:06:03]File name is /storage/kkm_last_timestamp [12:06:03]Write 4 bytes [12:06:03]NVStorageSaveData done [12:06:03]ExternCall_PrintAddStr [12:06:03]wPrintStart [12:06:03]Write to MH i2c: 01 00 00 6F 48 B7 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: 01 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: 01 07 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: 01 07 00 6F 48 00 00 00 00 00 FF 0F CC [12:06:03]RasterBufferAndPrint [12:06:03]line Счет N : (1)871860 [12:06:03]line ИНН: 02508201610067 [12:06:03]line Контрольно-Кассовый Чек [12:06:03]line ПРОДАЖА [12:06:03]line ТРК (МРК, ГНК) : 52 [12:06:03]line Товар: 2710124130 [12:06:03]line Аи-92-К-5 [12:06:03]line 11.800 * 67.80 [12:06:03]line = 800.04 [12:06:03]line НДС 12% НСП 1% [12:06:03]line > о реализуемом товаре [12:06:03]line ОКРУГЛЕНИЕ: -0.04 [12:06:03]line ИТОГО: 800.00 [12:06:03]line Внесено: 800.00 [12:06:03]line СДАЧА: 0.00 [12:06:03]line НСП 1% : 7.08 [12:06:03]line НДС 12% : 84.96 [12:06:03]line Наличными: 800.00 [12:06:03]line Безнал.: 0.00 [12:06:03]line Место: АЗС № 125 "Партнер Нефть" [12:06:03]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:06:03]line СНО: Общий режим [12:06:03]line Чек 86 28.07.2024 12:06 [12:06:03]line Смена: 429 ФФД: 1.0 [12:06:03]line ЗНМ: 0300000049 [12:06:03]line РНМ: 0000000000092638 [12:06:03]line Версия ККМ: 001 [12:06:03]line ФМ: 0000000000874949 [12:06:03]line ФД: 69203 [12:06:03]line ФПД: 22759683577154 [12:06:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120610&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69203&fm=22759683577154&tin=02508201610067®Number=0000000000092638&sum=80000 [12:06:04]written 0, free lines is 4095 [12:06:04]OFD Sender: Processing packet 69203 [packets to send 19, broken 18] [12:06:04]ProducePacketName [12:06:04]name=ofd_packets/00069203 [12:06:04]OFD Sender: To server: pG, [12:06:04]CommunicateWithHost lk.salyk.kg:30040 [12:06:04]ConnectInit lk.salyk.kg [12:06:04]Connected sock=11 [12:06: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 39 34 39 0F 01 00 00 5E 92 07 01 0D 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 32 34 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 53 0E 01 00 35 04 06 00 14 B3 26 DA D5 42 CB C8 94 BF 3E 08 81 37 [12:06:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 66 44 47 00 3D 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 39 34 39 10 04 04 00 53 0E 01 00 F4 03 04 00 A2 DA A5 66 B6 04 01 00 00 DE 82 31 E9 7C 49 1B 8D [12:06:04]CommunicateWithHost err = 0 [12:06:04]CheckOFDResponse [12:06:04]1017 (14) - 77093643461234 [12:06:04]1041 (16) - 0000000000874949 [12:06:04]1040 (4) - 69203 [12:06:04]1012 (4) - 28.07.2024 05:44 [12:06:04]1206 (1) - 0 [12:06:04]OFD Sender: Remove packet 69203 [12:06:04]ProducePacketName [12:06:04]name=ofd_packets/00069203 [12:06:04]NVStorageDeleteData [12:06:04]Write to MH i2c: 01 00 00 9A 48 E2 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 07 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 07 00 9A 48 00 00 00 00 00 F1 0C E6 [12:06:04]RasterBufferAndPrint [12:06:04]line [12:06:04]line [12:06:04]line [12:06:04]line [12:06:04]line [12:06:04]written 0, free lines is 3319 [12:06:04]MH_Cut [12:06:04]Write to MH i2c: D1 01 00 A1 48 01 BB [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: D1 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: D1 01 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: D1 01 00 A1 48 00 BA [12:06:04]Write to MH i2c: 01 00 00 A2 48 EA [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]OFD Sender: No OFD packet to send [12:06:05]*** Cut start [12:06:05]*** Partial cut [12:06:05]*** CUTSNS_PIN = 1 [12:06:05]*** CUTSNS_PIN = 0 [12:06:05]*** Brake cut motor [12:06:05]Read from MH i2c: 01 [12:06:05]MH_I2C_Read... [12:06:05]*** Stop cut motor [12:06:05]*** Cut end [12:06:05]Read from MH i2c: 01 07 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: 01 07 00 A2 48 00 00 00 00 00 FF 0F FF [12:06:05]process_action close_receipt done [12:06:05]requested_data is exist [12:06:05]produce_requested_data [12:06:05]requested_item fm.sn is exist - process it [12:06:05]wFMCommunicate request_size=4 [12:06:05]MH_SAM_APDU [12:06:05]CAPDU: 80 11 00 00 [12:06:05]Write to MH i2c: E2 08 00 A3 48 80 11 00 00 00 00 00 00 65 [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:05]Read from MH i2c: E2 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 17 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 17 00 A3 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C1 [12:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:06:05]wFMCommunicate OK [12:06:05]requested_item fd.num is exist - process it [12:06:05]SAM_PROTO_GetFieldsCounters [12:06:05]wFMCommunicate request_size=4 [12:06:05]MH_SAM_APDU [12:06:05]CAPDU: 80 13 00 00 [12:06:05]Write to MH i2c: E2 08 00 A4 48 80 13 00 00 00 00 00 00 68 [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:05]Read from MH i2c: E2 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 62 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 62 00 A4 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 53 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [12:06: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 53 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:05]wFMCommunicate OK [12:06:05]SAM_PROTO_GetFieldsCounters done [12:06:05]requested_item shift.num is exist - process it [12:06:05]requested_item shift.opened is exist - process it [12:06:05]req_shift_opened [12:06:05]FM_GetShiftState [12:06:05]SAM_PROTO_GetShiftState [12:06:05]wFMCommunicate request_size=4 [12:06:05]MH_SAM_APDU [12:06:05]CAPDU: 80 13 01 00 [12:06:05]Write to MH i2c: E2 08 00 A5 48 80 13 01 00 00 00 00 00 6A [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:05]Read from MH i2c: E2 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: E2 0E 00 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: E2 0E 00 A5 48 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A7 [12:06:06]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:06:06]wFMCommunicate OK [12:06:06]SAM_PROTO_GetShiftState done [12:06:06]FM_GetShiftState done [12:06:06]req_shift_opened done [12:06:06]requested_item shift.open_date is exist - process it [12:06:06]req_shift_open_date [12:06:06]req_shift_open_date done [12:06:06]produce_requested_data done [12:06:06]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69203,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:06:06]process_action_free close_receipt [12:06:06]json_value_free [12:06:06]json_value_free done [12:06:06]process_json_proto returns [12:06:06]Send response to host [12:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69203,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:06:06]free response buf [12:06:06]execute_script done [12:06:06]execute_script returns [12:06:06]free content buf [12:06:06]Sock 7.Close socket [12:06:06]Sock 7.Thread stoped [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:01]accept exits with 9 [12:07:01]New connection [12:07:01]New thread 3066785124 created [12:07:01]Thread 3066641764 joined [12:07:01]Waiting for new connection... [12:07:01] Sock 9.Parse request [12:07:01]Sock 9.Check first char [12:07:01]Sock 9.First char is OK [12:07:01]request: POST /json_proto HTTP/1.0 [12:07:01]Method: POST [12:07:01]URL: /json_proto [12:07:01]Method is POST - this is cgi request [12:07:01]url: /json_proto [12:07:01]query_string will be loaded in cgi processing [12:07:01]execute_cgi json_proto POST (null) [12:07:01]execute_cgi path=json_proto method=POST [12:07:01]POST find Content-Length [12:07:01]Host: 172.17.49.132:8080 [12:07:01]Content-Length: 682 [12:07:01]Content-Type: application/json [12:07:01] [12:07:01]POST finish read [12:07:01]Found Content-Length = 682 [12:07:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:01]execute_script... [12:07:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:01]POST & json_proto [12:07:01]process_json_proto [12:07:01]json parsed OK: [12:07:01]protocol is kg_v1.0 [12:07:01]action value=close_receipt [12:07:01]process_action close_receipt [12:07:01]cmd_close_receipt [12:07:01]MH_GetDate [12:07:01]Write to MH i2c: F0 00 00 A6 48 DD [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: F0 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: F0 09 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: F0 09 00 A6 48 00 6E 34 A6 66 E7 4B C0 64 EA [12:07:01]GetLastDocTimeStamp 1722168370 [12:07:01]current date 1722168430 [12:07:01]FM_GetShiftState [12:07:01]SAM_PROTO_GetShiftState [12:07:01]wFMCommunicate request_size=4 [12:07:01]MH_SAM_APDU [12:07:01]CAPDU: 80 13 01 00 [12:07:01]Write to MH i2c: E2 08 00 A7 48 80 13 01 00 00 00 00 00 6C [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:01]Read from MH i2c: E2 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 0E 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 0E 00 A7 48 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A9 [12:07:01]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:07:01]wFMCommunicate OK [12:07:01]SAM_PROTO_GetShiftState done [12:07:01]FM_GetShiftState done [12:07:01]opened in 1722127251 [12:07:01]opened+sec_in_day 1722213651 [12:07:01]quantity*price = 100005 [12:07:01]sum+1 = 100006 [12:07:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 87 28.07.2024 12:07 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69204 ФПД: 281011828715856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120710&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69204&fm=281011828715856&tin=02508201610067®Number=0000000000092638&sum=100000 [12:07:02]StoreToDocumentArchive [12:07:02]shift 429 fd 69204 [12:07:02]save to /storage/0429/doc_00069204 [12:07:02]save last doc name /storage/0429/doc_00069204 to /storage/kkm_last_doc_name [12:07:02]save OK [12:07:02]Clear old archive folders... [12:07:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:02]tlvbuf is 00B551F0 [12:07:02]SAM_PROTO_ClearQueue [12:07:02]wFMCommunicate request_size=4 [12:07:02]MH_SAM_APDU [12:07:02]CAPDU: 80 09 00 00 [12:07:02]Write to MH i2c: E2 08 00 B4 48 80 09 00 00 00 00 00 00 6E [12:07:02]Write i2c OK [12:07:02]MH_I2C_Read... [12:07:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:02]Read from MH i2c: E2 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: E2 03 00 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: E2 03 00 B4 48 00 90 00 70 [12:07:02]RAPDU: 90 00 [12:07:02]wFMCommunicate OK [12:07:02]SAM_PROTO_ClearQueue done [12:07:02]KKMCreateOFDPacket [12:07:02]OFDProtocolAddRootSTLVToBuf [12:07:02]FM_MakeSignedData [12:07:02]FM_MakeSignedData [12:07:02]SAM_PROTO_SignData [12:07:02]wFMCommunicate request_size=4 [12:07:02]MH_SAM_APDU [12:07:02]CAPDU: 80 0D 01 02 [12:07:02]Write to MH i2c: E2 08 00 B5 48 80 0D 01 02 00 00 00 00 76 [12:07:02]Write i2c OK [12:07:02]MH_I2C_Read... [12:07:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:02]Read from MH i2c: E2 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: E2 03 00 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: E2 03 00 B5 48 00 90 00 71 [12:07:02]RAPDU: 90 00 [12:07:02]wFMCommunicate OK [12:07:02]wFMCommunicate request_size=255 [12:07:02]MH_SAM_APDU [12:07:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 6E 34 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 54 0E 01 00 35 04 06 00 FF [12:07:02]Write to MH i2c: E2 02 01 B6 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 6E 34 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 54 0E 01 00 35 04 06 00 FF 00 00 A5 [12:07:02]Write i2c OK [12:07:02]MH_I2C_Read... [12:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:02]Read from MH i2c: E2 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: E2 03 00 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: E2 03 00 B6 48 00 90 00 72 [12:07:02]RAPDU: 90 00 [12:07:02]wFMCommunicate OK [12:07:02]wFMCommunicate request_size=10 [12:07:02]MH_SAM_APDU [12:07:02]CAPDU: 80 0D 02 02 05 94 2A 3A 71 50 [12:07:02]Write to MH i2c: E2 0D 00 B7 48 80 0D 02 02 05 00 94 2A 3A 71 50 00 00 3C [12:07:02]Write i2c OK [12:07:02]MH_I2C_Read... [12:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:02]Read from MH i2c: E2 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: E2 03 00 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: E2 03 00 B7 48 00 90 00 73 [12:07:02]RAPDU: 90 00 [12:07:02]wFMCommunicate OK [12:07:02]wFMCommunicate request_size=4 [12:07:02]MH_SAM_APDU [12:07:02]CAPDU: 80 0D 03 02 [12:07:02]Write to MH i2c: E2 08 00 B8 48 80 0D 03 02 00 00 00 00 7B [12:07:02]Write i2c OK [12:07:02]MH_I2C_Read... [12:07:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:03]Read from MH i2c: E2 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: E2 0B 00 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: E2 0B 00 B8 48 00 0C F8 13 ED 70 5F 74 73 90 00 36 [12:07:03]RAPDU: 0C F8 13 ED 70 5F 74 73 90 00 [12:07:03]wFMCommunicate OK [12:07:03]SAM_PROTO_SignData done [12:07:03]FM_MakeSignedData done [12:07:03]CreateOFDProtocolMessage [12:07:03]wFMCommunicate request_size=4 [12:07:03]MH_SAM_APDU [12:07:03]CAPDU: 80 11 00 00 [12:07:03]Write to MH i2c: E2 08 00 B9 48 80 11 00 00 00 00 00 00 7B [12:07:03]Write i2c OK [12:07:03]MH_I2C_Read... [12:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:03]Read from MH i2c: E2 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: E2 17 00 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: E2 17 00 B9 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D7 [12:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:07:03]wFMCommunicate OK [12:07:03]CreateOFDProtocolMessage done [12:07:03]OFDSenderStorePacket 69204 [12:07:03]StoreOFDPacket docnum=69204 [12:07:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 99 E8 07 01 E3 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 6E 34 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 54 0E 01 00 35 04 06 00 FF 94 2A 3A 71 50 0C F8 13 ED 70 5F 74 73 [12:07:03]CheckFolder [12:07:03]dirname=/storage/ofd_packets [12:07:03]CheckFolder done [12:07:03]ProducePacketName [12:07:03]name=ofd_packets/00069204 [12:07:03]NVStorageSaveData ofd_packets/00069204 [12:07:03]File name is /storage/ofd_packets/00069204 [12:07:03]Write 301 bytes [12:07:03]NVStorageSaveData done [12:07:03]OFDSenderStorePacket done [12:07:03]KKMCreateOFDPacket done [12:07:03]NVStorageSaveData kkm_last_timestamp [12:07:03]File name is /storage/kkm_last_timestamp [12:07:03]Write 4 bytes [12:07:03]NVStorageSaveData done [12:07:03]ExternCall_PrintAddStr [12:07:03]wPrintStart [12:07:03]Write to MH i2c: 01 00 00 BA 48 02 [12:07:03]Write i2c OK [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: 01 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: 01 07 00 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: 01 07 00 BA 48 00 00 00 00 00 FF 0F 17 [12:07:03]RasterBufferAndPrint [12:07:03]line Счет N : (1)871858 [12:07:03]line ИНН: 02508201610067 [12:07:03]line Контрольно-Кассовый Чек [12:07:03]line ПРОДАЖА [12:07:03]line ТРК (МРК, ГНК) : 62 [12:07:03]line Товар: 2710124130 [12:07:03]line Аи-92-К-5 [12:07:03]line 14.750 * 67.80 [12:07:03]line = 1000.05 [12:07:03]line НДС 12% НСП 1% [12:07:03]line > о реализуемом товаре [12:07:03]line ОКРУГЛЕНИЕ: -0.05 [12:07:03]line ИТОГО: 1000.00 [12:07:03]line Внесено: 1000.00 [12:07:03]line СДАЧА: 0.00 [12:07:03]line НСП 1% : 8.85 [12:07:03]line НДС 12% : 106.20 [12:07:03]line Наличными: 1000.00 [12:07:03]line Безнал.: 0.00 [12:07:03]line Место: АЗС № 125 "Партнер Нефть" [12:07:03]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:07:03]line СНО: Общий режим [12:07:03]line Чек 87 28.07.2024 12:07 [12:07:03]line Смена: 429 ФФД: 1.0 [12:07:03]line ЗНМ: 0300000049 [12:07:03]line РНМ: 0000000000092638 [12:07:03]line Версия ККМ: 001 [12:07:03]line ФМ: 0000000000874949 [12:07:03]line ФД: 69204 [12:07:03]line ФПД: 281011828715856 [12:07:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T120710&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69204&fm=281011828715856&tin=02508201610067®Number=0000000000092638&sum=100000 [12:07:03]OFD Sender: Processing packet 69204 [packets to send 19, broken 18] [12:07:03]ProducePacketName [12:07:03]name=ofd_packets/00069204 [12:07:03]OFD Sender: To server: pG, [12:07:03]CommunicateWithHost lk.salyk.kg:30040 [12:07:03]ConnectInit lk.salyk.kg [12:07:03]written 0, free lines is 4095 [12:07:03]Connected sock=10 [12:07: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 39 34 39 0F 01 00 00 99 E8 07 01 E3 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 6E 34 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 54 0E 01 00 35 04 06 00 FF 94 2A 3A 71 50 0C F8 13 ED 70 5F 74 73 [12:07:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 DA 98 47 00 77 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 54 0E 01 00 F4 03 04 00 DE DA A5 66 B6 04 01 00 00 EB F2 0E 20 BD 91 FE 16 [12:07:03]CommunicateWithHost err = 0 [12:07:03]CheckOFDResponse [12:07:03]1017 (14) - 77093643461234 [12:07:03]1041 (16) - 0000000000874949 [12:07:03]1040 (4) - 69204 [12:07:03]1012 (4) - 28.07.2024 05:45 [12:07:03]1206 (1) - 0 [12:07:03]OFD Sender: Remove packet 69204 [12:07:03]ProducePacketName [12:07:03]name=ofd_packets/00069204 [12:07:03]NVStorageDeleteData [12:07:03]Write to MH i2c: 01 00 00 E5 48 2D [12:07:03]Write i2c OK [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: 01 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: 01 07 00 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: 01 07 00 E5 48 00 00 00 00 00 FE 0C 3E [12:07:03]RasterBufferAndPrint [12:07:03]line [12:07:03]line [12:07:03]line [12:07:03]line [12:07:03]line [12:07:03]written 0, free lines is 3331 [12:07:03]MH_Cut [12:07:03]Write to MH i2c: D1 01 00 EC 48 01 06 [12:07:03]Write i2c OK [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: D1 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: D1 01 00 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: D1 01 00 EC 48 00 05 [12:07:03]Write to MH i2c: 01 00 00 ED 48 35 [12:07:03]Write i2c OK [12:07:03]MH_I2C_Read... [12:07:04]OFD Sender: No OFD packet to send [12:07:04]*** Cut start [12:07:04]*** Partial cut [12:07:04]*** CUTSNS_PIN = 1 [12:07:04]*** CUTSNS_PIN = 0 [12:07:04]*** Brake cut motor [12:07:05]Read from MH i2c: 01 [12:07:05]MH_I2C_Read... [12:07:05]*** Stop cut motor [12:07:05]*** Cut end [12:07:05]Read from MH i2c: 01 07 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: 01 07 00 ED 48 00 00 00 00 00 FF 0F 4A [12:07:05]process_action close_receipt done [12:07:05]requested_data is exist [12:07:05]produce_requested_data [12:07:05]requested_item fm.sn is exist - process it [12:07:05]wFMCommunicate request_size=4 [12:07:05]MH_SAM_APDU [12:07:05]CAPDU: 80 11 00 00 [12:07:05]Write to MH i2c: E2 08 00 EE 48 80 11 00 00 00 00 00 00 B0 [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:05]Read from MH i2c: E2 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 17 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 17 00 EE 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 0C [12:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:07:05]wFMCommunicate OK [12:07:05]requested_item fd.num is exist - process it [12:07:05]SAM_PROTO_GetFieldsCounters [12:07:05]wFMCommunicate request_size=4 [12:07:05]MH_SAM_APDU [12:07:05]CAPDU: 80 13 00 00 [12:07:05]Write to MH i2c: E2 08 00 EF 48 80 13 00 00 00 00 00 00 B3 [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:05]Read from MH i2c: E2 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 62 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 62 00 EF 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 54 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [12:07: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 54 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:05]wFMCommunicate OK [12:07:05]SAM_PROTO_GetFieldsCounters done [12:07:05]requested_item shift.num is exist - process it [12:07:05]requested_item shift.opened is exist - process it [12:07:05]req_shift_opened [12:07:05]FM_GetShiftState [12:07:05]SAM_PROTO_GetShiftState [12:07:05]wFMCommunicate request_size=4 [12:07:05]MH_SAM_APDU [12:07:05]CAPDU: 80 13 01 00 [12:07:05]Write to MH i2c: E2 08 00 F0 48 80 13 01 00 00 00 00 00 B5 [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:05]Read from MH i2c: E2 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 0E 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 0E 00 F0 48 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F2 [12:07:05]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:07:05]wFMCommunicate OK [12:07:05]SAM_PROTO_GetShiftState done [12:07:05]FM_GetShiftState done [12:07:05]req_shift_opened done [12:07:05]requested_item shift.open_date is exist - process it [12:07:05]req_shift_open_date [12:07:05]req_shift_open_date done [12:07:05]produce_requested_data done [12:07:05]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69204,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:07:05]process_action_free close_receipt [12:07:05]json_value_free [12:07:05]json_value_free done [12:07:05]process_json_proto returns [12:07:05]Send response to host [12:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69204,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:07:05]free response buf [12:07:05]execute_script done [12:07:05]execute_script returns [12:07:05]free content buf [12:07:05]Sock 9.Close socket [12:07:05]Sock 9.Thread stoped [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:53]accept exits with 7 [12:10:53]New connection [12:10:53]New thread 3066641764 created [12:10:53]Thread 3066785124 joined [12:10:53]Waiting for new connection... [12:10:53] Sock 7.Parse request [12:10:53]Sock 7.Check first char [12:10:53]Sock 7.First char is OK [12:10:53]request: POST /json_proto HTTP/1.0 [12:10:53]Method: POST [12:10:53]URL: /json_proto [12:10:53]Method is POST - this is cgi request [12:10:53]url: /json_proto [12:10:53]query_string will be loaded in cgi processing [12:10:53]execute_cgi json_proto POST (null) [12:10:53]execute_cgi path=json_proto method=POST [12:10:53]POST find Content-Length [12:10:53]Host: 172.17.49.132:8080 [12:10:53]Content-Length: 682 [12:10:53]Content-Type: application/json [12:10:53] [12:10:53]POST finish read [12:10:53]Found Content-Length = 682 [12:10:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:53]execute_script... [12:10:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:53]POST & json_proto [12:10:53]process_json_proto [12:10:53]json parsed OK: [12:10:53]protocol is kg_v1.0 [12:10:53]action value=close_receipt [12:10:53]process_action close_receipt [12:10:53]cmd_close_receipt [12:10:53]MH_GetDate [12:10:53]Write to MH i2c: F0 00 00 F1 48 28 [12:10:53]Write i2c OK [12:10:53]MH_I2C_Read... [12:10:53]Read from MH i2c: F0 [12:10:53]MH_I2C_Read... [12:10:53]Read from MH i2c: F0 09 00 [12:10:53]MH_I2C_Read... [12:10:53]Read from MH i2c: F0 09 00 F1 48 00 55 35 A6 66 E7 4B C0 64 1D [12:10:53]GetLastDocTimeStamp 1722168430 [12:10:53]current date 1722168661 [12:10:53]FM_GetShiftState [12:10:53]SAM_PROTO_GetShiftState [12:10:53]wFMCommunicate request_size=4 [12:10:53]MH_SAM_APDU [12:10:53]CAPDU: 80 13 01 00 [12:10:53]Write to MH i2c: E2 08 00 F2 48 80 13 01 00 00 00 00 00 B7 [12:10:53]Write i2c OK [12:10:53]MH_I2C_Read... [12:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:53]Read from MH i2c: E2 [12:10:53]MH_I2C_Read... [12:10:53]Read from MH i2c: E2 0E 00 [12:10:53]MH_I2C_Read... [12:10:53]Read from MH i2c: E2 0E 00 F2 48 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F4 [12:10:53]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:10:53]wFMCommunicate OK [12:10:53]SAM_PROTO_GetShiftState done [12:10:53]FM_GetShiftState done [12:10:53]opened in 1722127251 [12:10:53]opened+sec_in_day 1722213651 [12:10:53]quantity*price = 100005 [12:10:53]sum+1 = 100006 [12:10:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 88 28.07.2024 12:11 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69205 ФПД: 181427535176548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121102&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69205&fm=181427535176548&tin=02508201610067®Number=0000000000092638&sum=100000 [12:10:54]StoreToDocumentArchive [12:10:54]shift 429 fd 69205 [12:10:54]save to /storage/0429/doc_00069205 [12:10:54]save last doc name /storage/0429/doc_00069205 to /storage/kkm_last_doc_name [12:10:54]save OK [12:10:54]Clear old archive folders... [12:10:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:54]tlvbuf is 00B54D80 [12:10:54]SAM_PROTO_ClearQueue [12:10:54]wFMCommunicate request_size=4 [12:10:54]MH_SAM_APDU [12:10:54]CAPDU: 80 09 00 00 [12:10:54]Write to MH i2c: E2 08 00 FF 48 80 09 00 00 00 00 00 00 B9 [12:10:54]Write i2c OK [12:10:54]MH_I2C_Read... [12:10:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:54]Read from MH i2c: E2 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 03 00 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 03 00 FF 48 00 90 00 BB [12:10:54]RAPDU: 90 00 [12:10:54]wFMCommunicate OK [12:10:54]SAM_PROTO_ClearQueue done [12:10:54]KKMCreateOFDPacket [12:10:54]OFDProtocolAddRootSTLVToBuf [12:10:54]FM_MakeSignedData [12:10:54]FM_MakeSignedData [12:10:54]SAM_PROTO_SignData [12:10:54]wFMCommunicate request_size=4 [12:10:54]MH_SAM_APDU [12:10:54]CAPDU: 80 0D 01 02 [12:10:54]Write to MH i2c: E2 08 00 00 49 80 0D 01 02 00 00 00 00 C2 [12:10:54]Write i2c OK [12:10:54]MH_I2C_Read... [12:10:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:54]Read from MH i2c: E2 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 03 00 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 03 00 00 49 00 90 00 BD [12:10:54]RAPDU: 90 00 [12:10:54]wFMCommunicate OK [12:10:54]wFMCommunicate request_size=255 [12:10:54]MH_SAM_APDU [12:10:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 56 35 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 55 0E 01 00 35 04 06 00 A5 [12:10:54]Write to MH i2c: E2 02 01 01 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 56 35 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 55 0E 01 00 35 04 06 00 A5 00 00 82 [12:10:54]Write i2c OK [12:10:54]MH_I2C_Read... [12:10:54]OFD Sender: No OFD packet to send [12:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:54]Read from MH i2c: E2 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 03 00 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 03 00 01 49 00 90 00 BE [12:10:54]RAPDU: 90 00 [12:10:54]wFMCommunicate OK [12:10:54]wFMCommunicate request_size=10 [12:10:54]MH_SAM_APDU [12:10:54]CAPDU: 80 0D 02 02 05 01 E3 C9 63 64 [12:10:54]Write to MH i2c: E2 0D 00 02 49 80 0D 02 02 05 00 01 E3 C9 63 64 00 00 43 [12:10:54]Write i2c OK [12:10:54]MH_I2C_Read... [12:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:54]Read from MH i2c: E2 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 03 00 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 03 00 02 49 00 90 00 BF [12:10:54]RAPDU: 90 00 [12:10:54]wFMCommunicate OK [12:10:54]wFMCommunicate request_size=4 [12:10:54]MH_SAM_APDU [12:10:54]CAPDU: 80 0D 03 02 [12:10:54]Write to MH i2c: E2 08 00 03 49 80 0D 03 02 00 00 00 00 C7 [12:10:54]Write i2c OK [12:10:54]MH_I2C_Read... [12:10:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:54]Read from MH i2c: E2 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 0B 00 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 0B 00 03 49 00 44 81 AB DD F1 3A 44 E0 90 00 64 [12:10:54]RAPDU: 44 81 AB DD F1 3A 44 E0 90 00 [12:10:54]wFMCommunicate OK [12:10:54]SAM_PROTO_SignData done [12:10:54]FM_MakeSignedData done [12:10:54]CreateOFDProtocolMessage [12:10:54]wFMCommunicate request_size=4 [12:10:54]MH_SAM_APDU [12:10:54]CAPDU: 80 11 00 00 [12:10:54]Write to MH i2c: E2 08 00 04 49 80 11 00 00 00 00 00 00 C7 [12:10:54]Write i2c OK [12:10:54]MH_I2C_Read... [12:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:54]Read from MH i2c: E2 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 17 00 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 17 00 04 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 23 [12:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:10:54]wFMCommunicate OK [12:10:54]CreateOFDProtocolMessage done [12:10:54]OFDSenderStorePacket 69205 [12:10:54]StoreOFDPacket docnum=69205 [12:10:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 91 85 07 01 3F 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 56 35 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 55 0E 01 00 35 04 06 00 A5 01 E3 C9 63 64 44 81 AB DD F1 3A 44 E0 [12:10:54]CheckFolder [12:10:54]dirname=/storage/ofd_packets [12:10:54]CheckFolder done [12:10:54]ProducePacketName [12:10:54]name=ofd_packets/00069205 [12:10:54]NVStorageSaveData ofd_packets/00069205 [12:10:54]File name is /storage/ofd_packets/00069205 [12:10:54]Write 301 bytes [12:10:54]NVStorageSaveData done [12:10:54]OFDSenderStorePacket done [12:10:54]KKMCreateOFDPacket done [12:10:54]NVStorageSaveData kkm_last_timestamp [12:10:54]File name is /storage/kkm_last_timestamp [12:10:54]Write 4 bytes [12:10:54]NVStorageSaveData done [12:10:54]ExternCall_PrintAddStr [12:10:54]wPrintStart [12:10:54]Write to MH i2c: 01 00 00 05 49 4E [12:10:54]Write i2c OK [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: 01 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: 01 07 00 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: 01 07 00 05 49 00 00 00 00 00 FF 0F 63 [12:10:54]RasterBufferAndPrint [12:10:54]line Счет N : (1)871862 [12:10:54]line ИНН: 02508201610067 [12:10:54]line Контрольно-Кассовый Чек [12:10:54]line ПРОДАЖА [12:10:54]line ТРК (МРК, ГНК) : 62 [12:10:54]line Товар: 2710124130 [12:10:54]line Аи-92-К-5 [12:10:54]line 14.750 * 67.80 [12:10:54]line = 1000.05 [12:10:54]line НДС 12% НСП 1% [12:10:54]line > о реализуемом товаре [12:10:54]line ОКРУГЛЕНИЕ: -0.05 [12:10:54]line ИТОГО: 1000.00 [12:10:54]line Внесено: 1000.00 [12:10:54]line СДАЧА: 0.00 [12:10:54]line НСП 1% : 8.85 [12:10:54]line НДС 12% : 106.20 [12:10:54]line Наличными: 1000.00 [12:10:54]line Безнал.: 0.00 [12:10:54]line Место: АЗС № 125 "Партнер Нефть" [12:10:54]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:10:54]line СНО: Общий режим [12:10:54]line Чек 88 28.07.2024 12:11 [12:10:54]line Смена: 429 ФФД: 1.0 [12:10:54]line ЗНМ: 0300000049 [12:10:54]line РНМ: 0000000000092638 [12:10:54]line Версия ККМ: 001 [12:10:54]line ФМ: 0000000000874949 [12:10:54]line ФД: 69205 [12:10:54]line ФПД: 181427535176548 [12:10:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121102&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69205&fm=181427535176548&tin=02508201610067®Number=0000000000092638&sum=100000 [12:10:55]OFD Sender: Processing packet 69205 [packets to send 19, broken 18] [12:10:55]ProducePacketName [12:10:55]name=ofd_packets/00069205 [12:10:55]OFD Sender: To server: pG, [12:10:55]CommunicateWithHost lk.salyk.kg:30040 [12:10:55]ConnectInit lk.salyk.kg [12:10:55]written 0, free lines is 4095 [12:10:55]Connected sock=10 [12:10:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 91 85 07 01 3F 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 56 35 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 55 0E 01 00 35 04 06 00 A5 01 E3 C9 63 64 44 81 AB DD F1 3A 44 E0 [12:10:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 22 FC 47 00 BE 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 55 0E 01 00 F4 03 04 00 C5 DB A5 66 B6 04 01 00 00 BE C0 E3 CD 6B 72 6B 63 [12:10:55]CommunicateWithHost err = 0 [12:10:55]CheckOFDResponse [12:10:55]1017 (14) - 77093643461234 [12:10:55]1041 (16) - 0000000000874949 [12:10:55]1040 (4) - 69205 [12:10:55]1012 (4) - 28.07.2024 05:48 [12:10:55]1206 (1) - 0 [12:10:55]OFD Sender: Remove packet 69205 [12:10:55]ProducePacketName [12:10:55]name=ofd_packets/00069205 [12:10:55]NVStorageDeleteData [12:10:55]Write to MH i2c: 01 00 00 30 49 79 [12:10:55]Write i2c OK [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: 01 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: 01 07 00 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: 01 07 00 30 49 00 00 00 00 00 F9 0C 85 [12:10:55]RasterBufferAndPrint [12:10:55]line [12:10:55]line [12:10:55]line [12:10:55]line [12:10:55]line [12:10:55]written 0, free lines is 3328 [12:10:55]MH_Cut [12:10:55]Write to MH i2c: D1 01 00 37 49 01 52 [12:10:55]Write i2c OK [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: D1 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: D1 01 00 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: D1 01 00 37 49 00 51 [12:10:55]Write to MH i2c: 01 00 00 38 49 81 [12:10:55]Write i2c OK [12:10:55]MH_I2C_Read... [12:10:55]OFD Sender: No OFD packet to send [12:10:56]*** Cut start [12:10:56]*** Partial cut [12:10:56]*** CUTSNS_PIN = 1 [12:10:56]*** CUTSNS_PIN = 0 [12:10:56]*** Brake cut motor [12:10:56]Read from MH i2c: 01 [12:10:56]MH_I2C_Read... [12:10:56]*** Stop cut motor [12:10:56]*** Cut end [12:10:56]Read from MH i2c: 01 07 00 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: 01 07 00 38 49 00 00 00 00 00 FF 0F 96 [12:10:56]process_action close_receipt done [12:10:56]requested_data is exist [12:10:56]produce_requested_data [12:10:56]requested_item fm.sn is exist - process it [12:10:56]wFMCommunicate request_size=4 [12:10:56]MH_SAM_APDU [12:10:56]CAPDU: 80 11 00 00 [12:10:56]Write to MH i2c: E2 08 00 39 49 80 11 00 00 00 00 00 00 FC [12:10:56]Write i2c OK [12:10:56]MH_I2C_Read... [12:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:56]Read from MH i2c: E2 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: E2 17 00 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: E2 17 00 39 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 58 [12:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:10:56]wFMCommunicate OK [12:10:56]requested_item fd.num is exist - process it [12:10:56]SAM_PROTO_GetFieldsCounters [12:10:56]wFMCommunicate request_size=4 [12:10:56]MH_SAM_APDU [12:10:56]CAPDU: 80 13 00 00 [12:10:56]Write to MH i2c: E2 08 00 3A 49 80 13 00 00 00 00 00 00 FF [12:10:56]Write i2c OK [12:10:56]MH_I2C_Read... [12:10:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:56]Read from MH i2c: E2 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: E2 62 00 [12:10:56]MH_I2C_Read... [12:10:56]Read from MH i2c: E2 62 00 3A 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 55 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [12:10: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 55 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:56]wFMCommunicate OK [12:10:56]SAM_PROTO_GetFieldsCounters done [12:10:56]requested_item shift.num is exist - process it [12:10:56]requested_item shift.opened is exist - process it [12:10:56]req_shift_opened [12:10:56]FM_GetShiftState [12:10:56]SAM_PROTO_GetShiftState [12:10:56]wFMCommunicate request_size=4 [12:10:56]MH_SAM_APDU [12:10:56]CAPDU: 80 13 01 00 [12:10:56]Write to MH i2c: E2 08 00 3B 49 80 13 01 00 00 00 00 00 01 [12:10:56]Write i2c OK [12:10:56]MH_I2C_Read... [12:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:57]Read from MH i2c: E2 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: E2 0E 00 [12:10:57]MH_I2C_Read... [12:10:57]Read from MH i2c: E2 0E 00 3B 49 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 3E [12:10:57]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:10:57]wFMCommunicate OK [12:10:57]SAM_PROTO_GetShiftState done [12:10:57]FM_GetShiftState done [12:10:57]req_shift_opened done [12:10:57]requested_item shift.open_date is exist - process it [12:10:57]req_shift_open_date [12:10:57]req_shift_open_date done [12:10:57]produce_requested_data done [12:10:57]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69205,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:10:57]process_action_free close_receipt [12:10:57]json_value_free [12:10:57]json_value_free done [12:10:57]process_json_proto returns [12:10:57]Send response to host [12:10:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69205,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:10:57]free response buf [12:10:57]execute_script done [12:10:57]execute_script returns [12:10:57]free content buf [12:10:57]Sock 7.Close socket [12:10:57]Sock 7.Thread stoped [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:12]accept exits with 9 [12:16:12]New connection [12:16:12]New thread 3066785124 created [12:16:12]Thread 3066641764 joined [12:16:12]Waiting for new connection... [12:16:12] Sock 9.Parse request [12:16:12]Sock 9.Check first char [12:16:12]Sock 9.First char is OK [12:16:12]request: POST /json_proto HTTP/1.0 [12:16:12]Method: POST [12:16:12]URL: /json_proto [12:16:12]Method is POST - this is cgi request [12:16:12]url: /json_proto [12:16:12]query_string will be loaded in cgi processing [12:16:12]execute_cgi json_proto POST (null) [12:16:12]execute_cgi path=json_proto method=POST [12:16:12]POST find Content-Length [12:16:12]Host: 172.17.49.132:8080 [12:16:12]Content-Length: 677 [12:16:12]Content-Type: application/json [12:16:12] [12:16:12]POST finish read [12:16:12]Found Content-Length = 677 [12:16:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.590, "sum" : 650.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:12]execute_script... [12:16:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.590, "sum" : 650.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:12]POST & json_proto [12:16:12]process_json_proto [12:16:12]json parsed OK: [12:16:12]protocol is kg_v1.0 [12:16:12]action value=close_receipt [12:16:12]process_action close_receipt [12:16:12]cmd_close_receipt [12:16:12]MH_GetDate [12:16:12]Write to MH i2c: F0 00 00 3C 49 74 [12:16:12]Write i2c OK [12:16:12]MH_I2C_Read... [12:16:12]Read from MH i2c: F0 [12:16:12]MH_I2C_Read... [12:16:12]Read from MH i2c: F0 09 00 [12:16:12]MH_I2C_Read... [12:16:12]Read from MH i2c: F0 09 00 3C 49 00 95 36 A6 66 E7 4B C0 64 AA [12:16:12]GetLastDocTimeStamp 1722168662 [12:16:12]current date 1722168981 [12:16:12]FM_GetShiftState [12:16:12]SAM_PROTO_GetShiftState [12:16:12]wFMCommunicate request_size=4 [12:16:12]MH_SAM_APDU [12:16:12]CAPDU: 80 13 01 00 [12:16:12]Write to MH i2c: E2 08 00 3D 49 80 13 01 00 00 00 00 00 03 [12:16:12]Write i2c OK [12:16:12]MH_I2C_Read... [12:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:12]Read from MH i2c: E2 [12:16:12]MH_I2C_Read... [12:16:12]Read from MH i2c: E2 0E 00 [12:16:12]MH_I2C_Read... [12:16:12]Read from MH i2c: E2 0E 00 3D 49 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 40 [12:16:12]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:16:12]wFMCommunicate OK [12:16:12]SAM_PROTO_GetShiftState done [12:16:12]FM_GetShiftState done [12:16:12]opened in 1722127251 [12:16:12]opened+sec_in_day 1722213651 [12:16:12]quantity*price = 65020 [12:16:12]sum+1 = 65021 [12:16:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 89 28.07.2024 12:16 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69206 ФПД: 156626917866536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121621&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69206&fm=156626917866536&tin=02508201610067®Number=0000000000092638&sum=65000 [12:16:13]StoreToDocumentArchive [12:16:13]shift 429 fd 69206 [12:16:13]save to /storage/0429/doc_00069206 [12:16:13]save last doc name /storage/0429/doc_00069206 to /storage/kkm_last_doc_name [12:16:13]save OK [12:16:13]Clear old archive folders... [12:16:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:13]tlvbuf is 00A7EE30 [12:16:13]SAM_PROTO_ClearQueue [12:16:13]wFMCommunicate request_size=4 [12:16:13]MH_SAM_APDU [12:16:13]CAPDU: 80 09 00 00 [12:16:13]Write to MH i2c: E2 08 00 4A 49 80 09 00 00 00 00 00 00 05 [12:16:13]Write i2c OK [12:16:13]MH_I2C_Read... [12:16:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:13]Read from MH i2c: E2 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 03 00 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 03 00 4A 49 00 90 00 07 [12:16:13]RAPDU: 90 00 [12:16:13]wFMCommunicate OK [12:16:13]SAM_PROTO_ClearQueue done [12:16:13]KKMCreateOFDPacket [12:16:13]OFDProtocolAddRootSTLVToBuf [12:16:13]FM_MakeSignedData [12:16:13]FM_MakeSignedData [12:16:13]SAM_PROTO_SignData [12:16:13]wFMCommunicate request_size=4 [12:16:13]MH_SAM_APDU [12:16:13]CAPDU: 80 0D 01 02 [12:16:13]Write to MH i2c: E2 08 00 4B 49 80 0D 01 02 00 00 00 00 0D [12:16:13]Write i2c OK [12:16:13]MH_I2C_Read... [12:16:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:13]Read from MH i2c: E2 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 03 00 [12:16:13]MH_I2C_Read... [12:16:13]Read from MH i2c: E2 03 00 4B 49 00 90 00 08 [12:16:13]RAPDU: 90 00 [12:16:13]wFMCommunicate OK [12:16:13]wFMCommunicate request_size=255 [12:16:13]MH_SAM_APDU [12:16:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 95 36 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 56 0E 01 00 35 04 06 00 8E [12:16:13]Write to MH i2c: E2 02 01 4C 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 95 36 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 56 0E 01 00 35 04 06 00 8E 00 00 3C [12:16:13]Write i2c OK [12:16:13]MH_I2C_Read... [12:16:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:14]Read from MH i2c: E2 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 03 00 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 03 00 4C 49 00 90 00 09 [12:16:14]RAPDU: 90 00 [12:16:14]wFMCommunicate OK [12:16:14]wFMCommunicate request_size=10 [12:16:14]MH_SAM_APDU [12:16:14]CAPDU: 80 0D 02 02 05 73 8B CD 3C 28 [12:16:14]Write to MH i2c: E2 0D 00 4D 49 80 0D 02 02 05 00 73 8B CD 3C 28 00 00 49 [12:16:14]Write i2c OK [12:16:14]MH_I2C_Read... [12:16:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:14]Read from MH i2c: E2 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 03 00 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 03 00 4D 49 00 90 00 0A [12:16:14]RAPDU: 90 00 [12:16:14]wFMCommunicate OK [12:16:14]wFMCommunicate request_size=4 [12:16:14]MH_SAM_APDU [12:16:14]CAPDU: 80 0D 03 02 [12:16:14]Write to MH i2c: E2 08 00 4E 49 80 0D 03 02 00 00 00 00 12 [12:16:14]Write i2c OK [12:16:14]MH_I2C_Read... [12:16:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:14]Read from MH i2c: E2 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 0B 00 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 0B 00 4E 49 00 82 D4 9C 3F 00 3F FF 29 90 00 AB [12:16:14]RAPDU: 82 D4 9C 3F 00 3F FF 29 90 00 [12:16:14]wFMCommunicate OK [12:16:14]SAM_PROTO_SignData done [12:16:14]FM_MakeSignedData done [12:16:14]CreateOFDProtocolMessage [12:16:14]wFMCommunicate request_size=4 [12:16:14]MH_SAM_APDU [12:16:14]CAPDU: 80 11 00 00 [12:16:14]Write to MH i2c: E2 08 00 4F 49 80 11 00 00 00 00 00 00 12 [12:16:14]Write i2c OK [12:16:14]MH_I2C_Read... [12:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:14]Read from MH i2c: E2 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 17 00 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 17 00 4F 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 6E [12:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:16:14]wFMCommunicate OK [12:16:14]CreateOFDProtocolMessage done [12:16:14]OFDSenderStorePacket 69206 [12:16:14]StoreOFDPacket docnum=69206 [12:16:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 21 06 07 01 3E 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 95 36 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 56 0E 01 00 35 04 06 00 8E 73 8B CD 3C 28 82 D4 9C 3F 00 3F FF 29 [12:16:14]CheckFolder [12:16:14]dirname=/storage/ofd_packets [12:16:14]CheckFolder done [12:16:14]ProducePacketName [12:16:14]name=ofd_packets/00069206 [12:16:14]NVStorageSaveData ofd_packets/00069206 [12:16:14]File name is /storage/ofd_packets/00069206 [12:16:14]Write 301 bytes [12:16:14]NVStorageSaveData done [12:16:14]OFDSenderStorePacket done [12:16:14]KKMCreateOFDPacket done [12:16:14]NVStorageSaveData kkm_last_timestamp [12:16:14]File name is /storage/kkm_last_timestamp [12:16:14]Write 4 bytes [12:16:14]NVStorageSaveData done [12:16:14]ExternCall_PrintAddStr [12:16:14]wPrintStart [12:16:14]Write to MH i2c: 01 00 00 50 49 99 [12:16:14]Write i2c OK [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: 01 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: 01 07 00 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: 01 07 00 50 49 00 00 00 00 00 FF 0F AE [12:16:14]RasterBufferAndPrint [12:16:14]line Счет N : (1)871864 [12:16:14]line ИНН: 02508201610067 [12:16:14]line Контрольно-Кассовый Чек [12:16:14]line ПРОДАЖА [12:16:14]line ТРК (МРК, ГНК) : 52 [12:16:14]line Товар: 2710124130 [12:16:14]line Аи-92-К-5 [12:16:14]line 9.590 * 67.80 [12:16:14]line = 650.20 [12:16:14]line НДС 12% НСП 1% [12:16:14]line > о реализуемом товаре [12:16:14]line ОКРУГЛЕНИЕ: -0.20 [12:16:14]line ИТОГО: 650.00 [12:16:14]line Внесено: 650.00 [12:16:14]line СДАЧА: 0.00 [12:16:14]line НСП 1% : 5.75 [12:16:14]line НДС 12% : 69.05 [12:16:14]line Наличными: 650.00 [12:16:14]line Безнал.: 0.00 [12:16:14]line Место: АЗС № 125 "Партнер Нефть" [12:16:14]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:16:14]line СНО: Общий режим [12:16:14]line Чек 89 28.07.2024 12:16 [12:16:14]line Смена: 429 ФФД: 1.0 [12:16:14]line ЗНМ: 0300000049 [12:16:14]line РНМ: 0000000000092638 [12:16:14]line Версия ККМ: 001 [12:16:14]line ФМ: 0000000000874949 [12:16:14]line ФД: 69206 [12:16:14]line ФПД: 156626917866536 [12:16:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121621&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69206&fm=156626917866536&tin=02508201610067®Number=0000000000092638&sum=65000 [12:16:14]written 0, free lines is 4095 [12:16:14]OFD Sender: Processing packet 69206 [packets to send 19, broken 18] [12:16:14]ProducePacketName [12:16:14]name=ofd_packets/00069206 [12:16:14]OFD Sender: To server: pG, [12:16:14]CommunicateWithHost lk.salyk.kg:30040 [12:16:14]ConnectInit lk.salyk.kg [12:16:14]Connected sock=10 [12:16:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 21 06 07 01 3E 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 95 36 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 56 0E 01 00 35 04 06 00 8E 73 8B CD 3C 28 82 D4 9C 3F 00 3F FF 29 [12:16:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 09 2B 47 00 82 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 56 0E 01 00 F4 03 04 00 05 DD A5 66 B6 04 01 00 00 F3 5D DC 33 E3 36 AC C6 [12:16:14]CommunicateWithHost err = 0 [12:16:14]CheckOFDResponse [12:16:14]1017 (14) - 77093643461234 [12:16:14]1041 (16) - 0000000000874949 [12:16:14]1040 (4) - 69206 [12:16:14]1012 (4) - 28.07.2024 05:54 [12:16:14]1206 (1) - 0 [12:16:14]OFD Sender: Remove packet 69206 [12:16:14]ProducePacketName [12:16:14]name=ofd_packets/00069206 [12:16:14]NVStorageDeleteData [12:16:15]Write to MH i2c: 01 00 00 7B 49 C4 [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: 01 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: 01 07 00 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: 01 07 00 7B 49 00 00 00 00 00 F0 0C C7 [12:16:15]RasterBufferAndPrint [12:16:15]line [12:16:15]line [12:16:15]line [12:16:15]line [12:16:15]line [12:16:15]written 0, free lines is 3322 [12:16:15]MH_Cut [12:16:15]Write to MH i2c: D1 01 00 82 49 01 9D [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: D1 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: D1 01 00 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: D1 01 00 82 49 00 9C [12:16:15]Write to MH i2c: 01 00 00 83 49 CC [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:15]OFD Sender: No OFD packet to send [12:16:15]*** Cut start [12:16:15]*** Partial cut [12:16:15]*** CUTSNS_PIN = 1 [12:16:15]*** CUTSNS_PIN = 0 [12:16:16]*** Brake cut motor [12:16:16]Read from MH i2c: 01 [12:16:16]MH_I2C_Read... [12:16:16]*** Stop cut motor [12:16:16]*** Cut end [12:16:16]Read from MH i2c: 01 07 00 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: 01 07 00 83 49 00 00 00 00 00 FF 0F E1 [12:16:16]process_action close_receipt done [12:16:16]requested_data is exist [12:16:16]produce_requested_data [12:16:16]requested_item fm.sn is exist - process it [12:16:16]wFMCommunicate request_size=4 [12:16:16]MH_SAM_APDU [12:16:16]CAPDU: 80 11 00 00 [12:16:16]Write to MH i2c: E2 08 00 84 49 80 11 00 00 00 00 00 00 47 [12:16:16]Write i2c OK [12:16:16]MH_I2C_Read... [12:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:16]Read from MH i2c: E2 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 17 00 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 17 00 84 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A3 [12:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:16:16]wFMCommunicate OK [12:16:16]requested_item fd.num is exist - process it [12:16:16]SAM_PROTO_GetFieldsCounters [12:16:16]wFMCommunicate request_size=4 [12:16:16]MH_SAM_APDU [12:16:16]CAPDU: 80 13 00 00 [12:16:16]Write to MH i2c: E2 08 00 85 49 80 13 00 00 00 00 00 00 4A [12:16:16]Write i2c OK [12:16:16]MH_I2C_Read... [12:16:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:16]Read from MH i2c: E2 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 62 00 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 62 00 85 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 56 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [12:16:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 56 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:16]wFMCommunicate OK [12:16:16]SAM_PROTO_GetFieldsCounters done [12:16:16]requested_item shift.num is exist - process it [12:16:16]requested_item shift.opened is exist - process it [12:16:16]req_shift_opened [12:16:16]FM_GetShiftState [12:16:16]SAM_PROTO_GetShiftState [12:16:16]wFMCommunicate request_size=4 [12:16:16]MH_SAM_APDU [12:16:16]CAPDU: 80 13 01 00 [12:16:16]Write to MH i2c: E2 08 00 86 49 80 13 01 00 00 00 00 00 4C [12:16:16]Write i2c OK [12:16:16]MH_I2C_Read... [12:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:16]Read from MH i2c: E2 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 0E 00 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 0E 00 86 49 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 89 [12:16:16]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:16:16]wFMCommunicate OK [12:16:16]SAM_PROTO_GetShiftState done [12:16:16]FM_GetShiftState done [12:16:16]req_shift_opened done [12:16:16]requested_item shift.open_date is exist - process it [12:16:16]req_shift_open_date [12:16:16]req_shift_open_date done [12:16:16]produce_requested_data done [12:16:16]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69206,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:16:16]process_action_free close_receipt [12:16:16]json_value_free [12:16:16]json_value_free done [12:16:16]process_json_proto returns [12:16:16]Send response to host [12:16:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69206,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:16:16]free response buf [12:16:16]execute_script done [12:16:16]execute_script returns [12:16:16]free content buf [12:16:16]Sock 9.Close socket [12:16:16]Sock 9.Thread stoped [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:33]accept exits with 7 [12:16:33]New connection [12:16:33]New thread 3066641764 created [12:16:33]Thread 3066785124 joined [12:16:33]Waiting for new connection... [12:16:33] Sock 7.Parse request [12:16:33]Sock 7.Check first char [12:16:33]Sock 7.First char is OK [12:16:33]request: POST /json_proto HTTP/1.0 [12:16:33]Method: POST [12:16:33]URL: /json_proto [12:16:33]Method is POST - this is cgi request [12:16:33]url: /json_proto [12:16:33]query_string will be loaded in cgi processing [12:16:33]execute_cgi json_proto POST (null) [12:16:33]execute_cgi path=json_proto method=POST [12:16:33]POST find Content-Length [12:16:33]Host: 172.17.49.132:8080 [12:16:33]Content-Length: 678 [12:16:33]Content-Type: application/json [12:16:33] [12:16:33]POST finish read [12:16:33]Found Content-Length = 678 [12:16:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 26.600, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:33]execute_script... [12:16:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 26.600, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:33]POST & json_proto [12:16:33]process_json_proto [12:16:33]json parsed OK: [12:16:33]protocol is kg_v1.0 [12:16:33]action value=close_receipt [12:16:33]process_action close_receipt [12:16:33]cmd_close_receipt [12:16:33]MH_GetDate [12:16:33]Write to MH i2c: F0 00 00 87 49 BF [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: F0 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: F0 09 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: F0 09 00 87 49 00 AA 36 A6 66 E7 4B C0 64 0A [12:16:33]GetLastDocTimeStamp 1722168981 [12:16:33]current date 1722169002 [12:16:33]FM_GetShiftState [12:16:33]SAM_PROTO_GetShiftState [12:16:33]wFMCommunicate request_size=4 [12:16:33]MH_SAM_APDU [12:16:33]CAPDU: 80 13 01 00 [12:16:33]Write to MH i2c: E2 08 00 88 49 80 13 01 00 00 00 00 00 4E [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:33]Read from MH i2c: E2 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 0E 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 0E 00 88 49 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 8B [12:16:33]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:16:33]wFMCommunicate OK [12:16:33]SAM_PROTO_GetShiftState done [12:16:33]FM_GetShiftState done [12:16:33]opened in 1722127251 [12:16:33]opened+sec_in_day 1722213651 [12:16:33]quantity*price = 200032 [12:16:33]sum+1 = 200033 [12:16:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 90 28.07.2024 12:16 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69207 ФПД: 125750376607399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121642&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69207&fm=125750376607399&tin=02508201610067®Number=0000000000092638&sum=200000 [12:16:34]StoreToDocumentArchive [12:16:34]shift 429 fd 69207 [12:16:34]save to /storage/0429/doc_00069207 [12:16:34]save last doc name /storage/0429/doc_00069207 to /storage/kkm_last_doc_name [12:16:34]save OK [12:16:34]Clear old archive folders... [12:16:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:16:34]tlvbuf is 00A7EE80 [12:16:34]SAM_PROTO_ClearQueue [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 09 00 00 [12:16:34]Write to MH i2c: E2 08 00 95 49 80 09 00 00 00 00 00 00 50 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 95 49 00 90 00 52 [12:16:34]RAPDU: 90 00 [12:16:34]wFMCommunicate OK [12:16:34]SAM_PROTO_ClearQueue done [12:16:34]KKMCreateOFDPacket [12:16:34]OFDProtocolAddRootSTLVToBuf [12:16:34]FM_MakeSignedData [12:16:34]FM_MakeSignedData [12:16:34]SAM_PROTO_SignData [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 0D 01 02 [12:16:34]Write to MH i2c: E2 08 00 96 49 80 0D 01 02 00 00 00 00 58 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 96 49 00 90 00 53 [12:16:34]RAPDU: 90 00 [12:16:34]wFMCommunicate OK [12:16:34]wFMCommunicate request_size=255 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 AA 36 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 57 0E 01 00 35 04 06 00 72 5E 8A 87 [12:16:34]Write to MH i2c: E2 02 01 97 49 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 AA 36 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 57 0E 01 00 35 04 06 00 72 5E 8A 87 00 00 14 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 97 49 00 90 00 54 [12:16:34]RAPDU: 90 00 [12:16:34]wFMCommunicate OK [12:16:34]wFMCommunicate request_size=7 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 0D 02 02 02 2E A7 [12:16:34]Write to MH i2c: E2 0A 00 98 49 80 0D 02 02 02 00 2E A7 00 00 34 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 98 49 00 90 00 55 [12:16:34]RAPDU: 90 00 [12:16:34]wFMCommunicate OK [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 0D 03 02 [12:16:34]Write to MH i2c: E2 08 00 99 49 80 0D 03 02 00 00 00 00 5D [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 0B 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 0B 00 99 49 00 B3 B6 BF C7 3B 46 96 99 90 00 FD [12:16:34]RAPDU: B3 B6 BF C7 3B 46 96 99 90 00 [12:16:34]wFMCommunicate OK [12:16:34]SAM_PROTO_SignData done [12:16:34]FM_MakeSignedData done [12:16:34]CreateOFDProtocolMessage [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 11 00 00 [12:16:34]Write to MH i2c: E2 08 00 9A 49 80 11 00 00 00 00 00 00 5D [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 17 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 17 00 9A 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B9 [12:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:16:34]wFMCommunicate OK [12:16:34]CreateOFDProtocolMessage done [12:16:34]OFDSenderStorePacket 69207 [12:16:34]StoreOFDPacket docnum=69207 [12:16:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 C3 22 04 01 B6 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 AA 36 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 57 0E 01 00 35 04 06 00 72 5E 8A 87 2E A7 B3 B6 BF C7 3B 46 96 99 [12:16:34]CheckFolder [12:16:34]dirname=/storage/ofd_packets [12:16:34]CheckFolder done [12:16:34]ProducePacketName [12:16:34]name=ofd_packets/00069207 [12:16:34]NVStorageSaveData ofd_packets/00069207 [12:16:34]File name is /storage/ofd_packets/00069207 [12:16:34]Write 298 bytes [12:16:34]NVStorageSaveData done [12:16:34]OFDSenderStorePacket done [12:16:34]KKMCreateOFDPacket done [12:16:34]NVStorageSaveData kkm_last_timestamp [12:16:34]File name is /storage/kkm_last_timestamp [12:16:34]Write 4 bytes [12:16:34]NVStorageSaveData done [12:16:34]ExternCall_PrintAddStr [12:16:34]wPrintStart [12:16:34]Write to MH i2c: 01 00 00 9B 49 E4 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: 01 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: 01 07 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: 01 07 00 9B 49 00 00 00 00 00 FF 0F F9 [12:16:34]RasterBufferAndPrint [12:16:34]line Счет N : (1)871863 [12:16:34]line ИНН: 02508201610067 [12:16:34]line Контрольно-Кассовый Чек [12:16:34]line ПРОДАЖА [12:16:34]line ТРК (МРК, ГНК) : 1 [12:16:34]line Товар: 2710194210 [12:16:34]line ДТ-К-5 [12:16:34]line 26.600 * 75.20 [12:16:34]line = 2000.32 [12:16:34]line НДС 12% НСП 1% [12:16:34]line > о реализуемом товаре [12:16:34]line ОКРУГЛЕНИЕ: -0.32 [12:16:34]line ИТОГО: 2000.00 [12:16:34]line Внесено: 2000.00 [12:16:34]line СДАЧА: 0.00 [12:16:34]line НСП 1% : 17.70 [12:16:34]line НДС 12% : 212.42 [12:16:34]line Наличными: 2000.00 [12:16:34]line Безнал.: 0.00 [12:16:34]line Место: АЗС № 125 "Партнер Нефть" [12:16:34]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:16:34]line СНО: Общий режим [12:16:34]line Чек 90 28.07.2024 12:16 [12:16:34]line Смена: 429 ФФД: 1.0 [12:16:34]line ЗНМ: 0300000049 [12:16:34]line РНМ: 0000000000092638 [12:16:34]line Версия ККМ: 001 [12:16:34]line ФМ: 0000000000874949 [12:16:34]line ФД: 69207 [12:16:34]line ФПД: 125750376607399 [12:16:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121642&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69207&fm=125750376607399&tin=02508201610067®Number=0000000000092638&sum=200000 [12:16:35]OFD Sender: Processing packet 69207 [packets to send 19, broken 18] [12:16:35]ProducePacketName [12:16:35]name=ofd_packets/00069207 [12:16:35]OFD Sender: To server: pG, [12:16:35]CommunicateWithHost lk.salyk.kg:30040 [12:16:35]ConnectInit lk.salyk.kg [12:16:35]written 0, free lines is 4095 [12:16:35]Connected sock=10 [12:16:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 C3 22 04 01 B6 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 AA 36 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 57 0E 01 00 35 04 06 00 72 5E 8A 87 2E A7 B3 B6 BF C7 3B 46 96 99 [12:16:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 87 7E 47 00 76 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 39 34 39 10 04 04 00 57 0E 01 00 F4 03 04 00 19 DD A5 66 B6 04 01 00 00 9B ED A7 3D 92 D5 1B C5 [12:16:35]CommunicateWithHost err = 0 [12:16:35]CheckOFDResponse [12:16:35]1017 (14) - 77093643461234 [12:16:35]1041 (16) - 0000000000874949 [12:16:35]1040 (4) - 69207 [12:16:35]1012 (4) - 28.07.2024 05:54 [12:16:35]1206 (1) - 0 [12:16:35]OFD Sender: Remove packet 69207 [12:16:35]ProducePacketName [12:16:35]name=ofd_packets/00069207 [12:16:35]NVStorageDeleteData [12:16:35]Write to MH i2c: 01 00 00 C6 49 0F [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: 01 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: 01 07 00 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: 01 07 00 C6 49 00 00 00 00 00 EE 0C 10 [12:16:35]RasterBufferAndPrint [12:16:35]line [12:16:35]line [12:16:35]line [12:16:35]line [12:16:35]line [12:16:35]written 0, free lines is 3319 [12:16:35]MH_Cut [12:16:35]Write to MH i2c: D1 01 00 CD 49 01 E8 [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: D1 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: D1 01 00 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: D1 01 00 CD 49 00 E7 [12:16:35]Write to MH i2c: 01 00 00 CE 49 17 [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:36]OFD Sender: No OFD packet to send [12:16:36]*** Cut start [12:16:36]*** Partial cut [12:16:36]*** CUTSNS_PIN = 1 [12:16:36]*** CUTSNS_PIN = 0 [12:16:36]*** Brake cut motor [12:16:36]Read from MH i2c: 01 [12:16:36]MH_I2C_Read... [12:16:36]*** Stop cut motor [12:16:36]*** Cut end [12:16:36]Read from MH i2c: 01 07 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: 01 07 00 CE 49 00 00 00 00 00 FF 0F 2C [12:16:36]process_action close_receipt done [12:16:36]requested_data is exist [12:16:36]produce_requested_data [12:16:36]requested_item fm.sn is exist - process it [12:16:36]wFMCommunicate request_size=4 [12:16:36]MH_SAM_APDU [12:16:36]CAPDU: 80 11 00 00 [12:16:36]Write to MH i2c: E2 08 00 CF 49 80 11 00 00 00 00 00 00 92 [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:36]Read from MH i2c: E2 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 17 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 17 00 CF 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 EE [12:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:16:36]wFMCommunicate OK [12:16:36]requested_item fd.num is exist - process it [12:16:36]SAM_PROTO_GetFieldsCounters [12:16:36]wFMCommunicate request_size=4 [12:16:36]MH_SAM_APDU [12:16:36]CAPDU: 80 13 00 00 [12:16:36]Write to MH i2c: E2 08 00 D0 49 80 13 00 00 00 00 00 00 95 [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:37]Read from MH i2c: E2 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 62 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 62 00 D0 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 57 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [12:16:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 57 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:37]wFMCommunicate OK [12:16:37]SAM_PROTO_GetFieldsCounters done [12:16:37]requested_item shift.num is exist - process it [12:16:37]requested_item shift.opened is exist - process it [12:16:37]req_shift_opened [12:16:37]FM_GetShiftState [12:16:37]SAM_PROTO_GetShiftState [12:16:37]wFMCommunicate request_size=4 [12:16:37]MH_SAM_APDU [12:16:37]CAPDU: 80 13 01 00 [12:16:37]Write to MH i2c: E2 08 00 D1 49 80 13 01 00 00 00 00 00 97 [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:37]Read from MH i2c: E2 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 0E 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 0E 00 D1 49 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 D4 [12:16:37]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:16:37]wFMCommunicate OK [12:16:37]SAM_PROTO_GetShiftState done [12:16:37]FM_GetShiftState done [12:16:37]req_shift_opened done [12:16:37]requested_item shift.open_date is exist - process it [12:16:37]req_shift_open_date [12:16:37]req_shift_open_date done [12:16:37]produce_requested_data done [12:16:37]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69207,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:16:37]process_action_free close_receipt [12:16:37]json_value_free [12:16:37]json_value_free done [12:16:37]process_json_proto returns [12:16:37]Send response to host [12:16:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69207,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:16:37]free response buf [12:16:37]execute_script done [12:16:37]execute_script returns [12:16:37]free content buf [12:16:37]Sock 7.Close socket [12:16:37]Sock 7.Thread stoped [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:44]accept exits with 9 [12:18:44]New connection [12:18:44]New thread 3066785124 created [12:18:44]Thread 3066641764 joined [12:18:44]Waiting for new connection... [12:18:44] Sock 9.Parse request [12:18:44]Sock 9.Check first char [12:18:44]Sock 9.First char is OK [12:18:44]request: POST /json_proto HTTP/1.0 [12:18:44]Method: POST [12:18:44]URL: /json_proto [12:18:44]Method is POST - this is cgi request [12:18:44]url: /json_proto [12:18:44]query_string will be loaded in cgi processing [12:18:44]execute_cgi json_proto POST (null) [12:18:44]execute_cgi path=json_proto method=POST [12:18:44]POST find Content-Length [12:18:44]Host: 172.17.49.132:8080 [12:18:44]Content-Length: 682 [12:18:44]Content-Type: application/json [12:18:44] [12:18:44]POST finish read [12:18:44]Found Content-Length = 682 [12:18:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:44]execute_script... [12:18:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:44]POST & json_proto [12:18:44]process_json_proto [12:18:44]json parsed OK: [12:18:44]protocol is kg_v1.0 [12:18:44]action value=close_receipt [12:18:44]process_action close_receipt [12:18:44]cmd_close_receipt [12:18:44]MH_GetDate [12:18:44]Write to MH i2c: F0 00 00 D2 49 0A [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: F0 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: F0 09 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: F0 09 00 D2 49 00 2D 37 A6 66 E7 4B C0 64 D9 [12:18:44]GetLastDocTimeStamp 1722169002 [12:18:44]current date 1722169133 [12:18:44]FM_GetShiftState [12:18:44]SAM_PROTO_GetShiftState [12:18:44]wFMCommunicate request_size=4 [12:18:44]MH_SAM_APDU [12:18:44]CAPDU: 80 13 01 00 [12:18:44]Write to MH i2c: E2 08 00 D3 49 80 13 01 00 00 00 00 00 99 [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:44]Read from MH i2c: E2 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 0E 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 0E 00 D3 49 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 D6 [12:18:44]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:18:44]wFMCommunicate OK [12:18:44]SAM_PROTO_GetShiftState done [12:18:44]FM_GetShiftState done [12:18:44]opened in 1722127251 [12:18:44]opened+sec_in_day 1722213651 [12:18:44]quantity*price = 100005 [12:18:44]sum+1 = 100006 [12:18:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 91 28.07.2024 12:18 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69208 ФПД: 128274701519996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121853&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69208&fm=128274701519996&tin=02508201610067®Number=0000000000092638&sum=100000 [12:18:45]StoreToDocumentArchive [12:18:45]shift 429 fd 69208 [12:18:45]save to /storage/0429/doc_00069208 [12:18:45]save last doc name /storage/0429/doc_00069208 to /storage/kkm_last_doc_name [12:18:45]save OK [12:18:45]Clear old archive folders... [12:18:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:45]tlvbuf is 00A72F40 [12:18:45]SAM_PROTO_ClearQueue [12:18:45]wFMCommunicate request_size=4 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 09 00 00 [12:18:45]Write to MH i2c: E2 08 00 E0 49 80 09 00 00 00 00 00 00 9B [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:45]Read from MH i2c: E2 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 03 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 03 00 E0 49 00 90 00 9D [12:18:45]RAPDU: 90 00 [12:18:45]wFMCommunicate OK [12:18:45]SAM_PROTO_ClearQueue done [12:18:45]KKMCreateOFDPacket [12:18:45]OFDProtocolAddRootSTLVToBuf [12:18:45]FM_MakeSignedData [12:18:45]FM_MakeSignedData [12:18:45]SAM_PROTO_SignData [12:18:45]wFMCommunicate request_size=4 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 0D 01 02 [12:18:45]Write to MH i2c: E2 08 00 E1 49 80 0D 01 02 00 00 00 00 A3 [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:45]Read from MH i2c: E2 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 03 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 03 00 E1 49 00 90 00 9E [12:18:45]RAPDU: 90 00 [12:18:45]wFMCommunicate OK [12:18:45]wFMCommunicate request_size=255 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 2D 37 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 58 0E 01 00 35 04 06 00 74 [12:18:45]Write to MH i2c: E2 02 01 E2 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 2D 37 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 58 0E 01 00 35 04 06 00 74 00 00 11 [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 [12:18:45]MH_I2C_Read... [12:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:45]Read from MH i2c: E2 03 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 03 00 E2 49 00 90 00 9F [12:18:45]RAPDU: 90 00 [12:18:45]wFMCommunicate OK [12:18:45]wFMCommunicate request_size=10 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 0D 02 02 05 AA 48 04 8C 7C [12:18:45]Write to MH i2c: E2 0D 00 E3 49 80 0D 02 02 05 00 AA 48 04 8C 7C 00 00 AE [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:45]Read from MH i2c: E2 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 03 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 03 00 E3 49 00 90 00 A0 [12:18:45]RAPDU: 90 00 [12:18:45]wFMCommunicate OK [12:18:45]wFMCommunicate request_size=4 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 0D 03 02 [12:18:45]Write to MH i2c: E2 08 00 E4 49 80 0D 03 02 00 00 00 00 A8 [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:45]Read from MH i2c: E2 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 0B 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 0B 00 E4 49 00 3D 14 B4 A3 D2 24 98 C0 90 00 9F [12:18:45]RAPDU: 3D 14 B4 A3 D2 24 98 C0 90 00 [12:18:45]wFMCommunicate OK [12:18:45]SAM_PROTO_SignData done [12:18:45]FM_MakeSignedData done [12:18:45]CreateOFDProtocolMessage [12:18:45]wFMCommunicate request_size=4 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 11 00 00 [12:18:45]Write to MH i2c: E2 08 00 E5 49 80 11 00 00 00 00 00 00 A8 [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:45]Read from MH i2c: E2 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 17 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 17 00 E5 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 04 [12:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:18:45]wFMCommunicate OK [12:18:45]CreateOFDProtocolMessage done [12:18:45]OFDSenderStorePacket 69208 [12:18:45]StoreOFDPacket docnum=69208 [12:18:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 5D 10 07 01 B9 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 2D 37 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 58 0E 01 00 35 04 06 00 74 AA 48 04 8C 7C 3D 14 B4 A3 D2 24 98 C0 [12:18:45]CheckFolder [12:18:45]dirname=/storage/ofd_packets [12:18:45]CheckFolder done [12:18:45]ProducePacketName [12:18:45]name=ofd_packets/00069208 [12:18:45]NVStorageSaveData ofd_packets/00069208 [12:18:45]File name is /storage/ofd_packets/00069208 [12:18:45]Write 301 bytes [12:18:45]NVStorageSaveData done [12:18:45]OFDSenderStorePacket done [12:18:45]KKMCreateOFDPacket done [12:18:45]NVStorageSaveData kkm_last_timestamp [12:18:45]File name is /storage/kkm_last_timestamp [12:18:45]Write 4 bytes [12:18:45]NVStorageSaveData done [12:18:45]ExternCall_PrintAddStr [12:18:45]wPrintStart [12:18:45]Write to MH i2c: 01 00 00 E6 49 2F [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: 01 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: 01 07 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: 01 07 00 E6 49 00 00 00 00 00 FF 0F 44 [12:18:45]RasterBufferAndPrint [12:18:45]line Счет N : (1)871866 [12:18:45]line ИНН: 02508201610067 [12:18:45]line Контрольно-Кассовый Чек [12:18:45]line ПРОДАЖА [12:18:45]line ТРК (МРК, ГНК) : 62 [12:18:45]line Товар: 2710124130 [12:18:45]line Аи-92-К-5 [12:18:45]line 14.750 * 67.80 [12:18:45]line = 1000.05 [12:18:45]line НДС 12% НСП 1% [12:18:45]line > о реализуемом товаре [12:18:45]line ОКРУГЛЕНИЕ: -0.05 [12:18:45]line ИТОГО: 1000.00 [12:18:45]line Внесено: 1000.00 [12:18:45]line СДАЧА: 0.00 [12:18:45]line НСП 1% : 8.85 [12:18:45]line НДС 12% : 106.20 [12:18:45]line Наличными: 1000.00 [12:18:45]line Безнал.: 0.00 [12:18:45]line Место: АЗС № 125 "Партнер Нефть" [12:18:45]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:18:45]line СНО: Общий режим [12:18:45]line Чек 91 28.07.2024 12:18 [12:18:45]line Смена: 429 ФФД: 1.0 [12:18:45]line ЗНМ: 0300000049 [12:18:45]line РНМ: 0000000000092638 [12:18:45]line Версия ККМ: 001 [12:18:45]line ФМ: 0000000000874949 [12:18:45]line ФД: 69208 [12:18:45]line ФПД: 128274701519996 [12:18:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121853&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69208&fm=128274701519996&tin=02508201610067®Number=0000000000092638&sum=100000 [12:18:46]OFD Sender: Processing packet 69208 [packets to send 19, broken 18] [12:18:46]ProducePacketName [12:18:46]name=ofd_packets/00069208 [12:18:46]OFD Sender: To server: pG, [12:18:46]CommunicateWithHost lk.salyk.kg:30040 [12:18:46]ConnectInit lk.salyk.kg [12:18:46]written 0, free lines is 4095 [12:18:46]Connected sock=10 [12:18:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 5D 10 07 01 B9 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 2D 37 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 58 0E 01 00 35 04 06 00 74 AA 48 04 8C 7C 3D 14 B4 A3 D2 24 98 C0 [12:18:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 32 68 47 00 02 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 58 0E 01 00 F4 03 04 00 9C DD A5 66 B6 04 01 00 00 06 65 1A 5A 2B 2B 51 22 [12:18:46]CommunicateWithHost err = 0 [12:18:46]CheckOFDResponse [12:18:46]1017 (14) - 77093643461234 [12:18:46]1041 (16) - 0000000000874949 [12:18:46]1040 (4) - 69208 [12:18:46]1012 (4) - 28.07.2024 05:56 [12:18:46]1206 (1) - 0 [12:18:46]OFD Sender: Remove packet 69208 [12:18:46]ProducePacketName [12:18:46]name=ofd_packets/00069208 [12:18:46]NVStorageDeleteData [12:18:46]Write to MH i2c: 01 00 00 11 4A 5B [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: 01 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: 01 07 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: 01 07 00 11 4A 00 00 00 00 00 F1 0C 5F [12:18:46]RasterBufferAndPrint [12:18:46]line [12:18:46]line [12:18:46]line [12:18:46]line [12:18:46]line [12:18:46]written 0, free lines is 3319 [12:18:46]MH_Cut [12:18:46]Write to MH i2c: D1 01 00 18 4A 01 34 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: D1 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: D1 01 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: D1 01 00 18 4A 00 33 [12:18:46]Write to MH i2c: 01 00 00 19 4A 63 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]OFD Sender: No OFD packet to send [12:18:47]*** Cut start [12:18:47]*** Partial cut [12:18:47]*** CUTSNS_PIN = 1 [12:18:47]*** CUTSNS_PIN = 0 [12:18:47]*** Brake cut motor [12:18:47]Read from MH i2c: 01 [12:18:47]MH_I2C_Read... [12:18:47]*** Stop cut motor [12:18:47]*** Cut end [12:18:47]Read from MH i2c: 01 07 00 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: 01 07 00 19 4A 00 00 00 00 00 FF 0F 78 [12:18:47]process_action close_receipt done [12:18:47]requested_data is exist [12:18:47]produce_requested_data [12:18:47]requested_item fm.sn is exist - process it [12:18:47]wFMCommunicate request_size=4 [12:18:47]MH_SAM_APDU [12:18:47]CAPDU: 80 11 00 00 [12:18:47]Write to MH i2c: E2 08 00 1A 4A 80 11 00 00 00 00 00 00 DE [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:47]Read from MH i2c: E2 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: E2 17 00 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: E2 17 00 1A 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3A [12:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:18:47]wFMCommunicate OK [12:18:47]requested_item fd.num is exist - process it [12:18:47]SAM_PROTO_GetFieldsCounters [12:18:47]wFMCommunicate request_size=4 [12:18:47]MH_SAM_APDU [12:18:47]CAPDU: 80 13 00 00 [12:18:47]Write to MH i2c: E2 08 00 1B 4A 80 13 00 00 00 00 00 00 E1 [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:47]Read from MH i2c: E2 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: E2 62 00 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: E2 62 00 1B 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 58 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [12:18:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 58 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:47]wFMCommunicate OK [12:18:47]SAM_PROTO_GetFieldsCounters done [12:18:47]requested_item shift.num is exist - process it [12:18:47]requested_item shift.opened is exist - process it [12:18:47]req_shift_opened [12:18:47]FM_GetShiftState [12:18:47]SAM_PROTO_GetShiftState [12:18:47]wFMCommunicate request_size=4 [12:18:47]MH_SAM_APDU [12:18:47]CAPDU: 80 13 01 00 [12:18:47]Write to MH i2c: E2 08 00 1C 4A 80 13 01 00 00 00 00 00 E3 [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 [12:18:48]MH_I2C_Read... [12:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:48]Read from MH i2c: E2 0E 00 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 0E 00 1C 4A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 20 [12:18:48]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:18:48]wFMCommunicate OK [12:18:48]SAM_PROTO_GetShiftState done [12:18:48]FM_GetShiftState done [12:18:48]req_shift_opened done [12:18:48]requested_item shift.open_date is exist - process it [12:18:48]req_shift_open_date [12:18:48]req_shift_open_date done [12:18:48]produce_requested_data done [12:18:48]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69208,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:18:48]process_action_free close_receipt [12:18:48]json_value_free [12:18:48]json_value_free done [12:18:48]process_json_proto returns [12:18:48]Send response to host [12:18:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69208,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:18:48]free response buf [12:18:48]execute_script done [12:18:48]execute_script returns [12:18:48]free content buf [12:18:48]Sock 9.Close socket [12:18:48]Sock 9.Thread stoped [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:14]accept exits with 7 [12:19:14]New connection [12:19:14]New thread 3066641764 created [12:19:14]Thread 3066785124 joined [12:19:14]Waiting for new connection... [12:19:14] Sock 7.Parse request [12:19:14]Sock 7.Check first char [12:19:14]Sock 7.First char is OK [12:19:14]request: POST /json_proto HTTP/1.0 [12:19:14]Method: POST [12:19:14]URL: /json_proto [12:19:14]Method is POST - this is cgi request [12:19:14]url: /json_proto [12:19:14]query_string will be loaded in cgi processing [12:19:14]execute_cgi json_proto POST (null) [12:19:14]execute_cgi path=json_proto method=POST [12:19:14]POST find Content-Length [12:19:14]Host: 172.17.49.132:8080 [12:19:14]Content-Length: 678 [12:19:14]Content-Type: application/json [12:19:14] [12:19:14]POST finish read [12:19:14]Found Content-Length = 678 [12:19:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:14]execute_script... [12:19: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)871868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:14]POST & json_proto [12:19:14]process_json_proto [12:19:14]json parsed OK: [12:19:14]protocol is kg_v1.0 [12:19:14]action value=close_receipt [12:19:14]process_action close_receipt [12:19:14]cmd_close_receipt [12:19:14]MH_GetDate [12:19:14]Write to MH i2c: F0 00 00 1D 4A 56 [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: F0 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: F0 09 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: F0 09 00 1D 4A 00 4B 37 A6 66 E7 4B C0 64 43 [12:19:14]GetLastDocTimeStamp 1722169133 [12:19:14]current date 1722169163 [12:19:14]FM_GetShiftState [12:19:14]SAM_PROTO_GetShiftState [12:19:14]wFMCommunicate request_size=4 [12:19:14]MH_SAM_APDU [12:19:14]CAPDU: 80 13 01 00 [12:19:14]Write to MH i2c: E2 08 00 1E 4A 80 13 01 00 00 00 00 00 E5 [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:14]Read from MH i2c: E2 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 0E 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 0E 00 1E 4A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 22 [12:19:14]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:19:14]wFMCommunicate OK [12:19:14]SAM_PROTO_GetShiftState done [12:19:14]FM_GetShiftState done [12:19:14]opened in 1722127251 [12:19:14]opened+sec_in_day 1722213651 [12:19:14]quantity*price = 100016 [12:19:14]sum+1 = 100017 [12:19:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 92 28.07.2024 12:19 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69209 ФПД: 12524643840842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121923&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69209&fm=12524643840842&tin=02508201610067®Number=0000000000092638&sum=100000 [12:19:15]StoreToDocumentArchive [12:19:15]shift 429 fd 69209 [12:19:15]save to /storage/0429/doc_00069209 [12:19:15]save last doc name /storage/0429/doc_00069209 to /storage/kkm_last_doc_name [12:19:15]save OK [12:19:15]Clear old archive folders... [12:19:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:19:15]tlvbuf is 00BCB210 [12:19:15]SAM_PROTO_ClearQueue [12:19:15]wFMCommunicate request_size=4 [12:19:15]MH_SAM_APDU [12:19:15]CAPDU: 80 09 00 00 [12:19:15]Write to MH i2c: E2 08 00 2B 4A 80 09 00 00 00 00 00 00 E7 [12:19:15]Write i2c OK [12:19:15]MH_I2C_Read... [12:19:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:15]Read from MH i2c: E2 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 03 00 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 03 00 2B 4A 00 90 00 E9 [12:19:15]RAPDU: 90 00 [12:19:15]wFMCommunicate OK [12:19:15]SAM_PROTO_ClearQueue done [12:19:15]KKMCreateOFDPacket [12:19:15]OFDProtocolAddRootSTLVToBuf [12:19:15]FM_MakeSignedData [12:19:15]FM_MakeSignedData [12:19:15]SAM_PROTO_SignData [12:19:15]wFMCommunicate request_size=4 [12:19:15]MH_SAM_APDU [12:19:15]CAPDU: 80 0D 01 02 [12:19:15]Write to MH i2c: E2 08 00 2C 4A 80 0D 01 02 00 00 00 00 EF [12:19:15]Write i2c OK [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 [12:19:15]MH_I2C_Read... [12:19:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:15]Read from MH i2c: E2 03 00 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: E2 03 00 2C 4A 00 90 00 EA [12:19:15]RAPDU: 90 00 [12:19:15]wFMCommunicate OK [12:19:15]wFMCommunicate request_size=255 [12:19:15]MH_SAM_APDU [12:19:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 5C 00 00 00 F4 03 04 00 4B 37 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 59 0E 01 00 35 04 06 00 0B 64 1E F2 [12:19:15]Write to MH i2c: E2 02 01 2D 4A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 5C 00 00 00 F4 03 04 00 4B 37 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 59 0E 01 00 35 04 06 00 0B 64 1E F2 00 00 1E [12:19:15]Write i2c OK [12:19:15]MH_I2C_Read... [12:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:16]Read from MH i2c: E2 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 03 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 03 00 2D 4A 00 90 00 EB [12:19:16]RAPDU: 90 00 [12:19:16]wFMCommunicate OK [12:19:16]wFMCommunicate request_size=7 [12:19:16]MH_SAM_APDU [12:19:16]CAPDU: 80 0D 02 02 02 73 4A [12:19:16]Write to MH i2c: E2 0A 00 2E 4A 80 0D 02 02 02 00 73 4A 00 00 B3 [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:16]Read from MH i2c: E2 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 03 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 03 00 2E 4A 00 90 00 EC [12:19:16]RAPDU: 90 00 [12:19:16]wFMCommunicate OK [12:19:16]wFMCommunicate request_size=4 [12:19:16]MH_SAM_APDU [12:19:16]CAPDU: 80 0D 03 02 [12:19:16]Write to MH i2c: E2 08 00 2F 4A 80 0D 03 02 00 00 00 00 F4 [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:16]Read from MH i2c: E2 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 0B 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 0B 00 2F 4A 00 9B 59 EF 09 44 D5 4E 36 90 00 7E [12:19:16]RAPDU: 9B 59 EF 09 44 D5 4E 36 90 00 [12:19:16]wFMCommunicate OK [12:19:16]SAM_PROTO_SignData done [12:19:16]FM_MakeSignedData done [12:19:16]CreateOFDProtocolMessage [12:19:16]wFMCommunicate request_size=4 [12:19:16]MH_SAM_APDU [12:19:16]CAPDU: 80 11 00 00 [12:19:16]Write to MH i2c: E2 08 00 30 4A 80 11 00 00 00 00 00 00 F4 [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:16]Read from MH i2c: E2 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 17 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 17 00 30 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 50 [12:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:19:16]wFMCommunicate OK [12:19:16]CreateOFDProtocolMessage done [12:19:16]OFDSenderStorePacket 69209 [12:19:16]StoreOFDPacket docnum=69209 [12:19:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 3D A4 04 01 B0 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 5C 00 00 00 F4 03 04 00 4B 37 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 59 0E 01 00 35 04 06 00 0B 64 1E F2 73 4A 9B 59 EF 09 44 D5 4E 36 [12:19:16]CheckFolder [12:19:16]dirname=/storage/ofd_packets [12:19:16]CheckFolder done [12:19:16]ProducePacketName [12:19:16]name=ofd_packets/00069209 [12:19:16]NVStorageSaveData ofd_packets/00069209 [12:19:16]File name is /storage/ofd_packets/00069209 [12:19:16]Write 298 bytes [12:19:16]NVStorageSaveData done [12:19:16]OFDSenderStorePacket done [12:19:16]KKMCreateOFDPacket done [12:19:16]NVStorageSaveData kkm_last_timestamp [12:19:16]File name is /storage/kkm_last_timestamp [12:19:16]Write 4 bytes [12:19:16]NVStorageSaveData done [12:19:16]ExternCall_PrintAddStr [12:19:16]wPrintStart [12:19:16]Write to MH i2c: 01 00 00 31 4A 7B [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: 01 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: 01 07 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: 01 07 00 31 4A 00 00 00 00 00 FF 0F 90 [12:19:16]RasterBufferAndPrint [12:19:16]line Счет N : (1)871868 [12:19:16]line ИНН: 02508201610067 [12:19:16]line Контрольно-Кассовый Чек [12:19:16]line ПРОДАЖА [12:19:16]line ТРК (МРК, ГНК) : 2 [12:19:16]line Товар: 2710194210 [12:19:16]line ДТ-К-5 [12:19:16]line 13.300 * 75.20 [12:19:16]line = 1000.16 [12:19:16]line НДС 12% НСП 1% [12:19:16]line > о реализуемом товаре [12:19:16]line ОКРУГЛЕНИЕ: -0.16 [12:19:16]line ИТОГО: 1000.00 [12:19:16]line Внесено: 1000.00 [12:19:16]line СДАЧА: 0.00 [12:19:16]line НСП 1% : 8.85 [12:19:16]line НДС 12% : 106.21 [12:19:16]line Наличными: 1000.00 [12:19:16]line Безнал.: 0.00 [12:19:16]line Место: АЗС № 125 "Партнер Нефть" [12:19:16]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:19:16]line СНО: Общий режим [12:19:16]line Чек 92 28.07.2024 12:19 [12:19:16]line Смена: 429 ФФД: 1.0 [12:19:16]line ЗНМ: 0300000049 [12:19:16]line РНМ: 0000000000092638 [12:19:16]line Версия ККМ: 001 [12:19:16]line ФМ: 0000000000874949 [12:19:16]line ФД: 69209 [12:19:16]line ФПД: 12524643840842 [12:19:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T121923&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69209&fm=12524643840842&tin=02508201610067®Number=0000000000092638&sum=100000 [12:19:16]OFD Sender: Processing packet 69209 [packets to send 19, broken 18] [12:19:16]ProducePacketName [12:19:16]name=ofd_packets/00069209 [12:19:16]OFD Sender: To server: pG, [12:19:16]CommunicateWithHost lk.salyk.kg:30040 [12:19:16]ConnectInit lk.salyk.kg [12:19:16]written 0, free lines is 4095 [12:19:16]Connected sock=10 [12:19: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 39 34 39 0C 01 00 00 3D A4 04 01 B0 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 5C 00 00 00 F4 03 04 00 4B 37 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 59 0E 01 00 35 04 06 00 0B 64 1E F2 73 4A 9B 59 EF 09 44 D5 4E 36 [12:19:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 01 80 47 00 54 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 59 0E 01 00 F4 03 04 00 BB DD A5 66 B6 04 01 00 00 FB 76 CF 91 95 28 8E 86 [12:19:16]CommunicateWithHost err = 0 [12:19:16]CheckOFDResponse [12:19:16]1017 (14) - 77093643461234 [12:19:16]1041 (16) - 0000000000874949 [12:19:16]1040 (4) - 69209 [12:19:16]1012 (4) - 28.07.2024 05:57 [12:19:16]1206 (1) - 0 [12:19:16]OFD Sender: Remove packet 69209 [12:19:16]ProducePacketName [12:19:16]name=ofd_packets/00069209 [12:19:16]NVStorageDeleteData [12:19:17]Write to MH i2c: 01 00 00 5C 4A A6 [12:19:17]Write i2c OK [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: 01 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: 01 07 00 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: 01 07 00 5C 4A 00 00 00 00 00 EB 0C A4 [12:19:17]RasterBufferAndPrint [12:19:17]line [12:19:17]line [12:19:17]line [12:19:17]line [12:19:17]line [12:19:17]written 0, free lines is 3313 [12:19:17]MH_Cut [12:19:17]Write to MH i2c: D1 01 00 63 4A 01 7F [12:19:17]Write i2c OK [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: D1 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: D1 01 00 [12:19:17]MH_I2C_Read... [12:19:17]Read from MH i2c: D1 01 00 63 4A 00 7E [12:19:17]Write to MH i2c: 01 00 00 64 4A AE [12:19:17]Write i2c OK [12:19:17]MH_I2C_Read... [12:19:17]OFD Sender: No OFD packet to send [12:19:17]*** Cut start [12:19:17]*** Partial cut [12:19:17]*** CUTSNS_PIN = 1 [12:19:17]*** CUTSNS_PIN = 0 [12:19:18]*** Brake cut motor [12:19:18]Read from MH i2c: 01 [12:19:18]MH_I2C_Read... [12:19:18]*** Stop cut motor [12:19:18]*** Cut end [12:19:18]Read from MH i2c: 01 07 00 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: 01 07 00 64 4A 00 00 00 00 00 FF 0F C3 [12:19:18]process_action close_receipt done [12:19:18]requested_data is exist [12:19:18]produce_requested_data [12:19:18]requested_item fm.sn is exist - process it [12:19:18]wFMCommunicate request_size=4 [12:19:18]MH_SAM_APDU [12:19:18]CAPDU: 80 11 00 00 [12:19:18]Write to MH i2c: E2 08 00 65 4A 80 11 00 00 00 00 00 00 29 [12:19:18]Write i2c OK [12:19:18]MH_I2C_Read... [12:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:18]Read from MH i2c: E2 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 17 00 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 17 00 65 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 85 [12:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:19:18]wFMCommunicate OK [12:19:18]requested_item fd.num is exist - process it [12:19:18]SAM_PROTO_GetFieldsCounters [12:19:18]wFMCommunicate request_size=4 [12:19:18]MH_SAM_APDU [12:19:18]CAPDU: 80 13 00 00 [12:19:18]Write to MH i2c: E2 08 00 66 4A 80 13 00 00 00 00 00 00 2C [12:19:18]Write i2c OK [12:19:18]MH_I2C_Read... [12:19:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:18]Read from MH i2c: E2 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 62 00 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 62 00 66 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 59 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [12:19: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 59 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:18]wFMCommunicate OK [12:19:18]SAM_PROTO_GetFieldsCounters done [12:19:18]requested_item shift.num is exist - process it [12:19:18]requested_item shift.opened is exist - process it [12:19:18]req_shift_opened [12:19:18]FM_GetShiftState [12:19:18]SAM_PROTO_GetShiftState [12:19:18]wFMCommunicate request_size=4 [12:19:18]MH_SAM_APDU [12:19:18]CAPDU: 80 13 01 00 [12:19:18]Write to MH i2c: E2 08 00 67 4A 80 13 01 00 00 00 00 00 2E [12:19:18]Write i2c OK [12:19:18]MH_I2C_Read... [12:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:18]Read from MH i2c: E2 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 0E 00 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: E2 0E 00 67 4A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 6B [12:19:18]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:19:18]wFMCommunicate OK [12:19:18]SAM_PROTO_GetShiftState done [12:19:18]FM_GetShiftState done [12:19:18]req_shift_opened done [12:19:18]requested_item shift.open_date is exist - process it [12:19:18]req_shift_open_date [12:19:18]req_shift_open_date done [12:19:18]produce_requested_data done [12:19:18]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69209,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:19:18]process_action_free close_receipt [12:19:18]json_value_free [12:19:18]json_value_free done [12:19:18]process_json_proto returns [12:19:18]Send response to host [12:19:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69209,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:19:18]free response buf [12:19:18]execute_script done [12:19:18]execute_script returns [12:19:18]free content buf [12:19:18]Sock 7.Close socket [12:19:18]Sock 7.Thread stoped [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:44]accept exits with 9 [12:20:44]New connection [12:20:44]New thread 3066785124 created [12:20:44]Thread 3066641764 joined [12:20:44]Waiting for new connection... [12:20:44] Sock 9.Parse request [12:20:44]Sock 9.Check first char [12:20:44]Sock 9.First char is OK [12:20:44]request: POST /json_proto HTTP/1.0 [12:20:44]Method: POST [12:20:44]URL: /json_proto [12:20:44]Method is POST - this is cgi request [12:20:44]url: /json_proto [12:20:44]query_string will be loaded in cgi processing [12:20:44]execute_cgi json_proto POST (null) [12:20:44]execute_cgi path=json_proto method=POST [12:20:44]POST find Content-Length [12:20:44]Host: 172.17.49.132:8080 [12:20:44]Content-Length: 843 [12:20:44]Content-Type: application/json [12:20:44] [12:20:44]POST finish read [12:20:44]Found Content-Length = 843 [12:20:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:44]execute_script... [12:20:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:44]POST & json_proto [12:20:44]process_json_proto [12:20:44]json parsed OK: [12:20:44]protocol is kg_v1.0 [12:20:44]action value=close_receipt [12:20:44]process_action close_receipt [12:20:44]cmd_close_receipt [12:20:44]MH_GetDate [12:20:44]Write to MH i2c: F0 00 00 68 4A A1 [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: F0 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: F0 09 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: F0 09 00 68 4A 00 A5 37 A6 66 E7 4B C0 64 E8 [12:20:44]GetLastDocTimeStamp 1722169163 [12:20:44]current date 1722169253 [12:20:44]FM_GetShiftState [12:20:44]SAM_PROTO_GetShiftState [12:20:44]wFMCommunicate request_size=4 [12:20:44]MH_SAM_APDU [12:20:44]CAPDU: 80 13 01 00 [12:20:44]Write to MH i2c: E2 08 00 69 4A 80 13 01 00 00 00 00 00 30 [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:44]Read from MH i2c: E2 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 0E 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 0E 00 69 4A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 6D [12:20:44]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:20:44]wFMCommunicate OK [12:20:44]SAM_PROTO_GetShiftState done [12:20:44]FM_GetShiftState done [12:20:44]opened in 1722127251 [12:20:44]opened+sec_in_day 1722213651 [12:20:44]quantity*price = 100005 [12:20:44]sum+1 = 100006 [12:20:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 93 28.07.2024 12:20 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69210 ФПД: 201334165018973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122053&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69210&fm=201334165018973&tin=02508201610067®Number=0000000000092638&sum=100005 [12:20:45]StoreToDocumentArchive [12:20:45]shift 429 fd 69210 [12:20:45]save to /storage/0429/doc_00069210 [12:20:45]save last doc name /storage/0429/doc_00069210 to /storage/kkm_last_doc_name [12:20:45]save OK [12:20:45]Clear old archive folders... [12:20:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:45]tlvbuf is 00A216E0 [12:20:45]SAM_PROTO_ClearQueue [12:20:45]wFMCommunicate request_size=4 [12:20:45]MH_SAM_APDU [12:20:45]CAPDU: 80 09 00 00 [12:20:45]Write to MH i2c: E2 08 00 76 4A 80 09 00 00 00 00 00 00 32 [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:45]Read from MH i2c: E2 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 03 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 03 00 76 4A 00 90 00 34 [12:20:45]RAPDU: 90 00 [12:20:45]wFMCommunicate OK [12:20:45]SAM_PROTO_ClearQueue done [12:20:45]KKMCreateOFDPacket [12:20:45]OFDProtocolAddRootSTLVToBuf [12:20:45]FM_MakeSignedData [12:20:45]FM_MakeSignedData [12:20:45]SAM_PROTO_SignData [12:20:45]wFMCommunicate request_size=4 [12:20:45]MH_SAM_APDU [12:20:45]CAPDU: 80 0D 01 02 [12:20:45]Write to MH i2c: E2 08 00 77 4A 80 0D 01 02 00 00 00 00 3A [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:45]Read from MH i2c: E2 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 03 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 03 00 77 4A 00 90 00 35 [12:20:45]RAPDU: 90 00 [12:20:45]wFMCommunicate OK [12:20:45]wFMCommunicate request_size=255 [12:20:45]MH_SAM_APDU [12:20:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A5 37 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5A 0E 01 00 35 04 06 00 B7 [12:20:45]Write to MH i2c: E2 02 01 78 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A5 37 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5A 0E 01 00 35 04 06 00 B7 00 00 71 [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:45]Read from MH i2c: E2 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 03 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 03 00 78 4A 00 90 00 36 [12:20:45]RAPDU: 90 00 [12:20:45]wFMCommunicate OK [12:20:45]wFMCommunicate request_size=10 [12:20:45]MH_SAM_APDU [12:20:45]CAPDU: 80 0D 02 02 05 1C C3 63 19 5D [12:20:45]Write to MH i2c: E2 0D 00 79 4A 80 0D 02 02 05 00 1C C3 63 19 5D 00 00 FF [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:45]Read from MH i2c: E2 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 03 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 03 00 79 4A 00 90 00 37 [12:20:45]RAPDU: 90 00 [12:20:45]wFMCommunicate OK [12:20:45]wFMCommunicate request_size=4 [12:20:45]MH_SAM_APDU [12:20:45]CAPDU: 80 0D 03 02 [12:20:45]Write to MH i2c: E2 08 00 7A 4A 80 0D 03 02 00 00 00 00 3F [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:45]Read from MH i2c: E2 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 0B 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: E2 0B 00 7A 4A 00 6D 1C 83 01 44 A7 21 8D 90 00 E6 [12:20:45]RAPDU: 6D 1C 83 01 44 A7 21 8D 90 00 [12:20:45]wFMCommunicate OK [12:20:45]SAM_PROTO_SignData done [12:20:45]FM_MakeSignedData done [12:20:45]CreateOFDProtocolMessage [12:20:45]wFMCommunicate request_size=4 [12:20:45]MH_SAM_APDU [12:20:45]CAPDU: 80 11 00 00 [12:20:45]Write to MH i2c: E2 08 00 7B 4A 80 11 00 00 00 00 00 00 3F [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 17 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 17 00 7B 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9B [12:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:20:46]wFMCommunicate OK [12:20:46]CreateOFDProtocolMessage done [12:20:46]OFDSenderStorePacket 69210 [12:20:46]StoreOFDPacket docnum=69210 [12:20:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 52 94 07 01 CF C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A5 37 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5A 0E 01 00 35 04 06 00 B7 1C C3 63 19 5D 6D 1C 83 01 44 A7 21 8D [12:20:46]CheckFolder [12:20:46]dirname=/storage/ofd_packets [12:20:46]CheckFolder done [12:20:46]ProducePacketName [12:20:46]name=ofd_packets/00069210 [12:20:46]NVStorageSaveData ofd_packets/00069210 [12:20:46]File name is /storage/ofd_packets/00069210 [12:20:46]Write 301 bytes [12:20:46]NVStorageSaveData done [12:20:46]OFDSenderStorePacket done [12:20:46]KKMCreateOFDPacket done [12:20:46]NVStorageSaveData kkm_last_timestamp [12:20:46]File name is /storage/kkm_last_timestamp [12:20:46]Write 4 bytes [12:20:46]NVStorageSaveData done [12:20:46]ExternCall_PrintAddStr [12:20:46]wPrintStart [12:20:46]Write to MH i2c: 01 00 00 7C 4A C6 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 7C 4A 00 00 00 00 00 FF 0F DB [12:20:46]RasterBufferAndPrint [12:20:46]line Счет N : (1)871870 [12:20:46]line ИНН: 02508201610067 [12:20:46]line Контрольно-Кассовый Чек [12:20:46]line ПРОДАЖА [12:20:46]line ТРК (МРК, ГНК) : 32 [12:20:46]line Товар: 2710124130 [12:20:46]line Аи-92-К-5 [12:20:46]line 14.750 * 67.80 [12:20:46]line = 1000.05 [12:20:46]line НДС 12% НСП 1% [12:20:46]line > о реализуемом товаре [12:20:46]line ИТОГО: 1000.05 [12:20:46]line НСП 1% : 8.85 [12:20:46]line НДС 12% : 106.20 [12:20:46]line Наличными: 0.00 [12:20:46]line Безнал.: 1000.05 [12:20:46]line Место: АЗС № 125 "Партнер Нефть" [12:20:46]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:20:46]line СНО: Общий режим [12:20:46]line Чек 93 28.07.2024 12:20 [12:20:46]line Смена: 429 ФФД: 1.0 [12:20:46]line ЗНМ: 0300000049 [12:20:46]line РНМ: 0000000000092638 [12:20:46]line Версия ККМ: 001 [12:20:46]line Платежная система: АКБ Кыргызстан [12:20:46]line ФМ: 0000000000874949 [12:20:46]line ФД: 69210 [12:20:46]line ФПД: 201334165018973 [12:20:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122053&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69210&fm=201334165018973&tin=02508201610067®Number=0000000000092638&sum=100005 [12:20:46]written 0, free lines is 4095 [12:20:46]OFD Sender: Processing packet 69210 [packets to send 19, broken 18] [12:20:46]ProducePacketName [12:20:46]name=ofd_packets/00069210 [12:20:46]OFD Sender: To server: pG, [12:20:46]CommunicateWithHost lk.salyk.kg:30040 [12:20:46]ConnectInit lk.salyk.kg [12:20:46]Connected sock=10 [12:20:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 52 94 07 01 CF C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A5 37 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5A 0E 01 00 35 04 06 00 B7 1C C3 63 19 5D 6D 1C 83 01 44 A7 21 8D [12:20:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CD DA 47 00 F9 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5A 0E 01 00 F4 03 04 00 15 DE A5 66 B6 04 01 00 00 DE 54 C9 2E 72 0B 0B 58 [12:20:46]CommunicateWithHost err = 0 [12:20:46]CheckOFDResponse [12:20:46]1017 (14) - 77093643461234 [12:20:46]1041 (16) - 0000000000874949 [12:20:46]1040 (4) - 69210 [12:20:46]1012 (4) - 28.07.2024 05:58 [12:20:46]1206 (1) - 0 [12:20:46]OFD Sender: Remove packet 69210 [12:20:46]ProducePacketName [12:20:46]name=ofd_packets/00069210 [12:20:46]NVStorageDeleteData [12:20:46]Write to MH i2c: 01 00 00 A6 4A F0 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 A6 4A 00 00 00 00 00 06 0D 0A [12:20:46]RasterBufferAndPrint [12:20:46]line [12:20:46]line [12:20:46]line [12:20:46]line [12:20:46]line [12:20:46]written 0, free lines is 3340 [12:20:46]MH_Cut [12:20:46]Write to MH i2c: D1 01 00 AD 4A 01 C9 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: D1 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: D1 01 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: D1 01 00 AD 4A 00 C8 [12:20:46]Write to MH i2c: 01 00 00 AE 4A F8 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:47]OFD Sender: No OFD packet to send [12:20:47]*** Cut start [12:20:47]*** Partial cut [12:20:47]*** CUTSNS_PIN = 1 [12:20:47]*** CUTSNS_PIN = 0 [12:20:47]*** Brake cut motor [12:20:48]Read from MH i2c: 01 [12:20:48]MH_I2C_Read... [12:20:48]*** Stop cut motor [12:20:48]*** Cut end [12:20:48]Read from MH i2c: 01 07 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: 01 07 00 AE 4A 00 00 00 00 00 FF 0F 0D [12:20:48]process_action close_receipt done [12:20:48]requested_data is exist [12:20:48]produce_requested_data [12:20:48]requested_item fm.sn is exist - process it [12:20:48]wFMCommunicate request_size=4 [12:20:48]MH_SAM_APDU [12:20:48]CAPDU: 80 11 00 00 [12:20:48]Write to MH i2c: E2 08 00 AF 4A 80 11 00 00 00 00 00 00 73 [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:48]Read from MH i2c: E2 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 17 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 17 00 AF 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 CF [12:20:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:20:48]wFMCommunicate OK [12:20:48]requested_item fd.num is exist - process it [12:20:48]SAM_PROTO_GetFieldsCounters [12:20:48]wFMCommunicate request_size=4 [12:20:48]MH_SAM_APDU [12:20:48]CAPDU: 80 13 00 00 [12:20:48]Write to MH i2c: E2 08 00 B0 4A 80 13 00 00 00 00 00 00 76 [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:48]Read from MH i2c: E2 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 62 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 62 00 B0 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 5A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [12:20:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 5A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:48]wFMCommunicate OK [12:20:48]SAM_PROTO_GetFieldsCounters done [12:20:48]requested_item shift.num is exist - process it [12:20:48]requested_item shift.opened is exist - process it [12:20:48]req_shift_opened [12:20:48]FM_GetShiftState [12:20:48]SAM_PROTO_GetShiftState [12:20:48]wFMCommunicate request_size=4 [12:20:48]MH_SAM_APDU [12:20:48]CAPDU: 80 13 01 00 [12:20:48]Write to MH i2c: E2 08 00 B1 4A 80 13 01 00 00 00 00 00 78 [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:48]Read from MH i2c: E2 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 0E 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 0E 00 B1 4A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 B5 [12:20:48]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:20:48]wFMCommunicate OK [12:20:48]SAM_PROTO_GetShiftState done [12:20:48]FM_GetShiftState done [12:20:48]req_shift_opened done [12:20:48]requested_item shift.open_date is exist - process it [12:20:48]req_shift_open_date [12:20:48]req_shift_open_date done [12:20:48]produce_requested_data done [12:20:48]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69210,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:20:48]process_action_free close_receipt [12:20:48]json_value_free [12:20:48]json_value_free done [12:20:48]process_json_proto returns [12:20:48]Send response to host [12:20:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69210,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:20:48]free response buf [12:20:48]execute_script done [12:20:48]execute_script returns [12:20:48]free content buf [12:20:48]Sock 9.Close socket [12:20:48]Sock 9.Thread stoped [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:31]accept exits with 7 [12:22:31]New connection [12:22:31]New thread 3066641764 created [12:22:31]Thread 3066785124 joined [12:22:31]Waiting for new connection... [12:22:31] Sock 7.Parse request [12:22:31]Sock 7.Check first char [12:22:31]Sock 7.First char is OK [12:22:31]request: POST /json_proto HTTP/1.0 [12:22:31]Method: POST [12:22:31]URL: /json_proto [12:22:31]Method is POST - this is cgi request [12:22:31]url: /json_proto [12:22:31]query_string will be loaded in cgi processing [12:22:31]execute_cgi json_proto POST (null) [12:22:31]execute_cgi path=json_proto method=POST [12:22:31]POST find Content-Length [12:22:31]Host: 172.17.49.132:8080 [12:22:31]Content-Length: 769 [12:22:31]Content-Type: application/json [12:22:31] [12:22:31]POST finish read [12:22:31]Found Content-Length = 769 [12:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:31]execute_script... [12:22:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:31]POST & json_proto [12:22:31]process_json_proto [12:22:31]json parsed OK: [12:22:31]protocol is kg_v1.0 [12:22:31]action value=close_receipt [12:22:31]process_action close_receipt [12:22:31]cmd_close_receipt [12:22:31]MH_GetDate [12:22:31]Write to MH i2c: F0 00 00 B2 4A EB [12:22:31]Write i2c OK [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: F0 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: F0 09 00 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: F0 09 00 B2 4A 00 10 38 A6 66 E7 4B C0 64 9E [12:22:31]GetLastDocTimeStamp 1722169253 [12:22:31]current date 1722169360 [12:22:31]FM_GetShiftState [12:22:31]SAM_PROTO_GetShiftState [12:22:31]wFMCommunicate request_size=4 [12:22:31]MH_SAM_APDU [12:22:31]CAPDU: 80 13 01 00 [12:22:31]Write to MH i2c: E2 08 00 B3 4A 80 13 01 00 00 00 00 00 7A [12:22:31]Write i2c OK [12:22:31]MH_I2C_Read... [12:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:31]Read from MH i2c: E2 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: E2 0E 00 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: E2 0E 00 B3 4A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 B7 [12:22:31]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:22:31]wFMCommunicate OK [12:22:31]SAM_PROTO_GetShiftState done [12:22:31]FM_GetShiftState done [12:22:31]opened in 1722127251 [12:22:31]opened+sec_in_day 1722213651 [12:22:31]quantity*price = 100005 [12:22:31]sum+1 = 100006 [12:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 94 28.07.2024 12:22 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874949 ФД: 69211 ФПД: 91556055037463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122240&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69211&fm=91556055037463&tin=02508201610067®Number=0000000000092638&sum=100005 [12:22:32]StoreToDocumentArchive [12:22:32]shift 429 fd 69211 [12:22:32]save to /storage/0429/doc_00069211 [12:22:32]save last doc name /storage/0429/doc_00069211 to /storage/kkm_last_doc_name [12:22:32]save OK [12:22:32]Clear old archive folders... [12:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:32]tlvbuf is 00AB9630 [12:22:32]SAM_PROTO_ClearQueue [12:22:32]wFMCommunicate request_size=4 [12:22:32]MH_SAM_APDU [12:22:32]CAPDU: 80 09 00 00 [12:22:32]Write to MH i2c: E2 08 00 C0 4A 80 09 00 00 00 00 00 00 7C [12:22:32]Write i2c OK [12:22:32]MH_I2C_Read... [12:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:32]Read from MH i2c: E2 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 03 00 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 03 00 C0 4A 00 90 00 7E [12:22:32]RAPDU: 90 00 [12:22:32]wFMCommunicate OK [12:22:32]SAM_PROTO_ClearQueue done [12:22:32]KKMCreateOFDPacket [12:22:32]OFDProtocolAddRootSTLVToBuf [12:22:32]FM_MakeSignedData [12:22:32]FM_MakeSignedData [12:22:32]SAM_PROTO_SignData [12:22:32]wFMCommunicate request_size=4 [12:22:32]MH_SAM_APDU [12:22:32]CAPDU: 80 0D 01 02 [12:22:32]Write to MH i2c: E2 08 00 C1 4A 80 0D 01 02 00 00 00 00 84 [12:22:32]Write i2c OK [12:22:32]MH_I2C_Read... [12:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:32]Read from MH i2c: E2 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 03 00 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 03 00 C1 4A 00 90 00 7F [12:22:32]RAPDU: 90 00 [12:22:32]wFMCommunicate OK [12:22:32]wFMCommunicate request_size=255 [12:22:32]MH_SAM_APDU [12:22:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 10 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5B 0E 01 00 35 04 06 00 53 [12:22:32]Write to MH i2c: E2 02 01 C2 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 10 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5B 0E 01 00 35 04 06 00 53 00 00 C5 [12:22:32]Write i2c OK [12:22:32]MH_I2C_Read... [12:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:33]Read from MH i2c: E2 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: E2 03 00 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: E2 03 00 C2 4A 00 90 00 80 [12:22:33]RAPDU: 90 00 [12:22:33]wFMCommunicate OK [12:22:33]wFMCommunicate request_size=10 [12:22:33]MH_SAM_APDU [12:22:33]CAPDU: 80 0D 02 02 05 45 0E 23 36 17 [12:22:33]Write to MH i2c: E2 0D 00 C3 4A 80 0D 02 02 05 00 45 0E 23 36 17 00 00 54 [12:22:33]Write i2c OK [12:22:33]MH_I2C_Read... [12:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:33]Read from MH i2c: E2 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: E2 03 00 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: E2 03 00 C3 4A 00 90 00 81 [12:22:33]RAPDU: 90 00 [12:22:33]wFMCommunicate OK [12:22:33]wFMCommunicate request_size=4 [12:22:33]MH_SAM_APDU [12:22:33]CAPDU: 80 0D 03 02 [12:22:33]Write to MH i2c: E2 08 00 C4 4A 80 0D 03 02 00 00 00 00 89 [12:22:33]Write i2c OK [12:22:33]MH_I2C_Read... [12:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:33]Read from MH i2c: E2 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: E2 0B 00 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: E2 0B 00 C4 4A 00 86 EF 49 9C D1 00 2F 38 90 00 1C [12:22:33]RAPDU: 86 EF 49 9C D1 00 2F 38 90 00 [12:22:33]wFMCommunicate OK [12:22:33]SAM_PROTO_SignData done [12:22:33]FM_MakeSignedData done [12:22:33]CreateOFDProtocolMessage [12:22:33]wFMCommunicate request_size=4 [12:22:33]MH_SAM_APDU [12:22:33]CAPDU: 80 11 00 00 [12:22:33]Write to MH i2c: E2 08 00 C5 4A 80 11 00 00 00 00 00 00 89 [12:22:33]Write i2c OK [12:22:33]MH_I2C_Read... [12:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:33]Read from MH i2c: E2 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: E2 17 00 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: E2 17 00 C5 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E5 [12:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:22:33]wFMCommunicate OK [12:22:33]CreateOFDProtocolMessage done [12:22:33]OFDSenderStorePacket 69211 [12:22:33]StoreOFDPacket docnum=69211 [12:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 04 A8 07 01 FE B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 10 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5B 0E 01 00 35 04 06 00 53 45 0E 23 36 17 86 EF 49 9C D1 00 2F 38 [12:22:33]CheckFolder [12:22:33]dirname=/storage/ofd_packets [12:22:33]CheckFolder done [12:22:33]ProducePacketName [12:22:33]name=ofd_packets/00069211 [12:22:33]NVStorageSaveData ofd_packets/00069211 [12:22:33]File name is /storage/ofd_packets/00069211 [12:22:33]Write 301 bytes [12:22:33]NVStorageSaveData done [12:22:33]OFDSenderStorePacket done [12:22:33]KKMCreateOFDPacket done [12:22:33]NVStorageSaveData kkm_last_timestamp [12:22:33]File name is /storage/kkm_last_timestamp [12:22:33]Write 4 bytes [12:22:33]NVStorageSaveData done [12:22:33]ExternCall_PrintAddStr [12:22:33]wPrintStart [12:22:33]Write to MH i2c: 01 00 00 C6 4A 10 [12:22:33]Write i2c OK [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: 01 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: 01 07 00 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: 01 07 00 C6 4A 00 00 00 00 00 FF 0F 25 [12:22:33]RasterBufferAndPrint [12:22:33]line Счет N : (1)871871 [12:22:33]line ИНН: 02508201610067 [12:22:33]line Контрольно-Кассовый Чек [12:22:33]line ПРОДАЖА [12:22:33]line ТРК (МРК, ГНК) : 52 [12:22:33]line Товар: 2710124130 [12:22:33]line Аи-92-К-5 [12:22:33]line 14.750 * 67.80 [12:22:33]line = 1000.05 [12:22:33]line НДС 12% НСП 1% [12:22:33]line > о реализуемом товаре [12:22:33]line ИТОГО: 1000.05 [12:22:33]line НСП 1% : 8.85 [12:22:33]line НДС 12% : 106.20 [12:22:33]line Наличными: 0.00 [12:22:33]line Безнал.: 1000.05 [12:22:33]line Место: АЗС № 125 "Партнер Нефть" [12:22:33]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:22:33]line СНО: Общий режим [12:22:33]line Чек 94 28.07.2024 12:22 [12:22:33]line Смена: 429 ФФД: 1.0 [12:22:33]line ЗНМ: 0300000049 [12:22:33]line РНМ: 0000000000092638 [12:22:33]line Версия ККМ: 001 [12:22:33]line Платежная система: Mbank [12:22:33]line ФМ: 0000000000874949 [12:22:33]line ФД: 69211 [12:22:33]line ФПД: 91556055037463 [12:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122240&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69211&fm=91556055037463&tin=02508201610067®Number=0000000000092638&sum=100005 [12:22:33]written 0, free lines is 4095 [12:22:33]OFD Sender: Processing packet 69211 [packets to send 19, broken 18] [12:22:33]ProducePacketName [12:22:33]name=ofd_packets/00069211 [12:22:33]OFD Sender: To server: pG, [12:22:33]CommunicateWithHost lk.salyk.kg:30040 [12:22:33]ConnectInit lk.salyk.kg [12:22:33]Connected sock=10 [12:22:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 04 A8 07 01 FE B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 10 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5B 0E 01 00 35 04 06 00 53 45 0E 23 36 17 86 EF 49 9C D1 00 2F 38 [12:22:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 4C B5 47 00 84 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 39 34 39 10 04 04 00 5B 0E 01 00 F4 03 04 00 80 DE A5 66 B6 04 01 00 00 C4 1F 74 9F 31 98 26 A5 [12:22:33]CommunicateWithHost err = 0 [12:22:33]CheckOFDResponse [12:22:33]1017 (14) - 77093643461234 [12:22:33]1041 (16) - 0000000000874949 [12:22:33]1040 (4) - 69211 [12:22:33]1012 (4) - 28.07.2024 06:00 [12:22:33]1206 (1) - 0 [12:22:33]OFD Sender: Remove packet 69211 [12:22:33]ProducePacketName [12:22:33]name=ofd_packets/00069211 [12:22:33]NVStorageDeleteData [12:22:33]Write to MH i2c: 01 00 00 EF 4A 39 [12:22:33]Write i2c OK [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: 01 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: 01 07 00 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: 01 07 00 EF 4A 00 00 00 00 00 29 0D 76 [12:22:33]RasterBufferAndPrint [12:22:33]line [12:22:33]line [12:22:33]line [12:22:33]line [12:22:33]line [12:22:33]written 0, free lines is 3378 [12:22:33]MH_Cut [12:22:33]Write to MH i2c: D1 01 00 F6 4A 01 12 [12:22:33]Write i2c OK [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: D1 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: D1 01 00 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: D1 01 00 F6 4A 00 11 [12:22:33]Write to MH i2c: 01 00 00 F7 4A 41 [12:22:33]Write i2c OK [12:22:33]MH_I2C_Read... [12:22:34]OFD Sender: No OFD packet to send [12:22:34]*** Cut start [12:22:34]*** Partial cut [12:22:34]*** CUTSNS_PIN = 1 [12:22:34]*** CUTSNS_PIN = 0 [12:22:34]*** Brake cut motor [12:22:35]Read from MH i2c: 01 [12:22:35]MH_I2C_Read... [12:22:35]*** Stop cut motor [12:22:35]*** Cut end [12:22:35]Read from MH i2c: 01 07 00 [12:22:35]MH_I2C_Read... [12:22:35]Read from MH i2c: 01 07 00 F7 4A 00 00 00 00 00 FF 0F 56 [12:22:35]process_action close_receipt done [12:22:35]requested_data is exist [12:22:35]produce_requested_data [12:22:35]requested_item fm.sn is exist - process it [12:22:35]wFMCommunicate request_size=4 [12:22:35]MH_SAM_APDU [12:22:35]CAPDU: 80 11 00 00 [12:22:35]Write to MH i2c: E2 08 00 F8 4A 80 11 00 00 00 00 00 00 BC [12:22:35]Write i2c OK [12:22:35]MH_I2C_Read... [12:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:35]Read from MH i2c: E2 [12:22:35]MH_I2C_Read... [12:22:35]Read from MH i2c: E2 17 00 [12:22:35]MH_I2C_Read... [12:22:35]Read from MH i2c: E2 17 00 F8 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 18 [12:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:22:35]wFMCommunicate OK [12:22:35]requested_item fd.num is exist - process it [12:22:35]SAM_PROTO_GetFieldsCounters [12:22:35]wFMCommunicate request_size=4 [12:22:35]MH_SAM_APDU [12:22:35]CAPDU: 80 13 00 00 [12:22:35]Write to MH i2c: E2 08 00 F9 4A 80 13 00 00 00 00 00 00 BF [12:22:35]Write i2c OK [12:22:35]MH_I2C_Read... [12:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:35]Read from MH i2c: E2 [12:22:35]MH_I2C_Read... [12:22:35]Read from MH i2c: E2 62 00 [12:22:35]MH_I2C_Read... [12:22:35]Read from MH i2c: E2 62 00 F9 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 5B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [12:22:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 5B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:35]wFMCommunicate OK [12:22:35]SAM_PROTO_GetFieldsCounters done [12:22:35]requested_item shift.num is exist - process it [12:22:35]requested_item shift.opened is exist - process it [12:22:35]req_shift_opened [12:22:35]FM_GetShiftState [12:22:35]SAM_PROTO_GetShiftState [12:22:35]wFMCommunicate request_size=4 [12:22:35]MH_SAM_APDU [12:22:35]CAPDU: 80 13 01 00 [12:22:35]Write to MH i2c: E2 08 00 FA 4A 80 13 01 00 00 00 00 00 C1 [12:22:35]Write i2c OK [12:22:35]MH_I2C_Read... [12:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:35]Read from MH i2c: E2 [12:22:35]MH_I2C_Read... [12:22:35]Read from MH i2c: E2 0E 00 [12:22:35]MH_I2C_Read... [12:22:35]Read from MH i2c: E2 0E 00 FA 4A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 FE [12:22:35]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:22:35]wFMCommunicate OK [12:22:35]SAM_PROTO_GetShiftState done [12:22:35]FM_GetShiftState done [12:22:35]req_shift_opened done [12:22:35]requested_item shift.open_date is exist - process it [12:22:35]req_shift_open_date [12:22:35]req_shift_open_date done [12:22:35]produce_requested_data done [12:22:35]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69211,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:22:35]process_action_free close_receipt [12:22:35]json_value_free [12:22:35]json_value_free done [12:22:35]process_json_proto returns [12:22:35]Send response to host [12:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69211,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:22:35]free response buf [12:22:35]execute_script done [12:22:35]execute_script returns [12:22:35]free content buf [12:22:35]Sock 7.Close socket [12:22:35]Sock 7.Thread stoped [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:36]accept exits with 9 [12:24:36]New connection [12:24:36]New thread 3066785124 created [12:24:36]Thread 3066641764 joined [12:24:36]Waiting for new connection... [12:24:36] Sock 9.Parse request [12:24:36]Sock 9.Check first char [12:24:36]Sock 9.First char is OK [12:24:36]request: POST /json_proto HTTP/1.0 [12:24:36]Method: POST [12:24:36]URL: /json_proto [12:24:36]Method is POST - this is cgi request [12:24:36]url: /json_proto [12:24:36]query_string will be loaded in cgi processing [12:24:36]execute_cgi json_proto POST (null) [12:24:36]execute_cgi path=json_proto method=POST [12:24:36]POST find Content-Length [12:24:36]Host: 172.17.49.132:8080 [12:24:36]Content-Length: 682 [12:24:36]Content-Type: application/json [12:24:36] [12:24:36]POST finish read [12:24:36]Found Content-Length = 682 [12:24:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:36]execute_script... [12:24:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:36]POST & json_proto [12:24:36]process_json_proto [12:24:36]json parsed OK: [12:24:36]protocol is kg_v1.0 [12:24:36]action value=close_receipt [12:24:36]process_action close_receipt [12:24:36]cmd_close_receipt [12:24:36]MH_GetDate [12:24:36]Write to MH i2c: F0 00 00 FB 4A 34 [12:24:36]Write i2c OK [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: F0 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: F0 09 00 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: F0 09 00 FB 4A 00 8D 38 A6 66 E7 4B C0 64 64 [12:24:36]GetLastDocTimeStamp 1722169360 [12:24:36]current date 1722169485 [12:24:36]FM_GetShiftState [12:24:36]SAM_PROTO_GetShiftState [12:24:36]wFMCommunicate request_size=4 [12:24:36]MH_SAM_APDU [12:24:36]CAPDU: 80 13 01 00 [12:24:36]Write to MH i2c: E2 08 00 FC 4A 80 13 01 00 00 00 00 00 C3 [12:24:36]Write i2c OK [12:24:36]MH_I2C_Read... [12:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:36]Read from MH i2c: E2 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: E2 0E 00 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: E2 0E 00 FC 4A 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 00 [12:24:36]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:24:36]wFMCommunicate OK [12:24:36]SAM_PROTO_GetShiftState done [12:24:36]FM_GetShiftState done [12:24:36]opened in 1722127251 [12:24:36]opened+sec_in_day 1722213651 [12:24:36]quantity*price = 100005 [12:24:36]sum+1 = 100006 [12:24:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 95 28.07.2024 12:24 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69212 ФПД: 34787872134073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122445&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69212&fm=34787872134073&tin=02508201610067®Number=0000000000092638&sum=100000 [12:24:37]StoreToDocumentArchive [12:24:37]shift 429 fd 69212 [12:24:37]save to /storage/0429/doc_00069212 [12:24:37]save last doc name /storage/0429/doc_00069212 to /storage/kkm_last_doc_name [12:24:37]save OK [12:24:37]Clear old archive folders... [12:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:37]tlvbuf is 00B2BA50 [12:24:37]SAM_PROTO_ClearQueue [12:24:37]wFMCommunicate request_size=4 [12:24:37]MH_SAM_APDU [12:24:37]CAPDU: 80 09 00 00 [12:24:37]Write to MH i2c: E2 08 00 09 4B 80 09 00 00 00 00 00 00 C6 [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:37]Read from MH i2c: E2 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 09 4B 00 90 00 C8 [12:24:37]RAPDU: 90 00 [12:24:37]wFMCommunicate OK [12:24:37]SAM_PROTO_ClearQueue done [12:24:37]KKMCreateOFDPacket [12:24:37]OFDProtocolAddRootSTLVToBuf [12:24:37]FM_MakeSignedData [12:24:37]FM_MakeSignedData [12:24:37]SAM_PROTO_SignData [12:24:37]wFMCommunicate request_size=4 [12:24:37]MH_SAM_APDU [12:24:37]CAPDU: 80 0D 01 02 [12:24:37]Write to MH i2c: E2 08 00 0A 4B 80 0D 01 02 00 00 00 00 CE [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:37]Read from MH i2c: E2 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 0A 4B 00 90 00 C9 [12:24:37]RAPDU: 90 00 [12:24:37]wFMCommunicate OK [12:24:37]wFMCommunicate request_size=255 [12:24:37]MH_SAM_APDU [12:24:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8D 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5C 0E 01 00 35 04 06 00 1F [12:24:37]Write to MH i2c: E2 02 01 0B 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8D 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5C 0E 01 00 35 04 06 00 1F 00 00 50 [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:37]Read from MH i2c: E2 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 0B 4B 00 90 00 CA [12:24:37]RAPDU: 90 00 [12:24:37]wFMCommunicate OK [12:24:37]wFMCommunicate request_size=10 [12:24:37]MH_SAM_APDU [12:24:37]CAPDU: 80 0D 02 02 05 A3 AE C2 D3 B9 [12:24:37]Write to MH i2c: E2 0D 00 0C 4B 80 0D 02 02 05 00 A3 AE C2 D3 B9 00 00 7A [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:37]Read from MH i2c: E2 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 0C 4B 00 90 00 CB [12:24:37]RAPDU: 90 00 [12:24:37]wFMCommunicate OK [12:24:37]wFMCommunicate request_size=4 [12:24:37]MH_SAM_APDU [12:24:37]CAPDU: 80 0D 03 02 [12:24:37]Write to MH i2c: E2 08 00 0D 4B 80 0D 03 02 00 00 00 00 D3 [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:37]Read from MH i2c: E2 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 0B 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 0B 00 0D 4B 00 5A 30 74 98 0D 22 6B 64 90 00 68 [12:24:37]RAPDU: 5A 30 74 98 0D 22 6B 64 90 00 [12:24:37]wFMCommunicate OK [12:24:37]SAM_PROTO_SignData done [12:24:37]FM_MakeSignedData done [12:24:37]CreateOFDProtocolMessage [12:24:37]wFMCommunicate request_size=4 [12:24:37]MH_SAM_APDU [12:24:37]CAPDU: 80 11 00 00 [12:24:37]Write to MH i2c: E2 08 00 0E 4B 80 11 00 00 00 00 00 00 D3 [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:37]Read from MH i2c: E2 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 17 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 17 00 0E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 2F [12:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:24:37]wFMCommunicate OK [12:24:37]CreateOFDProtocolMessage done [12:24:37]OFDSenderStorePacket 69212 [12:24:37]StoreOFDPacket docnum=69212 [12:24:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 B7 74 07 01 73 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8D 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5C 0E 01 00 35 04 06 00 1F A3 AE C2 D3 B9 5A 30 74 98 0D 22 6B 64 [12:24:37]CheckFolder [12:24:37]dirname=/storage/ofd_packets [12:24:37]CheckFolder done [12:24:37]ProducePacketName [12:24:37]name=ofd_packets/00069212 [12:24:37]NVStorageSaveData ofd_packets/00069212 [12:24:37]File name is /storage/ofd_packets/00069212 [12:24:37]Write 301 bytes [12:24:37]NVStorageSaveData done [12:24:37]OFDSenderStorePacket done [12:24:37]KKMCreateOFDPacket done [12:24:37]NVStorageSaveData kkm_last_timestamp [12:24:37]File name is /storage/kkm_last_timestamp [12:24:37]Write 4 bytes [12:24:37]NVStorageSaveData done [12:24:37]ExternCall_PrintAddStr [12:24:37]wPrintStart [12:24:37]Write to MH i2c: 01 00 00 0F 4B 5A [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: 01 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: 01 07 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: 01 07 00 0F 4B 00 00 00 00 00 FF 0F 6F [12:24:37]RasterBufferAndPrint [12:24:37]line Счет N : (1)871873 [12:24:37]line ИНН: 02508201610067 [12:24:37]line Контрольно-Кассовый Чек [12:24:37]line ПРОДАЖА [12:24:37]line ТРК (МРК, ГНК) : 62 [12:24:37]line Товар: 2710124130 [12:24:37]line Аи-92-К-5 [12:24:37]line 14.750 * 67.80 [12:24:37]line = 1000.05 [12:24:37]line НДС 12% НСП 1% [12:24:37]line > о реализуемом товаре [12:24:37]line ОКРУГЛЕНИЕ: -0.05 [12:24:37]line ИТОГО: 1000.00 [12:24:37]line Внесено: 1000.00 [12:24:37]line СДАЧА: 0.00 [12:24:37]line НСП 1% : 8.85 [12:24:37]line НДС 12% : 106.20 [12:24:37]line Наличными: 1000.00 [12:24:37]line Безнал.: 0.00 [12:24:37]line Место: АЗС № 125 "Партнер Нефть" [12:24:37]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:24:37]line СНО: Общий режим [12:24:37]line Чек 95 28.07.2024 12:24 [12:24:37]line Смена: 429 ФФД: 1.0 [12:24:37]line ЗНМ: 0300000049 [12:24:37]line РНМ: 0000000000092638 [12:24:37]line Версия ККМ: 001 [12:24:37]line ФМ: 0000000000874949 [12:24:37]line ФД: 69212 [12:24:37]line ФПД: 34787872134073 [12:24:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122445&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69212&fm=34787872134073&tin=02508201610067®Number=0000000000092638&sum=100000 [12:24:38]OFD Sender: Processing packet 69212 [packets to send 19, broken 18] [12:24:38]ProducePacketName [12:24:38]name=ofd_packets/00069212 [12:24:38]OFD Sender: To server: pG, [12:24:38]CommunicateWithHost lk.salyk.kg:30040 [12:24:38]ConnectInit lk.salyk.kg [12:24:38]written 0, free lines is 4095 [12:24:38]Connected sock=10 [12:24:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 B7 74 07 01 73 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8D 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5C 0E 01 00 35 04 06 00 1F A3 AE C2 D3 B9 5A 30 74 98 0D 22 6B 64 [12:24:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 7E A9 47 00 01 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5C 0E 01 00 F4 03 04 00 FC DE A5 66 B6 04 01 00 00 24 B9 0F 72 B7 90 B6 C4 [12:24:38]CommunicateWithHost err = 0 [12:24:38]CheckOFDResponse [12:24:38]1017 (14) - 77093643461234 [12:24:38]1041 (16) - 0000000000874949 [12:24:38]1040 (4) - 69212 [12:24:38]1012 (4) - 28.07.2024 06:02 [12:24:38]1206 (1) - 0 [12:24:38]OFD Sender: Remove packet 69212 [12:24:38]ProducePacketName [12:24:38]name=ofd_packets/00069212 [12:24:38]NVStorageDeleteData [12:24:38]Write to MH i2c: 01 00 00 3A 4B 85 [12:24:38]Write i2c OK [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: 01 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: 01 07 00 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: 01 07 00 3A 4B 00 00 00 00 00 EC 0C 84 [12:24:38]RasterBufferAndPrint [12:24:38]line [12:24:38]line [12:24:38]line [12:24:38]line [12:24:38]line [12:24:38]written 0, free lines is 3314 [12:24:38]MH_Cut [12:24:38]Write to MH i2c: D1 01 00 41 4B 01 5E [12:24:38]Write i2c OK [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: D1 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: D1 01 00 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: D1 01 00 41 4B 00 5D [12:24:38]Write to MH i2c: 01 00 00 42 4B 8D [12:24:38]Write i2c OK [12:24:38]MH_I2C_Read... [12:24:39]OFD Sender: No OFD packet to send [12:24:39]*** Cut start [12:24:39]*** Partial cut [12:24:39]*** CUTSNS_PIN = 1 [12:24:39]*** CUTSNS_PIN = 0 [12:24:39]*** Brake cut motor [12:24:39]Read from MH i2c: 01 [12:24:39]MH_I2C_Read... [12:24:39]*** Stop cut motor [12:24:39]*** Cut end [12:24:39]Read from MH i2c: 01 07 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: 01 07 00 42 4B 00 00 00 00 00 FF 0F A2 [12:24:39]process_action close_receipt done [12:24:39]requested_data is exist [12:24:39]produce_requested_data [12:24:39]requested_item fm.sn is exist - process it [12:24:39]wFMCommunicate request_size=4 [12:24:39]MH_SAM_APDU [12:24:39]CAPDU: 80 11 00 00 [12:24:39]Write to MH i2c: E2 08 00 43 4B 80 11 00 00 00 00 00 00 08 [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 17 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 17 00 43 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 64 [12:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:24:40]wFMCommunicate OK [12:24:40]requested_item fd.num is exist - process it [12:24:40]SAM_PROTO_GetFieldsCounters [12:24:40]wFMCommunicate request_size=4 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 13 00 00 [12:24:40]Write to MH i2c: E2 08 00 44 4B 80 13 00 00 00 00 00 00 0B [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 62 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 62 00 44 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 5C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [12:24:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 5C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:40]wFMCommunicate OK [12:24:40]SAM_PROTO_GetFieldsCounters done [12:24:40]requested_item shift.num is exist - process it [12:24:40]requested_item shift.opened is exist - process it [12:24:40]req_shift_opened [12:24:40]FM_GetShiftState [12:24:40]SAM_PROTO_GetShiftState [12:24:40]wFMCommunicate request_size=4 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 13 01 00 [12:24:40]Write to MH i2c: E2 08 00 45 4B 80 13 01 00 00 00 00 00 0D [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 0E 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 0E 00 45 4B 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 4A [12:24:40]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:24:40]wFMCommunicate OK [12:24:40]SAM_PROTO_GetShiftState done [12:24:40]FM_GetShiftState done [12:24:40]req_shift_opened done [12:24:40]requested_item shift.open_date is exist - process it [12:24:40]req_shift_open_date [12:24:40]req_shift_open_date done [12:24:40]produce_requested_data done [12:24:40]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69212,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:24:40]process_action_free close_receipt [12:24:40]json_value_free [12:24:40]json_value_free done [12:24:40]process_json_proto returns [12:24:40]Send response to host [12:24:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69212,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:24:40]free response buf [12:24:40]execute_script done [12:24:40]execute_script returns [12:24:40]free content buf [12:24:40]Sock 9.Close socket [12:24:40]Sock 9.Thread stoped [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:03]accept exits with 7 [12:25:03]New connection [12:25:03]New thread 3066641764 created [12:25:03]Thread 3066785124 joined [12:25:03]Waiting for new connection... [12:25:03] Sock 7.Parse request [12:25:03]Sock 7.Check first char [12:25:03]Sock 7.First char is OK [12:25:03]request: POST /json_proto HTTP/1.0 [12:25:03]Method: POST [12:25:03]URL: /json_proto [12:25:03]Method is POST - this is cgi request [12:25:03]url: /json_proto [12:25:03]query_string will be loaded in cgi processing [12:25:03]execute_cgi json_proto POST (null) [12:25:03]execute_cgi path=json_proto method=POST [12:25:03]POST find Content-Length [12:25:03]Host: 172.17.49.132:8080 [12:25:03]Content-Length: 677 [12:25:03]Content-Type: application/json [12:25:03] [12:25:03]POST finish read [12:25:03]Found Content-Length = 677 [12:25:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:03]execute_script... [12:25:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:03]POST & json_proto [12:25:03]process_json_proto [12:25:03]json parsed OK: [12:25:03]protocol is kg_v1.0 [12:25:03]action value=close_receipt [12:25:03]process_action close_receipt [12:25:03]cmd_close_receipt [12:25:03]MH_GetDate [12:25:03]Write to MH i2c: F0 00 00 46 4B 80 [12:25:03]Write i2c OK [12:25:03]MH_I2C_Read... [12:25:03]Read from MH i2c: F0 [12:25:03]MH_I2C_Read... [12:25:03]Read from MH i2c: F0 09 00 [12:25:03]MH_I2C_Read... [12:25:03]Read from MH i2c: F0 09 00 46 4B 00 A8 38 A6 66 E7 4B C0 64 CB [12:25:03]GetLastDocTimeStamp 1722169485 [12:25:03]current date 1722169512 [12:25:03]FM_GetShiftState [12:25:03]SAM_PROTO_GetShiftState [12:25:03]wFMCommunicate request_size=4 [12:25:03]MH_SAM_APDU [12:25:03]CAPDU: 80 13 01 00 [12:25:03]Write to MH i2c: E2 08 00 47 4B 80 13 01 00 00 00 00 00 0F [12:25:03]Write i2c OK [12:25:03]MH_I2C_Read... [12:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:03]Read from MH i2c: E2 [12:25:03]MH_I2C_Read... [12:25:03]Read from MH i2c: E2 0E 00 [12:25:03]MH_I2C_Read... [12:25:03]Read from MH i2c: E2 0E 00 47 4B 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 4C [12:25:03]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:25:03]wFMCommunicate OK [12:25:03]SAM_PROTO_GetShiftState done [12:25:03]FM_GetShiftState done [12:25:03]opened in 1722127251 [12:25:03]opened+sec_in_day 1722213651 [12:25:03]quantity*price = 50036 [12:25:03]sum+1 = 50037 [12:25:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 96 28.07.2024 12:25 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69213 ФПД: 225415360222907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122512&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69213&fm=225415360222907&tin=02508201610067®Number=0000000000092638&sum=50000 [12:25:04]StoreToDocumentArchive [12:25:04]shift 429 fd 69213 [12:25:04]save to /storage/0429/doc_00069213 [12:25:04]save last doc name /storage/0429/doc_00069213 to /storage/kkm_last_doc_name [12:25:04]save OK [12:25:04]Clear old archive folders... [12:25:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:04]tlvbuf is 00B86390 [12:25:04]SAM_PROTO_ClearQueue [12:25:04]wFMCommunicate request_size=4 [12:25:04]MH_SAM_APDU [12:25:04]CAPDU: 80 09 00 00 [12:25:04]Write to MH i2c: E2 08 00 54 4B 80 09 00 00 00 00 00 00 11 [12:25:04]Write i2c OK [12:25:04]MH_I2C_Read... [12:25:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:04]Read from MH i2c: E2 [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: E2 03 00 [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: E2 03 00 54 4B 00 90 00 13 [12:25:04]RAPDU: 90 00 [12:25:04]wFMCommunicate OK [12:25:04]SAM_PROTO_ClearQueue done [12:25:04]KKMCreateOFDPacket [12:25:04]OFDProtocolAddRootSTLVToBuf [12:25:04]FM_MakeSignedData [12:25:04]FM_MakeSignedData [12:25:04]SAM_PROTO_SignData [12:25:04]wFMCommunicate request_size=4 [12:25:04]MH_SAM_APDU [12:25:04]CAPDU: 80 0D 01 02 [12:25:04]Write to MH i2c: E2 08 00 55 4B 80 0D 01 02 00 00 00 00 19 [12:25:04]Write i2c OK [12:25:04]MH_I2C_Read... [12:25:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:04]Read from MH i2c: E2 [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: E2 03 00 [12:25:04]MH_I2C_Read... [12:25:04]Read from MH i2c: E2 03 00 55 4B 00 90 00 14 [12:25:04]RAPDU: 90 00 [12:25:04]wFMCommunicate OK [12:25:04]wFMCommunicate request_size=255 [12:25:04]MH_SAM_APDU [12:25:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 60 00 00 00 F4 03 04 00 A8 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5D 0E 01 00 35 04 06 00 CD [12:25:04]Write to MH i2c: E2 02 01 56 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 60 00 00 00 F4 03 04 00 A8 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5D 0E 01 00 35 04 06 00 CD 00 00 D7 [12:25:04]Write i2c OK [12:25:04]MH_I2C_Read... [12:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:05]Read from MH i2c: E2 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: E2 03 00 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: E2 03 00 56 4B 00 90 00 15 [12:25:05]RAPDU: 90 00 [12:25:05]wFMCommunicate OK [12:25:05]wFMCommunicate request_size=10 [12:25:05]MH_SAM_APDU [12:25:05]CAPDU: 80 0D 02 02 05 03 9A 79 16 BB [12:25:05]Write to MH i2c: E2 0D 00 57 4B 80 0D 02 02 05 00 03 9A 79 16 BB 00 00 0D [12:25:05]Write i2c OK [12:25:05]MH_I2C_Read... [12:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:05]Read from MH i2c: E2 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: E2 03 00 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: E2 03 00 57 4B 00 90 00 16 [12:25:05]RAPDU: 90 00 [12:25:05]wFMCommunicate OK [12:25:05]wFMCommunicate request_size=4 [12:25:05]MH_SAM_APDU [12:25:05]CAPDU: 80 0D 03 02 [12:25:05]Write to MH i2c: E2 08 00 58 4B 80 0D 03 02 00 00 00 00 1E [12:25:05]Write i2c OK [12:25:05]MH_I2C_Read... [12:25:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:05]Read from MH i2c: E2 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: E2 0B 00 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: E2 0B 00 58 4B 00 6B B8 8C FF E0 AE 72 27 90 00 F4 [12:25:05]RAPDU: 6B B8 8C FF E0 AE 72 27 90 00 [12:25:05]wFMCommunicate OK [12:25:05]SAM_PROTO_SignData done [12:25:05]FM_MakeSignedData done [12:25:05]CreateOFDProtocolMessage [12:25:05]wFMCommunicate request_size=4 [12:25:05]MH_SAM_APDU [12:25:05]CAPDU: 80 11 00 00 [12:25:05]Write to MH i2c: E2 08 00 59 4B 80 11 00 00 00 00 00 00 1E [12:25:05]Write i2c OK [12:25:05]MH_I2C_Read... [12:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:05]Read from MH i2c: E2 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: E2 17 00 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: E2 17 00 59 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 7A [12:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:25:05]wFMCommunicate OK [12:25:05]CreateOFDProtocolMessage done [12:25:05]OFDSenderStorePacket 69213 [12:25:05]StoreOFDPacket docnum=69213 [12:25:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 B6 A7 07 01 BC C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 60 00 00 00 F4 03 04 00 A8 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5D 0E 01 00 35 04 06 00 CD 03 9A 79 16 BB 6B B8 8C FF E0 AE 72 27 [12:25:05]CheckFolder [12:25:05]dirname=/storage/ofd_packets [12:25:05]CheckFolder done [12:25:05]ProducePacketName [12:25:05]name=ofd_packets/00069213 [12:25:05]NVStorageSaveData ofd_packets/00069213 [12:25:05]File name is /storage/ofd_packets/00069213 [12:25:05]Write 301 bytes [12:25:05]NVStorageSaveData done [12:25:05]OFDSenderStorePacket done [12:25:05]KKMCreateOFDPacket done [12:25:05]NVStorageSaveData kkm_last_timestamp [12:25:05]File name is /storage/kkm_last_timestamp [12:25:05]Write 4 bytes [12:25:05]NVStorageSaveData done [12:25:05]ExternCall_PrintAddStr [12:25:05]wPrintStart [12:25:05]Write to MH i2c: 01 00 00 5A 4B A5 [12:25:05]Write i2c OK [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: 01 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: 01 07 00 [12:25:05]MH_I2C_Read... [12:25:05]Read from MH i2c: 01 07 00 5A 4B 00 00 00 00 00 FF 0F BA [12:25:05]RasterBufferAndPrint [12:25:05]line Счет N : (1)871874 [12:25:05]line ИНН: 02508201610067 [12:25:05]line Контрольно-Кассовый Чек [12:25:05]line ПРОДАЖА [12:25:05]line ТРК (МРК, ГНК) : 52 [12:25:05]line Товар: 2710124130 [12:25:05]line Аи-92-К-5 [12:25:05]line 7.380 * 67.80 [12:25:05]line = 500.36 [12:25:05]line НДС 12% НСП 1% [12:25:05]line > о реализуемом товаре [12:25:05]line ОКРУГЛЕНИЕ: -0.36 [12:25:05]line ИТОГО: 500.00 [12:25:05]line Внесено: 500.00 [12:25:05]line СДАЧА: 0.00 [12:25:05]line НСП 1% : 4.43 [12:25:05]line НДС 12% : 53.14 [12:25:05]line Наличными: 500.00 [12:25:05]line Безнал.: 0.00 [12:25:05]line Место: АЗС № 125 "Партнер Нефть" [12:25:05]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:25:05]line СНО: Общий режим [12:25:05]line Чек 96 28.07.2024 12:25 [12:25:05]line Смена: 429 ФФД: 1.0 [12:25:05]line ЗНМ: 0300000049 [12:25:05]line РНМ: 0000000000092638 [12:25:05]line Версия ККМ: 001 [12:25:05]line ФМ: 0000000000874949 [12:25:05]line ФД: 69213 [12:25:05]line ФПД: 225415360222907 [12:25:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122512&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69213&fm=225415360222907&tin=02508201610067®Number=0000000000092638&sum=50000 [12:25:05]OFD Sender: Processing packet 69213 [packets to send 19, broken 18] [12:25:05]ProducePacketName [12:25:05]name=ofd_packets/00069213 [12:25:05]OFD Sender: To server: pG, [12:25:05]CommunicateWithHost lk.salyk.kg:30040 [12:25:05]ConnectInit lk.salyk.kg [12:25:05]written 0, free lines is 4095 [12:25:05]Connected sock=10 [12:25: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 39 34 39 0F 01 00 00 B6 A7 07 01 BC C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 60 00 00 00 F4 03 04 00 A8 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5D 0E 01 00 35 04 06 00 CD 03 9A 79 16 BB 6B B8 8C FF E0 AE 72 27 [12:25:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 73 13 47 00 29 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5D 0E 01 00 F4 03 04 00 18 DF A5 66 B6 04 01 00 00 CA 1F 68 5B B2 3F 7A 37 [12:25:06]CommunicateWithHost err = 0 [12:25:06]CheckOFDResponse [12:25:06]1017 (14) - 77093643461234 [12:25:06]1041 (16) - 0000000000874949 [12:25:06]1040 (4) - 69213 [12:25:06]1012 (4) - 28.07.2024 06:03 [12:25:06]1206 (1) - 0 [12:25:06]OFD Sender: Remove packet 69213 [12:25:06]ProducePacketName [12:25:06]name=ofd_packets/00069213 [12:25:06]NVStorageDeleteData [12:25:06]Write to MH i2c: 01 00 00 85 4B D0 [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: 01 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: 01 07 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: 01 07 00 85 4B 00 00 00 00 00 F5 0C D8 [12:25:06]RasterBufferAndPrint [12:25:06]line [12:25:06]line [12:25:06]line [12:25:06]line [12:25:06]line [12:25:06]written 0, free lines is 3324 [12:25:06]MH_Cut [12:25:06]Write to MH i2c: D1 01 00 8C 4B 01 A9 [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: D1 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: D1 01 00 [12:25:06]MH_I2C_Read... [12:25:06]Read from MH i2c: D1 01 00 8C 4B 00 A8 [12:25:06]Write to MH i2c: 01 00 00 8D 4B D8 [12:25:06]Write i2c OK [12:25:06]MH_I2C_Read... [12:25:06]OFD Sender: No OFD packet to send [12:25:06]*** Cut start [12:25:06]*** Partial cut [12:25:06]*** CUTSNS_PIN = 1 [12:25:06]*** CUTSNS_PIN = 0 [12:25:07]*** Brake cut motor [12:25:07]Read from MH i2c: 01 [12:25:07]MH_I2C_Read... [12:25:07]*** Stop cut motor [12:25:07]*** Cut end [12:25:07]Read from MH i2c: 01 07 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: 01 07 00 8D 4B 00 00 00 00 00 FF 0F ED [12:25:07]process_action close_receipt done [12:25:07]requested_data is exist [12:25:07]produce_requested_data [12:25:07]requested_item fm.sn is exist - process it [12:25:07]wFMCommunicate request_size=4 [12:25:07]MH_SAM_APDU [12:25:07]CAPDU: 80 11 00 00 [12:25:07]Write to MH i2c: E2 08 00 8E 4B 80 11 00 00 00 00 00 00 53 [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:07]Read from MH i2c: E2 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 17 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 17 00 8E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AF [12:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:25:07]wFMCommunicate OK [12:25:07]requested_item fd.num is exist - process it [12:25:07]SAM_PROTO_GetFieldsCounters [12:25:07]wFMCommunicate request_size=4 [12:25:07]MH_SAM_APDU [12:25:07]CAPDU: 80 13 00 00 [12:25:07]Write to MH i2c: E2 08 00 8F 4B 80 13 00 00 00 00 00 00 56 [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:07]Read from MH i2c: E2 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 62 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 62 00 8F 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 5D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [12:25: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 5D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:07]wFMCommunicate OK [12:25:07]SAM_PROTO_GetFieldsCounters done [12:25:07]requested_item shift.num is exist - process it [12:25:07]requested_item shift.opened is exist - process it [12:25:07]req_shift_opened [12:25:07]FM_GetShiftState [12:25:07]SAM_PROTO_GetShiftState [12:25:07]wFMCommunicate request_size=4 [12:25:07]MH_SAM_APDU [12:25:07]CAPDU: 80 13 01 00 [12:25:07]Write to MH i2c: E2 08 00 90 4B 80 13 01 00 00 00 00 00 58 [12:25:07]Write i2c OK [12:25:07]MH_I2C_Read... [12:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:07]Read from MH i2c: E2 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 0E 00 [12:25:07]MH_I2C_Read... [12:25:07]Read from MH i2c: E2 0E 00 90 4B 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 95 [12:25:07]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:25:07]wFMCommunicate OK [12:25:07]SAM_PROTO_GetShiftState done [12:25:07]FM_GetShiftState done [12:25:07]req_shift_opened done [12:25:07]requested_item shift.open_date is exist - process it [12:25:07]req_shift_open_date [12:25:07]req_shift_open_date done [12:25:07]produce_requested_data done [12:25:07]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69213,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:25:07]process_action_free close_receipt [12:25:07]json_value_free [12:25:07]json_value_free done [12:25:07]process_json_proto returns [12:25:07]Send response to host [12:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69213,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:25:07]free response buf [12:25:07]execute_script done [12:25:07]execute_script returns [12:25:07]free content buf [12:25:07]Sock 7.Close socket [12:25:07]Sock 7.Thread stoped [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:43]accept exits with 9 [12:25:43]New connection [12:25:43]New thread 3066785124 created [12:25:43]Thread 3066641764 joined [12:25:43]Waiting for new connection... [12:25:43] Sock 9.Parse request [12:25:43]Sock 9.Check first char [12:25:43]Sock 9.First char is OK [12:25:43]request: POST /json_proto HTTP/1.0 [12:25:43]Method: POST [12:25:43]URL: /json_proto [12:25:43]Method is POST - this is cgi request [12:25:43]url: /json_proto [12:25:43]query_string will be loaded in cgi processing [12:25:43]execute_cgi json_proto POST (null) [12:25:43]execute_cgi path=json_proto method=POST [12:25:43]POST find Content-Length [12:25:43]Host: 172.17.49.132:8080 [12:25:43]Content-Length: 767 [12:25:43]Content-Type: application/json [12:25:43] [12:25:43]POST finish read [12:25:43]Found Content-Length = 767 [12:25:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.400, "sum" : 908.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 908.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:43]execute_script... [12:25:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.400, "sum" : 908.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 908.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:43]POST & json_proto [12:25:43]process_json_proto [12:25:43]json parsed OK: [12:25:43]protocol is kg_v1.0 [12:25:43]action value=close_receipt [12:25:43]process_action close_receipt [12:25:43]cmd_close_receipt [12:25:43]MH_GetDate [12:25:43]Write to MH i2c: F0 00 00 91 4B CB [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: F0 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: F0 09 00 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: F0 09 00 91 4B 00 D0 38 A6 66 E7 4B C0 64 3E [12:25:43]GetLastDocTimeStamp 1722169512 [12:25:43]current date 1722169552 [12:25:43]FM_GetShiftState [12:25:43]SAM_PROTO_GetShiftState [12:25:43]wFMCommunicate request_size=4 [12:25:43]MH_SAM_APDU [12:25:43]CAPDU: 80 13 01 00 [12:25:43]Write to MH i2c: E2 08 00 92 4B 80 13 01 00 00 00 00 00 5A [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:43]Read from MH i2c: E2 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 0E 00 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 0E 00 92 4B 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 97 [12:25:43]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:25:43]wFMCommunicate OK [12:25:43]SAM_PROTO_GetShiftState done [12:25:43]FM_GetShiftState done [12:25:43]opened in 1722127251 [12:25:43]opened+sec_in_day 1722213651 [12:25:43]quantity*price = 90852 [12:25:43]sum+1 = 90853 [12:25:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 908.52 НСП 1% : 8.04 НДС 12% : 96.48 Наличными: 0.00 Безнал.: 908.52 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 97 28.07.2024 12:25 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874949 ФД: 69214 ФПД: 267615768552336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122552&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69214&fm=267615768552336&tin=02508201610067®Number=0000000000092638&sum=90852 [12:25:44]StoreToDocumentArchive [12:25:44]shift 429 fd 69214 [12:25:44]save to /storage/0429/doc_00069214 [12:25:44]save last doc name /storage/0429/doc_00069214 to /storage/kkm_last_doc_name [12:25:44]save OK [12:25:44]Clear old archive folders... [12:25:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:44]tlvbuf is 00A7ECF0 [12:25:44]SAM_PROTO_ClearQueue [12:25:44]wFMCommunicate request_size=4 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 09 00 00 [12:25:44]Write to MH i2c: E2 08 00 9F 4B 80 09 00 00 00 00 00 00 5C [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 03 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 03 00 9F 4B 00 90 00 5E [12:25:44]RAPDU: 90 00 [12:25:44]wFMCommunicate OK [12:25:44]SAM_PROTO_ClearQueue done [12:25:44]KKMCreateOFDPacket [12:25:44]OFDProtocolAddRootSTLVToBuf [12:25:44]FM_MakeSignedData [12:25:44]FM_MakeSignedData [12:25:44]SAM_PROTO_SignData [12:25:44]wFMCommunicate request_size=4 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 0D 01 02 [12:25:44]Write to MH i2c: E2 08 00 A0 4B 80 0D 01 02 00 00 00 00 64 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 03 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 03 00 A0 4B 00 90 00 5F [12:25:44]RAPDU: 90 00 [12:25:44]wFMCommunicate OK [12:25:44]wFMCommunicate request_size=255 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 34 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E4 62 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 62 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 62 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D0 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5E 0E 01 00 35 04 06 00 F3 [12:25:44]Write to MH i2c: E2 02 01 A1 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 34 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E4 62 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 62 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 62 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D0 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5E 0E 01 00 35 04 06 00 F3 00 00 F0 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 A1 4B 00 90 00 60 [12:25:45]RAPDU: 90 00 [12:25:45]wFMCommunicate OK [12:25:45]wFMCommunicate request_size=10 [12:25:45]MH_SAM_APDU [12:25:45]CAPDU: 80 0D 02 02 05 65 26 D2 23 90 [12:25:45]Write to MH i2c: E2 0D 00 A2 4B 80 0D 02 02 05 00 65 26 D2 23 90 00 00 81 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 A2 4B 00 90 00 61 [12:25:45]RAPDU: 90 00 [12:25:45]wFMCommunicate OK [12:25:45]wFMCommunicate request_size=4 [12:25:45]MH_SAM_APDU [12:25:45]CAPDU: 80 0D 03 02 [12:25:45]Write to MH i2c: E2 08 00 A3 4B 80 0D 03 02 00 00 00 00 69 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 0B 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 0B 00 A3 4B 00 9B C5 F3 8A 4B 6C 24 DE 90 00 00 [12:25:45]RAPDU: 9B C5 F3 8A 4B 6C 24 DE 90 00 [12:25:45]wFMCommunicate OK [12:25:45]SAM_PROTO_SignData done [12:25:45]FM_MakeSignedData done [12:25:45]CreateOFDProtocolMessage [12:25:45]wFMCommunicate request_size=4 [12:25:45]MH_SAM_APDU [12:25:45]CAPDU: 80 11 00 00 [12:25:45]Write to MH i2c: E2 08 00 A4 4B 80 11 00 00 00 00 00 00 69 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 17 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 17 00 A4 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C5 [12:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:25:45]wFMCommunicate OK [12:25:45]CreateOFDProtocolMessage done [12:25:45]OFDSenderStorePacket 69214 [12:25:45]StoreOFDPacket docnum=69214 [12:25:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 1F A7 07 01 3A 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 34 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E4 62 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 62 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 62 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D0 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5E 0E 01 00 35 04 06 00 F3 65 26 D2 23 90 9B C5 F3 8A 4B 6C 24 DE [12:25:45]CheckFolder [12:25:45]dirname=/storage/ofd_packets [12:25:45]CheckFolder done [12:25:45]ProducePacketName [12:25:45]name=ofd_packets/00069214 [12:25:45]NVStorageSaveData ofd_packets/00069214 [12:25:45]File name is /storage/ofd_packets/00069214 [12:25:45]Write 301 bytes [12:25:45]NVStorageSaveData done [12:25:45]OFDSenderStorePacket done [12:25:45]KKMCreateOFDPacket done [12:25:45]NVStorageSaveData kkm_last_timestamp [12:25:45]File name is /storage/kkm_last_timestamp [12:25:45]Write 4 bytes [12:25:45]NVStorageSaveData done [12:25:45]ExternCall_PrintAddStr [12:25:45]wPrintStart [12:25:45]Write to MH i2c: 01 00 00 A5 4B F0 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: 01 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: 01 07 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: 01 07 00 A5 4B 00 00 00 00 00 FF 0F 05 [12:25:45]RasterBufferAndPrint [12:25:45]line Счет N : (1)871872 [12:25:45]line ИНН: 02508201610067 [12:25:45]line Контрольно-Кассовый Чек [12:25:45]line ПРОДАЖА [12:25:45]line ТРК (МРК, ГНК) : 42 [12:25:45]line Товар: 2710124130 [12:25:45]line Аи-92-К-5 [12:25:45]line 13.400 * 67.80 [12:25:45]line = 908.52 [12:25:45]line НДС 12% НСП 1% [12:25:45]line > о реализуемом товаре [12:25:45]line ИТОГО: 908.52 [12:25:45]line НСП 1% : 8.04 [12:25:45]line НДС 12% : 96.48 [12:25:45]line Наличными: 0.00 [12:25:45]line Безнал.: 908.52 [12:25:45]line Место: АЗС № 125 "Партнер Нефть" [12:25:45]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:25:45]line СНО: Общий режим [12:25:45]line Чек 97 28.07.2024 12:25 [12:25:45]line Смена: 429 ФФД: 1.0 [12:25:45]line ЗНМ: 0300000049 [12:25:45]line РНМ: 0000000000092638 [12:25:45]line Версия ККМ: 001 [12:25:45]line Платежная система: Mbank [12:25:45]line ФМ: 0000000000874949 [12:25:45]line ФД: 69214 [12:25:45]line ФПД: 267615768552336 [12:25:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122552&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69214&fm=267615768552336&tin=02508201610067®Number=0000000000092638&sum=90852 [12:25:45]written 0, free lines is 4095 [12:25:45]OFD Sender: Processing packet 69214 [packets to send 19, broken 18] [12:25:45]ProducePacketName [12:25:45]name=ofd_packets/00069214 [12:25:45]OFD Sender: To server: pG, [12:25:45]CommunicateWithHost lk.salyk.kg:30040 [12:25:45]ConnectInit lk.salyk.kg [12:25:45]Connected sock=10 [12:25:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 1F A7 07 01 3A 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 34 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E4 62 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 62 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 62 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D0 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5E 0E 01 00 35 04 06 00 F3 65 26 D2 23 90 9B C5 F3 8A 4B 6C 24 DE [12:25:45]Write to MH i2c: 01 00 00 CE 4B 19 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: 01 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: 01 07 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: 01 07 00 CE 4B 00 00 00 00 00 2D 0D 5A [12:25:45]RasterBufferAndPrint [12:25:45]line [12:25:45]line [12:25:45]line [12:25:45]line [12:25:45]line [12:25:45]written 0, free lines is 3380 [12:25:45]MH_Cut [12:25:45]Write to MH i2c: D1 01 00 D5 4B 01 F2 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: D1 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: D1 01 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: D1 01 00 D5 4B 00 F1 [12:25:45]Write to MH i2c: 01 00 00 D6 4B 21 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 E1 9F 47 00 28 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5E 0E 01 00 F4 03 04 00 40 DF A5 66 B6 04 01 00 00 F9 36 13 79 F5 8B CE 89 [12:25:45]CommunicateWithHost err = 0 [12:25:45]CheckOFDResponse [12:25:45]1017 (14) - 77093643461234 [12:25:45]1041 (16) - 0000000000874949 [12:25:45]1040 (4) - 69214 [12:25:45]1012 (4) - 28.07.2024 06:03 [12:25:45]1206 (1) - 0 [12:25:45]OFD Sender: Remove packet 69214 [12:25:45]ProducePacketName [12:25:45]name=ofd_packets/00069214 [12:25:45]NVStorageDeleteData [12:25:46]*** Cut start [12:25:46]*** Partial cut [12:25:46]*** CUTSNS_PIN = 1 [12:25:46]*** CUTSNS_PIN = 0 [12:25:46]OFD Sender: No OFD packet to send [12:25:46]*** Brake cut motor [12:25:46]Read from MH i2c: 01 [12:25:46]MH_I2C_Read... [12:25:46]*** Stop cut motor [12:25:46]*** Cut end [12:25:46]Read from MH i2c: 01 07 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 07 00 D6 4B 00 00 00 00 00 FF 0F 36 [12:25:46]process_action close_receipt done [12:25:46]requested_data is exist [12:25:46]produce_requested_data [12:25:46]requested_item fm.sn is exist - process it [12:25:46]wFMCommunicate request_size=4 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 11 00 00 [12:25:46]Write to MH i2c: E2 08 00 D7 4B 80 11 00 00 00 00 00 00 9C [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:47]Read from MH i2c: E2 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: E2 17 00 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: E2 17 00 D7 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F8 [12:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:25:47]wFMCommunicate OK [12:25:47]requested_item fd.num is exist - process it [12:25:47]SAM_PROTO_GetFieldsCounters [12:25:47]wFMCommunicate request_size=4 [12:25:47]MH_SAM_APDU [12:25:47]CAPDU: 80 13 00 00 [12:25:47]Write to MH i2c: E2 08 00 D8 4B 80 13 00 00 00 00 00 00 9F [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:47]Read from MH i2c: E2 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: E2 62 00 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: E2 62 00 D8 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 5E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [12:25:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 5E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:47]wFMCommunicate OK [12:25:47]SAM_PROTO_GetFieldsCounters done [12:25:47]requested_item shift.num is exist - process it [12:25:47]requested_item shift.opened is exist - process it [12:25:47]req_shift_opened [12:25:47]FM_GetShiftState [12:25:47]SAM_PROTO_GetShiftState [12:25:47]wFMCommunicate request_size=4 [12:25:47]MH_SAM_APDU [12:25:47]CAPDU: 80 13 01 00 [12:25:47]Write to MH i2c: E2 08 00 D9 4B 80 13 01 00 00 00 00 00 A1 [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:47]Read from MH i2c: E2 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: E2 0E 00 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: E2 0E 00 D9 4B 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 DE [12:25:47]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:25:47]wFMCommunicate OK [12:25:47]SAM_PROTO_GetShiftState done [12:25:47]FM_GetShiftState done [12:25:47]req_shift_opened done [12:25:47]requested_item shift.open_date is exist - process it [12:25:47]req_shift_open_date [12:25:47]req_shift_open_date done [12:25:47]produce_requested_data done [12:25:47]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69214,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:25:47]process_action_free close_receipt [12:25:47]json_value_free [12:25:47]json_value_free done [12:25:47]process_json_proto returns [12:25:47]Send response to host [12:25:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69214,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:25:47]free response buf [12:25:47]execute_script done [12:25:47]execute_script returns [12:25:47]free content buf [12:25:47]Sock 9.Close socket [12:25:47]Sock 9.Thread stoped [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:05]accept exits with 7 [12:26:05]New connection [12:26:05]New thread 3066641764 created [12:26:05]Thread 3066785124 joined [12:26:05]Waiting for new connection... [12:26:05] Sock 7.Parse request [12:26:05]Sock 7.Check first char [12:26:05]Sock 7.First char is OK [12:26:05]request: POST /json_proto HTTP/1.0 [12:26:05]Method: POST [12:26:05]URL: /json_proto [12:26:05]Method is POST - this is cgi request [12:26:05]url: /json_proto [12:26:05]query_string will be loaded in cgi processing [12:26:05]execute_cgi json_proto POST (null) [12:26:05]execute_cgi path=json_proto method=POST [12:26:05]POST find Content-Length [12:26:05]Host: 172.17.49.132:8080 [12:26:05]Content-Length: 678 [12:26:05]Content-Type: application/json [12:26:05] [12:26:05]POST finish read [12:26:05]Found Content-Length = 678 [12:26:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 26.600, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:05]execute_script... [12:26:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 26.600, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:05]POST & json_proto [12:26:05]process_json_proto [12:26:05]json parsed OK: [12:26:05]protocol is kg_v1.0 [12:26:05]action value=close_receipt [12:26:05]process_action close_receipt [12:26:05]cmd_close_receipt [12:26:05]MH_GetDate [12:26:05]Write to MH i2c: F0 00 00 DA 4B 14 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: F0 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: F0 09 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: F0 09 00 DA 4B 00 E6 38 A6 66 E7 4B C0 64 9D [12:26:05]GetLastDocTimeStamp 1722169552 [12:26:05]current date 1722169574 [12:26:05]FM_GetShiftState [12:26:05]SAM_PROTO_GetShiftState [12:26:05]wFMCommunicate request_size=4 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 13 01 00 [12:26:05]Write to MH i2c: E2 08 00 DB 4B 80 13 01 00 00 00 00 00 A3 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 0E 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 0E 00 DB 4B 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 E0 [12:26:05]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:26:05]wFMCommunicate OK [12:26:05]SAM_PROTO_GetShiftState done [12:26:05]FM_GetShiftState done [12:26:05]opened in 1722127251 [12:26:05]opened+sec_in_day 1722213651 [12:26:05]quantity*price = 200032 [12:26:05]sum+1 = 200033 [12:26:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 98 28.07.2024 12:26 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69215 ФПД: 170276232366723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122614&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69215&fm=170276232366723&tin=02508201610067®Number=0000000000092638&sum=200000 [12:26:06]StoreToDocumentArchive [12:26:06]shift 429 fd 69215 [12:26:06]save to /storage/0429/doc_00069215 [12:26:06]save last doc name /storage/0429/doc_00069215 to /storage/kkm_last_doc_name [12:26:06]save OK [12:26:06]Clear old archive folders... [12:26:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:26:06]tlvbuf is 00B2BAF0 [12:26:06]SAM_PROTO_ClearQueue [12:26:06]wFMCommunicate request_size=4 [12:26:06]MH_SAM_APDU [12:26:06]CAPDU: 80 09 00 00 [12:26:06]Write to MH i2c: E2 08 00 E8 4B 80 09 00 00 00 00 00 00 A5 [12:26:06]Write i2c OK [12:26:06]MH_I2C_Read... [12:26:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:06]Read from MH i2c: E2 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: E2 03 00 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: E2 03 00 E8 4B 00 90 00 A7 [12:26:06]RAPDU: 90 00 [12:26:06]wFMCommunicate OK [12:26:06]SAM_PROTO_ClearQueue done [12:26:06]KKMCreateOFDPacket [12:26:06]OFDProtocolAddRootSTLVToBuf [12:26:06]FM_MakeSignedData [12:26:06]FM_MakeSignedData [12:26:06]SAM_PROTO_SignData [12:26:06]wFMCommunicate request_size=4 [12:26:06]MH_SAM_APDU [12:26:06]CAPDU: 80 0D 01 02 [12:26:06]Write to MH i2c: E2 08 00 E9 4B 80 0D 01 02 00 00 00 00 AD [12:26:06]Write i2c OK [12:26:06]MH_I2C_Read... [12:26:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:06]Read from MH i2c: E2 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: E2 03 00 [12:26:06]MH_I2C_Read... [12:26:06]Read from MH i2c: E2 03 00 E9 4B 00 90 00 A8 [12:26:06]RAPDU: 90 00 [12:26:06]wFMCommunicate OK [12:26:06]wFMCommunicate request_size=255 [12:26:06]MH_SAM_APDU [12:26:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E6 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5F 0E 01 00 35 04 06 00 9A DD 86 58 [12:26:06]Write to MH i2c: E2 02 01 EA 4B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E6 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5F 0E 01 00 35 04 06 00 9A DD 86 58 00 00 2B [12:26:06]Write i2c OK [12:26:06]MH_I2C_Read... [12:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:07]Read from MH i2c: E2 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 03 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 03 00 EA 4B 00 90 00 A9 [12:26:07]RAPDU: 90 00 [12:26:07]wFMCommunicate OK [12:26:07]wFMCommunicate request_size=7 [12:26:07]MH_SAM_APDU [12:26:07]CAPDU: 80 0D 02 02 02 0A 83 [12:26:07]Write to MH i2c: E2 0A 00 EB 4B 80 0D 02 02 02 00 0A 83 00 00 41 [12:26:07]Write i2c OK [12:26:07]MH_I2C_Read... [12:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:07]Read from MH i2c: E2 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 03 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 03 00 EB 4B 00 90 00 AA [12:26:07]RAPDU: 90 00 [12:26:07]wFMCommunicate OK [12:26:07]wFMCommunicate request_size=4 [12:26:07]MH_SAM_APDU [12:26:07]CAPDU: 80 0D 03 02 [12:26:07]Write to MH i2c: E2 08 00 EC 4B 80 0D 03 02 00 00 00 00 B2 [12:26:07]Write i2c OK [12:26:07]MH_I2C_Read... [12:26:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:07]Read from MH i2c: E2 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 0B 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 0B 00 EC 4B 00 1A 68 89 4F 3D CE 83 1C 90 00 B7 [12:26:07]RAPDU: 1A 68 89 4F 3D CE 83 1C 90 00 [12:26:07]wFMCommunicate OK [12:26:07]SAM_PROTO_SignData done [12:26:07]FM_MakeSignedData done [12:26:07]CreateOFDProtocolMessage [12:26:07]wFMCommunicate request_size=4 [12:26:07]MH_SAM_APDU [12:26:07]CAPDU: 80 11 00 00 [12:26:07]Write to MH i2c: E2 08 00 ED 4B 80 11 00 00 00 00 00 00 B2 [12:26:07]Write i2c OK [12:26:07]MH_I2C_Read... [12:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:07]Read from MH i2c: E2 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 17 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 17 00 ED 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 0E [12:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:26:07]wFMCommunicate OK [12:26:07]CreateOFDProtocolMessage done [12:26:07]OFDSenderStorePacket 69215 [12:26:07]StoreOFDPacket docnum=69215 [12:26:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 5A 81 04 01 6F 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E6 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5F 0E 01 00 35 04 06 00 9A DD 86 58 0A 83 1A 68 89 4F 3D CE 83 1C [12:26:07]CheckFolder [12:26:07]dirname=/storage/ofd_packets [12:26:07]CheckFolder done [12:26:07]ProducePacketName [12:26:07]name=ofd_packets/00069215 [12:26:07]NVStorageSaveData ofd_packets/00069215 [12:26:07]File name is /storage/ofd_packets/00069215 [12:26:07]Write 298 bytes [12:26:07]NVStorageSaveData done [12:26:07]OFDSenderStorePacket done [12:26:07]KKMCreateOFDPacket done [12:26:07]NVStorageSaveData kkm_last_timestamp [12:26:07]File name is /storage/kkm_last_timestamp [12:26:07]Write 4 bytes [12:26:07]NVStorageSaveData done [12:26:07]ExternCall_PrintAddStr [12:26:07]wPrintStart [12:26:07]Write to MH i2c: 01 00 00 EE 4B 39 [12:26:07]Write i2c OK [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: 01 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: 01 07 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: 01 07 00 EE 4B 00 00 00 00 00 FF 0F 4E [12:26:07]RasterBufferAndPrint [12:26:07]line Счет N : (1)871875 [12:26:07]line ИНН: 02508201610067 [12:26:07]line Контрольно-Кассовый Чек [12:26:07]line ПРОДАЖА [12:26:07]line ТРК (МРК, ГНК) : 1 [12:26:07]line Товар: 2710194210 [12:26:07]line ДТ-К-5 [12:26:07]line 26.600 * 75.20 [12:26:07]line = 2000.32 [12:26:07]line НДС 12% НСП 1% [12:26:07]line > о реализуемом товаре [12:26:07]line ОКРУГЛЕНИЕ: -0.32 [12:26:07]line ИТОГО: 2000.00 [12:26:07]line Внесено: 2000.00 [12:26:07]line СДАЧА: 0.00 [12:26:07]line НСП 1% : 17.70 [12:26:07]line НДС 12% : 212.42 [12:26:07]line Наличными: 2000.00 [12:26:07]line Безнал.: 0.00 [12:26:07]line Место: АЗС № 125 "Партнер Нефть" [12:26:07]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:26:07]line СНО: Общий режим [12:26:07]line Чек 98 28.07.2024 12:26 [12:26:07]line Смена: 429 ФФД: 1.0 [12:26:07]line ЗНМ: 0300000049 [12:26:07]line РНМ: 0000000000092638 [12:26:07]line Версия ККМ: 001 [12:26:07]line ФМ: 0000000000874949 [12:26:07]line ФД: 69215 [12:26:07]line ФПД: 170276232366723 [12:26:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122614&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69215&fm=170276232366723&tin=02508201610067®Number=0000000000092638&sum=200000 [12:26:07]OFD Sender: Processing packet 69215 [packets to send 19, broken 18] [12:26:07]ProducePacketName [12:26:07]name=ofd_packets/00069215 [12:26:07]OFD Sender: To server: pG, [12:26:07]CommunicateWithHost lk.salyk.kg:30040 [12:26:07]ConnectInit lk.salyk.kg [12:26:07]written 0, free lines is 4095 [12:26:07]Connected sock=11 [12:26: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 39 34 39 0C 01 00 00 5A 81 04 01 6F 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E6 38 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5F 0E 01 00 35 04 06 00 9A DD 86 58 0A 83 1A 68 89 4F 3D CE 83 1C [12:26:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 5F 4E 47 00 CE E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 5F 0E 01 00 F4 03 04 00 56 DF A5 66 B6 04 01 00 00 7C EF 91 56 8D 83 2B 97 [12:26:07]CommunicateWithHost err = 0 [12:26:07]CheckOFDResponse [12:26:07]1017 (14) - 77093643461234 [12:26:07]1041 (16) - 0000000000874949 [12:26:07]1040 (4) - 69215 [12:26:07]1012 (4) - 28.07.2024 06:04 [12:26:07]1206 (1) - 0 [12:26:07]OFD Sender: Remove packet 69215 [12:26:07]ProducePacketName [12:26:07]name=ofd_packets/00069215 [12:26:07]NVStorageDeleteData [12:26:08]Write to MH i2c: 01 00 00 19 4C 65 [12:26:08]Write i2c OK [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: 01 [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: 01 07 00 [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: 01 07 00 19 4C 00 00 00 00 00 EC 0C 64 [12:26:08]RasterBufferAndPrint [12:26:08]line [12:26:08]line [12:26:08]line [12:26:08]line [12:26:08]line [12:26:08]written 0, free lines is 3314 [12:26:08]MH_Cut [12:26:08]Write to MH i2c: D1 01 00 20 4C 01 3E [12:26:08]Write i2c OK [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: D1 [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: D1 01 00 [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: D1 01 00 20 4C 00 3D [12:26:08]Write to MH i2c: 01 00 00 21 4C 6D [12:26:08]Write i2c OK [12:26:08]MH_I2C_Read... [12:26:08]OFD Sender: No OFD packet to send [12:26:08]*** Cut start [12:26:08]*** Partial cut [12:26:08]*** CUTSNS_PIN = 1 [12:26:08]*** CUTSNS_PIN = 0 [12:26:09]*** Brake cut motor [12:26:09]Read from MH i2c: 01 [12:26:09]MH_I2C_Read... [12:26:09]*** Stop cut motor [12:26:09]*** Cut end [12:26:09]Read from MH i2c: 01 07 00 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: 01 07 00 21 4C 00 00 00 00 00 FF 0F 82 [12:26:09]process_action close_receipt done [12:26:09]requested_data is exist [12:26:09]produce_requested_data [12:26:09]requested_item fm.sn is exist - process it [12:26:09]wFMCommunicate request_size=4 [12:26:09]MH_SAM_APDU [12:26:09]CAPDU: 80 11 00 00 [12:26:09]Write to MH i2c: E2 08 00 22 4C 80 11 00 00 00 00 00 00 E8 [12:26:09]Write i2c OK [12:26:09]MH_I2C_Read... [12:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:09]Read from MH i2c: E2 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 17 00 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 17 00 22 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 44 [12:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:26:09]wFMCommunicate OK [12:26:09]requested_item fd.num is exist - process it [12:26:09]SAM_PROTO_GetFieldsCounters [12:26:09]wFMCommunicate request_size=4 [12:26:09]MH_SAM_APDU [12:26:09]CAPDU: 80 13 00 00 [12:26:09]Write to MH i2c: E2 08 00 23 4C 80 13 00 00 00 00 00 00 EB [12:26:09]Write i2c OK [12:26:09]MH_I2C_Read... [12:26:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:09]Read from MH i2c: E2 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 62 00 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 62 00 23 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 5F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [12:26: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 5F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:09]wFMCommunicate OK [12:26:09]SAM_PROTO_GetFieldsCounters done [12:26:09]requested_item shift.num is exist - process it [12:26:09]requested_item shift.opened is exist - process it [12:26:09]req_shift_opened [12:26:09]FM_GetShiftState [12:26:09]SAM_PROTO_GetShiftState [12:26:09]wFMCommunicate request_size=4 [12:26:09]MH_SAM_APDU [12:26:09]CAPDU: 80 13 01 00 [12:26:09]Write to MH i2c: E2 08 00 24 4C 80 13 01 00 00 00 00 00 ED [12:26:09]Write i2c OK [12:26:09]MH_I2C_Read... [12:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:09]Read from MH i2c: E2 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 0E 00 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 0E 00 24 4C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 2A [12:26:09]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:26:09]wFMCommunicate OK [12:26:09]SAM_PROTO_GetShiftState done [12:26:09]FM_GetShiftState done [12:26:09]req_shift_opened done [12:26:09]requested_item shift.open_date is exist - process it [12:26:09]req_shift_open_date [12:26:09]req_shift_open_date done [12:26:09]produce_requested_data done [12:26:09]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69215,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:26:09]process_action_free close_receipt [12:26:09]json_value_free [12:26:09]json_value_free done [12:26:09]process_json_proto returns [12:26:09]Send response to host [12:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69215,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:26:09]free response buf [12:26:09]execute_script done [12:26:09]execute_script returns [12:26:09]free content buf [12:26:09]Sock 7.Close socket [12:26:09]Sock 7.Thread stoped [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:19]accept exits with 9 [12:28:19]New connection [12:28:19]New thread 3066785124 created [12:28:19]Thread 3066641764 joined [12:28:19]Waiting for new connection... [12:28:19] Sock 9.Parse request [12:28:19]Sock 9.Check first char [12:28:19]Sock 9.First char is OK [12:28:19]request: POST /json_proto HTTP/1.0 [12:28:19]Method: POST [12:28:19]URL: /json_proto [12:28:19]Method is POST - this is cgi request [12:28:19]url: /json_proto [12:28:19]query_string will be loaded in cgi processing [12:28:19]execute_cgi json_proto POST (null) [12:28:19]execute_cgi path=json_proto method=POST [12:28:19]POST find Content-Length [12:28:19]Host: 172.17.49.132:8080 [12:28:19]Content-Length: 764 [12:28:19]Content-Type: application/json [12:28:19] [12:28:19]POST finish read [12:28:19]Found Content-Length = 764 [12:28:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.150, "sum" : 77.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 77.97 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:19]execute_script... [12:28:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.150, "sum" : 77.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 77.97 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:19]POST & json_proto [12:28:19]process_json_proto [12:28:19]json parsed OK: [12:28:19]protocol is kg_v1.0 [12:28:19]action value=close_receipt [12:28:19]process_action close_receipt [12:28:19]cmd_close_receipt [12:28:19]MH_GetDate [12:28:19]Write to MH i2c: F0 00 00 25 4C 60 [12:28:19]Write i2c OK [12:28:19]MH_I2C_Read... [12:28:19]Read from MH i2c: F0 [12:28:19]MH_I2C_Read... [12:28:19]Read from MH i2c: F0 09 00 [12:28:19]MH_I2C_Read... [12:28:19]Read from MH i2c: F0 09 00 25 4C 00 6C 39 A6 66 E7 4B C0 64 70 [12:28:19]GetLastDocTimeStamp 1722169574 [12:28:19]current date 1722169708 [12:28:19]FM_GetShiftState [12:28:19]SAM_PROTO_GetShiftState [12:28:19]wFMCommunicate request_size=4 [12:28:19]MH_SAM_APDU [12:28:19]CAPDU: 80 13 01 00 [12:28:19]Write to MH i2c: E2 08 00 26 4C 80 13 01 00 00 00 00 00 EF [12:28:19]Write i2c OK [12:28:19]MH_I2C_Read... [12:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:19]Read from MH i2c: E2 [12:28:19]MH_I2C_Read... [12:28:19]Read from MH i2c: E2 0E 00 [12:28:19]MH_I2C_Read... [12:28:19]Read from MH i2c: E2 0E 00 26 4C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 2C [12:28:19]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:28:19]wFMCommunicate OK [12:28:19]SAM_PROTO_GetShiftState done [12:28:19]FM_GetShiftState done [12:28:19]opened in 1722127251 [12:28:19]opened+sec_in_day 1722213651 [12:28:19]quantity*price = 7797 [12:28:19]sum+1 = 7798 [12:28:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.97 НСП 1% : 0.69 НДС 12% : 8.28 Наличными: 0.00 Безнал.: 77.97 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 99 28.07.2024 12:28 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874949 ФД: 69216 ФПД: 123216937114357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122828&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69216&fm=123216937114357&tin=02508201610067®Number=0000000000092638&sum=7797 [12:28:20]StoreToDocumentArchive [12:28:20]shift 429 fd 69216 [12:28:20]save to /storage/0429/doc_00069216 [12:28:20]save last doc name /storage/0429/doc_00069216 to /storage/kkm_last_doc_name [12:28:20]save OK [12:28:20]Clear old archive folders... [12:28:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:20]tlvbuf is 00A6A7C0 [12:28:20]SAM_PROTO_ClearQueue [12:28:20]wFMCommunicate request_size=4 [12:28:20]MH_SAM_APDU [12:28:20]CAPDU: 80 09 00 00 [12:28:20]Write to MH i2c: E2 08 00 33 4C 80 09 00 00 00 00 00 00 F1 [12:28:20]Write i2c OK [12:28:20]MH_I2C_Read... [12:28:20]Read from MH i2c: E2 [12:28:20]MH_I2C_Read... [12:28:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:20]Read from MH i2c: E2 03 00 [12:28:20]MH_I2C_Read... [12:28:20]Read from MH i2c: E2 03 00 33 4C 00 90 00 F3 [12:28:20]RAPDU: 90 00 [12:28:20]wFMCommunicate OK [12:28:20]SAM_PROTO_ClearQueue done [12:28:20]KKMCreateOFDPacket [12:28:20]OFDProtocolAddRootSTLVToBuf [12:28:20]FM_MakeSignedData [12:28:20]FM_MakeSignedData [12:28:20]SAM_PROTO_SignData [12:28:20]wFMCommunicate request_size=4 [12:28:20]MH_SAM_APDU [12:28:20]CAPDU: 80 0D 01 02 [12:28:20]Write to MH i2c: E2 08 00 34 4C 80 0D 01 02 00 00 00 00 F9 [12:28:20]Write i2c OK [12:28:20]MH_I2C_Read... [12:28:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:20]Read from MH i2c: E2 [12:28:20]MH_I2C_Read... [12:28:20]Read from MH i2c: E2 03 00 [12:28:20]MH_I2C_Read... [12:28:20]Read from MH i2c: E2 03 00 34 4C 00 90 00 F4 [12:28:20]RAPDU: 90 00 [12:28:20]wFMCommunicate OK [12:28:20]wFMCommunicate request_size=255 [12:28:20]MH_SAM_APDU [12:28:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 75 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 75 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 6C 39 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 60 0E 01 00 35 04 06 00 70 [12:28:20]Write to MH i2c: E2 02 01 35 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 75 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 75 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 6C 39 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 60 0E 01 00 35 04 06 00 70 00 00 05 [12:28:20]Write i2c OK [12:28:20]MH_I2C_Read... [12:28:20]Read from MH i2c: E2 [12:28:20]MH_I2C_Read... [12:28:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:20]Read from MH i2c: E2 03 00 [12:28:20]MH_I2C_Read... [12:28:20]Read from MH i2c: E2 03 00 35 4C 00 90 00 F5 [12:28:20]RAPDU: 90 00 [12:28:20]wFMCommunicate OK [12:28:20]wFMCommunicate request_size=10 [12:28:20]MH_SAM_APDU [12:28:20]CAPDU: 80 0D 02 02 05 10 AD C4 5A F5 [12:28:20]Write to MH i2c: E2 0D 00 36 4C 80 0D 02 02 05 00 10 AD C4 5A F5 00 00 D6 [12:28:20]Write i2c OK [12:28:20]MH_I2C_Read... [12:28:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:20]Read from MH i2c: E2 [12:28:20]MH_I2C_Read... [12:28:20]Read from MH i2c: E2 03 00 [12:28:20]MH_I2C_Read... [12:28:20]Read from MH i2c: E2 03 00 36 4C 00 90 00 F6 [12:28:20]RAPDU: 90 00 [12:28:20]wFMCommunicate OK [12:28:20]wFMCommunicate request_size=4 [12:28:20]MH_SAM_APDU [12:28:20]CAPDU: 80 0D 03 02 [12:28:20]Write to MH i2c: E2 08 00 37 4C 80 0D 03 02 00 00 00 00 FE [12:28:20]Write i2c OK [12:28:20]MH_I2C_Read... [12:28:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:20]Read from MH i2c: E2 [12:28:20]MH_I2C_Read... [12:28:20]Read from MH i2c: E2 0B 00 [12:28:20]MH_I2C_Read... [12:28:20]Read from MH i2c: E2 0B 00 37 4C 00 8C 58 BB 7E 13 F3 21 5F 90 00 A2 [12:28:20]RAPDU: 8C 58 BB 7E 13 F3 21 5F 90 00 [12:28:20]wFMCommunicate OK [12:28:20]SAM_PROTO_SignData done [12:28:20]FM_MakeSignedData done [12:28:20]CreateOFDProtocolMessage [12:28:20]wFMCommunicate request_size=4 [12:28:20]MH_SAM_APDU [12:28:20]CAPDU: 80 11 00 00 [12:28:20]Write to MH i2c: E2 08 00 38 4C 80 11 00 00 00 00 00 00 FE [12:28:21]Write i2c OK [12:28:21]MH_I2C_Read... [12:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:21]Read from MH i2c: E2 [12:28:21]MH_I2C_Read... [12:28:21]Read from MH i2c: E2 17 00 [12:28:21]MH_I2C_Read... [12:28:21]Read from MH i2c: E2 17 00 38 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 5A [12:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:28:21]wFMCommunicate OK [12:28:21]CreateOFDProtocolMessage done [12:28:21]OFDSenderStorePacket 69216 [12:28:21]StoreOFDPacket docnum=69216 [12:28:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 B2 28 07 01 9E A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 75 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 75 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 6C 39 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 60 0E 01 00 35 04 06 00 70 10 AD C4 5A F5 8C 58 BB 7E 13 F3 21 5F [12:28:21]CheckFolder [12:28:21]dirname=/storage/ofd_packets [12:28:21]CheckFolder done [12:28:21]ProducePacketName [12:28:21]name=ofd_packets/00069216 [12:28:21]NVStorageSaveData ofd_packets/00069216 [12:28:21]File name is /storage/ofd_packets/00069216 [12:28:21]Write 301 bytes [12:28:21]NVStorageSaveData done [12:28:21]OFDSenderStorePacket done [12:28:21]KKMCreateOFDPacket done [12:28:21]NVStorageSaveData kkm_last_timestamp [12:28:21]File name is /storage/kkm_last_timestamp [12:28:21]Write 4 bytes [12:28:21]NVStorageSaveData done [12:28:21]ExternCall_PrintAddStr [12:28:21]wPrintStart [12:28:21]Write to MH i2c: 01 00 00 39 4C 85 [12:28:21]Write i2c OK [12:28:21]MH_I2C_Read... [12:28:21]Read from MH i2c: 01 [12:28:21]MH_I2C_Read... [12:28:21]Read from MH i2c: 01 07 00 [12:28:21]MH_I2C_Read... [12:28:21]Read from MH i2c: 01 07 00 39 4C 00 00 00 00 00 FF 0F 9A [12:28:21]RasterBufferAndPrint [12:28:21]line Счет N : (1)871876 [12:28:21]line ИНН: 02508201610067 [12:28:21]line Контрольно-Кассовый Чек [12:28:21]line ПРОДАЖА [12:28:21]line ТРК (МРК, ГНК) : 62 [12:28:21]line Товар: 2710124130 [12:28:21]line Аи-92-К-5 [12:28:21]line 1.150 * 67.80 [12:28:21]line = 77.97 [12:28:21]line НДС 12% НСП 1% [12:28:21]line > о реализуемом товаре [12:28:21]line ИТОГО: 77.97 [12:28:21]line НСП 1% : 0.69 [12:28:21]line НДС 12% : 8.28 [12:28:21]line Наличными: 0.00 [12:28:21]line Безнал.: 77.97 [12:28:21]line Место: АЗС № 125 "Партнер Нефть" [12:28:21]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:28:21]line СНО: Общий режим [12:28:21]line Чек 99 28.07.2024 12:28 [12:28:21]line Смена: 429 ФФД: 1.0 [12:28:21]line ЗНМ: 0300000049 [12:28:21]line РНМ: 0000000000092638 [12:28:21]line Версия ККМ: 001 [12:28:21]line Платежная система: Mbank [12:28:21]line ФМ: 0000000000874949 [12:28:21]line ФД: 69216 [12:28:21]line ФПД: 123216937114357 [12:28:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122828&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69216&fm=123216937114357&tin=02508201610067®Number=0000000000092638&sum=7797 [12:28:21]OFD Sender: Processing packet 69216 [packets to send 19, broken 18] [12:28:21]ProducePacketName [12:28:21]name=ofd_packets/00069216 [12:28:21]OFD Sender: To server: pG, [12:28:21]CommunicateWithHost lk.salyk.kg:30040 [12:28:21]ConnectInit lk.salyk.kg [12:28:21]written 0, free lines is 4095 [12:28:21]Connected sock=10 [12:28:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 B2 28 07 01 9E A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 75 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 75 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 6C 39 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 60 0E 01 00 35 04 06 00 70 10 AD C4 5A F5 8C 58 BB 7E 13 F3 21 5F [12:28:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 21 4E 47 00 F1 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 60 0E 01 00 F4 03 04 00 DC DF A5 66 B6 04 01 00 00 CF 79 DE 23 64 86 AE 12 [12:28:21]CommunicateWithHost err = 0 [12:28:21]CheckOFDResponse [12:28:21]1017 (14) - 77093643461234 [12:28:21]1041 (16) - 0000000000874949 [12:28:21]1040 (4) - 69216 [12:28:21]1012 (4) - 28.07.2024 06:06 [12:28:21]1206 (1) - 0 [12:28:21]OFD Sender: Remove packet 69216 [12:28:21]ProducePacketName [12:28:21]name=ofd_packets/00069216 [12:28:21]NVStorageDeleteData [12:28:21]Write to MH i2c: 01 00 00 62 4C AE [12:28:21]Write i2c OK [12:28:21]MH_I2C_Read... [12:28:21]Read from MH i2c: 01 [12:28:21]MH_I2C_Read... [12:28:21]Read from MH i2c: 01 07 00 [12:28:21]MH_I2C_Read... [12:28:21]Read from MH i2c: 01 07 00 62 4C 00 00 00 00 00 17 0D D9 [12:28:21]RasterBufferAndPrint [12:28:21]line [12:28:21]line [12:28:21]line [12:28:21]line [12:28:21]line [12:28:21]written 0, free lines is 3361 [12:28:21]MH_Cut [12:28:21]Write to MH i2c: D1 01 00 69 4C 01 87 [12:28:21]Write i2c OK [12:28:21]MH_I2C_Read... [12:28:21]Read from MH i2c: D1 [12:28:21]MH_I2C_Read... [12:28:21]Read from MH i2c: D1 01 00 [12:28:21]MH_I2C_Read... [12:28:21]Read from MH i2c: D1 01 00 69 4C 00 86 [12:28:21]Write to MH i2c: 01 00 00 6A 4C B6 [12:28:21]Write i2c OK [12:28:21]MH_I2C_Read... [12:28:22]OFD Sender: No OFD packet to send [12:28:22]*** Cut start [12:28:22]*** Partial cut [12:28:22]*** CUTSNS_PIN = 1 [12:28:22]*** CUTSNS_PIN = 0 [12:28:22]*** Brake cut motor [12:28:23]Read from MH i2c: 01 [12:28:23]MH_I2C_Read... [12:28:23]*** Stop cut motor [12:28:23]*** Cut end [12:28:23]Read from MH i2c: 01 07 00 [12:28:23]MH_I2C_Read... [12:28:23]Read from MH i2c: 01 07 00 6A 4C 00 00 00 00 00 FF 0F CB [12:28:23]process_action close_receipt done [12:28:23]requested_data is exist [12:28:23]produce_requested_data [12:28:23]requested_item fm.sn is exist - process it [12:28:23]wFMCommunicate request_size=4 [12:28:23]MH_SAM_APDU [12:28:23]CAPDU: 80 11 00 00 [12:28:23]Write to MH i2c: E2 08 00 6B 4C 80 11 00 00 00 00 00 00 31 [12:28:23]Write i2c OK [12:28:23]MH_I2C_Read... [12:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:23]Read from MH i2c: E2 [12:28:23]MH_I2C_Read... [12:28:23]Read from MH i2c: E2 17 00 [12:28:23]MH_I2C_Read... [12:28:23]Read from MH i2c: E2 17 00 6B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 8D [12:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:28:23]wFMCommunicate OK [12:28:23]requested_item fd.num is exist - process it [12:28:23]SAM_PROTO_GetFieldsCounters [12:28:23]wFMCommunicate request_size=4 [12:28:23]MH_SAM_APDU [12:28:23]CAPDU: 80 13 00 00 [12:28:23]Write to MH i2c: E2 08 00 6C 4C 80 13 00 00 00 00 00 00 34 [12:28:23]Write i2c OK [12:28:23]MH_I2C_Read... [12:28:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:23]Read from MH i2c: E2 [12:28:23]MH_I2C_Read... [12:28:23]Read from MH i2c: E2 62 00 [12:28:23]MH_I2C_Read... [12:28:23]Read from MH i2c: E2 62 00 6C 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 60 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [12:28:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 60 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:23]wFMCommunicate OK [12:28:23]SAM_PROTO_GetFieldsCounters done [12:28:23]requested_item shift.num is exist - process it [12:28:23]requested_item shift.opened is exist - process it [12:28:23]req_shift_opened [12:28:23]FM_GetShiftState [12:28:23]SAM_PROTO_GetShiftState [12:28:23]wFMCommunicate request_size=4 [12:28:23]MH_SAM_APDU [12:28:23]CAPDU: 80 13 01 00 [12:28:23]Write to MH i2c: E2 08 00 6D 4C 80 13 01 00 00 00 00 00 36 [12:28:23]Write i2c OK [12:28:23]MH_I2C_Read... [12:28:23]Read from MH i2c: E2 [12:28:23]MH_I2C_Read... [12:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:23]Read from MH i2c: E2 0E 00 [12:28:23]MH_I2C_Read... [12:28:23]Read from MH i2c: E2 0E 00 6D 4C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 73 [12:28:23]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:28:23]wFMCommunicate OK [12:28:23]SAM_PROTO_GetShiftState done [12:28:23]FM_GetShiftState done [12:28:23]req_shift_opened done [12:28:23]requested_item shift.open_date is exist - process it [12:28:23]req_shift_open_date [12:28:23]req_shift_open_date done [12:28:23]produce_requested_data done [12:28:23]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69216,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:28:23]process_action_free close_receipt [12:28:23]json_value_free [12:28:23]json_value_free done [12:28:23]process_json_proto returns [12:28:23]Send response to host [12:28:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69216,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:28:23]free response buf [12:28:23]execute_script done [12:28:23]execute_script returns [12:28:23]free content buf [12:28:23]Sock 9.Close socket [12:28:23]Sock 9.Thread stoped [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:13]accept exits with 7 [12:29:13]New connection [12:29:13]New thread 3066641764 created [12:29:13]Thread 3066785124 joined [12:29:13]Waiting for new connection... [12:29:13] Sock 7.Parse request [12:29:13]Sock 7.Check first char [12:29:13]Sock 7.First char is OK [12:29:13]request: POST /json_proto HTTP/1.0 [12:29:13]Method: POST [12:29:13]URL: /json_proto [12:29:13]Method is POST - this is cgi request [12:29:13]url: /json_proto [12:29:13]query_string will be loaded in cgi processing [12:29:13]execute_cgi json_proto POST (null) [12:29:13]execute_cgi path=json_proto method=POST [12:29:13]POST find Content-Length [12:29:13]Host: 172.17.49.132:8080 [12:29:13]Content-Length: 678 [12:29:13]Content-Type: application/json [12:29:13] [12:29:13]POST finish read [12:29:13]Found Content-Length = 678 [12:29:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:13]execute_script... [12:29:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:13]POST & json_proto [12:29:13]process_json_proto [12:29:13]json parsed OK: [12:29:13]protocol is kg_v1.0 [12:29:13]action value=close_receipt [12:29:13]process_action close_receipt [12:29:13]cmd_close_receipt [12:29:13]MH_GetDate [12:29:13]Write to MH i2c: F0 00 00 6E 4C A9 [12:29:13]Write i2c OK [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: F0 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: F0 09 00 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: F0 09 00 6E 4C 00 A2 39 A6 66 E7 4B C0 64 EF [12:29:13]GetLastDocTimeStamp 1722169708 [12:29:13]current date 1722169762 [12:29:13]FM_GetShiftState [12:29:13]SAM_PROTO_GetShiftState [12:29:13]wFMCommunicate request_size=4 [12:29:13]MH_SAM_APDU [12:29:13]CAPDU: 80 13 01 00 [12:29:13]Write to MH i2c: E2 08 00 6F 4C 80 13 01 00 00 00 00 00 38 [12:29:13]Write i2c OK [12:29:13]MH_I2C_Read... [12:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:13]Read from MH i2c: E2 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 0E 00 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 0E 00 6F 4C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 75 [12:29:13]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:29:13]wFMCommunicate OK [12:29:13]SAM_PROTO_GetShiftState done [12:29:13]FM_GetShiftState done [12:29:13]opened in 1722127251 [12:29:13]opened+sec_in_day 1722213651 [12:29:13]quantity*price = 100016 [12:29:13]sum+1 = 100017 [12:29:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 100 28.07.2024 12:29 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69217 ФПД: 248151112486507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122922&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69217&fm=248151112486507&tin=02508201610067®Number=0000000000092638&sum=100000 [12:29:14]StoreToDocumentArchive [12:29:14]shift 429 fd 69217 [12:29:14]save to /storage/0429/doc_00069217 [12:29:14]save last doc name /storage/0429/doc_00069217 to /storage/kkm_last_doc_name [12:29:14]save OK [12:29:14]Clear old archive folders... [12:29:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:29:14]tlvbuf is 00A6AE60 [12:29:14]SAM_PROTO_ClearQueue [12:29:14]wFMCommunicate request_size=4 [12:29:14]MH_SAM_APDU [12:29:14]CAPDU: 80 09 00 00 [12:29:14]Write to MH i2c: E2 08 00 7C 4C 80 09 00 00 00 00 00 00 3A [12:29:14]Write i2c OK [12:29:14]MH_I2C_Read... [12:29:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 03 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 03 00 7C 4C 00 90 00 3C [12:29:15]RAPDU: 90 00 [12:29:15]wFMCommunicate OK [12:29:15]SAM_PROTO_ClearQueue done [12:29:15]KKMCreateOFDPacket [12:29:15]OFDProtocolAddRootSTLVToBuf [12:29:15]FM_MakeSignedData [12:29:15]FM_MakeSignedData [12:29:15]SAM_PROTO_SignData [12:29:15]wFMCommunicate request_size=4 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 0D 01 02 [12:29:15]Write to MH i2c: E2 08 00 7D 4C 80 0D 01 02 00 00 00 00 42 [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 03 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 03 00 7D 4C 00 90 00 3D [12:29:15]RAPDU: 90 00 [12:29:15]wFMCommunicate OK [12:29:15]wFMCommunicate request_size=255 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 64 00 00 00 F4 03 04 00 A2 39 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 61 0E 01 00 35 04 06 00 E1 B1 2E E9 [12:29:15]Write to MH i2c: E2 02 01 7E 4C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 64 00 00 00 F4 03 04 00 A2 39 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 61 0E 01 00 35 04 06 00 E1 B1 2E E9 00 00 04 [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 03 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 03 00 7E 4C 00 90 00 3E [12:29:15]RAPDU: 90 00 [12:29:15]wFMCommunicate OK [12:29:15]wFMCommunicate request_size=7 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 0D 02 02 02 0E 6B [12:29:15]Write to MH i2c: E2 0A 00 7F 4C 80 0D 02 02 02 00 0E 6B 00 00 C2 [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 03 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 03 00 7F 4C 00 90 00 3F [12:29:15]RAPDU: 90 00 [12:29:15]wFMCommunicate OK [12:29:15]wFMCommunicate request_size=4 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 0D 03 02 [12:29:15]Write to MH i2c: E2 08 00 80 4C 80 0D 03 02 00 00 00 00 47 [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 0B 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 0B 00 80 4C 00 76 FA D9 B5 A3 53 B3 5F 90 00 4E [12:29:15]RAPDU: 76 FA D9 B5 A3 53 B3 5F 90 00 [12:29:15]wFMCommunicate OK [12:29:15]SAM_PROTO_SignData done [12:29:15]FM_MakeSignedData done [12:29:15]CreateOFDProtocolMessage [12:29:15]wFMCommunicate request_size=4 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 11 00 00 [12:29:15]Write to MH i2c: E2 08 00 81 4C 80 11 00 00 00 00 00 00 47 [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 17 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 17 00 81 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A3 [12:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:29:15]wFMCommunicate OK [12:29:15]CreateOFDProtocolMessage done [12:29:15]OFDSenderStorePacket 69217 [12:29:15]StoreOFDPacket docnum=69217 [12:29:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 B6 4F 04 01 CB 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 64 00 00 00 F4 03 04 00 A2 39 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 61 0E 01 00 35 04 06 00 E1 B1 2E E9 0E 6B 76 FA D9 B5 A3 53 B3 5F [12:29:15]CheckFolder [12:29:15]dirname=/storage/ofd_packets [12:29:15]CheckFolder done [12:29:15]ProducePacketName [12:29:15]name=ofd_packets/00069217 [12:29:15]NVStorageSaveData ofd_packets/00069217 [12:29:15]File name is /storage/ofd_packets/00069217 [12:29:15]Write 298 bytes [12:29:15]NVStorageSaveData done [12:29:15]OFDSenderStorePacket done [12:29:15]KKMCreateOFDPacket done [12:29:15]NVStorageSaveData kkm_last_timestamp [12:29:15]File name is /storage/kkm_last_timestamp [12:29:15]Write 4 bytes [12:29:15]NVStorageSaveData done [12:29:15]ExternCall_PrintAddStr [12:29:15]wPrintStart [12:29:15]Write to MH i2c: 01 00 00 82 4C CE [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: 01 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: 01 07 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: 01 07 00 82 4C 00 00 00 00 00 FF 0F E3 [12:29:15]RasterBufferAndPrint [12:29:15]line Счет N : (1)871877 [12:29:15]line ИНН: 02508201610067 [12:29:15]line Контрольно-Кассовый Чек [12:29:15]line ПРОДАЖА [12:29:15]line ТРК (МРК, ГНК) : 1 [12:29:15]line Товар: 2710194210 [12:29:15]line ДТ-К-5 [12:29:15]line 13.300 * 75.20 [12:29:15]line = 1000.16 [12:29:15]line НДС 12% НСП 1% [12:29:15]line > о реализуемом товаре [12:29:15]line ОКРУГЛЕНИЕ: -0.16 [12:29:15]line ИТОГО: 1000.00 [12:29:15]line Внесено: 1000.00 [12:29:15]line СДАЧА: 0.00 [12:29:15]line НСП 1% : 8.85 [12:29:15]line НДС 12% : 106.21 [12:29:15]line Наличными: 1000.00 [12:29:15]line Безнал.: 0.00 [12:29:15]line Место: АЗС № 125 "Партнер Нефть" [12:29:15]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:29:15]line СНО: Общий режим [12:29:15]line Чек 100 28.07.2024 12:29 [12:29:15]line Смена: 429 ФФД: 1.0 [12:29:15]line ЗНМ: 0300000049 [12:29:15]line РНМ: 0000000000092638 [12:29:15]line Версия ККМ: 001 [12:29:15]line ФМ: 0000000000874949 [12:29:15]line ФД: 69217 [12:29:15]line ФПД: 248151112486507 [12:29:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T122922&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69217&fm=248151112486507&tin=02508201610067®Number=0000000000092638&sum=100000 [12:29:15]OFD Sender: Processing packet 69217 [packets to send 19, broken 18] [12:29:15]ProducePacketName [12:29:15]name=ofd_packets/00069217 [12:29:15]OFD Sender: To server: pG, [12:29:15]CommunicateWithHost lk.salyk.kg:30040 [12:29:15]ConnectInit lk.salyk.kg [12:29:15]written 0, free lines is 4095 [12:29:15]Connected sock=10 [12:29:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 B6 4F 04 01 CB 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 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 64 00 00 00 F4 03 04 00 A2 39 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 61 0E 01 00 35 04 06 00 E1 B1 2E E9 0E 6B 76 FA D9 B5 A3 53 B3 5F [12:29:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 61 6B 47 00 92 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 61 0E 01 00 F4 03 04 00 12 E0 A5 66 B6 04 01 00 00 9D 2D 76 20 C3 E7 77 EA [12:29:16]CommunicateWithHost err = 0 [12:29:16]CheckOFDResponse [12:29:16]1017 (14) - 77093643461234 [12:29:16]1041 (16) - 0000000000874949 [12:29:16]1040 (4) - 69217 [12:29:16]1012 (4) - 28.07.2024 06:07 [12:29:16]1206 (1) - 0 [12:29:16]OFD Sender: Remove packet 69217 [12:29:16]ProducePacketName [12:29:16]name=ofd_packets/00069217 [12:29:16]NVStorageDeleteData [12:29:16]Write to MH i2c: 01 00 00 AD 4C F9 [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: 01 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: 01 07 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: 01 07 00 AD 4C 00 00 00 00 00 E4 0C F0 [12:29:16]RasterBufferAndPrint [12:29:16]line [12:29:16]line [12:29:16]line [12:29:16]line [12:29:16]line [12:29:16]written 0, free lines is 3306 [12:29:16]MH_Cut [12:29:16]Write to MH i2c: D1 01 00 B4 4C 01 D2 [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: D1 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: D1 01 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: D1 01 00 B4 4C 00 D1 [12:29:16]Write to MH i2c: 01 00 00 B5 4C 01 [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]OFD Sender: No OFD packet to send [12:29:16]*** Cut start [12:29:16]*** Partial cut [12:29:16]*** CUTSNS_PIN = 1 [12:29:16]*** CUTSNS_PIN = 0 [12:29:17]*** Brake cut motor [12:29:17]Read from MH i2c: 01 [12:29:17]MH_I2C_Read... [12:29:17]*** Stop cut motor [12:29:17]*** Cut end [12:29:17]Read from MH i2c: 01 07 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: 01 07 00 B5 4C 00 00 00 00 00 FF 0F 16 [12:29:17]process_action close_receipt done [12:29:17]requested_data is exist [12:29:17]produce_requested_data [12:29:17]requested_item fm.sn is exist - process it [12:29:17]wFMCommunicate request_size=4 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 11 00 00 [12:29:17]Write to MH i2c: E2 08 00 B6 4C 80 11 00 00 00 00 00 00 7C [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 17 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 17 00 B6 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D8 [12:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:29:17]wFMCommunicate OK [12:29:17]requested_item fd.num is exist - process it [12:29:17]SAM_PROTO_GetFieldsCounters [12:29:17]wFMCommunicate request_size=4 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 13 00 00 [12:29:17]Write to MH i2c: E2 08 00 B7 4C 80 13 00 00 00 00 00 00 7F [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 62 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 62 00 B7 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 61 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [12:29:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 61 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:17]wFMCommunicate OK [12:29:17]SAM_PROTO_GetFieldsCounters done [12:29:17]requested_item shift.num is exist - process it [12:29:17]requested_item shift.opened is exist - process it [12:29:17]req_shift_opened [12:29:17]FM_GetShiftState [12:29:17]SAM_PROTO_GetShiftState [12:29:17]wFMCommunicate request_size=4 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 13 01 00 [12:29:17]Write to MH i2c: E2 08 00 B8 4C 80 13 01 00 00 00 00 00 81 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 0E 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 0E 00 B8 4C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 BE [12:29:17]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:29:17]wFMCommunicate OK [12:29:17]SAM_PROTO_GetShiftState done [12:29:17]FM_GetShiftState done [12:29:17]req_shift_opened done [12:29:17]requested_item shift.open_date is exist - process it [12:29:17]req_shift_open_date [12:29:17]req_shift_open_date done [12:29:17]produce_requested_data done [12:29:17]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69217,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:29:17]process_action_free close_receipt [12:29:17]json_value_free [12:29:17]json_value_free done [12:29:17]process_json_proto returns [12:29:17]Send response to host [12:29:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69217,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:29:17]free response buf [12:29:17]execute_script done [12:29:17]execute_script returns [12:29:17]free content buf [12:29:17]Sock 7.Close socket [12:29:17]Sock 7.Thread stoped [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:30]accept exits with 9 [12:30:30]New connection [12:30:30]New thread 3066785124 created [12:30:30]Thread 3066641764 joined [12:30:30]Waiting for new connection... [12:30:30] Sock 9.Parse request [12:30:30]Sock 9.Check first char [12:30:30]Sock 9.First char is OK [12:30:30]request: POST /json_proto HTTP/1.0 [12:30:30]Method: POST [12:30:30]URL: /json_proto [12:30:30]Method is POST - this is cgi request [12:30:30]url: /json_proto [12:30:30]query_string will be loaded in cgi processing [12:30:30]execute_cgi json_proto POST (null) [12:30:30]execute_cgi path=json_proto method=POST [12:30:30]POST find Content-Length [12:30:30]Host: 172.17.49.132:8080 [12:30:30]Content-Length: 677 [12:30:30]Content-Type: application/json [12:30:30] [12:30:30]POST finish read [12:30:30]Found Content-Length = 677 [12:30:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:30]execute_script... [12:30:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:30]POST & json_proto [12:30:30]process_json_proto [12:30:30]json parsed OK: [12:30:30]protocol is kg_v1.0 [12:30:30]action value=close_receipt [12:30:30]process_action close_receipt [12:30:30]cmd_close_receipt [12:30:30]MH_GetDate [12:30:30]Write to MH i2c: F0 00 00 B9 4C F4 [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: F0 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: F0 09 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: F0 09 00 B9 4C 00 EF 39 A6 66 E7 4B C0 64 87 [12:30:30]GetLastDocTimeStamp 1722169762 [12:30:30]current date 1722169839 [12:30:30]FM_GetShiftState [12:30:30]SAM_PROTO_GetShiftState [12:30:30]wFMCommunicate request_size=4 [12:30:30]MH_SAM_APDU [12:30:30]CAPDU: 80 13 01 00 [12:30:30]Write to MH i2c: E2 08 00 BA 4C 80 13 01 00 00 00 00 00 83 [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:30]Read from MH i2c: E2 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: E2 0E 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: E2 0E 00 BA 4C 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 C0 [12:30:30]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:30:30]wFMCommunicate OK [12:30:30]SAM_PROTO_GetShiftState done [12:30:30]FM_GetShiftState done [12:30:30]opened in 1722127251 [12:30:30]opened+sec_in_day 1722213651 [12:30:30]quantity*price = 20001 [12:30:30]sum+1 = 20002 [12:30:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 101 28.07.2024 12:30 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69218 ФПД: 91932150835978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123039&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69218&fm=91932150835978&tin=02508201610067®Number=0000000000092638&sum=20000 [12:30:31]StoreToDocumentArchive [12:30:31]shift 429 fd 69218 [12:30:31]save to /storage/0429/doc_00069218 [12:30:31]save last doc name /storage/0429/doc_00069218 to /storage/kkm_last_doc_name [12:30:31]save OK [12:30:31]Clear old archive folders... [12:30:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:31]tlvbuf is 00A31980 [12:30:31]SAM_PROTO_ClearQueue [12:30:31]wFMCommunicate request_size=4 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 09 00 00 [12:30:31]Write to MH i2c: E2 08 00 C7 4C 80 09 00 00 00 00 00 00 85 [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 C7 4C 00 90 00 87 [12:30:31]RAPDU: 90 00 [12:30:31]wFMCommunicate OK [12:30:31]SAM_PROTO_ClearQueue done [12:30:31]KKMCreateOFDPacket [12:30:31]OFDProtocolAddRootSTLVToBuf [12:30:31]FM_MakeSignedData [12:30:31]FM_MakeSignedData [12:30:31]SAM_PROTO_SignData [12:30:31]wFMCommunicate request_size=4 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 0D 01 02 [12:30:31]Write to MH i2c: E2 08 00 C8 4C 80 0D 01 02 00 00 00 00 8D [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 C8 4C 00 90 00 88 [12:30:31]RAPDU: 90 00 [12:30:31]wFMCommunicate OK [12:30:31]wFMCommunicate request_size=255 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 EF 39 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 62 0E 01 00 35 04 06 00 53 [12:30:31]Write to MH i2c: E2 02 01 C9 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 EF 39 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 62 0E 01 00 35 04 06 00 53 00 00 25 [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]OFD Sender: No OFD packet to send [12:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 C9 4C 00 90 00 89 [12:30:31]RAPDU: 90 00 [12:30:31]wFMCommunicate OK [12:30:31]wFMCommunicate request_size=10 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 0D 02 02 05 9C 9F 31 AB 0A [12:30:31]Write to MH i2c: E2 0D 00 CA 4C 80 0D 02 02 05 00 9C 9F 31 AB 0A 00 00 BB [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:32]Read from MH i2c: E2 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: E2 03 00 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: E2 03 00 CA 4C 00 90 00 8A [12:30:32]RAPDU: 90 00 [12:30:32]wFMCommunicate OK [12:30:32]wFMCommunicate request_size=4 [12:30:32]MH_SAM_APDU [12:30:32]CAPDU: 80 0D 03 02 [12:30:32]Write to MH i2c: E2 08 00 CB 4C 80 0D 03 02 00 00 00 00 92 [12:30:32]Write i2c OK [12:30:32]MH_I2C_Read... [12:30:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:32]Read from MH i2c: E2 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: E2 0B 00 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: E2 0B 00 CB 4C 00 73 3A 46 F9 BC 5B 95 38 90 00 63 [12:30:32]RAPDU: 73 3A 46 F9 BC 5B 95 38 90 00 [12:30:32]wFMCommunicate OK [12:30:32]SAM_PROTO_SignData done [12:30:32]FM_MakeSignedData done [12:30:32]CreateOFDProtocolMessage [12:30:32]wFMCommunicate request_size=4 [12:30:32]MH_SAM_APDU [12:30:32]CAPDU: 80 11 00 00 [12:30:32]Write to MH i2c: E2 08 00 CC 4C 80 11 00 00 00 00 00 00 92 [12:30:32]Write i2c OK [12:30:32]MH_I2C_Read... [12:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:32]Read from MH i2c: E2 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: E2 17 00 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: E2 17 00 CC 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 EE [12:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:30:32]wFMCommunicate OK [12:30:32]CreateOFDProtocolMessage done [12:30:32]OFDSenderStorePacket 69218 [12:30:32]StoreOFDPacket docnum=69218 [12:30:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 94 A4 07 01 17 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 EF 39 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 62 0E 01 00 35 04 06 00 53 9C 9F 31 AB 0A 73 3A 46 F9 BC 5B 95 38 [12:30:32]CheckFolder [12:30:32]dirname=/storage/ofd_packets [12:30:32]CheckFolder done [12:30:32]ProducePacketName [12:30:32]name=ofd_packets/00069218 [12:30:32]NVStorageSaveData ofd_packets/00069218 [12:30:32]File name is /storage/ofd_packets/00069218 [12:30:32]Write 301 bytes [12:30:32]NVStorageSaveData done [12:30:32]OFDSenderStorePacket done [12:30:32]KKMCreateOFDPacket done [12:30:32]NVStorageSaveData kkm_last_timestamp [12:30:32]File name is /storage/kkm_last_timestamp [12:30:32]Write 4 bytes [12:30:32]NVStorageSaveData done [12:30:32]ExternCall_PrintAddStr [12:30:32]wPrintStart [12:30:32]Write to MH i2c: 01 00 00 CD 4C 19 [12:30:32]Write i2c OK [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 07 00 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 07 00 CD 4C 00 00 00 00 00 FF 0F 2E [12:30:32]RasterBufferAndPrint [12:30:32]line Счет N : (1)871879 [12:30:32]line ИНН: 02508201610067 [12:30:32]line Контрольно-Кассовый Чек [12:30:32]line ПРОДАЖА [12:30:32]line ТРК (МРК, ГНК) : 32 [12:30:32]line Товар: 2710124130 [12:30:32]line Аи-92-К-5 [12:30:32]line 2.950 * 67.80 [12:30:32]line = 200.01 [12:30:32]line НДС 12% НСП 1% [12:30:32]line > о реализуемом товаре [12:30:32]line ОКРУГЛЕНИЕ: -0.01 [12:30:32]line ИТОГО: 200.00 [12:30:32]line Внесено: 200.00 [12:30:32]line СДАЧА: 0.00 [12:30:32]line НСП 1% : 1.77 [12:30:32]line НДС 12% : 21.24 [12:30:32]line Наличными: 200.00 [12:30:32]line Безнал.: 0.00 [12:30:32]line Место: АЗС № 125 "Партнер Нефть" [12:30:32]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:30:32]line СНО: Общий режим [12:30:32]line Чек 101 28.07.2024 12:30 [12:30:32]line Смена: 429 ФФД: 1.0 [12:30:32]line ЗНМ: 0300000049 [12:30:32]line РНМ: 0000000000092638 [12:30:32]line Версия ККМ: 001 [12:30:32]line ФМ: 0000000000874949 [12:30:32]line ФД: 69218 [12:30:32]line ФПД: 91932150835978 [12:30:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123039&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69218&fm=91932150835978&tin=02508201610067®Number=0000000000092638&sum=20000 [12:30:32]OFD Sender: Processing packet 69218 [packets to send 19, broken 18] [12:30:32]ProducePacketName [12:30:32]name=ofd_packets/00069218 [12:30:32]OFD Sender: To server: pG, [12:30:32]CommunicateWithHost lk.salyk.kg:30040 [12:30:32]ConnectInit lk.salyk.kg [12:30:32]written 0, free lines is 4095 [12:30:32]Connected sock=10 [12:30:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 94 A4 07 01 17 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 EF 39 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 62 0E 01 00 35 04 06 00 53 9C 9F 31 AB 0A 73 3A 46 F9 BC 5B 95 38 [12:30:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 F2 4F 47 00 A9 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 39 34 39 10 04 04 00 62 0E 01 00 F4 03 04 00 5F E0 A5 66 B6 04 01 00 00 F6 1B D2 24 29 D7 20 23 [12:30:32]CommunicateWithHost err = 0 [12:30:32]CheckOFDResponse [12:30:32]1017 (14) - 77093643461234 [12:30:32]1041 (16) - 0000000000874949 [12:30:32]1040 (4) - 69218 [12:30:32]1012 (4) - 28.07.2024 06:08 [12:30:32]1206 (1) - 0 [12:30:32]OFD Sender: Remove packet 69218 [12:30:32]ProducePacketName [12:30:32]name=ofd_packets/00069218 [12:30:32]NVStorageDeleteData [12:30:32]Write to MH i2c: 01 00 00 F8 4C 44 [12:30:32]Write i2c OK [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 07 00 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 07 00 F8 4C 00 00 00 00 00 E7 0C 3E [12:30:32]RasterBufferAndPrint [12:30:32]line [12:30:32]line [12:30:32]line [12:30:32]line [12:30:32]line [12:30:32]written 0, free lines is 3310 [12:30:32]MH_Cut [12:30:32]Write to MH i2c: D1 01 00 FF 4C 01 1D [12:30:32]Write i2c OK [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: D1 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: D1 01 00 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: D1 01 00 FF 4C 00 1C [12:30:32]Write to MH i2c: 01 00 00 00 4D 4D [12:30:32]Write i2c OK [12:30:32]MH_I2C_Read... [12:30:33]OFD Sender: No OFD packet to send [12:30:33]*** Cut start [12:30:33]*** Partial cut [12:30:33]*** CUTSNS_PIN = 1 [12:30:33]*** CUTSNS_PIN = 0 [12:30:33]*** Brake cut motor [12:30:34]Read from MH i2c: 01 [12:30:34]MH_I2C_Read... [12:30:34]*** Stop cut motor [12:30:34]*** Cut end [12:30:34]Read from MH i2c: 01 07 00 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: 01 07 00 00 4D 00 00 00 00 00 FF 0F 62 [12:30:34]process_action close_receipt done [12:30:34]requested_data is exist [12:30:34]produce_requested_data [12:30:34]requested_item fm.sn is exist - process it [12:30:34]wFMCommunicate request_size=4 [12:30:34]MH_SAM_APDU [12:30:34]CAPDU: 80 11 00 00 [12:30:34]Write to MH i2c: E2 08 00 01 4D 80 11 00 00 00 00 00 00 C8 [12:30:34]Write i2c OK [12:30:34]MH_I2C_Read... [12:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:34]Read from MH i2c: E2 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 17 00 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 17 00 01 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 24 [12:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:30:34]wFMCommunicate OK [12:30:34]requested_item fd.num is exist - process it [12:30:34]SAM_PROTO_GetFieldsCounters [12:30:34]wFMCommunicate request_size=4 [12:30:34]MH_SAM_APDU [12:30:34]CAPDU: 80 13 00 00 [12:30:34]Write to MH i2c: E2 08 00 02 4D 80 13 00 00 00 00 00 00 CB [12:30:34]Write i2c OK [12:30:34]MH_I2C_Read... [12:30:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:34]Read from MH i2c: E2 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 62 00 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 62 00 02 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 62 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [12:30:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 62 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:34]wFMCommunicate OK [12:30:34]SAM_PROTO_GetFieldsCounters done [12:30:34]requested_item shift.num is exist - process it [12:30:34]requested_item shift.opened is exist - process it [12:30:34]req_shift_opened [12:30:34]FM_GetShiftState [12:30:34]SAM_PROTO_GetShiftState [12:30:34]wFMCommunicate request_size=4 [12:30:34]MH_SAM_APDU [12:30:34]CAPDU: 80 13 01 00 [12:30:34]Write to MH i2c: E2 08 00 03 4D 80 13 01 00 00 00 00 00 CD [12:30:34]Write i2c OK [12:30:34]MH_I2C_Read... [12:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:34]Read from MH i2c: E2 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 0E 00 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 0E 00 03 4D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 0A [12:30:34]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:30:34]wFMCommunicate OK [12:30:34]SAM_PROTO_GetShiftState done [12:30:34]FM_GetShiftState done [12:30:34]req_shift_opened done [12:30:34]requested_item shift.open_date is exist - process it [12:30:34]req_shift_open_date [12:30:34]req_shift_open_date done [12:30:34]produce_requested_data done [12:30:34]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69218,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:30:34]process_action_free close_receipt [12:30:34]json_value_free [12:30:34]json_value_free done [12:30:34]process_json_proto returns [12:30:34]Send response to host [12:30:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69218,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:30:34]free response buf [12:30:34]execute_script done [12:30:34]execute_script returns [12:30:34]free content buf [12:30:34]Sock 9.Close socket [12:30:34]Sock 9.Thread stoped [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:03]accept exits with 7 [12:33:03]New connection [12:33:03]New thread 3066641764 created [12:33:03]Thread 3066785124 joined [12:33:03]Waiting for new connection... [12:33:03] Sock 7.Parse request [12:33:03]Sock 7.Check first char [12:33:03]Sock 7.First char is OK [12:33:03]request: POST /json_proto HTTP/1.0 [12:33:03]Method: POST [12:33:03]URL: /json_proto [12:33:03]Method is POST - this is cgi request [12:33:03]url: /json_proto [12:33:03]query_string will be loaded in cgi processing [12:33:03]execute_cgi json_proto POST (null) [12:33:03]execute_cgi path=json_proto method=POST [12:33:03]POST find Content-Length [12:33:03]Host: 172.17.49.132:8080 [12:33:03]Content-Length: 984 [12:33:03]Content-Type: application/json [12:33:03] [12:33:03]POST finish read [12:33:03]Found Content-Length = 984 [12:33:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 22.460, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.46 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:03]execute_script... [12:33:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 22.460, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.46 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:03]POST & json_proto [12:33:03]process_json_proto [12:33:03]json parsed OK: [12:33:03]protocol is kg_v1.0 [12:33:03]action value=close_receipt [12:33:03]process_action close_receipt [12:33:03]cmd_close_receipt [12:33:03]MH_GetDate [12:33:03]Write to MH i2c: F0 00 00 04 4D 40 [12:33:03]Write i2c OK [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: F0 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: F0 09 00 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: F0 09 00 04 4D 00 88 3A A6 66 E7 4B C0 64 6D [12:33:03]GetLastDocTimeStamp 1722169839 [12:33:03]current date 1722169992 [12:33:03]FM_GetShiftState [12:33:03]SAM_PROTO_GetShiftState [12:33:03]wFMCommunicate request_size=4 [12:33:03]MH_SAM_APDU [12:33:03]CAPDU: 80 13 01 00 [12:33:03]Write to MH i2c: E2 08 00 05 4D 80 13 01 00 00 00 00 00 CF [12:33:03]Write i2c OK [12:33:03]MH_I2C_Read... [12:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:03]Read from MH i2c: E2 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 0E 00 [12:33:03]MH_I2C_Read... [12:33:03]Read from MH i2c: E2 0E 00 05 4D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 0C [12:33:03]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:33:03]wFMCommunicate OK [12:33:03]SAM_PROTO_GetShiftState done [12:33:03]FM_GetShiftState done [12:33:03]opened in 1722127251 [12:33:03]opened+sec_in_day 1722213651 [12:33:03]quantity*price = 150032 [12:33:03]sum+1 = 150034 [12:33:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 102 28.07.2024 12:33 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Дисконтная программа АИ-92 номер 125 сэкономлено 22.46 сом ФМ: 0000000000874949 ФД: 69219 ФПД: 110906288987690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123312&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69219&fm=110906288987690&tin=02508201610067®Number=0000000000092638&sum=150000 [12:33:04]StoreToDocumentArchive [12:33:04]shift 429 fd 69219 [12:33:04]save to /storage/0429/doc_00069219 [12:33:04]save last doc name /storage/0429/doc_00069219 to /storage/kkm_last_doc_name [12:33:04]save OK [12:33:04]Clear old archive folders... [12:33:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:04]tlvbuf is 00A5F020 [12:33:04]SAM_PROTO_ClearQueue [12:33:04]wFMCommunicate request_size=4 [12:33:04]MH_SAM_APDU [12:33:04]CAPDU: 80 09 00 00 [12:33:04]Write to MH i2c: E2 08 00 12 4D 80 09 00 00 00 00 00 00 D1 [12:33:04]Write i2c OK [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: E2 [12:33:04]MH_I2C_Read... [12:33:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:04]Read from MH i2c: E2 03 00 [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: E2 03 00 12 4D 00 90 00 D3 [12:33:04]RAPDU: 90 00 [12:33:04]wFMCommunicate OK [12:33:04]SAM_PROTO_ClearQueue done [12:33:04]KKMCreateOFDPacket [12:33:04]OFDProtocolAddRootSTLVToBuf [12:33:04]FM_MakeSignedData [12:33:04]FM_MakeSignedData [12:33:04]SAM_PROTO_SignData [12:33:04]wFMCommunicate request_size=4 [12:33:04]MH_SAM_APDU [12:33:04]CAPDU: 80 0D 01 02 [12:33:04]Write to MH i2c: E2 08 00 13 4D 80 0D 01 02 00 00 00 00 D9 [12:33:04]Write i2c OK [12:33:04]MH_I2C_Read... [12:33:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:04]Read from MH i2c: E2 [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: E2 03 00 [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: E2 03 00 13 4D 00 90 00 D4 [12:33:04]RAPDU: 90 00 [12:33:04]wFMCommunicate OK [12:33:04]wFMCommunicate request_size=255 [12:33:04]MH_SAM_APDU [12:33:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 88 3A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 63 0E 01 00 35 04 06 00 64 [12:33:04]Write to MH i2c: E2 02 01 14 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 88 3A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 63 0E 01 00 35 04 06 00 64 00 00 6F [12:33:04]Write i2c OK [12:33:04]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 14 4D 00 90 00 D5 [12:33:05]RAPDU: 90 00 [12:33:05]wFMCommunicate OK [12:33:05]wFMCommunicate request_size=10 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 0D 02 02 05 DE 61 F5 5E 2A [12:33:05]Write to MH i2c: E2 0D 00 15 4D 80 0D 02 02 05 00 DE 61 F5 5E 2A 00 00 A2 [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 15 4D 00 90 00 D6 [12:33:05]RAPDU: 90 00 [12:33:05]wFMCommunicate OK [12:33:05]wFMCommunicate request_size=4 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 0D 03 02 [12:33:05]Write to MH i2c: E2 08 00 16 4D 80 0D 03 02 00 00 00 00 DE [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 0B 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 0B 00 16 4D 00 B7 2C 4E 87 16 3E 19 56 90 00 5A [12:33:05]RAPDU: B7 2C 4E 87 16 3E 19 56 90 00 [12:33:05]wFMCommunicate OK [12:33:05]SAM_PROTO_SignData done [12:33:05]FM_MakeSignedData done [12:33:05]CreateOFDProtocolMessage [12:33:05]wFMCommunicate request_size=4 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 11 00 00 [12:33:05]Write to MH i2c: E2 08 00 17 4D 80 11 00 00 00 00 00 00 DE [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 17 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 17 00 17 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3A [12:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:33:05]wFMCommunicate OK [12:33:05]CreateOFDProtocolMessage done [12:33:05]OFDSenderStorePacket 69219 [12:33:05]StoreOFDPacket docnum=69219 [12:33:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 57 A2 07 01 05 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 88 3A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 63 0E 01 00 35 04 06 00 64 DE 61 F5 5E 2A B7 2C 4E 87 16 3E 19 56 [12:33:05]CheckFolder [12:33:05]dirname=/storage/ofd_packets [12:33:05]CheckFolder done [12:33:05]ProducePacketName [12:33:05]name=ofd_packets/00069219 [12:33:05]NVStorageSaveData ofd_packets/00069219 [12:33:05]File name is /storage/ofd_packets/00069219 [12:33:05]Write 301 bytes [12:33:05]NVStorageSaveData done [12:33:05]OFDSenderStorePacket done [12:33:05]KKMCreateOFDPacket done [12:33:05]NVStorageSaveData kkm_last_timestamp [12:33:05]File name is /storage/kkm_last_timestamp [12:33:05]Write 4 bytes [12:33:05]NVStorageSaveData done [12:33:05]ExternCall_PrintAddStr [12:33:05]wPrintStart [12:33:05]Write to MH i2c: 01 00 00 18 4D 65 [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: 01 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: 01 07 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: 01 07 00 18 4D 00 00 00 00 00 FF 0F 7A [12:33:05]RasterBufferAndPrint [12:33:05]line Счет N : (1)871882 [12:33:05]line ИНН: 02508201610067 [12:33:05]line Контрольно-Кассовый Чек [12:33:05]line ПРОДАЖА [12:33:05]line ТРК (МРК, ГНК) : 52 [12:33:05]line Товар: 2710124130 [12:33:05]line Аи-92-К-5 [12:33:05]line 22.460 * 66.80 [12:33:05]line = 1500.33 [12:33:05]line НДС 12% НСП 1% [12:33:05]line > о реализуемом товаре [12:33:05]line ОКРУГЛЕНИЕ: -0.33 [12:33:05]line ИТОГО: 1500.00 [12:33:05]line Внесено: 1500.00 [12:33:05]line СДАЧА: 0.00 [12:33:05]line НСП 1% : 13.28 [12:33:05]line НДС 12% : 159.33 [12:33:05]line Наличными: 1500.00 [12:33:05]line Безнал.: 0.00 [12:33:05]line Место: АЗС № 125 "Партнер Нефть" [12:33:05]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:33:05]line СНО: Общий режим [12:33:05]line Чек 102 28.07.2024 12:33 [12:33:05]line Смена: 429 ФФД: 1.0 [12:33:05]line ЗНМ: 0300000049 [12:33:05]line РНМ: 0000000000092638 [12:33:05]line Версия ККМ: 001 [12:33:05]line [12:33:05]line Дисконтная программа [12:33:05]line АИ-92 [12:33:05]line номер 125 [12:33:05]line сэкономлено 22.46 сом [12:33:05]line ФМ: 0000000000874949 [12:33:05]line ФД: 69219 [12:33:05]line ФПД: 110906288987690 [12:33:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123312&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69219&fm=110906288987690&tin=02508201610067®Number=0000000000092638&sum=150000 [12:33:05]OFD Sender: Processing packet 69219 [packets to send 19, broken 18] [12:33:05]ProducePacketName [12:33:05]name=ofd_packets/00069219 [12:33:05]OFD Sender: To server: pG, [12:33:05]CommunicateWithHost lk.salyk.kg:30040 [12:33:05]ConnectInit lk.salyk.kg [12:33:05]written 0, free lines is 4095 [12:33:05]Connected sock=10 [12:33:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 57 A2 07 01 05 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 88 3A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 63 0E 01 00 35 04 06 00 64 DE 61 F5 5E 2A B7 2C 4E 87 16 3E 19 56 [12:33:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 62 4C 47 00 83 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 63 0E 01 00 F4 03 04 00 F8 E0 A5 66 B6 04 01 00 00 1F 20 63 B0 0F A8 AF 45 [12:33:05]CommunicateWithHost err = 0 [12:33:05]CheckOFDResponse [12:33:05]1017 (14) - 77093643461234 [12:33:05]1041 (16) - 0000000000874949 [12:33:05]1040 (4) - 69219 [12:33:05]1012 (4) - 28.07.2024 06:11 [12:33:05]1206 (1) - 0 [12:33:05]OFD Sender: Remove packet 69219 [12:33:05]ProducePacketName [12:33:05]name=ofd_packets/00069219 [12:33:05]NVStorageDeleteData [12:33:06]Write to MH i2c: 01 00 00 48 4D 95 [12:33:06]Write i2c OK [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: 01 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: 01 07 00 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: 01 07 00 48 4D 00 00 00 00 00 A7 0C 4F [12:33:06]RasterBufferAndPrint [12:33:06]line [12:33:06]line [12:33:06]line [12:33:06]line [12:33:06]line [12:33:06]written 0, free lines is 3245 [12:33:06]MH_Cut [12:33:06]Write to MH i2c: D1 01 00 4F 4D 01 6E [12:33:06]Write i2c OK [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: D1 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: D1 01 00 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: D1 01 00 4F 4D 00 6D [12:33:06]Write to MH i2c: 01 00 00 50 4D 9D [12:33:06]Write i2c OK [12:33:06]MH_I2C_Read... [12:33:06]OFD Sender: No OFD packet to send [12:33:06]*** Cut start [12:33:06]*** Partial cut [12:33:06]*** CUTSNS_PIN = 1 [12:33:06]*** CUTSNS_PIN = 0 [12:33:06]*** Brake cut motor [12:33:07]Read from MH i2c: 01 [12:33:07]MH_I2C_Read... [12:33:07]*** Stop cut motor [12:33:07]*** Cut end [12:33:07]Read from MH i2c: 01 07 00 [12:33:07]MH_I2C_Read... [12:33:07]Read from MH i2c: 01 07 00 50 4D 00 00 00 00 00 FF 0F B2 [12:33:07]process_action close_receipt done [12:33:07]requested_data is exist [12:33:07]produce_requested_data [12:33:07]requested_item fm.sn is exist - process it [12:33:07]wFMCommunicate request_size=4 [12:33:07]MH_SAM_APDU [12:33:07]CAPDU: 80 11 00 00 [12:33:07]Write to MH i2c: E2 08 00 51 4D 80 11 00 00 00 00 00 00 18 [12:33:07]Write i2c OK [12:33:07]MH_I2C_Read... [12:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:07]Read from MH i2c: E2 [12:33:07]MH_I2C_Read... [12:33:07]Read from MH i2c: E2 17 00 [12:33:07]MH_I2C_Read... [12:33:07]Read from MH i2c: E2 17 00 51 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 74 [12:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:33:07]wFMCommunicate OK [12:33:07]requested_item fd.num is exist - process it [12:33:07]SAM_PROTO_GetFieldsCounters [12:33:07]wFMCommunicate request_size=4 [12:33:07]MH_SAM_APDU [12:33:07]CAPDU: 80 13 00 00 [12:33:07]Write to MH i2c: E2 08 00 52 4D 80 13 00 00 00 00 00 00 1B [12:33:07]Write i2c OK [12:33:07]MH_I2C_Read... [12:33:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:07]Read from MH i2c: E2 [12:33:07]MH_I2C_Read... [12:33:07]Read from MH i2c: E2 62 00 [12:33:07]MH_I2C_Read... [12:33:07]Read from MH i2c: E2 62 00 52 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 63 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [12:33:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 63 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:07]wFMCommunicate OK [12:33:07]SAM_PROTO_GetFieldsCounters done [12:33:07]requested_item shift.num is exist - process it [12:33:07]requested_item shift.opened is exist - process it [12:33:07]req_shift_opened [12:33:07]FM_GetShiftState [12:33:07]SAM_PROTO_GetShiftState [12:33:07]wFMCommunicate request_size=4 [12:33:07]MH_SAM_APDU [12:33:07]CAPDU: 80 13 01 00 [12:33:07]Write to MH i2c: E2 08 00 53 4D 80 13 01 00 00 00 00 00 1D [12:33:07]Write i2c OK [12:33:07]MH_I2C_Read... [12:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:07]Read from MH i2c: E2 [12:33:07]MH_I2C_Read... [12:33:07]Read from MH i2c: E2 0E 00 [12:33:07]MH_I2C_Read... [12:33:07]Read from MH i2c: E2 0E 00 53 4D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 5A [12:33:07]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:33:07]wFMCommunicate OK [12:33:07]SAM_PROTO_GetShiftState done [12:33:07]FM_GetShiftState done [12:33:07]req_shift_opened done [12:33:07]requested_item shift.open_date is exist - process it [12:33:07]req_shift_open_date [12:33:07]req_shift_open_date done [12:33:07]produce_requested_data done [12:33:07]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69219,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:33:07]process_action_free close_receipt [12:33:07]json_value_free [12:33:07]json_value_free done [12:33:07]process_json_proto returns [12:33:07]Send response to host [12:33:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69219,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:33:07]free response buf [12:33:07]execute_script done [12:33:07]execute_script returns [12:33:07]free content buf [12:33:07]Sock 7.Close socket [12:33:07]Sock 7.Thread stoped [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:05]accept exits with 9 [12:34:05]New connection [12:34:05]New thread 3066785124 created [12:34:05]Thread 3066641764 joined [12:34:05]Waiting for new connection... [12:34:05] Sock 9.Parse request [12:34:05]Sock 9.Check first char [12:34:05]Sock 9.First char is OK [12:34:05]request: POST /json_proto HTTP/1.0 [12:34:05]Method: POST [12:34:05]URL: /json_proto [12:34:05]Method is POST - this is cgi request [12:34:05]url: /json_proto [12:34:05]query_string will be loaded in cgi processing [12:34:05]execute_cgi json_proto POST (null) [12:34:05]execute_cgi path=json_proto method=POST [12:34:05]POST find Content-Length [12:34:05]Host: 172.17.49.132:8080 [12:34:05]Content-Length: 677 [12:34:05]Content-Type: application/json [12:34:05] [12:34:05]POST finish read [12:34:05]Found Content-Length = 677 [12:34:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:05]execute_script... [12:34:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:05]POST & json_proto [12:34:05]process_json_proto [12:34:05]json parsed OK: [12:34:05]protocol is kg_v1.0 [12:34:05]action value=close_receipt [12:34:05]process_action close_receipt [12:34:05]cmd_close_receipt [12:34:05]MH_GetDate [12:34:05]Write to MH i2c: F0 00 00 54 4D 90 [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: F0 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: F0 09 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: F0 09 00 54 4D 00 C6 3A A6 66 E7 4B C0 64 FB [12:34:05]GetLastDocTimeStamp 1722169992 [12:34:05]current date 1722170054 [12:34:05]FM_GetShiftState [12:34:05]SAM_PROTO_GetShiftState [12:34:05]wFMCommunicate request_size=4 [12:34:05]MH_SAM_APDU [12:34:05]CAPDU: 80 13 01 00 [12:34:05]Write to MH i2c: E2 08 00 55 4D 80 13 01 00 00 00 00 00 1F [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:05]Read from MH i2c: E2 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 0E 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 0E 00 55 4D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 5C [12:34:05]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:34:05]wFMCommunicate OK [12:34:05]SAM_PROTO_GetShiftState done [12:34:05]FM_GetShiftState done [12:34:05]opened in 1722127251 [12:34:05]opened+sec_in_day 1722213651 [12:34:05]quantity*price = 50036 [12:34:05]sum+1 = 50037 [12:34:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 103 28.07.2024 12:34 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69220 ФПД: 46236901110153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123414&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69220&fm=46236901110153&tin=02508201610067®Number=0000000000092638&sum=50000 [12:34:06]StoreToDocumentArchive [12:34:06]shift 429 fd 69220 [12:34:06]save to /storage/0429/doc_00069220 [12:34:06]save last doc name /storage/0429/doc_00069220 to /storage/kkm_last_doc_name [12:34:06]save OK [12:34:06]Clear old archive folders... [12:34:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:06]tlvbuf is 00A7F230 [12:34:06]SAM_PROTO_ClearQueue [12:34:06]wFMCommunicate request_size=4 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 09 00 00 [12:34:06]Write to MH i2c: E2 08 00 62 4D 80 09 00 00 00 00 00 00 21 [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 62 4D 00 90 00 23 [12:34:06]RAPDU: 90 00 [12:34:06]wFMCommunicate OK [12:34:06]SAM_PROTO_ClearQueue done [12:34:06]KKMCreateOFDPacket [12:34:06]OFDProtocolAddRootSTLVToBuf [12:34:06]FM_MakeSignedData [12:34:06]FM_MakeSignedData [12:34:06]SAM_PROTO_SignData [12:34:06]wFMCommunicate request_size=4 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 0D 01 02 [12:34:06]Write to MH i2c: E2 08 00 63 4D 80 0D 01 02 00 00 00 00 29 [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 63 4D 00 90 00 24 [12:34:06]RAPDU: 90 00 [12:34:06]wFMCommunicate OK [12:34:06]wFMCommunicate request_size=255 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C6 3A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 64 0E 01 00 35 04 06 00 2A [12:34:06]Write to MH i2c: E2 02 01 64 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C6 3A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 64 0E 01 00 35 04 06 00 2A 00 00 72 [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:07]Read from MH i2c: E2 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 03 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 03 00 64 4D 00 90 00 25 [12:34:07]RAPDU: 90 00 [12:34:07]wFMCommunicate OK [12:34:07]wFMCommunicate request_size=10 [12:34:07]MH_SAM_APDU [12:34:07]CAPDU: 80 0D 02 02 05 0D 5E 10 F1 89 [12:34:07]Write to MH i2c: E2 0D 00 65 4D 80 0D 02 02 05 00 0D 5E 10 F1 89 00 00 2B [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:07]Read from MH i2c: E2 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 03 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 03 00 65 4D 00 90 00 26 [12:34:07]RAPDU: 90 00 [12:34:07]wFMCommunicate OK [12:34:07]wFMCommunicate request_size=4 [12:34:07]MH_SAM_APDU [12:34:07]CAPDU: 80 0D 03 02 [12:34:07]Write to MH i2c: E2 08 00 66 4D 80 0D 03 02 00 00 00 00 2E [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:07]Read from MH i2c: E2 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 0B 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 0B 00 66 4D 00 10 37 BB 58 3A A4 17 53 90 00 D1 [12:34:07]RAPDU: 10 37 BB 58 3A A4 17 53 90 00 [12:34:07]wFMCommunicate OK [12:34:07]SAM_PROTO_SignData done [12:34:07]FM_MakeSignedData done [12:34:07]CreateOFDProtocolMessage [12:34:07]wFMCommunicate request_size=4 [12:34:07]MH_SAM_APDU [12:34:07]CAPDU: 80 11 00 00 [12:34:07]Write to MH i2c: E2 08 00 67 4D 80 11 00 00 00 00 00 00 2E [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:07]Read from MH i2c: E2 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 17 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 17 00 67 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 8A [12:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:34:07]wFMCommunicate OK [12:34:07]CreateOFDProtocolMessage done [12:34:07]OFDSenderStorePacket 69220 [12:34:07]StoreOFDPacket docnum=69220 [12:34:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 14 FC 07 01 D4 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C6 3A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 64 0E 01 00 35 04 06 00 2A 0D 5E 10 F1 89 10 37 BB 58 3A A4 17 53 [12:34:07]CheckFolder [12:34:07]dirname=/storage/ofd_packets [12:34:07]CheckFolder done [12:34:07]ProducePacketName [12:34:07]name=ofd_packets/00069220 [12:34:07]NVStorageSaveData ofd_packets/00069220 [12:34:07]File name is /storage/ofd_packets/00069220 [12:34:07]Write 301 bytes [12:34:07]NVStorageSaveData done [12:34:07]OFDSenderStorePacket done [12:34:07]KKMCreateOFDPacket done [12:34:07]NVStorageSaveData kkm_last_timestamp [12:34:07]File name is /storage/kkm_last_timestamp [12:34:07]Write 4 bytes [12:34:07]NVStorageSaveData done [12:34:07]ExternCall_PrintAddStr [12:34:07]wPrintStart [12:34:07]Write to MH i2c: 01 00 00 68 4D B5 [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: 01 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: 01 07 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: 01 07 00 68 4D 00 00 00 00 00 FF 0F CA [12:34:07]RasterBufferAndPrint [12:34:07]line Счет N : (1)871883 [12:34:07]line ИНН: 02508201610067 [12:34:07]line Контрольно-Кассовый Чек [12:34:07]line ПРОДАЖА [12:34:07]line ТРК (МРК, ГНК) : 62 [12:34:07]line Товар: 2710124130 [12:34:07]line Аи-92-К-5 [12:34:07]line 7.380 * 67.80 [12:34:07]line = 500.36 [12:34:07]line НДС 12% НСП 1% [12:34:07]line > о реализуемом товаре [12:34:07]line ОКРУГЛЕНИЕ: -0.36 [12:34:07]line ИТОГО: 500.00 [12:34:07]line Внесено: 500.00 [12:34:07]line СДАЧА: 0.00 [12:34:07]line НСП 1% : 4.43 [12:34:07]line НДС 12% : 53.14 [12:34:07]line Наличными: 500.00 [12:34:07]line Безнал.: 0.00 [12:34:07]line Место: АЗС № 125 "Партнер Нефть" [12:34:07]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:34:07]line СНО: Общий режим [12:34:07]line Чек 103 28.07.2024 12:34 [12:34:07]line Смена: 429 ФФД: 1.0 [12:34:07]line ЗНМ: 0300000049 [12:34:07]line РНМ: 0000000000092638 [12:34:07]line Версия ККМ: 001 [12:34:07]line ФМ: 0000000000874949 [12:34:07]line ФД: 69220 [12:34:07]line ФПД: 46236901110153 [12:34:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123414&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69220&fm=46236901110153&tin=02508201610067®Number=0000000000092638&sum=50000 [12:34:07]written 0, free lines is 4095 [12:34:07]OFD Sender: Processing packet 69220 [packets to send 19, broken 18] [12:34:07]ProducePacketName [12:34:07]name=ofd_packets/00069220 [12:34:07]OFD Sender: To server: pG, [12:34:07]CommunicateWithHost lk.salyk.kg:30040 [12:34:07]ConnectInit lk.salyk.kg [12:34:07]Connected sock=10 [12:34: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 39 34 39 0F 01 00 00 14 FC 07 01 D4 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C6 3A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 64 0E 01 00 35 04 06 00 2A 0D 5E 10 F1 89 10 37 BB 58 3A A4 17 53 [12:34:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 E2 1E 47 00 9A 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 64 0E 01 00 F4 03 04 00 36 E1 A5 66 B6 04 01 00 00 D8 C0 23 EC A7 6D F6 F8 [12:34:07]CommunicateWithHost err = 0 [12:34:07]CheckOFDResponse [12:34:07]1017 (14) - 77093643461234 [12:34:07]1041 (16) - 0000000000874949 [12:34:07]1040 (4) - 69220 [12:34:07]1012 (4) - 28.07.2024 06:12 [12:34:07]1206 (1) - 0 [12:34:07]OFD Sender: Remove packet 69220 [12:34:07]ProducePacketName [12:34:07]name=ofd_packets/00069220 [12:34:07]NVStorageDeleteData [12:34:07]Write to MH i2c: 01 00 00 93 4D E0 [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: 01 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: 01 07 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: 01 07 00 93 4D 00 00 00 00 00 E8 0C DB [12:34:07]RasterBufferAndPrint [12:34:07]line [12:34:07]line [12:34:07]line [12:34:07]line [12:34:07]line [12:34:07]written 0, free lines is 3310 [12:34:07]MH_Cut [12:34:07]Write to MH i2c: D1 01 00 9A 4D 01 B9 [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: D1 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: D1 01 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: D1 01 00 9A 4D 00 B8 [12:34:07]Write to MH i2c: 01 00 00 9B 4D E8 [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:08]OFD Sender: No OFD packet to send [12:34:08]*** Cut start [12:34:08]*** Partial cut [12:34:08]*** CUTSNS_PIN = 1 [12:34:08]*** CUTSNS_PIN = 0 [12:34:08]*** Brake cut motor [12:34:09]Read from MH i2c: 01 [12:34:09]MH_I2C_Read... [12:34:09]*** Stop cut motor [12:34:09]*** Cut end [12:34:09]Read from MH i2c: 01 07 00 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: 01 07 00 9B 4D 00 00 00 00 00 FF 0F FD [12:34:09]process_action close_receipt done [12:34:09]requested_data is exist [12:34:09]produce_requested_data [12:34:09]requested_item fm.sn is exist - process it [12:34:09]wFMCommunicate request_size=4 [12:34:09]MH_SAM_APDU [12:34:09]CAPDU: 80 11 00 00 [12:34:09]Write to MH i2c: E2 08 00 9C 4D 80 11 00 00 00 00 00 00 63 [12:34:09]Write i2c OK [12:34:09]MH_I2C_Read... [12:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:09]Read from MH i2c: E2 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: E2 17 00 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: E2 17 00 9C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 BF [12:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:34:09]wFMCommunicate OK [12:34:09]requested_item fd.num is exist - process it [12:34:09]SAM_PROTO_GetFieldsCounters [12:34:09]wFMCommunicate request_size=4 [12:34:09]MH_SAM_APDU [12:34:09]CAPDU: 80 13 00 00 [12:34:09]Write to MH i2c: E2 08 00 9D 4D 80 13 00 00 00 00 00 00 66 [12:34:09]Write i2c OK [12:34:09]MH_I2C_Read... [12:34:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:09]Read from MH i2c: E2 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: E2 62 00 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: E2 62 00 9D 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 64 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [12:34: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 64 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:09]wFMCommunicate OK [12:34:09]SAM_PROTO_GetFieldsCounters done [12:34:09]requested_item shift.num is exist - process it [12:34:09]requested_item shift.opened is exist - process it [12:34:09]req_shift_opened [12:34:09]FM_GetShiftState [12:34:09]SAM_PROTO_GetShiftState [12:34:09]wFMCommunicate request_size=4 [12:34:09]MH_SAM_APDU [12:34:09]CAPDU: 80 13 01 00 [12:34:09]Write to MH i2c: E2 08 00 9E 4D 80 13 01 00 00 00 00 00 68 [12:34:09]Write i2c OK [12:34:09]MH_I2C_Read... [12:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:09]Read from MH i2c: E2 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: E2 0E 00 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: E2 0E 00 9E 4D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A5 [12:34:09]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:34:09]wFMCommunicate OK [12:34:09]SAM_PROTO_GetShiftState done [12:34:09]FM_GetShiftState done [12:34:09]req_shift_opened done [12:34:09]requested_item shift.open_date is exist - process it [12:34:09]req_shift_open_date [12:34:09]req_shift_open_date done [12:34:09]produce_requested_data done [12:34:09]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69220,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:34:09]process_action_free close_receipt [12:34:09]json_value_free [12:34:09]json_value_free done [12:34:09]process_json_proto returns [12:34:09]Send response to host [12:34:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69220,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:34:09]free response buf [12:34:09]execute_script done [12:34:09]execute_script returns [12:34:09]free content buf [12:34:09]Sock 9.Close socket [12:34:09]Sock 9.Thread stoped [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:45]accept exits with 7 [12:34:45]New connection [12:34:45]New thread 3066641764 created [12:34:45]Thread 3066785124 joined [12:34:45]Waiting for new connection... [12:34:45] Sock 7.Parse request [12:34:45]Sock 7.Check first char [12:34:45]Sock 7.First char is OK [12:34:45]request: POST /json_proto HTTP/1.0 [12:34:45]Method: POST [12:34:45]URL: /json_proto [12:34:45]Method is POST - this is cgi request [12:34:45]url: /json_proto [12:34:45]query_string will be loaded in cgi processing [12:34:45]execute_cgi json_proto POST (null) [12:34:45]execute_cgi path=json_proto method=POST [12:34:45]POST find Content-Length [12:34:45]Host: 172.17.49.132:8080 [12:34:45]Content-Length: 623 [12:34:45]Content-Type: application/json [12:34:45] [12:34:45]POST finish read [12:34:45]Found Content-Length = 623 [12:34:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136569", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:45]execute_script... [12:34: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)136569", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:45]POST & json_proto [12:34:45]process_json_proto [12:34:45]json parsed OK: [12:34:45]protocol is kg_v1.0 [12:34:45]action value=close_receipt [12:34:45]process_action close_receipt [12:34:45]cmd_close_receipt [12:34:45]MH_GetDate [12:34:45]Write to MH i2c: F0 00 00 9F 4D DB [12:34:45]Write i2c OK [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: F0 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: F0 09 00 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: F0 09 00 9F 4D 00 EE 3A A6 66 E7 4B C0 64 6E [12:34:45]GetLastDocTimeStamp 1722170054 [12:34:45]current date 1722170094 [12:34:45]FM_GetShiftState [12:34:45]SAM_PROTO_GetShiftState [12:34:45]wFMCommunicate request_size=4 [12:34:45]MH_SAM_APDU [12:34:45]CAPDU: 80 13 01 00 [12:34:45]Write to MH i2c: E2 08 00 A0 4D 80 13 01 00 00 00 00 00 6A [12:34:45]Write i2c OK [12:34:45]MH_I2C_Read... [12:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:45]Read from MH i2c: E2 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 0E 00 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 0E 00 A0 4D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A7 [12:34:45]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:34:45]wFMCommunicate OK [12:34:45]SAM_PROTO_GetShiftState done [12:34:45]FM_GetShiftState done [12:34:45]opened in 1722127251 [12:34:45]opened+sec_in_day 1722213651 [12:34:45]quantity*price = 14000 [12:34:45]sum+1 = 14001 [12:34:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 104 28.07.2024 12:34 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69221 ФПД: 93448265260912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123454&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69221&fm=93448265260912&tin=02508201610067®Number=0000000000092638&sum=14000 0 [12:34:46]StoreToDocumentArchive [12:34:46]shift 429 fd 69221 [12:34:46]save to /storage/0429/doc_00069221 [12:34:46]save last doc name /storage/0429/doc_00069221 to /storage/kkm_last_doc_name [12:34:46]save OK [12:34:46]Clear old archive folders... [12:34:46]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:34:46]tlvbuf is 00A6AF50 [12:34:46]SAM_PROTO_ClearQueue [12:34:46]wFMCommunicate request_size=4 [12:34:46]MH_SAM_APDU [12:34:46]CAPDU: 80 09 00 00 [12:34:46]Write to MH i2c: E2 08 00 AD 4D 80 09 00 00 00 00 00 00 6C [12:34:46]Write i2c OK [12:34:46]MH_I2C_Read... [12:34:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:46]Read from MH i2c: E2 [12:34:46]MH_I2C_Read... [12:34:46]Read from MH i2c: E2 03 00 [12:34:46]MH_I2C_Read... [12:34:46]Read from MH i2c: E2 03 00 AD 4D 00 90 00 6E [12:34:46]RAPDU: 90 00 [12:34:46]wFMCommunicate OK [12:34:46]SAM_PROTO_ClearQueue done [12:34:46]KKMCreateOFDPacket [12:34:46]OFDProtocolAddRootSTLVToBuf [12:34:46]FM_MakeSignedData [12:34:46]FM_MakeSignedData [12:34:46]SAM_PROTO_SignData [12:34:46]wFMCommunicate request_size=4 [12:34:46]MH_SAM_APDU [12:34:46]CAPDU: 80 0D 01 02 [12:34:46]Write to MH i2c: E2 08 00 AE 4D 80 0D 01 02 00 00 00 00 74 [12:34:46]Write i2c OK [12:34:46]MH_I2C_Read... [12:34:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:46]Read from MH i2c: E2 [12:34:46]MH_I2C_Read... [12:34:46]Read from MH i2c: E2 03 00 [12:34:46]MH_I2C_Read... [12:34:46]Read from MH i2c: E2 03 00 AE 4D 00 90 00 6F [12:34:46]RAPDU: 90 00 [12:34:46]wFMCommunicate OK [12:34:46]wFMCommunicate request_size=255 [12:34:46]MH_SAM_APDU [12:34:46]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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 EE 3A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 [12:34:46]Write to MH i2c: E2 02 01 AF 4D 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 EE 3A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 00 00 51 [12:34:46]Write i2c OK [12:34:46]MH_I2C_Read... [12:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:47]Read from MH i2c: E2 [12:34:47]MH_I2C_Read... [12:34:47]Read from MH i2c: E2 03 00 [12:34:47]MH_I2C_Read... [12:34:47]Read from MH i2c: E2 03 00 AF 4D 00 90 00 70 [12:34:47]RAPDU: 90 00 [12:34:47]wFMCommunicate OK [12:34:47]wFMCommunicate request_size=34 [12:34:47]MH_SAM_APDU [12:34:47]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 65 0E 01 00 35 04 06 00 54 FD 9E A7 DF 70 [12:34:47]Write to MH i2c: E2 25 00 B0 4D 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 65 0E 01 00 35 04 06 00 54 FD 9E A7 DF 70 00 00 9A [12:34:47]Write i2c OK [12:34:47]MH_I2C_Read... [12:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:47]Read from MH i2c: E2 [12:34:47]MH_I2C_Read... [12:34:47]Read from MH i2c: E2 03 00 [12:34:47]MH_I2C_Read... [12:34:47]Read from MH i2c: E2 03 00 B0 4D 00 90 00 71 [12:34:47]RAPDU: 90 00 [12:34:47]wFMCommunicate OK [12:34:47]wFMCommunicate request_size=4 [12:34:47]MH_SAM_APDU [12:34:47]CAPDU: 80 0D 03 02 [12:34:47]Write to MH i2c: E2 08 00 B1 4D 80 0D 03 02 00 00 00 00 79 [12:34:47]Write i2c OK [12:34:47]MH_I2C_Read... [12:34:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:47]Read from MH i2c: E2 [12:34:47]MH_I2C_Read... [12:34:47]Read from MH i2c: E2 0B 00 [12:34:47]MH_I2C_Read... [12:34:47]Read from MH i2c: E2 0B 00 B1 4D 00 0C F2 09 10 9E 32 65 91 90 00 57 [12:34:47]RAPDU: 0C F2 09 10 9E 32 65 91 90 00 [12:34:47]wFMCommunicate OK [12:34:47]SAM_PROTO_SignData done [12:34:47]FM_MakeSignedData done [12:34:47]CreateOFDProtocolMessage [12:34:47]wFMCommunicate request_size=4 [12:34:47]MH_SAM_APDU [12:34:47]CAPDU: 80 11 00 00 [12:34:47]Write to MH i2c: E2 08 00 B2 4D 80 11 00 00 00 00 00 00 79 [12:34:47]Write i2c OK [12:34:47]MH_I2C_Read... [12:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:47]Read from MH i2c: E2 [12:34:47]MH_I2C_Read... [12:34:47]Read from MH i2c: E2 17 00 [12:34:47]MH_I2C_Read... [12:34:47]Read from MH i2c: E2 17 00 B2 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D5 [12:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:34:47]wFMCommunicate OK [12:34:47]CreateOFDProtocolMessage done [12:34:47]OFDSenderStorePacket 69221 [12:34:47]StoreOFDPacket docnum=69221 [12:34:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 BE 0A 1F 01 9C 68 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 EE 3A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 65 0E 01 00 35 04 06 00 54 FD 9E A7 DF 70 0C F2 09 10 9E 32 65 91 [12:34:47]CheckFolder [12:34:47]dirname=/storage/ofd_packets [12:34:47]CheckFolder done [12:34:47]ProducePacketName [12:34:47]name=ofd_packets/00069221 [12:34:47]NVStorageSaveData ofd_packets/00069221 [12:34:47]File name is /storage/ofd_packets/00069221 [12:34:47]Write 325 bytes [12:34:47]NVStorageSaveData done [12:34:47]OFDSenderStorePacket done [12:34:47]KKMCreateOFDPacket done [12:34:47]NVStorageSaveData kkm_last_timestamp [12:34:47]File name is /storage/kkm_last_timestamp [12:34:47]Write 4 bytes [12:34:47]NVStorageSaveData done [12:34:47]ExternCall_PrintAddStr [12:34:47]wPrintStart [12:34:47]Write to MH i2c: 01 00 00 B3 4D 00 [12:34:47]Write i2c OK [12:34:47]MH_I2C_Read... [12:34:47]Read from MH i2c: 01 [12:34:47]MH_I2C_Read... [12:34:47]Read from MH i2c: 01 07 00 [12:34:47]MH_I2C_Read... [12:34:47]Read from MH i2c: 01 07 00 B3 4D 00 00 00 00 00 FF 0F 15 [12:34:47]RasterBufferAndPrint [12:34:47]line Счет N : (3)136569 [12:34:47]line ИНН: 02508201610067 [12:34:47]line Контрольно-Кассовый Чек [12:34:47]line ПРОДАЖА [12:34:47]line Товар: 48743587 [12:34:47]line Сигареты Winston XStyle Silver [12:34:47]line 1.000 * 140.00 [12:34:47]line = 140.00 [12:34:47]line НДС 12% НСП 1% [12:34:47]line > о реализуемом товаре [12:34:47]line ИТОГО: 140.00 [12:34:47]line НСП 1% : 1.24 [12:34:47]line НДС 12% : 14.87 [12:34:47]line Наличными: 140.00 [12:34:47]line Безнал.: 0.00 [12:34:47]line Место: АЗС № 125 "Партнер Нефть" [12:34:47]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:34:47]line СНО: Общий режим [12:34:47]line Чек 104 28.07.2024 12:34 [12:34:47]line Смена: 429 ФФД: 1.0 [12:34:47]line ЗНМ: 0300000049 [12:34:47]line РНМ: 0000000000092638 [12:34:47]line Версия ККМ: 001 [12:34:47]line ФМ: 0000000000874949 [12:34:47]line ФД: 69221 [12:34:47]line ФПД: 93448265260912 [12:34:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123454&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69221&fm=93448265260912&tin=02508201610067®Number=0000000000092638&sum=14000 [12:34:47]line 0 [12:34:47]OFD Sender: Processing packet 69221 [packets to send 19, broken 18] [12:34:47]ProducePacketName [12:34:47]name=ofd_packets/00069221 [12:34:47]OFD Sender: To server: pG, [12:34:47]CommunicateWithHost lk.salyk.kg:30040 [12:34:47]ConnectInit lk.salyk.kg [12:34:47]written 0, free lines is 4095 [12:34:47]Connected sock=10 [12:34: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 39 34 39 27 01 00 00 BE 0A 1F 01 9C 68 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 EE 3A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 65 0E 01 00 35 04 06 00 54 FD 9E A7 DF 70 0C F2 09 10 9E 32 65 91 [12:34:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 60 DB 47 00 BD 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 65 0E 01 00 F4 03 04 00 5E E1 A5 66 B6 04 01 00 00 08 BD 13 2C 43 3D 5E 6C [12:34:47]CommunicateWithHost err = 0 [12:34:47]CheckOFDResponse [12:34:47]1017 (14) - 77093643461234 [12:34:47]1041 (16) - 0000000000874949 [12:34:47]1040 (4) - 69221 [12:34:47]1012 (4) - 28.07.2024 06:12 [12:34:47]1206 (1) - 0 [12:34:47]OFD Sender: Remove packet 69221 [12:34:47]ProducePacketName [12:34:47]name=ofd_packets/00069221 [12:34:47]NVStorageDeleteData [12:34:48]Write to MH i2c: 01 00 00 DC 4D 29 [12:34:48]Write i2c OK [12:34:48]MH_I2C_Read... [12:34:48]Read from MH i2c: 01 [12:34:48]MH_I2C_Read... [12:34:48]Read from MH i2c: 01 07 00 [12:34:48]MH_I2C_Read... [12:34:48]Read from MH i2c: 01 07 00 DC 4D 00 00 00 00 00 01 0D 3E [12:34:48]RasterBufferAndPrint [12:34:48]line [12:34:48]line [12:34:48]line [12:34:48]line [12:34:48]line [12:34:48]written 0, free lines is 3338 [12:34:48]MH_Cut [12:34:48]Write to MH i2c: D1 01 00 E3 4D 01 02 [12:34:48]Write i2c OK [12:34:48]MH_I2C_Read... [12:34:48]Read from MH i2c: D1 [12:34:48]MH_I2C_Read... [12:34:48]Read from MH i2c: D1 01 00 [12:34:48]MH_I2C_Read... [12:34:48]Read from MH i2c: D1 01 00 E3 4D 00 01 [12:34:48]Write to MH i2c: 01 00 00 E4 4D 31 [12:34:48]Write i2c OK [12:34:48]MH_I2C_Read... [12:34:48]OFD Sender: No OFD packet to send [12:34:48]*** Cut start [12:34:48]*** Partial cut [12:34:48]*** CUTSNS_PIN = 1 [12:34:48]*** CUTSNS_PIN = 0 [12:34:48]*** Brake cut motor [12:34:49]Read from MH i2c: 01 [12:34:49]MH_I2C_Read... [12:34:49]*** Stop cut motor [12:34:49]*** Cut end [12:34:49]Read from MH i2c: 01 07 00 [12:34:49]MH_I2C_Read... [12:34:49]Read from MH i2c: 01 07 00 E4 4D 00 00 00 00 00 FF 0F 46 [12:34:49]process_action close_receipt done [12:34:49]requested_data is exist [12:34:49]produce_requested_data [12:34:49]requested_item fm.sn is exist - process it [12:34:49]wFMCommunicate request_size=4 [12:34:49]MH_SAM_APDU [12:34:49]CAPDU: 80 11 00 00 [12:34:49]Write to MH i2c: E2 08 00 E5 4D 80 11 00 00 00 00 00 00 AC [12:34:49]Write i2c OK [12:34:49]MH_I2C_Read... [12:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:49]Read from MH i2c: E2 [12:34:49]MH_I2C_Read... [12:34:49]Read from MH i2c: E2 17 00 [12:34:49]MH_I2C_Read... [12:34:49]Read from MH i2c: E2 17 00 E5 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 08 [12:34:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:34:49]wFMCommunicate OK [12:34:49]requested_item fd.num is exist - process it [12:34:49]SAM_PROTO_GetFieldsCounters [12:34:49]wFMCommunicate request_size=4 [12:34:49]MH_SAM_APDU [12:34:49]CAPDU: 80 13 00 00 [12:34:49]Write to MH i2c: E2 08 00 E6 4D 80 13 00 00 00 00 00 00 AF [12:34:49]Write i2c OK [12:34:49]MH_I2C_Read... [12:34:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:49]Read from MH i2c: E2 [12:34:49]MH_I2C_Read... [12:34:49]Read from MH i2c: E2 62 00 [12:34:49]MH_I2C_Read... [12:34:49]Read from MH i2c: E2 62 00 E6 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 65 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [12:34: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 65 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:49]wFMCommunicate OK [12:34:49]SAM_PROTO_GetFieldsCounters done [12:34:49]requested_item shift.num is exist - process it [12:34:49]requested_item shift.opened is exist - process it [12:34:49]req_shift_opened [12:34:49]FM_GetShiftState [12:34:49]SAM_PROTO_GetShiftState [12:34:49]wFMCommunicate request_size=4 [12:34:49]MH_SAM_APDU [12:34:49]CAPDU: 80 13 01 00 [12:34:49]Write to MH i2c: E2 08 00 E7 4D 80 13 01 00 00 00 00 00 B1 [12:34:49]Write i2c OK [12:34:49]MH_I2C_Read... [12:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:49]Read from MH i2c: E2 [12:34:49]MH_I2C_Read... [12:34:49]Read from MH i2c: E2 0E 00 [12:34:49]MH_I2C_Read... [12:34:49]Read from MH i2c: E2 0E 00 E7 4D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 EE [12:34:49]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:34:49]wFMCommunicate OK [12:34:49]SAM_PROTO_GetShiftState done [12:34:49]FM_GetShiftState done [12:34:49]req_shift_opened done [12:34:49]requested_item shift.open_date is exist - process it [12:34:49]req_shift_open_date [12:34:49]req_shift_open_date done [12:34:49]produce_requested_data done [12:34:49]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69221,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:34:49]process_action_free close_receipt [12:34:49]json_value_free [12:34:49]json_value_free done [12:34:49]process_json_proto returns [12:34:49]Send response to host [12:34:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69221,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:34:49]free response buf [12:34:49]execute_script done [12:34:49]execute_script returns [12:34:49]free content buf [12:34:49]Sock 7.Close socket [12:34:49]Sock 7.Thread stoped [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:54]accept exits with 9 [12:37:54]New connection [12:37:54]New thread 3066785124 created [12:37:54]Thread 3066641764 joined [12:37:54]Waiting for new connection... [12:37:54] Sock 9.Parse request [12:37:54]Sock 9.Check first char [12:37:54]Sock 9.First char is OK [12:37:54]request: POST /json_proto HTTP/1.0 [12:37:54]Method: POST [12:37:54]URL: /json_proto [12:37:54]Method is POST - this is cgi request [12:37:54]url: /json_proto [12:37:54]query_string will be loaded in cgi processing [12:37:54]execute_cgi json_proto POST (null) [12:37:54]execute_cgi path=json_proto method=POST [12:37:54]POST find Content-Length [12:37:54]Host: 172.17.49.132:8080 [12:37:54]Content-Length: 760 [12:37:54]Content-Type: application/json [12:37:54] [12:37:54]POST finish read [12:37:54]Found Content-Length = 760 [12:37:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:54]execute_script... [12:37:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:54]POST & json_proto [12:37:54]process_json_proto [12:37:54]json parsed OK: [12:37:54]protocol is kg_v1.0 [12:37:54]action value=close_receipt [12:37:54]process_action close_receipt [12:37:54]cmd_close_receipt [12:37:54]MH_GetDate [12:37:54]Write to MH i2c: F0 00 00 E8 4D 24 [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: F0 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: F0 09 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: F0 09 00 E8 4D 00 AB 3B A6 66 E7 4B C0 64 75 [12:37:54]GetLastDocTimeStamp 1722170094 [12:37:54]current date 1722170283 [12:37:54]FM_GetShiftState [12:37:54]SAM_PROTO_GetShiftState [12:37:54]wFMCommunicate request_size=4 [12:37:54]MH_SAM_APDU [12:37:54]CAPDU: 80 13 01 00 [12:37:54]Write to MH i2c: E2 08 00 E9 4D 80 13 01 00 00 00 00 00 B3 [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:54]Read from MH i2c: E2 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 0E 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 0E 00 E9 4D 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F0 [12:37:54]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:37:54]wFMCommunicate OK [12:37:54]SAM_PROTO_GetShiftState done [12:37:54]FM_GetShiftState done [12:37:54]opened in 1722127251 [12:37:54]opened+sec_in_day 1722213651 [12:37:54]quantity*price = 70038 [12:37:54]sum+1 = 70039 [12:37:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.38 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.38 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 105 28.07.2024 12:38 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874949 ФД: 69222 ФПД: 82084096870023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123803&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69222&fm=82084096870023&tin=02508201610067®Number=0000000000092638&sum=70038 [12:37:55]StoreToDocumentArchive [12:37:55]shift 429 fd 69222 [12:37:55]save to /storage/0429/doc_00069222 [12:37:55]save last doc name /storage/0429/doc_00069222 to /storage/kkm_last_doc_name [12:37:55]save OK [12:37:55]Clear old archive folders... [12:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:37:55]tlvbuf is 00AB8F40 [12:37:55]SAM_PROTO_ClearQueue [12:37:55]wFMCommunicate request_size=4 [12:37:55]MH_SAM_APDU [12:37:55]CAPDU: 80 09 00 00 [12:37:55]Write to MH i2c: E2 08 00 F6 4D 80 09 00 00 00 00 00 00 B5 [12:37:55]Write i2c OK [12:37:55]MH_I2C_Read... [12:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:55]Read from MH i2c: E2 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 03 00 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 03 00 F6 4D 00 90 00 B7 [12:37:55]RAPDU: 90 00 [12:37:55]wFMCommunicate OK [12:37:55]SAM_PROTO_ClearQueue done [12:37:55]KKMCreateOFDPacket [12:37:55]OFDProtocolAddRootSTLVToBuf [12:37:55]FM_MakeSignedData [12:37:55]FM_MakeSignedData [12:37:55]SAM_PROTO_SignData [12:37:55]wFMCommunicate request_size=4 [12:37:55]MH_SAM_APDU [12:37:55]CAPDU: 80 0D 01 02 [12:37:55]Write to MH i2c: E2 08 00 F7 4D 80 0D 01 02 00 00 00 00 BD [12:37:55]Write i2c OK [12:37:55]MH_I2C_Read... [12:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:55]Read from MH i2c: E2 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 03 00 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 03 00 F7 4D 00 90 00 B8 [12:37:55]RAPDU: 90 00 [12:37:55]wFMCommunicate OK [12:37:55]wFMCommunicate request_size=255 [12:37:55]MH_SAM_APDU [12:37:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 96 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 96 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 AB 3B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 66 0E 01 00 35 04 06 00 [12:37:55]Write to MH i2c: E2 02 01 F8 4D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 96 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 96 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 AB 3B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 66 0E 01 00 35 04 06 00 00 00 64 [12:37:55]Write i2c OK [12:37:55]MH_I2C_Read... [12:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:56]Read from MH i2c: E2 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 03 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 03 00 F8 4D 00 90 00 B9 [12:37:56]RAPDU: 90 00 [12:37:56]wFMCommunicate OK [12:37:56]wFMCommunicate request_size=11 [12:37:56]MH_SAM_APDU [12:37:56]CAPDU: 80 0D 02 02 06 4A A7 B1 6F 86 87 [12:37:56]Write to MH i2c: E2 0E 00 F9 4D 80 0D 02 02 06 00 4A A7 B1 6F 86 87 00 00 EA [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:56]Read from MH i2c: E2 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 03 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 03 00 F9 4D 00 90 00 BA [12:37:56]RAPDU: 90 00 [12:37:56]wFMCommunicate OK [12:37:56]wFMCommunicate request_size=4 [12:37:56]MH_SAM_APDU [12:37:56]CAPDU: 80 0D 03 02 [12:37:56]Write to MH i2c: E2 08 00 FA 4D 80 0D 03 02 00 00 00 00 C2 [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:56]Read from MH i2c: E2 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 0B 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 0B 00 FA 4D 00 68 FC 1A 55 15 90 A3 43 90 00 21 [12:37:56]RAPDU: 68 FC 1A 55 15 90 A3 43 90 00 [12:37:56]wFMCommunicate OK [12:37:56]SAM_PROTO_SignData done [12:37:56]FM_MakeSignedData done [12:37:56]CreateOFDProtocolMessage [12:37:56]wFMCommunicate request_size=4 [12:37:56]MH_SAM_APDU [12:37:56]CAPDU: 80 11 00 00 [12:37:56]Write to MH i2c: E2 08 00 FB 4D 80 11 00 00 00 00 00 00 C2 [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:56]Read from MH i2c: E2 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 17 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 17 00 FB 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 1E [12:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:37:56]wFMCommunicate OK [12:37:56]CreateOFDProtocolMessage done [12:37:56]OFDSenderStorePacket 69222 [12:37:56]StoreOFDPacket docnum=69222 [12:37:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 01 00 00 C0 F8 08 01 00 6C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 96 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 96 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 AB 3B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 66 0E 01 00 35 04 06 00 4A A7 B1 6F 86 87 68 FC 1A 55 15 90 A3 43 [12:37:56]CheckFolder [12:37:56]dirname=/storage/ofd_packets [12:37:56]CheckFolder done [12:37:56]ProducePacketName [12:37:56]name=ofd_packets/00069222 [12:37:56]NVStorageSaveData ofd_packets/00069222 [12:37:56]File name is /storage/ofd_packets/00069222 [12:37:56]Write 302 bytes [12:37:56]NVStorageSaveData done [12:37:56]OFDSenderStorePacket done [12:37:56]KKMCreateOFDPacket done [12:37:56]NVStorageSaveData kkm_last_timestamp [12:37:56]File name is /storage/kkm_last_timestamp [12:37:56]Write 4 bytes [12:37:56]NVStorageSaveData done [12:37:56]ExternCall_PrintAddStr [12:37:56]wPrintStart [12:37:56]Write to MH i2c: 01 00 00 FC 4D 49 [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: 01 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: 01 07 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: 01 07 00 FC 4D 00 00 00 00 00 FF 0F 5E [12:37:56]RasterBufferAndPrint [12:37:56]line Счет N : (1)871887 [12:37:56]line ИНН: 02508201610067 [12:37:56]line Контрольно-Кассовый Чек [12:37:56]line ПРОДАЖА [12:37:56]line ТРК (МРК, ГНК) : 41 [12:37:56]line Товар: 2710124130 [12:37:56]line SUPER 92-К-5 [12:37:56]line 10.180 * 68.80 [12:37:56]line = 700.38 [12:37:56]line НДС 12% НСП 1% [12:37:56]line > о реализуемом товаре [12:37:56]line ИТОГО: 700.38 [12:37:56]line НСП 1% : 6.20 [12:37:56]line НДС 12% : 74.38 [12:37:56]line Наличными: 0.00 [12:37:56]line Безнал.: 700.38 [12:37:56]line Место: АЗС № 125 "Партнер Нефть" [12:37:56]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:37:56]line СНО: Общий режим [12:37:56]line Чек 105 28.07.2024 12:38 [12:37:56]line Смена: 429 ФФД: 1.0 [12:37:56]line ЗНМ: 0300000049 [12:37:56]line РНМ: 0000000000092638 [12:37:56]line Версия ККМ: 001 [12:37:56]line Платежная система: Mbank [12:37:56]line ФМ: 0000000000874949 [12:37:56]line ФД: 69222 [12:37:56]line ФПД: 82084096870023 [12:37:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123803&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69222&fm=82084096870023&tin=02508201610067®Number=0000000000092638&sum=70038 [12:37:56]written 0, free lines is 4095 [12:37:56]OFD Sender: Processing packet 69222 [packets to send 19, broken 18] [12:37:56]ProducePacketName [12:37:56]name=ofd_packets/00069222 [12:37:56]OFD Sender: To server: pG, [12:37:56]CommunicateWithHost lk.salyk.kg:30040 [12:37:56]ConnectInit lk.salyk.kg [12:37:56]Connected sock=11 [12:37:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 01 00 00 C0 F8 08 01 00 6C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 96 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 96 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 AB 3B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 66 0E 01 00 35 04 06 00 4A A7 B1 6F 86 87 68 FC 1A 55 15 90 A3 43 [12:37:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 8F 67 47 00 0D 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 66 0E 01 00 F4 03 04 00 1B E2 A5 66 B6 04 01 00 00 C2 EE 2C 6D DE 77 B8 C6 [12:37:56]CommunicateWithHost err = 0 [12:37:56]CheckOFDResponse [12:37:56]1017 (14) - 77093643461234 [12:37:56]1041 (16) - 0000000000874949 [12:37:56]1040 (4) - 69222 [12:37:56]1012 (4) - 28.07.2024 06:15 [12:37:56]1206 (1) - 0 [12:37:56]OFD Sender: Remove packet 69222 [12:37:56]ProducePacketName [12:37:56]name=ofd_packets/00069222 [12:37:56]NVStorageDeleteData [12:37:56]Write to MH i2c: 01 00 00 25 4E 73 [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: 01 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: 01 07 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: 01 07 00 25 4E 00 00 00 00 00 1C 0D A3 [12:37:56]RasterBufferAndPrint [12:37:56]line [12:37:56]line [12:37:56]line [12:37:56]line [12:37:56]line [12:37:56]written 0, free lines is 3362 [12:37:56]MH_Cut [12:37:56]Write to MH i2c: D1 01 00 2C 4E 01 4C [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: D1 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: D1 01 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: D1 01 00 2C 4E 00 4B [12:37:56]Write to MH i2c: 01 00 00 2D 4E 7B [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:57]OFD Sender: No OFD packet to send [12:37:57]*** Cut start [12:37:57]*** Partial cut [12:37:57]*** CUTSNS_PIN = 1 [12:37:57]*** CUTSNS_PIN = 0 [12:37:57]*** Brake cut motor [12:37:57]Read from MH i2c: 01 [12:37:57]MH_I2C_Read... [12:37:57]*** Stop cut motor [12:37:57]*** Cut end [12:37:57]Read from MH i2c: 01 07 00 [12:37:57]MH_I2C_Read... [12:37:57]Read from MH i2c: 01 07 00 2D 4E 00 00 00 00 00 FF 0F 90 [12:37:57]process_action close_receipt done [12:37:57]requested_data is exist [12:37:57]produce_requested_data [12:37:57]requested_item fm.sn is exist - process it [12:37:57]wFMCommunicate request_size=4 [12:37:57]MH_SAM_APDU [12:37:57]CAPDU: 80 11 00 00 [12:37:57]Write to MH i2c: E2 08 00 2E 4E 80 11 00 00 00 00 00 00 F6 [12:37:57]Write i2c OK [12:37:57]MH_I2C_Read... [12:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:58]Read from MH i2c: E2 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 17 00 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 17 00 2E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 52 [12:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:37:58]wFMCommunicate OK [12:37:58]requested_item fd.num is exist - process it [12:37:58]SAM_PROTO_GetFieldsCounters [12:37:58]wFMCommunicate request_size=4 [12:37:58]MH_SAM_APDU [12:37:58]CAPDU: 80 13 00 00 [12:37:58]Write to MH i2c: E2 08 00 2F 4E 80 13 00 00 00 00 00 00 F9 [12:37:58]Write i2c OK [12:37:58]MH_I2C_Read... [12:37:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:58]Read from MH i2c: E2 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 62 00 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 62 00 2F 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 66 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [12:37: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 66 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:58]wFMCommunicate OK [12:37:58]SAM_PROTO_GetFieldsCounters done [12:37:58]requested_item shift.num is exist - process it [12:37:58]requested_item shift.opened is exist - process it [12:37:58]req_shift_opened [12:37:58]FM_GetShiftState [12:37:58]SAM_PROTO_GetShiftState [12:37:58]wFMCommunicate request_size=4 [12:37:58]MH_SAM_APDU [12:37:58]CAPDU: 80 13 01 00 [12:37:58]Write to MH i2c: E2 08 00 30 4E 80 13 01 00 00 00 00 00 FB [12:37:58]Write i2c OK [12:37:58]MH_I2C_Read... [12:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:58]Read from MH i2c: E2 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 0E 00 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: E2 0E 00 30 4E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 38 [12:37:58]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:37:58]wFMCommunicate OK [12:37:58]SAM_PROTO_GetShiftState done [12:37:58]FM_GetShiftState done [12:37:58]req_shift_opened done [12:37:58]requested_item shift.open_date is exist - process it [12:37:58]req_shift_open_date [12:37:58]req_shift_open_date done [12:37:58]produce_requested_data done [12:37:58]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69222,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:37:58]process_action_free close_receipt [12:37:58]json_value_free [12:37:58]json_value_free done [12:37:58]process_json_proto returns [12:37:58]Send response to host [12:37:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69222,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:37:58]free response buf [12:37:58]execute_script done [12:37:58]execute_script returns [12:37:58]free content buf [12:37:58]Sock 9.Close socket [12:37:58]Sock 9.Thread stoped [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:02]accept exits with 7 [12:39:02]New connection [12:39:02]New thread 3066641764 created [12:39:02]Thread 3066785124 joined [12:39:02]Waiting for new connection... [12:39:02] Sock 7.Parse request [12:39:02]Sock 7.Check first char [12:39:02]Sock 7.First char is OK [12:39:02]request: POST /json_proto HTTP/1.0 [12:39:02]Method: POST [12:39:02]URL: /json_proto [12:39:02]Method is POST - this is cgi request [12:39:02]url: /json_proto [12:39:02]query_string will be loaded in cgi processing [12:39:02]execute_cgi json_proto POST (null) [12:39:02]execute_cgi path=json_proto method=POST [12:39:02]POST find Content-Length [12:39:02]Host: 172.17.49.132:8080 [12:39:02]Content-Length: 875 [12:39:02]Content-Type: application/json [12:39:02] [12:39:02]POST finish read [12:39:02]Found Content-Length = 875 [12:39:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136570", "tax_sys" : 0, "items" : [ { "code": "4601025117542", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,5", "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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:02]execute_script... [12:39:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136570", "tax_sys" : 0, "items" : [ { "code": "4601025117542", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,5", "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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:02]POST & json_proto [12:39:02]process_json_proto [12:39:02]json parsed OK: [12:39:02]protocol is kg_v1.0 [12:39:02]action value=close_receipt [12:39:02]process_action close_receipt [12:39:02]cmd_close_receipt [12:39:02]MH_GetDate [12:39:02]Write to MH i2c: F0 00 00 31 4E 6E [12:39:02]Write i2c OK [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: F0 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: F0 09 00 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: F0 09 00 31 4E 00 EF 3B A6 66 E7 4B C0 64 03 [12:39:02]GetLastDocTimeStamp 1722170283 [12:39:02]current date 1722170351 [12:39:02]FM_GetShiftState [12:39:02]SAM_PROTO_GetShiftState [12:39:02]wFMCommunicate request_size=4 [12:39:02]MH_SAM_APDU [12:39:02]CAPDU: 80 13 01 00 [12:39:02]Write to MH i2c: E2 08 00 32 4E 80 13 01 00 00 00 00 00 FD [12:39:02]Write i2c OK [12:39:02]MH_I2C_Read... [12:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:02]Read from MH i2c: E2 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 0E 00 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 0E 00 32 4E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 3A [12:39:02]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:39:02]wFMCommunicate OK [12:39:02]SAM_PROTO_GetShiftState done [12:39:02]FM_GetShiftState done [12:39:02]opened in 1722127251 [12:39:02]opened+sec_in_day 1722213651 [12:39:02]quantity*price = 8500 [12:39:02]sum+1 = 8501 [12:39:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 106 28.07.2024 12:39 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874949 ФД: 69223 ФПД: 146961172261046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123911&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69223&fm=146961172261046&tin=02508201610067®Number=0000000000092638&sum=8500 0 [12:39:03]StoreToDocumentArchive [12:39:03]shift 429 fd 69223 [12:39:03]save to /storage/0429/doc_00069223 [12:39:03]save last doc name /storage/0429/doc_00069223 to /storage/kkm_last_doc_name [12:39:03]save OK [12:39:03]Clear old archive folders... [12:39:03]ProcessDocumentItem done err = 0, tmpTLVsize=311 [12:39:03]tlvbuf is 00A1ACD0 [12:39:03]SAM_PROTO_ClearQueue [12:39:03]wFMCommunicate request_size=4 [12:39:03]MH_SAM_APDU [12:39:03]CAPDU: 80 09 00 00 [12:39:03]Write to MH i2c: E2 08 00 3F 4E 80 09 00 00 00 00 00 00 FF [12:39:03]Write i2c OK [12:39:03]MH_I2C_Read... [12:39:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:03]Read from MH i2c: E2 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: E2 03 00 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: E2 03 00 3F 4E 00 90 00 01 [12:39:03]RAPDU: 90 00 [12:39:03]wFMCommunicate OK [12:39:03]SAM_PROTO_ClearQueue done [12:39:03]KKMCreateOFDPacket [12:39:03]OFDProtocolAddRootSTLVToBuf [12:39:03]FM_MakeSignedData [12:39:03]FM_MakeSignedData [12:39:03]SAM_PROTO_SignData [12:39:03]wFMCommunicate request_size=4 [12:39:03]MH_SAM_APDU [12:39:03]CAPDU: 80 0D 01 02 [12:39:03]Write to MH i2c: E2 08 00 40 4E 80 0D 01 02 00 00 00 00 07 [12:39:03]Write i2c OK [12:39:03]MH_I2C_Read... [12:39:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:03]Read from MH i2c: E2 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: E2 03 00 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: E2 03 00 40 4E 00 90 00 02 [12:39:03]RAPDU: 90 00 [12:39:03]wFMCommunicate OK [12:39:03]wFMCommunicate request_size=255 [12:39:03]MH_SAM_APDU [12:39:03]CAPDU: 80 0D 02 02 FA 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EF 3B A6 66 0E 04 04 00 AD 01 [12:39:03]Write to MH i2c: E2 02 01 41 4E 80 0D 02 02 FA 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EF 3B A6 66 0E 04 04 00 AD 01 00 00 21 [12:39:03]Write i2c OK [12:39:03]MH_I2C_Read... [12:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:04]Read from MH i2c: E2 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 03 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 03 00 41 4E 00 90 00 03 [12:39:04]RAPDU: 90 00 [12:39:04]wFMCommunicate OK [12:39:04]wFMCommunicate request_size=70 [12:39:04]MH_SAM_APDU [12:39:04]CAPDU: 80 0D 02 02 41 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 67 0E 01 00 35 04 06 00 85 A9 10 77 E8 B6 [12:39:04]Write to MH i2c: E2 49 00 42 4E 80 0D 02 02 41 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 67 0E 01 00 35 04 06 00 85 A9 10 77 E8 B6 00 00 F6 [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:04]Read from MH i2c: E2 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 03 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 03 00 42 4E 00 90 00 04 [12:39:04]RAPDU: 90 00 [12:39:04]wFMCommunicate OK [12:39:04]wFMCommunicate request_size=4 [12:39:04]MH_SAM_APDU [12:39:04]CAPDU: 80 0D 03 02 [12:39:04]Write to MH i2c: E2 08 00 43 4E 80 0D 03 02 00 00 00 00 0C [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:04]Read from MH i2c: E2 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 0B 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 0B 00 43 4E 00 34 CB B9 FD 4B 05 56 8A 90 00 F2 [12:39:04]RAPDU: 34 CB B9 FD 4B 05 56 8A 90 00 [12:39:04]wFMCommunicate OK [12:39:04]SAM_PROTO_SignData done [12:39:04]FM_MakeSignedData done [12:39:04]CreateOFDProtocolMessage [12:39:04]wFMCommunicate request_size=4 [12:39:04]MH_SAM_APDU [12:39:04]CAPDU: 80 11 00 00 [12:39:04]Write to MH i2c: E2 08 00 44 4E 80 11 00 00 00 00 00 00 0C [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:04]Read from MH i2c: E2 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 17 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 17 00 44 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 68 [12:39:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:39:04]wFMCommunicate OK [12:39:04]CreateOFDProtocolMessage done [12:39:04]OFDSenderStorePacket 69223 [12:39:04]StoreOFDPacket docnum=69223 [12:39:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4B 01 00 00 4E 3A 43 01 6A 32 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EF 3B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 67 0E 01 00 35 04 06 00 85 A9 10 77 E8 B6 34 CB B9 FD 4B 05 56 8A [12:39:04]CheckFolder [12:39:04]dirname=/storage/ofd_packets [12:39:04]CheckFolder done [12:39:04]ProducePacketName [12:39:04]name=ofd_packets/00069223 [12:39:04]NVStorageSaveData ofd_packets/00069223 [12:39:04]File name is /storage/ofd_packets/00069223 [12:39:04]Write 361 bytes [12:39:04]NVStorageSaveData done [12:39:04]OFDSenderStorePacket done [12:39:04]KKMCreateOFDPacket done [12:39:04]NVStorageSaveData kkm_last_timestamp [12:39:04]File name is /storage/kkm_last_timestamp [12:39:04]Write 4 bytes [12:39:04]NVStorageSaveData done [12:39:04]ExternCall_PrintAddStr [12:39:04]wPrintStart [12:39:04]Write to MH i2c: 01 00 00 45 4E 93 [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: 01 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: 01 07 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: 01 07 00 45 4E 00 00 00 00 00 FF 0F A8 [12:39:04]RasterBufferAndPrint [12:39:04]line Счет N : (3)136570 [12:39:04]line ИНН: 02508201610067 [12:39:04]line Контрольно-Кассовый Чек [12:39:04]line ПРОДАЖА [12:39:04]line Товар: 4601025117542 [12:39:04]line Напиток Фрутмотив тропический микс 0,5 [12:39:04]line 1.000 * 85.00 [12:39:04]line = 85.00 [12:39:04]line НДС 12% НСП 1% [12:39:04]line > о реализуемом товаре [12:39:04]line ИТОГО: 85.00 [12:39:04]line НСП 1% : 0.75 [12:39:04]line НДС 12% : 9.03 [12:39:04]line Наличными: 0.00 [12:39:04]line Безнал.: 85.00 [12:39:04]line Место: АЗС № 125 "Партнер Нефть" [12:39:04]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:39:04]line СНО: Общий режим [12:39:04]line Чек 106 28.07.2024 12:39 [12:39:04]line Смена: 429 ФФД: 1.0 [12:39:04]line ЗНМ: 0300000049 [12:39:04]line РНМ: 0000000000092638 [12:39:04]line Версия ККМ: 001 [12:39:04]line Платежная система: Mbank [12:39:04]line ФМ: 0000000000874949 [12:39:04]line ФД: 69223 [12:39:04]line ФПД: 146961172261046 [12:39:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T123911&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69223&fm=146961172261046&tin=02508201610067®Number=0000000000092638&sum=8500 [12:39:04]line 0 [12:39:04]OFD Sender: Processing packet 69223 [packets to send 19, broken 18] [12:39:04]ProducePacketName [12:39:04]name=ofd_packets/00069223 [12:39:04]OFD Sender: To server: pG, [12:39:04]CommunicateWithHost lk.salyk.kg:30040 [12:39:04]ConnectInit lk.salyk.kg [12:39:04]written 0, free lines is 4095 [12:39:05]Write to MH i2c: 01 00 00 6F 4E BD [12:39:05]Write i2c OK [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: 01 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: 01 07 00 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: 01 07 00 6F 4E 00 00 00 00 00 F6 0C C6 [12:39:05]RasterBufferAndPrint [12:39:05]line [12:39:05]line [12:39:05]line [12:39:05]line [12:39:05]line [12:39:05]written 0, free lines is 3323 [12:39:05]MH_Cut [12:39:05]Write to MH i2c: D1 01 00 76 4E 01 96 [12:39:05]Write i2c OK [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: D1 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: D1 01 00 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: D1 01 00 76 4E 00 95 [12:39:05]Write to MH i2c: 01 00 00 77 4E C5 [12:39:05]Write i2c OK [12:39:05]MH_I2C_Read... [12:39:05]*** Cut start [12:39:05]*** Partial cut [12:39:05]*** CUTSNS_PIN = 1 [12:39:05]*** CUTSNS_PIN = 0 [12:39:06]*** Brake cut motor [12:39:06]Read from MH i2c: 01 [12:39:06]MH_I2C_Read... [12:39:06]*** Stop cut motor [12:39:06]*** Cut end [12:39:06]Read from MH i2c: 01 07 00 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: 01 07 00 77 4E 00 00 00 00 00 FF 0F DA [12:39:06]process_action close_receipt done [12:39:06]requested_data is exist [12:39:06]produce_requested_data [12:39:06]requested_item fm.sn is exist - process it [12:39:06]wFMCommunicate request_size=4 [12:39:06]MH_SAM_APDU [12:39:06]CAPDU: 80 11 00 00 [12:39:06]Write to MH i2c: E2 08 00 78 4E 80 11 00 00 00 00 00 00 40 [12:39:06]Write i2c OK [12:39:06]MH_I2C_Read... [12:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:06]Read from MH i2c: E2 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 17 00 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 17 00 78 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9C [12:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:39:06]wFMCommunicate OK [12:39:06]requested_item fd.num is exist - process it [12:39:06]SAM_PROTO_GetFieldsCounters [12:39:06]wFMCommunicate request_size=4 [12:39:06]MH_SAM_APDU [12:39:06]CAPDU: 80 13 00 00 [12:39:06]Write to MH i2c: E2 08 00 79 4E 80 13 00 00 00 00 00 00 43 [12:39:06]Write i2c OK [12:39:06]MH_I2C_Read... [12:39:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:06]Read from MH i2c: E2 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 62 00 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 62 00 79 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 67 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [12:39:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 67 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:06]wFMCommunicate OK [12:39:06]SAM_PROTO_GetFieldsCounters done [12:39:06]requested_item shift.num is exist - process it [12:39:06]requested_item shift.opened is exist - process it [12:39:06]req_shift_opened [12:39:06]FM_GetShiftState [12:39:06]SAM_PROTO_GetShiftState [12:39:06]wFMCommunicate request_size=4 [12:39:06]MH_SAM_APDU [12:39:06]CAPDU: 80 13 01 00 [12:39:06]Write to MH i2c: E2 08 00 7A 4E 80 13 01 00 00 00 00 00 45 [12:39:06]Write i2c OK [12:39:06]MH_I2C_Read... [12:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:06]Read from MH i2c: E2 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 0E 00 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 0E 00 7A 4E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 82 [12:39:06]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:39:06]wFMCommunicate OK [12:39:06]SAM_PROTO_GetShiftState done [12:39:06]FM_GetShiftState done [12:39:06]req_shift_opened done [12:39:06]requested_item shift.open_date is exist - process it [12:39:06]req_shift_open_date [12:39:06]req_shift_open_date done [12:39:06]produce_requested_data done [12:39:06]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69223,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:39:06]process_action_free close_receipt [12:39:06]json_value_free [12:39:06]json_value_free done [12:39:06]process_json_proto returns [12:39:06]Send response to host [12:39:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69223,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:39:06]free response buf [12:39:06]execute_script done [12:39:06]execute_script returns [12:39:06]free content buf [12:39:06]Sock 7.Close socket [12:39:06]Sock 7.Thread stoped [12:40:04]accept exits with 9 [12:40:04]New connection [12:40:04]New thread 3066785124 created [12:40:04]Thread 3066641764 joined [12:40:04]Waiting for new connection... [12:40:04] Sock 9.Parse request [12:40:04]Sock 9.Check first char [12:40:04]Sock 9.First char is OK [12:40:04]request: POST /json_proto HTTP/1.0 [12:40:04]Method: POST [12:40:04]URL: /json_proto [12:40:04]Method is POST - this is cgi request [12:40:04]url: /json_proto [12:40:04]query_string will be loaded in cgi processing [12:40:04]execute_cgi json_proto POST (null) [12:40:04]execute_cgi path=json_proto method=POST [12:40:04]POST find Content-Length [12:40:04]Host: 172.17.49.132:8080 [12:40:04]Content-Length: 766 [12:40:04]Content-Type: application/json [12:40:04] [12:40:04]POST finish read [12:40:04]Found Content-Length = 766 [12:40:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.130, "sum" : 415.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 415.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:04]execute_script... [12:40:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.130, "sum" : 415.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 415.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:04]POST & json_proto [12:40:04]process_json_proto [12:40:04]json parsed OK: [12:40:04]protocol is kg_v1.0 [12:40:04]action value=close_receipt [12:40:04]process_action close_receipt [12:40:04]cmd_close_receipt [12:40:04]MH_GetDate [12:40:04]Write to MH i2c: F0 00 00 7B 4E B8 [12:40:04]Write i2c OK [12:40:04]MH_I2C_Read... [12:40:04]Read from MH i2c: F0 [12:40:04]MH_I2C_Read... [12:40:04]Read from MH i2c: F0 09 00 [12:40:04]MH_I2C_Read... [12:40:04]Read from MH i2c: F0 09 00 7B 4E 00 2D 3C A6 66 E7 4B C0 64 8C [12:40:04]GetLastDocTimeStamp 1722170351 [12:40:04]current date 1722170413 [12:40:04]FM_GetShiftState [12:40:04]SAM_PROTO_GetShiftState [12:40:04]wFMCommunicate request_size=4 [12:40:04]MH_SAM_APDU [12:40:04]CAPDU: 80 13 01 00 [12:40:04]Write to MH i2c: E2 08 00 7C 4E 80 13 01 00 00 00 00 00 47 [12:40:04]Write i2c OK [12:40:04]MH_I2C_Read... [12:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:04]Read from MH i2c: E2 [12:40:04]MH_I2C_Read... [12:40:04]Read from MH i2c: E2 0E 00 [12:40:04]MH_I2C_Read... [12:40:04]Read from MH i2c: E2 0E 00 7C 4E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 84 [12:40:04]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:40:04]wFMCommunicate OK [12:40:04]SAM_PROTO_GetShiftState done [12:40:04]FM_GetShiftState done [12:40:04]opened in 1722127251 [12:40:04]opened+sec_in_day 1722213651 [12:40:04]quantity*price = 41561 [12:40:04]sum+1 = 41562 [12:40:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 415.61 НСП 1% : 3.68 НДС 12% : 44.14 Наличными: 0.00 Безнал.: 415.61 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 107 28.07.2024 12:40 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874949 ФД: 69224 ФПД: 4564424934884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T124013&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69224&fm=4564424934884&tin=02508201610067®Number=0000000000092638&sum=41561 [12:40:05]StoreToDocumentArchive [12:40:05]shift 429 fd 69224 [12:40:05]save to /storage/0429/doc_00069224 [12:40:05]save last doc name /storage/0429/doc_00069224 to /storage/kkm_last_doc_name [12:40:05]save OK [12:40:05]Clear old archive folders... [12:40:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:05]tlvbuf is 00A3EB30 [12:40:05]SAM_PROTO_ClearQueue [12:40:05]wFMCommunicate request_size=4 [12:40:05]MH_SAM_APDU [12:40:05]CAPDU: 80 09 00 00 [12:40:05]Write to MH i2c: E2 08 00 89 4E 80 09 00 00 00 00 00 00 49 [12:40:05]Write i2c OK [12:40:05]MH_I2C_Read... [12:40:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:05]Read from MH i2c: E2 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: E2 03 00 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: E2 03 00 89 4E 00 90 00 4B [12:40:05]RAPDU: 90 00 [12:40:05]wFMCommunicate OK [12:40:05]SAM_PROTO_ClearQueue done [12:40:05]KKMCreateOFDPacket [12:40:05]OFDProtocolAddRootSTLVToBuf [12:40:05]FM_MakeSignedData [12:40:05]FM_MakeSignedData [12:40:05]SAM_PROTO_SignData [12:40:05]wFMCommunicate request_size=4 [12:40:05]MH_SAM_APDU [12:40:05]CAPDU: 80 0D 01 02 [12:40:05]Write to MH i2c: E2 08 00 8A 4E 80 0D 01 02 00 00 00 00 51 [12:40:05]Write i2c OK [12:40:05]MH_I2C_Read... [12:40:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:05]Read from MH i2c: E2 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: E2 03 00 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: E2 03 00 8A 4E 00 90 00 4C [12:40:05]RAPDU: 90 00 [12:40:05]wFMCommunicate OK [12:40:05]wFMCommunicate request_size=255 [12:40:05]MH_SAM_APDU [12:40:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 59 A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2D 3C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 68 0E 01 00 35 04 06 00 04 [12:40:05]Write to MH i2c: E2 02 01 8B 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 59 A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2D 3C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 68 0E 01 00 35 04 06 00 04 00 00 C0 [12:40:05]Write i2c OK [12:40:05]MH_I2C_Read... [12:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:06]Read from MH i2c: E2 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 03 00 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 03 00 8B 4E 00 90 00 4D [12:40:06]RAPDU: 90 00 [12:40:06]wFMCommunicate OK [12:40:06]wFMCommunicate request_size=10 [12:40:06]MH_SAM_APDU [12:40:06]CAPDU: 80 0D 02 02 05 26 BC ED 45 E4 [12:40:06]Write to MH i2c: E2 0D 00 8C 4E 80 0D 02 02 05 00 26 BC ED 45 E4 00 00 56 [12:40:06]Write i2c OK [12:40:06]MH_I2C_Read... [12:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:06]Read from MH i2c: E2 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 03 00 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 03 00 8C 4E 00 90 00 4E [12:40:06]RAPDU: 90 00 [12:40:06]wFMCommunicate OK [12:40:06]wFMCommunicate request_size=4 [12:40:06]MH_SAM_APDU [12:40:06]CAPDU: 80 0D 03 02 [12:40:06]Write to MH i2c: E2 08 00 8D 4E 80 0D 03 02 00 00 00 00 56 [12:40:06]Write i2c OK [12:40:06]MH_I2C_Read... [12:40:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:06]Read from MH i2c: E2 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 0B 00 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 0B 00 8D 4E 00 CE C3 42 D8 2F 3D B3 EB 90 00 0C [12:40:06]RAPDU: CE C3 42 D8 2F 3D B3 EB 90 00 [12:40:06]wFMCommunicate OK [12:40:06]SAM_PROTO_SignData done [12:40:06]FM_MakeSignedData done [12:40:06]CreateOFDProtocolMessage [12:40:06]wFMCommunicate request_size=4 [12:40:06]MH_SAM_APDU [12:40:06]CAPDU: 80 11 00 00 [12:40:06]Write to MH i2c: E2 08 00 8E 4E 80 11 00 00 00 00 00 00 56 [12:40:06]Write i2c OK [12:40:06]MH_I2C_Read... [12:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:06]Read from MH i2c: E2 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 17 00 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: E2 17 00 8E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B2 [12:40:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:40:06]wFMCommunicate OK [12:40:06]CreateOFDProtocolMessage done [12:40:06]OFDSenderStorePacket 69224 [12:40:06]StoreOFDPacket docnum=69224 [12:40:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 48 87 07 01 BB D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 59 A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2D 3C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 68 0E 01 00 35 04 06 00 04 26 BC ED 45 E4 CE C3 42 D8 2F 3D B3 EB [12:40:06]CheckFolder [12:40:06]dirname=/storage/ofd_packets [12:40:06]CheckFolder done [12:40:06]ProducePacketName [12:40:06]name=ofd_packets/00069224 [12:40:06]NVStorageSaveData ofd_packets/00069224 [12:40:06]File name is /storage/ofd_packets/00069224 [12:40:06]Write 301 bytes [12:40:06]NVStorageSaveData done [12:40:06]OFDSenderStorePacket done [12:40:06]KKMCreateOFDPacket done [12:40:06]NVStorageSaveData kkm_last_timestamp [12:40:06]File name is /storage/kkm_last_timestamp [12:40:06]Write 4 bytes [12:40:06]NVStorageSaveData done [12:40:06]ExternCall_PrintAddStr [12:40:06]wPrintStart [12:40:06]Write to MH i2c: 01 00 00 8F 4E DD [12:40:06]Write i2c OK [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: 01 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: 01 07 00 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: 01 07 00 8F 4E 00 00 00 00 00 FF 0F F2 [12:40:06]RasterBufferAndPrint [12:40:06]line Счет N : (1)871888 [12:40:06]line ИНН: 02508201610067 [12:40:06]line Контрольно-Кассовый Чек [12:40:06]line ПРОДАЖА [12:40:06]line ТРК (МРК, ГНК) : 52 [12:40:06]line Товар: 2710124130 [12:40:06]line Аи-92-К-5 [12:40:06]line 6.130 * 67.80 [12:40:06]line = 415.61 [12:40:06]line НДС 12% НСП 1% [12:40:06]line > о реализуемом товаре [12:40:06]line ИТОГО: 415.61 [12:40:06]line НСП 1% : 3.68 [12:40:06]line НДС 12% : 44.14 [12:40:06]line Наличными: 0.00 [12:40:06]line Безнал.: 415.61 [12:40:06]line Место: АЗС № 125 "Партнер Нефть" [12:40:06]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:40:06]line СНО: Общий режим [12:40:06]line Чек 107 28.07.2024 12:40 [12:40:06]line Смена: 429 ФФД: 1.0 [12:40:06]line ЗНМ: 0300000049 [12:40:06]line РНМ: 0000000000092638 [12:40:06]line Версия ККМ: 001 [12:40:06]line Платежная система: Mbank [12:40:06]line ФМ: 0000000000874949 [12:40:06]line ФД: 69224 [12:40:06]line ФПД: 4564424934884 [12:40:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T124013&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69224&fm=4564424934884&tin=02508201610067®Number=0000000000092638&sum=41561 [12:40:06]written 0, free lines is 4095 [12:40:06]Write to MH i2c: 01 00 00 B8 4E 06 [12:40:06]Write i2c OK [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: 01 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: 01 07 00 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: 01 07 00 B8 4E 00 00 00 00 00 12 0D 2C [12:40:06]RasterBufferAndPrint [12:40:06]line [12:40:06]line [12:40:06]line [12:40:06]line [12:40:06]line [12:40:06]written 0, free lines is 3352 [12:40:06]MH_Cut [12:40:06]Write to MH i2c: D1 01 00 BF 4E 01 DF [12:40:06]Write i2c OK [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: D1 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: D1 01 00 [12:40:06]MH_I2C_Read... [12:40:06]Read from MH i2c: D1 01 00 BF 4E 00 DE [12:40:06]Write to MH i2c: 01 00 00 C0 4E 0E [12:40:06]Write i2c OK [12:40:06]MH_I2C_Read... [12:40:07]*** Cut start [12:40:07]*** Partial cut [12:40:07]*** CUTSNS_PIN = 1 [12:40:07]*** CUTSNS_PIN = 0 [12:40:07]*** Brake cut motor [12:40:08]Read from MH i2c: 01 [12:40:08]MH_I2C_Read... [12:40:08]*** Stop cut motor [12:40:08]*** Cut end [12:40:08]Read from MH i2c: 01 07 00 [12:40:08]MH_I2C_Read... [12:40:08]Read from MH i2c: 01 07 00 C0 4E 00 00 00 00 00 FF 0F 23 [12:40:08]process_action close_receipt done [12:40:08]requested_data is exist [12:40:08]produce_requested_data [12:40:08]requested_item fm.sn is exist - process it [12:40:08]wFMCommunicate request_size=4 [12:40:08]MH_SAM_APDU [12:40:08]CAPDU: 80 11 00 00 [12:40:08]Write to MH i2c: E2 08 00 C1 4E 80 11 00 00 00 00 00 00 89 [12:40:08]Write i2c OK [12:40:08]MH_I2C_Read... [12:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:08]Read from MH i2c: E2 [12:40:08]MH_I2C_Read... [12:40:08]Read from MH i2c: E2 17 00 [12:40:08]MH_I2C_Read... [12:40:08]Read from MH i2c: E2 17 00 C1 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E5 [12:40:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:40:08]wFMCommunicate OK [12:40:08]requested_item fd.num is exist - process it [12:40:08]SAM_PROTO_GetFieldsCounters [12:40:08]wFMCommunicate request_size=4 [12:40:08]MH_SAM_APDU [12:40:08]CAPDU: 80 13 00 00 [12:40:08]Write to MH i2c: E2 08 00 C2 4E 80 13 00 00 00 00 00 00 8C [12:40:08]Write i2c OK [12:40:08]MH_I2C_Read... [12:40:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:08]Read from MH i2c: E2 [12:40:08]MH_I2C_Read... [12:40:08]Read from MH i2c: E2 62 00 [12:40:08]MH_I2C_Read... [12:40:08]Read from MH i2c: E2 62 00 C2 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 68 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [12:40:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 68 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:08]wFMCommunicate OK [12:40:08]SAM_PROTO_GetFieldsCounters done [12:40:08]requested_item shift.num is exist - process it [12:40:08]requested_item shift.opened is exist - process it [12:40:08]req_shift_opened [12:40:08]FM_GetShiftState [12:40:08]SAM_PROTO_GetShiftState [12:40:08]wFMCommunicate request_size=4 [12:40:08]MH_SAM_APDU [12:40:08]CAPDU: 80 13 01 00 [12:40:08]Write to MH i2c: E2 08 00 C3 4E 80 13 01 00 00 00 00 00 8E [12:40:08]Write i2c OK [12:40:08]MH_I2C_Read... [12:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:08]Read from MH i2c: E2 [12:40:08]MH_I2C_Read... [12:40:08]Read from MH i2c: E2 0E 00 [12:40:08]MH_I2C_Read... [12:40:08]Read from MH i2c: E2 0E 00 C3 4E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 CB [12:40:08]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:40:08]wFMCommunicate OK [12:40:08]SAM_PROTO_GetShiftState done [12:40:08]FM_GetShiftState done [12:40:08]req_shift_opened done [12:40:08]requested_item shift.open_date is exist - process it [12:40:08]req_shift_open_date [12:40:08]req_shift_open_date done [12:40:08]produce_requested_data done [12:40:08]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69224,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:40:08]process_action_free close_receipt [12:40:08]json_value_free [12:40:08]json_value_free done [12:40:08]process_json_proto returns [12:40:08]Send response to host [12:40:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69224,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:40:08]free response buf [12:40:08]execute_script done [12:40:08]execute_script returns [12:40:08]free content buf [12:40:08]Sock 9.Close socket [12:40:08]Sock 9.Thread stoped [12:41:15]ConnectInit Can't connect to host [12:41:15]CommunicateWithHost connect error [12:41:15]CommunicateWithHost err = -1 [12:41:15]OFD Sender: Server communicate error [12:41:15]OFD Sender: Processing packet 69223 [packets to send 20, broken 18] [12:41:15]ProducePacketName [12:41:15]name=ofd_packets/00069223 [12:41:15]OFD Sender: To server: pG, [12:41:15]CommunicateWithHost lk.salyk.kg:30040 [12:41:15]ConnectInit lk.salyk.kg [12:41:16]Connected sock=9 [12:41: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 39 34 39 4B 01 00 00 4E 3A 43 01 6A 32 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 37 35 34 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 35 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EF 3B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 67 0E 01 00 35 04 06 00 85 A9 10 77 E8 B6 34 CB B9 FD 4B 05 56 8A [12:41:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 1E E8 47 00 5C D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 67 0E 01 00 F4 03 04 00 E2 E2 A5 66 B6 04 01 00 00 0B F3 21 67 15 5F 57 CA [12:41:16]CommunicateWithHost err = 0 [12:41:16]CheckOFDResponse [12:41:16]1017 (14) - 77093643461234 [12:41:16]1041 (16) - 0000000000874949 [12:41:16]1040 (4) - 69223 [12:41:16]1012 (4) - 28.07.2024 06:19 [12:41:16]1206 (1) - 0 [12:41:16]OFD Sender: Remove packet 69223 [12:41:16]ProducePacketName [12:41:16]name=ofd_packets/00069223 [12:41:16]NVStorageDeleteData [12:41:16]OFD Sender: Processing packet 69224 [packets to send 19, broken 18] [12:41:16]ProducePacketName [12:41:16]name=ofd_packets/00069224 [12:41:16]OFD Sender: To server: pG, [12:41:16]CommunicateWithHost lk.salyk.kg:30040 [12:41:16]ConnectInit lk.salyk.kg [12:41:16]Connected sock=9 [12:41: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 39 34 39 0F 01 00 00 48 87 07 01 BB D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 59 A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2D 3C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 68 0E 01 00 35 04 06 00 04 26 BC ED 45 E4 CE C3 42 D8 2F 3D B3 EB [12:41:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 EB AF 47 00 DB FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 68 0E 01 00 F4 03 04 00 E3 E2 A5 66 B6 04 01 00 00 08 1C 65 55 7C 08 DD 43 [12:41:17]CommunicateWithHost err = 0 [12:41:17]CheckOFDResponse [12:41:17]1017 (14) - 77093643461234 [12:41:17]1041 (16) - 0000000000874949 [12:41:17]1040 (4) - 69224 [12:41:17]1012 (4) - 28.07.2024 06:19 [12:41:17]1206 (1) - 0 [12:41:17]OFD Sender: Remove packet 69224 [12:41:17]ProducePacketName [12:41:17]name=ofd_packets/00069224 [12:41:17]NVStorageDeleteData [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:23]accept exits with 7 [12:42:23]New connection [12:42:23]New thread 3066641764 created [12:42:23]Thread 3066785124 joined [12:42:23]Waiting for new connection... [12:42:23] Sock 7.Parse request [12:42:23]Sock 7.Check first char [12:42:23]Sock 7.First char is OK [12:42:23]request: POST /json_proto HTTP/1.0 [12:42:23]Method: POST [12:42:23]URL: /json_proto [12:42:23]Method is POST - this is cgi request [12:42:23]url: /json_proto [12:42:23]query_string will be loaded in cgi processing [12:42:23]execute_cgi json_proto POST (null) [12:42:23]execute_cgi path=json_proto method=POST [12:42:23]POST find Content-Length [12:42:23]Host: 172.17.49.132:8080 [12:42:23]Content-Length: 677 [12:42:23]Content-Type: application/json [12:42:23] [12:42:23]POST finish read [12:42:23]Found Content-Length = 677 [12:42:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:23]execute_script... [12:42: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)871889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:23]POST & json_proto [12:42:23]process_json_proto [12:42:23]json parsed OK: [12:42:23]protocol is kg_v1.0 [12:42:23]action value=close_receipt [12:42:23]process_action close_receipt [12:42:23]cmd_close_receipt [12:42:23]MH_GetDate [12:42:23]Write to MH i2c: F0 00 00 C4 4E 01 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: F0 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: F0 09 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: F0 09 00 C4 4E 00 B8 3C A6 66 E7 4B C0 64 60 [12:42:23]GetLastDocTimeStamp 1722170413 [12:42:23]current date 1722170552 [12:42:23]FM_GetShiftState [12:42:23]SAM_PROTO_GetShiftState [12:42:23]wFMCommunicate request_size=4 [12:42:23]MH_SAM_APDU [12:42:23]CAPDU: 80 13 01 00 [12:42:23]Write to MH i2c: E2 08 00 C5 4E 80 13 01 00 00 00 00 00 90 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:23]Read from MH i2c: E2 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 0E 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 0E 00 C5 4E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 CD [12:42:23]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:42:23]wFMCommunicate OK [12:42:23]SAM_PROTO_GetShiftState done [12:42:23]FM_GetShiftState done [12:42:23]opened in 1722127251 [12:42:23]opened+sec_in_day 1722213651 [12:42:23]quantity*price = 50036 [12:42:23]sum+1 = 50037 [12:42:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 108 28.07.2024 12:42 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69225 ФПД: 213371232687676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T124232&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69225&fm=213371232687676&tin=02508201610067®Number=0000000000092638&sum=50000 [12:42:24]StoreToDocumentArchive [12:42:24]shift 429 fd 69225 [12:42:24]save to /storage/0429/doc_00069225 [12:42:24]save last doc name /storage/0429/doc_00069225 to /storage/kkm_last_doc_name [12:42:24]save OK [12:42:24]Clear old archive folders... [12:42:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:24]tlvbuf is 00B15080 [12:42:24]SAM_PROTO_ClearQueue [12:42:24]wFMCommunicate request_size=4 [12:42:24]MH_SAM_APDU [12:42:24]CAPDU: 80 09 00 00 [12:42:24]Write to MH i2c: E2 08 00 D2 4E 80 09 00 00 00 00 00 00 92 [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:24]Read from MH i2c: E2 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 03 00 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 03 00 D2 4E 00 90 00 94 [12:42:24]RAPDU: 90 00 [12:42:24]wFMCommunicate OK [12:42:24]SAM_PROTO_ClearQueue done [12:42:24]KKMCreateOFDPacket [12:42:24]OFDProtocolAddRootSTLVToBuf [12:42:24]FM_MakeSignedData [12:42:24]FM_MakeSignedData [12:42:24]SAM_PROTO_SignData [12:42:24]wFMCommunicate request_size=4 [12:42:24]MH_SAM_APDU [12:42:24]CAPDU: 80 0D 01 02 [12:42:24]Write to MH i2c: E2 08 00 D3 4E 80 0D 01 02 00 00 00 00 9A [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 D3 4E 00 90 00 95 [12:42:25]RAPDU: 90 00 [12:42:25]wFMCommunicate OK [12:42:25]wFMCommunicate request_size=255 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 B8 3C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 69 0E 01 00 35 04 06 00 C2 [12:42:25]Write to MH i2c: E2 02 01 D4 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 B8 3C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 69 0E 01 00 35 04 06 00 C2 00 00 79 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 D4 4E 00 90 00 96 [12:42:25]RAPDU: 90 00 [12:42:25]wFMCommunicate OK [12:42:25]wFMCommunicate request_size=10 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 0D 02 02 05 0F 5C 87 96 3C [12:42:25]Write to MH i2c: E2 0D 00 D5 4E 80 0D 02 02 05 00 0F 5C 87 96 3C 00 00 6B [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 D5 4E 00 90 00 97 [12:42:25]RAPDU: 90 00 [12:42:25]wFMCommunicate OK [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 0D 03 02 [12:42:25]Write to MH i2c: E2 08 00 D6 4E 80 0D 03 02 00 00 00 00 9F [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 0B 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 0B 00 D6 4E 00 EC 7F AB DE 4C 8E CA DF 90 00 17 [12:42:25]RAPDU: EC 7F AB DE 4C 8E CA DF 90 00 [12:42:25]wFMCommunicate OK [12:42:25]SAM_PROTO_SignData done [12:42:25]FM_MakeSignedData done [12:42:25]CreateOFDProtocolMessage [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 11 00 00 [12:42:25]Write to MH i2c: E2 08 00 D7 4E 80 11 00 00 00 00 00 00 9F [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 17 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 17 00 D7 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 FB [12:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:42:25]wFMCommunicate OK [12:42:25]CreateOFDProtocolMessage done [12:42:25]OFDSenderStorePacket 69225 [12:42:25]StoreOFDPacket docnum=69225 [12:42:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 6E 45 07 01 9B 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 B8 3C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 69 0E 01 00 35 04 06 00 C2 0F 5C 87 96 3C EC 7F AB DE 4C 8E CA DF [12:42:25]CheckFolder [12:42:25]dirname=/storage/ofd_packets [12:42:25]CheckFolder done [12:42:25]ProducePacketName [12:42:25]name=ofd_packets/00069225 [12:42:25]NVStorageSaveData ofd_packets/00069225 [12:42:25]File name is /storage/ofd_packets/00069225 [12:42:25]Write 301 bytes [12:42:25]NVStorageSaveData done [12:42:25]OFDSenderStorePacket done [12:42:25]KKMCreateOFDPacket done [12:42:25]NVStorageSaveData kkm_last_timestamp [12:42:25]File name is /storage/kkm_last_timestamp [12:42:25]Write 4 bytes [12:42:25]NVStorageSaveData done [12:42:25]ExternCall_PrintAddStr [12:42:25]wPrintStart [12:42:25]Write to MH i2c: 01 00 00 D8 4E 26 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: 01 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: 01 07 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: 01 07 00 D8 4E 00 00 00 00 00 FF 0F 3B [12:42:25]RasterBufferAndPrint [12:42:25]line Счет N : (1)871889 [12:42:25]line ИНН: 02508201610067 [12:42:25]line Контрольно-Кассовый Чек [12:42:25]line ПРОДАЖА [12:42:25]line ТРК (МРК, ГНК) : 32 [12:42:25]line Товар: 2710124130 [12:42:25]line Аи-92-К-5 [12:42:25]line 7.380 * 67.80 [12:42:25]line = 500.36 [12:42:25]line НДС 12% НСП 1% [12:42:25]line > о реализуемом товаре [12:42:25]line ОКРУГЛЕНИЕ: -0.36 [12:42:25]line ИТОГО: 500.00 [12:42:25]line Внесено: 500.00 [12:42:25]line СДАЧА: 0.00 [12:42:25]line НСП 1% : 4.43 [12:42:25]line НДС 12% : 53.14 [12:42:25]line Наличными: 500.00 [12:42:25]line Безнал.: 0.00 [12:42:25]line Место: АЗС № 125 "Партнер Нефть" [12:42:25]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:42:25]line СНО: Общий режим [12:42:25]line Чек 108 28.07.2024 12:42 [12:42:25]line Смена: 429 ФФД: 1.0 [12:42:25]line ЗНМ: 0300000049 [12:42:25]line РНМ: 0000000000092638 [12:42:25]line Версия ККМ: 001 [12:42:25]line ФМ: 0000000000874949 [12:42:25]line ФД: 69225 [12:42:25]line ФПД: 213371232687676 [12:42:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T124232&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69225&fm=213371232687676&tin=02508201610067®Number=0000000000092638&sum=50000 [12:42:25]written 0, free lines is 4095 [12:42:25]OFD Sender: Processing packet 69225 [packets to send 19, broken 18] [12:42:25]ProducePacketName [12:42:25]name=ofd_packets/00069225 [12:42:25]OFD Sender: To server: pG, [12:42:25]CommunicateWithHost lk.salyk.kg:30040 [12:42:25]ConnectInit lk.salyk.kg [12:42:25]Connected sock=10 [12:42: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 39 34 39 0F 01 00 00 6E 45 07 01 9B 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 B8 3C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 69 0E 01 00 35 04 06 00 C2 0F 5C 87 96 3C EC 7F AB DE 4C 8E CA DF [12:42:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 1D 35 47 00 07 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 69 0E 01 00 F4 03 04 00 28 E3 A5 66 B6 04 01 00 00 4C C4 24 A9 0F 5B A3 65 [12:42:26]CommunicateWithHost err = 0 [12:42:26]CheckOFDResponse [12:42:26]1017 (14) - 77093643461234 [12:42:26]1041 (16) - 0000000000874949 [12:42:26]1040 (4) - 69225 [12:42:26]1012 (4) - 28.07.2024 06:20 [12:42:26]1206 (1) - 0 [12:42:26]OFD Sender: Remove packet 69225 [12:42:26]ProducePacketName [12:42:26]name=ofd_packets/00069225 [12:42:26]NVStorageDeleteData [12:42:26]Write to MH i2c: 01 00 00 03 4F 52 [12:42:26]Write i2c OK [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: 01 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: 01 07 00 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: 01 07 00 03 4F 00 00 00 00 00 E9 0C 4E [12:42:26]RasterBufferAndPrint [12:42:26]line [12:42:26]line [12:42:26]line [12:42:26]line [12:42:26]line [12:42:26]written 0, free lines is 3311 [12:42:26]MH_Cut [12:42:26]Write to MH i2c: D1 01 00 0A 4F 01 2B [12:42:26]Write i2c OK [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: D1 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: D1 01 00 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: D1 01 00 0A 4F 00 2A [12:42:26]Write to MH i2c: 01 00 00 0B 4F 5A [12:42:26]Write i2c OK [12:42:26]MH_I2C_Read... [12:42:26]OFD Sender: No OFD packet to send [12:42:26]*** Cut start [12:42:26]*** Partial cut [12:42:26]*** CUTSNS_PIN = 1 [12:42:26]*** CUTSNS_PIN = 0 [12:42:27]*** Brake cut motor [12:42:27]Read from MH i2c: 01 [12:42:27]MH_I2C_Read... [12:42:27]*** Stop cut motor [12:42:27]*** Cut end [12:42:27]Read from MH i2c: 01 07 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: 01 07 00 0B 4F 00 00 00 00 00 FF 0F 6F [12:42:27]process_action close_receipt done [12:42:27]requested_data is exist [12:42:27]produce_requested_data [12:42:27]requested_item fm.sn is exist - process it [12:42:27]wFMCommunicate request_size=4 [12:42:27]MH_SAM_APDU [12:42:27]CAPDU: 80 11 00 00 [12:42:27]Write to MH i2c: E2 08 00 0C 4F 80 11 00 00 00 00 00 00 D5 [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:27]Read from MH i2c: E2 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 17 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 17 00 0C 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 31 [12:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:42:27]wFMCommunicate OK [12:42:27]requested_item fd.num is exist - process it [12:42:27]SAM_PROTO_GetFieldsCounters [12:42:27]wFMCommunicate request_size=4 [12:42:27]MH_SAM_APDU [12:42:27]CAPDU: 80 13 00 00 [12:42:27]Write to MH i2c: E2 08 00 0D 4F 80 13 00 00 00 00 00 00 D8 [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:27]Read from MH i2c: E2 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 62 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 62 00 0D 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 69 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [12:42:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 69 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:27]wFMCommunicate OK [12:42:27]SAM_PROTO_GetFieldsCounters done [12:42:27]requested_item shift.num is exist - process it [12:42:27]requested_item shift.opened is exist - process it [12:42:27]req_shift_opened [12:42:27]FM_GetShiftState [12:42:27]SAM_PROTO_GetShiftState [12:42:27]wFMCommunicate request_size=4 [12:42:27]MH_SAM_APDU [12:42:27]CAPDU: 80 13 01 00 [12:42:27]Write to MH i2c: E2 08 00 0E 4F 80 13 01 00 00 00 00 00 DA [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:27]Read from MH i2c: E2 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 0E 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 0E 00 0E 4F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 17 [12:42:27]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [12:42:27]wFMCommunicate OK [12:42:27]SAM_PROTO_GetShiftState done [12:42:27]FM_GetShiftState done [12:42:27]req_shift_opened done [12:42:27]requested_item shift.open_date is exist - process it [12:42:27]req_shift_open_date [12:42:27]req_shift_open_date done [12:42:27]produce_requested_data done [12:42:27]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69225,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [12:42:27]process_action_free close_receipt [12:42:27]json_value_free [12:42:27]json_value_free done [12:42:27]process_json_proto returns [12:42:27]Send response to host [12:42:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69225,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [12:42:27]free response buf [12:42:27]execute_script done [12:42:27]execute_script returns [12:42:27]free content buf [12:42:27]Sock 7.Close socket [12:42:27]Sock 7.Thread stoped [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:15]accept exits with 9 [13:10:15]New connection [13:10:15]New thread 3066785124 created [13:10:15]Thread 3066641764 joined [13:10:15]Waiting for new connection... [13:10:15] Sock 9.Parse request [13:10:15]Sock 9.Check first char [13:10:15]Sock 9.First char is OK [13:10:15]request: POST /json_proto HTTP/1.0 [13:10:15]Method: POST [13:10:15]URL: /json_proto [13:10:15]Method is POST - this is cgi request [13:10:15]url: /json_proto [13:10:15]query_string will be loaded in cgi processing [13:10:15]execute_cgi json_proto POST (null) [13:10:15]execute_cgi path=json_proto method=POST [13:10:15]POST find Content-Length [13:10:15]Host: 172.17.49.132:8080 [13:10:15]Content-Length: 628 [13:10:15]Content-Type: application/json [13:10:15] [13:10:15]POST finish read [13:10:15]Found Content-Length = 628 [13:10:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136571", "tax_sys" : 0, "items" : [ { "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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:15]execute_script... [13:10: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)136571", "tax_sys" : 0, "items" : [ { "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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:15]POST & json_proto [13:10:15]process_json_proto [13:10:15]json parsed OK: [13:10:15]protocol is kg_v1.0 [13:10:15]action value=close_receipt [13:10:15]process_action close_receipt [13:10:15]cmd_close_receipt [13:10:15]MH_GetDate [13:10:15]Write to MH i2c: F0 00 00 0F 4F 4D [13:10:15]Write i2c OK [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: F0 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: F0 09 00 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: F0 09 00 0F 4F 00 40 43 A6 66 E7 4B C0 64 3B [13:10:15]GetLastDocTimeStamp 1722170552 [13:10:15]current date 1722172224 [13:10:15]FM_GetShiftState [13:10:15]SAM_PROTO_GetShiftState [13:10:15]wFMCommunicate request_size=4 [13:10:15]MH_SAM_APDU [13:10:15]CAPDU: 80 13 01 00 [13:10:15]Write to MH i2c: E2 08 00 10 4F 80 13 01 00 00 00 00 00 DC [13:10:15]Write i2c OK [13:10:15]MH_I2C_Read... [13:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:15]Read from MH i2c: E2 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 0E 00 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 0E 00 10 4F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 19 [13:10:15]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [13:10:15]wFMCommunicate OK [13:10:15]SAM_PROTO_GetShiftState done [13:10:15]FM_GetShiftState done [13:10:15]opened in 1722127251 [13:10:15]opened+sec_in_day 1722213651 [13:10:15]quantity*price = 26000 [13:10:15]sum+1 = 26001 [13:10:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 109 28.07.2024 13:10 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69226 ФПД: 222462184576169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T131024&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69226&fm=222462184576169&tin=02508201610067®Number=0000000000092638&sum=26000 0 [13:10:16]StoreToDocumentArchive [13:10:16]shift 429 fd 69226 [13:10:16]save to /storage/0429/doc_00069226 [13:10:16]save last doc name /storage/0429/doc_00069226 to /storage/kkm_last_doc_name [13:10:16]save OK [13:10:16]Clear old archive folders... [13:10:16]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:10:16]tlvbuf is 00A37B00 [13:10:16]SAM_PROTO_ClearQueue [13:10:16]wFMCommunicate request_size=4 [13:10:16]MH_SAM_APDU [13:10:16]CAPDU: 80 09 00 00 [13:10:16]Write to MH i2c: E2 08 00 1D 4F 80 09 00 00 00 00 00 00 DE [13:10:16]Write i2c OK [13:10:16]MH_I2C_Read... [13:10:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:16]Read from MH i2c: E2 [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: E2 03 00 [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: E2 03 00 1D 4F 00 90 00 E0 [13:10:16]RAPDU: 90 00 [13:10:16]wFMCommunicate OK [13:10:16]SAM_PROTO_ClearQueue done [13:10:16]KKMCreateOFDPacket [13:10:16]OFDProtocolAddRootSTLVToBuf [13:10:16]FM_MakeSignedData [13:10:16]FM_MakeSignedData [13:10:16]SAM_PROTO_SignData [13:10:16]wFMCommunicate request_size=4 [13:10:16]MH_SAM_APDU [13:10:16]CAPDU: 80 0D 01 02 [13:10:16]Write to MH i2c: E2 08 00 1E 4F 80 0D 01 02 00 00 00 00 E6 [13:10:16]Write i2c OK [13:10:16]MH_I2C_Read... [13:10:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:16]Read from MH i2c: E2 [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: E2 03 00 [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: E2 03 00 1E 4F 00 90 00 E1 [13:10:16]RAPDU: 90 00 [13:10:16]wFMCommunicate OK [13:10:16]wFMCommunicate request_size=255 [13:10:16]MH_SAM_APDU [13:10:16]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 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 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 6D 00 00 00 F4 03 04 00 40 43 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 [13:10:16]Write to MH i2c: E2 02 01 1F 4F 80 0D 02 02 FA 00 03 00 14 01 1E 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 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 6D 00 00 00 F4 03 04 00 40 43 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 00 00 68 [13:10:16]Write i2c OK [13:10:16]MH_I2C_Read... [13:10:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:17]Read from MH i2c: E2 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: E2 03 00 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: E2 03 00 1F 4F 00 90 00 E2 [13:10:17]RAPDU: 90 00 [13:10:17]wFMCommunicate OK [13:10:17]wFMCommunicate request_size=35 [13:10:17]MH_SAM_APDU [13:10:17]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6A 0E 01 00 35 04 06 00 CA 54 03 7C D4 A9 [13:10:17]Write to MH i2c: E2 26 00 20 4F 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6A 0E 01 00 35 04 06 00 CA 54 03 7C D4 A9 00 00 78 [13:10:17]Write i2c OK [13:10:17]MH_I2C_Read... [13:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:17]Read from MH i2c: E2 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: E2 03 00 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: E2 03 00 20 4F 00 90 00 E3 [13:10:17]RAPDU: 90 00 [13:10:17]wFMCommunicate OK [13:10:17]wFMCommunicate request_size=4 [13:10:17]MH_SAM_APDU [13:10:17]CAPDU: 80 0D 03 02 [13:10:17]Write to MH i2c: E2 08 00 21 4F 80 0D 03 02 00 00 00 00 EB [13:10:17]Write i2c OK [13:10:17]MH_I2C_Read... [13:10:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:17]Read from MH i2c: E2 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: E2 0B 00 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: E2 0B 00 21 4F 00 AD 84 95 A4 82 9F 2B AF 90 00 51 [13:10:17]RAPDU: AD 84 95 A4 82 9F 2B AF 90 00 [13:10:17]wFMCommunicate OK [13:10:17]SAM_PROTO_SignData done [13:10:17]FM_MakeSignedData done [13:10:17]CreateOFDProtocolMessage [13:10:17]wFMCommunicate request_size=4 [13:10:17]MH_SAM_APDU [13:10:17]CAPDU: 80 11 00 00 [13:10:17]Write to MH i2c: E2 08 00 22 4F 80 11 00 00 00 00 00 00 EB [13:10:17]Write i2c OK [13:10:17]MH_I2C_Read... [13:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:17]Read from MH i2c: E2 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: E2 17 00 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: E2 17 00 22 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 47 [13:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:10:17]wFMCommunicate OK [13:10:17]CreateOFDProtocolMessage done [13:10:17]OFDSenderStorePacket 69226 [13:10:17]StoreOFDPacket docnum=69226 [13:10:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 28 01 00 00 A7 FB 20 01 9C 0B 5A 03 01 00 03 00 14 01 1E 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 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 6D 00 00 00 F4 03 04 00 40 43 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6A 0E 01 00 35 04 06 00 CA 54 03 7C D4 A9 AD 84 95 A4 82 9F 2B AF [13:10:17]CheckFolder [13:10:17]dirname=/storage/ofd_packets [13:10:17]CheckFolder done [13:10:17]ProducePacketName [13:10:17]name=ofd_packets/00069226 [13:10:17]NVStorageSaveData ofd_packets/00069226 [13:10:17]File name is /storage/ofd_packets/00069226 [13:10:17]Write 326 bytes [13:10:17]NVStorageSaveData done [13:10:17]OFDSenderStorePacket done [13:10:17]KKMCreateOFDPacket done [13:10:17]NVStorageSaveData kkm_last_timestamp [13:10:17]File name is /storage/kkm_last_timestamp [13:10:17]Write 4 bytes [13:10:17]NVStorageSaveData done [13:10:17]ExternCall_PrintAddStr [13:10:17]wPrintStart [13:10:17]Write to MH i2c: 01 00 00 23 4F 72 [13:10:17]Write i2c OK [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: 01 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: 01 07 00 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: 01 07 00 23 4F 00 00 00 00 00 FF 0F 87 [13:10:17]RasterBufferAndPrint [13:10:17]line Счет N : (3)136571 [13:10:17]line ИНН: 02508201610067 [13:10:17]line Контрольно-Кассовый Чек [13:10:17]line ПРОДАЖА [13:10:17]line Товар: 2000036230011 [13:10:17]line Кофе Латте XL(GABB TRADE) [13:10:17]line 2.000 * 130.00 [13:10:17]line = 260.00 [13:10:17]line НДС 12% НСП 1% [13:10:17]line > о реализуемом товаре [13:10:17]line ИТОГО: 260.00 [13:10:17]line НСП 1% : 2.30 [13:10:17]line НДС 12% : 27.61 [13:10:17]line Наличными: 260.00 [13:10:17]line Безнал.: 0.00 [13:10:17]line Место: АЗС № 125 "Партнер Нефть" [13:10:17]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:10:17]line СНО: Общий режим [13:10:17]line Чек 109 28.07.2024 13:10 [13:10:17]line Смена: 429 ФФД: 1.0 [13:10:17]line ЗНМ: 0300000049 [13:10:17]line РНМ: 0000000000092638 [13:10:17]line Версия ККМ: 001 [13:10:17]line ФМ: 0000000000874949 [13:10:17]line ФД: 69226 [13:10:17]line ФПД: 222462184576169 [13:10:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T131024&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69226&fm=222462184576169&tin=02508201610067®Number=0000000000092638&sum=26000 [13:10:17]line 0 [13:10:17]OFD Sender: Processing packet 69226 [packets to send 19, broken 18] [13:10:17]ProducePacketName [13:10:17]name=ofd_packets/00069226 [13:10:17]OFD Sender: To server: pG, [13:10:17]CommunicateWithHost lk.salyk.kg:30040 [13:10:17]ConnectInit lk.salyk.kg [13:10:17]written 0, free lines is 4095 [13:10:17]Connected sock=10 [13:10: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 39 34 39 28 01 00 00 A7 FB 20 01 9C 0B 5A 03 01 00 03 00 14 01 1E 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 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 6D 00 00 00 F4 03 04 00 40 43 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6A 0E 01 00 35 04 06 00 CA 54 03 7C D4 A9 AD 84 95 A4 82 9F 2B AF [13:10:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 80 DF 47 00 66 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6A 0E 01 00 F4 03 04 00 B0 E9 A5 66 B6 04 01 00 00 FB 0A 31 B3 A5 61 B5 4A [13:10:17]CommunicateWithHost err = 0 [13:10:17]CheckOFDResponse [13:10:17]1017 (14) - 77093643461234 [13:10:17]1041 (16) - 0000000000874949 [13:10:17]1040 (4) - 69226 [13:10:17]1012 (4) - 28.07.2024 06:48 [13:10:17]1206 (1) - 0 [13:10:17]OFD Sender: Remove packet 69226 [13:10:17]ProducePacketName [13:10:17]name=ofd_packets/00069226 [13:10:17]NVStorageDeleteData [13:10:17]Write to MH i2c: 01 00 00 4B 4F 9A [13:10:17]Write i2c OK [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: 01 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: 01 07 00 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: 01 07 00 4B 4F 00 00 00 00 00 29 0D D7 [13:10:17]RasterBufferAndPrint [13:10:17]line [13:10:17]line [13:10:17]line [13:10:17]line [13:10:17]line [13:10:17]written 0, free lines is 3376 [13:10:17]MH_Cut [13:10:17]Write to MH i2c: D1 01 00 52 4F 01 73 [13:10:17]Write i2c OK [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: D1 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: D1 01 00 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: D1 01 00 52 4F 00 72 [13:10:17]Write to MH i2c: 01 00 00 53 4F A2 [13:10:17]Write i2c OK [13:10:17]MH_I2C_Read... [13:10:18]OFD Sender: No OFD packet to send [13:10:18]*** Cut start [13:10:18]*** Partial cut [13:10:18]*** CUTSNS_PIN = 1 [13:10:18]*** CUTSNS_PIN = 0 [13:10:18]*** Brake cut motor [13:10:19]Read from MH i2c: 01 [13:10:19]MH_I2C_Read... [13:10:19]*** Stop cut motor [13:10:19]*** Cut end [13:10:19]Read from MH i2c: 01 07 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: 01 07 00 53 4F 00 00 00 00 00 FF 0F B7 [13:10:19]process_action close_receipt done [13:10:19]requested_data is exist [13:10:19]produce_requested_data [13:10:19]requested_item fm.sn is exist - process it [13:10:19]wFMCommunicate request_size=4 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 11 00 00 [13:10:19]Write to MH i2c: E2 08 00 54 4F 80 11 00 00 00 00 00 00 1D [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 17 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 17 00 54 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 79 [13:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:10:19]wFMCommunicate OK [13:10:19]requested_item fd.num is exist - process it [13:10:19]SAM_PROTO_GetFieldsCounters [13:10:19]wFMCommunicate request_size=4 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 13 00 00 [13:10:19]Write to MH i2c: E2 08 00 55 4F 80 13 00 00 00 00 00 00 20 [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 62 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 62 00 55 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 6A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [13:10: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 6A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:19]wFMCommunicate OK [13:10:19]SAM_PROTO_GetFieldsCounters done [13:10:19]requested_item shift.num is exist - process it [13:10:19]requested_item shift.opened is exist - process it [13:10:19]req_shift_opened [13:10:19]FM_GetShiftState [13:10:19]SAM_PROTO_GetShiftState [13:10:19]wFMCommunicate request_size=4 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 13 01 00 [13:10:19]Write to MH i2c: E2 08 00 56 4F 80 13 01 00 00 00 00 00 22 [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 0E 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 0E 00 56 4F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 5F [13:10:19]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [13:10:19]wFMCommunicate OK [13:10:19]SAM_PROTO_GetShiftState done [13:10:19]FM_GetShiftState done [13:10:19]req_shift_opened done [13:10:19]requested_item shift.open_date is exist - process it [13:10:19]req_shift_open_date [13:10:19]req_shift_open_date done [13:10:19]produce_requested_data done [13:10:19]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69226,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [13:10:19]process_action_free close_receipt [13:10:19]json_value_free [13:10:19]json_value_free done [13:10:19]process_json_proto returns [13:10:19]Send response to host [13:10:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69226,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [13:10:19]free response buf [13:10:19]execute_script done [13:10:19]execute_script returns [13:10:19]free content buf [13:10:19]Sock 9.Close socket [13:10:19]Sock 9.Thread stoped [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:12]accept exits with 7 [13:20:12]New connection [13:20:12]New thread 3066641764 created [13:20:12]Thread 3066785124 joined [13:20:12]Waiting for new connection... [13:20:12] Sock 7.Parse request [13:20:12]Sock 7.Check first char [13:20:12]Sock 7.First char is OK [13:20:12]request: POST /json_proto HTTP/1.0 [13:20:12]Method: POST [13:20:12]URL: /json_proto [13:20:12]Method is POST - this is cgi request [13:20:12]url: /json_proto [13:20:12]query_string will be loaded in cgi processing [13:20:12]execute_cgi json_proto POST (null) [13:20:12]execute_cgi path=json_proto method=POST [13:20:12]POST find Content-Length [13:20:12]Host: 172.17.49.132:8080 [13:20:12]Content-Length: 632 [13:20:12]Content-Type: application/json [13:20:12] [13:20:12]POST finish read [13:20:12]Found Content-Length = 632 [13:20:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136572", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 3.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:12]execute_script... [13:20:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136572", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 3.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:12]POST & json_proto [13:20:12]process_json_proto [13:20:12]json parsed OK: [13:20:12]protocol is kg_v1.0 [13:20:12]action value=close_receipt [13:20:12]process_action close_receipt [13:20:12]cmd_close_receipt [13:20:12]MH_GetDate [13:20:12]Write to MH i2c: F0 00 00 57 4F 95 [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: F0 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: F0 09 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: F0 09 00 57 4F 00 95 45 A6 66 E7 4B C0 64 DA [13:20:12]GetLastDocTimeStamp 1722172224 [13:20:12]current date 1722172821 [13:20:12]FM_GetShiftState [13:20:12]SAM_PROTO_GetShiftState [13:20:12]wFMCommunicate request_size=4 [13:20:12]MH_SAM_APDU [13:20:12]CAPDU: 80 13 01 00 [13:20:12]Write to MH i2c: E2 08 00 58 4F 80 13 01 00 00 00 00 00 24 [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:12]Read from MH i2c: E2 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 0E 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 0E 00 58 4F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 61 [13:20:12]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [13:20:12]wFMCommunicate OK [13:20:12]SAM_PROTO_GetShiftState done [13:20:12]FM_GetShiftState done [13:20:12]opened in 1722127251 [13:20:12]opened+sec_in_day 1722213651 [13:20:12]quantity*price = 15000 [13:20:12]sum+1 = 15001 [13:20:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 110 28.07.2024 13:20 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69227 ФПД: 125010456186223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T132021&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69227&fm=125010456186223&tin=02508201610067®Number=0000000000092638&sum=15000 0 [13:20:13]StoreToDocumentArchive [13:20:13]shift 429 fd 69227 [13:20:13]save to /storage/0429/doc_00069227 [13:20:13]save last doc name /storage/0429/doc_00069227 to /storage/kkm_last_doc_name [13:20:13]save OK [13:20:13]Clear old archive folders... [13:20:13]OFD Sender: No OFD packet to send [13:20:13]ProcessDocumentItem done err = 0, tmpTLVsize=269 [13:20:13]tlvbuf is 00A1B440 [13:20:13]SAM_PROTO_ClearQueue [13:20:13]wFMCommunicate request_size=4 [13:20:13]MH_SAM_APDU [13:20:13]CAPDU: 80 09 00 00 [13:20:13]Write to MH i2c: E2 08 00 65 4F 80 09 00 00 00 00 00 00 26 [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:13]Read from MH i2c: E2 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 03 00 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 03 00 65 4F 00 90 00 28 [13:20:13]RAPDU: 90 00 [13:20:13]wFMCommunicate OK [13:20:13]SAM_PROTO_ClearQueue done [13:20:13]KKMCreateOFDPacket [13:20:13]OFDProtocolAddRootSTLVToBuf [13:20:13]FM_MakeSignedData [13:20:13]FM_MakeSignedData [13:20:13]SAM_PROTO_SignData [13:20:13]wFMCommunicate request_size=4 [13:20:13]MH_SAM_APDU [13:20:13]CAPDU: 80 0D 01 02 [13:20:13]Write to MH i2c: E2 08 00 66 4F 80 0D 01 02 00 00 00 00 2E [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:13]Read from MH i2c: E2 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 03 00 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 03 00 66 4F 00 90 00 29 [13:20:13]RAPDU: 90 00 [13:20:13]wFMCommunicate OK [13:20:13]wFMCommunicate request_size=255 [13:20:13]MH_SAM_APDU [13:20:13]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 95 45 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [13:20:13]Write to MH i2c: E2 02 01 67 4F 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 95 45 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 4A [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 03 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 03 00 67 4F 00 90 00 2A [13:20:14]RAPDU: 90 00 [13:20:14]wFMCommunicate OK [13:20:14]wFMCommunicate request_size=28 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 0D 02 02 17 37 34 39 34 39 10 04 04 00 6B 0E 01 00 35 04 06 00 71 B2 43 D5 8D 6F [13:20:14]Write to MH i2c: E2 1F 00 68 4F 80 0D 02 02 17 00 37 34 39 34 39 10 04 04 00 6B 0E 01 00 35 04 06 00 71 B2 43 D5 8D 6F 00 00 78 [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 03 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 03 00 68 4F 00 90 00 2B [13:20:14]RAPDU: 90 00 [13:20:14]wFMCommunicate OK [13:20:14]wFMCommunicate request_size=4 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 0D 03 02 [13:20:14]Write to MH i2c: E2 08 00 69 4F 80 0D 03 02 00 00 00 00 33 [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 0B 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 0B 00 69 4F 00 86 D0 4A A9 6B B3 B5 3A 90 00 8A [13:20:14]RAPDU: 86 D0 4A A9 6B B3 B5 3A 90 00 [13:20:14]wFMCommunicate OK [13:20:14]SAM_PROTO_SignData done [13:20:14]FM_MakeSignedData done [13:20:14]CreateOFDProtocolMessage [13:20:14]wFMCommunicate request_size=4 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 11 00 00 [13:20:14]Write to MH i2c: E2 08 00 6A 4F 80 11 00 00 00 00 00 00 33 [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 17 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 17 00 6A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 8F [13:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:20:14]wFMCommunicate OK [13:20:14]CreateOFDProtocolMessage done [13:20:14]OFDSenderStorePacket 69227 [13:20:14]StoreOFDPacket docnum=69227 [13:20:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 21 01 00 00 1B D8 19 01 E6 23 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 95 45 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6B 0E 01 00 35 04 06 00 71 B2 43 D5 8D 6F 86 D0 4A A9 6B B3 B5 3A [13:20:14]CheckFolder [13:20:14]dirname=/storage/ofd_packets [13:20:14]CheckFolder done [13:20:14]ProducePacketName [13:20:14]name=ofd_packets/00069227 [13:20:14]NVStorageSaveData ofd_packets/00069227 [13:20:14]File name is /storage/ofd_packets/00069227 [13:20:14]Write 319 bytes [13:20:14]NVStorageSaveData done [13:20:14]OFDSenderStorePacket done [13:20:14]KKMCreateOFDPacket done [13:20:14]NVStorageSaveData kkm_last_timestamp [13:20:14]File name is /storage/kkm_last_timestamp [13:20:14]Write 4 bytes [13:20:14]NVStorageSaveData done [13:20:14]ExternCall_PrintAddStr [13:20:14]wPrintStart [13:20:14]Write to MH i2c: 01 00 00 6B 4F BA [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: 01 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: 01 07 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: 01 07 00 6B 4F 00 00 00 00 00 FF 0F CF [13:20:14]RasterBufferAndPrint [13:20:14]line Счет N : (3)136572 [13:20:14]line ИНН: 02508201610067 [13:20:14]line Контрольно-Кассовый Чек [13:20:14]line ПРОДАЖА [13:20:14]line Товар: 4700000160358 [13:20:14]line Вода Легенда 1л [13:20:14]line 3.000 * 50.00 [13:20:14]line = 150.00 [13:20:14]line НДС 12% НСП 1% [13:20:14]line > о реализуемом товаре [13:20:14]line ИТОГО: 150.00 [13:20:14]line НСП 1% : 1.33 [13:20:14]line НДС 12% : 15.93 [13:20:14]line Наличными: 150.00 [13:20:14]line Безнал.: 0.00 [13:20:14]line Место: АЗС № 125 "Партнер Нефть" [13:20:14]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:20:14]line СНО: Общий режим [13:20:14]line Чек 110 28.07.2024 13:20 [13:20:14]line Смена: 429 ФФД: 1.0 [13:20:14]line ЗНМ: 0300000049 [13:20:14]line РНМ: 0000000000092638 [13:20:14]line Версия ККМ: 001 [13:20:14]line ФМ: 0000000000874949 [13:20:14]line ФД: 69227 [13:20:14]line ФПД: 125010456186223 [13:20:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T132021&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69227&fm=125010456186223&tin=02508201610067®Number=0000000000092638&sum=15000 [13:20:14]line 0 [13:20:14]written 0, free lines is 4095 [13:20:14]OFD Sender: Processing packet 69227 [packets to send 19, broken 18] [13:20:14]ProducePacketName [13:20:14]name=ofd_packets/00069227 [13:20:14]OFD Sender: To server: pG, [13:20:14]CommunicateWithHost lk.salyk.kg:30040 [13:20:14]ConnectInit lk.salyk.kg [13:20:14]Connected sock=10 [13:20:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 21 01 00 00 1B D8 19 01 E6 23 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 95 45 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6B 0E 01 00 35 04 06 00 71 B2 43 D5 8D 6F 86 D0 4A A9 6B B3 B5 3A [13:20:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 B4 47 47 00 82 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6B 0E 01 00 F4 03 04 00 05 EC A5 66 B6 04 01 00 00 E3 60 40 61 1E 22 6E CC [13:20:15]CommunicateWithHost err = 0 [13:20:15]CheckOFDResponse [13:20:15]1017 (14) - 77093643461234 [13:20:15]1041 (16) - 0000000000874949 [13:20:15]1040 (4) - 69227 [13:20:15]1012 (4) - 28.07.2024 06:58 [13:20:15]1206 (1) - 0 [13:20:15]OFD Sender: Remove packet 69227 [13:20:15]ProducePacketName [13:20:15]name=ofd_packets/00069227 [13:20:15]NVStorageDeleteData [13:20:15]Write to MH i2c: 01 00 00 93 4F E2 [13:20:15]Write i2c OK [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: 01 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: 01 07 00 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: 01 07 00 93 4F 00 00 00 00 00 39 0D 2F [13:20:15]RasterBufferAndPrint [13:20:15]line [13:20:15]line [13:20:15]line [13:20:15]line [13:20:15]line [13:20:15]written 0, free lines is 3394 [13:20:15]MH_Cut [13:20:15]Write to MH i2c: D1 01 00 9A 4F 01 BB [13:20:15]Write i2c OK [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: D1 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: D1 01 00 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: D1 01 00 9A 4F 00 BA [13:20:15]Write to MH i2c: 01 00 00 9B 4F EA [13:20:15]Write i2c OK [13:20:15]MH_I2C_Read... [13:20:15]OFD Sender: No OFD packet to send [13:20:15]*** Cut start [13:20:15]*** Partial cut [13:20:15]*** CUTSNS_PIN = 1 [13:20:15]*** CUTSNS_PIN = 0 [13:20:16]*** Brake cut motor [13:20:16]Read from MH i2c: 01 [13:20:16]MH_I2C_Read... [13:20:16]*** Stop cut motor [13:20:16]*** Cut end [13:20:16]Read from MH i2c: 01 07 00 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: 01 07 00 9B 4F 00 00 00 00 00 FF 0F FF [13:20:16]process_action close_receipt done [13:20:16]requested_data is exist [13:20:16]produce_requested_data [13:20:16]requested_item fm.sn is exist - process it [13:20:16]wFMCommunicate request_size=4 [13:20:16]MH_SAM_APDU [13:20:16]CAPDU: 80 11 00 00 [13:20:16]Write to MH i2c: E2 08 00 9C 4F 80 11 00 00 00 00 00 00 65 [13:20:16]Write i2c OK [13:20:16]MH_I2C_Read... [13:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:16]Read from MH i2c: E2 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 17 00 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 17 00 9C 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C1 [13:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:20:16]wFMCommunicate OK [13:20:16]requested_item fd.num is exist - process it [13:20:16]SAM_PROTO_GetFieldsCounters [13:20:16]wFMCommunicate request_size=4 [13:20:16]MH_SAM_APDU [13:20:16]CAPDU: 80 13 00 00 [13:20:16]Write to MH i2c: E2 08 00 9D 4F 80 13 00 00 00 00 00 00 68 [13:20:16]Write i2c OK [13:20:16]MH_I2C_Read... [13:20:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:16]Read from MH i2c: E2 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 62 00 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 62 00 9D 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 6B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [13:20:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 6B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:16]wFMCommunicate OK [13:20:16]SAM_PROTO_GetFieldsCounters done [13:20:16]requested_item shift.num is exist - process it [13:20:16]requested_item shift.opened is exist - process it [13:20:16]req_shift_opened [13:20:16]FM_GetShiftState [13:20:16]SAM_PROTO_GetShiftState [13:20:16]wFMCommunicate request_size=4 [13:20:16]MH_SAM_APDU [13:20:16]CAPDU: 80 13 01 00 [13:20:16]Write to MH i2c: E2 08 00 9E 4F 80 13 01 00 00 00 00 00 6A [13:20:16]Write i2c OK [13:20:16]MH_I2C_Read... [13:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:16]Read from MH i2c: E2 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 0E 00 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 0E 00 9E 4F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A7 [13:20:16]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [13:20:16]wFMCommunicate OK [13:20:16]SAM_PROTO_GetShiftState done [13:20:16]FM_GetShiftState done [13:20:16]req_shift_opened done [13:20:16]requested_item shift.open_date is exist - process it [13:20:16]req_shift_open_date [13:20:16]req_shift_open_date done [13:20:16]produce_requested_data done [13:20:16]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69227,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [13:20:16]process_action_free close_receipt [13:20:16]json_value_free [13:20:16]json_value_free done [13:20:16]process_json_proto returns [13:20:16]Send response to host [13:20:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69227,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [13:20:16]free response buf [13:20:16]execute_script done [13:20:16]execute_script returns [13:20:16]free content buf [13:20:16]Sock 7.Close socket [13:20:16]Sock 7.Thread stoped [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:09]accept exits with 9 [13:37:09]New connection [13:37:09]New thread 3066785124 created [13:37:09]Thread 3066641764 joined [13:37:09]Waiting for new connection... [13:37:09] Sock 9.Parse request [13:37:09]Sock 9.Check first char [13:37:09]Sock 9.First char is OK [13:37:09]request: POST /json_proto HTTP/1.0 [13:37:09]Method: POST [13:37:09]URL: /json_proto [13:37:09]Method is POST - this is cgi request [13:37:09]url: /json_proto [13:37:09]query_string will be loaded in cgi processing [13:37:09]execute_cgi json_proto POST (null) [13:37:09]execute_cgi path=json_proto method=POST [13:37:09]POST find Content-Length [13:37:09]Host: 172.17.49.132:8080 [13:37:09]Content-Length: 645 [13:37:09]Content-Type: application/json [13:37:09] [13:37:09]POST finish read [13:37:09]Found Content-Length = 645 [13:37:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136573", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\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" ] } } [13:37:09]execute_script... [13:37:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136573", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\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" ] } } [13:37:09]POST & json_proto [13:37:09]process_json_proto [13:37:09]json parsed OK: [13:37:09]protocol is kg_v1.0 [13:37:09]action value=close_receipt [13:37:09]process_action close_receipt [13:37:09]cmd_close_receipt [13:37:09]MH_GetDate [13:37:09]Write to MH i2c: F0 00 00 9F 4F DD [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: F0 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: F0 09 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: F0 09 00 9F 4F 00 8E 49 A6 66 E7 4B C0 64 1F [13:37:09]GetLastDocTimeStamp 1722172821 [13:37:09]current date 1722173838 [13:37:09]FM_GetShiftState [13:37:09]SAM_PROTO_GetShiftState [13:37:09]wFMCommunicate request_size=4 [13:37:09]MH_SAM_APDU [13:37:09]CAPDU: 80 13 01 00 [13:37:09]Write to MH i2c: E2 08 00 A0 4F 80 13 01 00 00 00 00 00 6C [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:09]Read from MH i2c: E2 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 0E 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 0E 00 A0 4F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A9 [13:37:09]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [13:37:09]wFMCommunicate OK [13:37:09]SAM_PROTO_GetShiftState done [13:37:09]FM_GetShiftState done [13:37:09]opened in 1722127251 [13:37:09]opened+sec_in_day 1722213651 [13:37:09]quantity*price = 6000 [13:37:09]sum+1 = 6001 [13:37:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 111 28.07.2024 13:37 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69228 ФПД: 95018954469467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T133718&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69228&fm=95018954469467&tin=02508201610067®Number=0000000000092638&sum=6000 0 [13:37:10]StoreToDocumentArchive [13:37:10]shift 429 fd 69228 [13:37:10]save to /storage/0429/doc_00069228 [13:37:10]save last doc name /storage/0429/doc_00069228 to /storage/kkm_last_doc_name [13:37:10]save OK [13:37:10]Clear old archive folders... [13:37:10]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:37:10]tlvbuf is 00B55110 [13:37:10]SAM_PROTO_ClearQueue [13:37:10]wFMCommunicate request_size=4 [13:37:10]MH_SAM_APDU [13:37:10]CAPDU: 80 09 00 00 [13:37:10]Write to MH i2c: E2 08 00 AD 4F 80 09 00 00 00 00 00 00 6E [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:10]Read from MH i2c: E2 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 03 00 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 03 00 AD 4F 00 90 00 70 [13:37:10]RAPDU: 90 00 [13:37:10]wFMCommunicate OK [13:37:10]SAM_PROTO_ClearQueue done [13:37:10]KKMCreateOFDPacket [13:37:10]OFDProtocolAddRootSTLVToBuf [13:37:10]FM_MakeSignedData [13:37:10]FM_MakeSignedData [13:37:10]SAM_PROTO_SignData [13:37:10]wFMCommunicate request_size=4 [13:37:10]MH_SAM_APDU [13:37:10]CAPDU: 80 0D 01 02 [13:37:10]Write to MH i2c: E2 08 00 AE 4F 80 0D 01 02 00 00 00 00 76 [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:10]Read from MH i2c: E2 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 03 00 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 03 00 AE 4F 00 90 00 71 [13:37:10]RAPDU: 90 00 [13:37:10]wFMCommunicate OK [13:37:10]wFMCommunicate request_size=255 [13:37:10]MH_SAM_APDU [13:37:10]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 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 31 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 6F 00 00 00 F4 03 04 00 8E 49 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 [13:37:10]Write to MH i2c: E2 02 01 AF 4F 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 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 31 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 6F 00 00 00 F4 03 04 00 8E 49 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 00 00 B4 [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 03 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 03 00 AF 4F 00 90 00 72 [13:37:11]RAPDU: 90 00 [13:37:11]wFMCommunicate OK [13:37:11]wFMCommunicate request_size=35 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6C 0E 01 00 35 04 06 00 56 6B 53 07 30 5B [13:37:11]Write to MH i2c: E2 26 00 B0 4F 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6C 0E 01 00 35 04 06 00 56 6B 53 07 30 5B 00 00 96 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 03 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 03 00 B0 4F 00 90 00 73 [13:37:11]RAPDU: 90 00 [13:37:11]wFMCommunicate OK [13:37:11]wFMCommunicate request_size=4 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 0D 03 02 [13:37:11]Write to MH i2c: E2 08 00 B1 4F 80 0D 03 02 00 00 00 00 7B [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 0B 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 0B 00 B1 4F 00 3B A1 50 45 6B B9 E5 43 90 00 39 [13:37:11]RAPDU: 3B A1 50 45 6B B9 E5 43 90 00 [13:37:11]wFMCommunicate OK [13:37:11]SAM_PROTO_SignData done [13:37:11]FM_MakeSignedData done [13:37:11]CreateOFDProtocolMessage [13:37:11]wFMCommunicate request_size=4 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 11 00 00 [13:37:11]Write to MH i2c: E2 08 00 B2 4F 80 11 00 00 00 00 00 00 7B [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 17 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 17 00 B2 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D7 [13:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:37:11]wFMCommunicate OK [13:37:11]CreateOFDProtocolMessage done [13:37:11]OFDSenderStorePacket 69228 [13:37:11]StoreOFDPacket docnum=69228 [13:37:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 28 01 00 00 20 37 20 01 88 3E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 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 31 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 6F 00 00 00 F4 03 04 00 8E 49 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6C 0E 01 00 35 04 06 00 56 6B 53 07 30 5B 3B A1 50 45 6B B9 E5 43 [13:37:11]CheckFolder [13:37:11]dirname=/storage/ofd_packets [13:37:11]CheckFolder done [13:37:11]ProducePacketName [13:37:11]name=ofd_packets/00069228 [13:37:11]NVStorageSaveData ofd_packets/00069228 [13:37:11]File name is /storage/ofd_packets/00069228 [13:37:11]Write 326 bytes [13:37:11]NVStorageSaveData done [13:37:11]OFDSenderStorePacket done [13:37:11]KKMCreateOFDPacket done [13:37:11]NVStorageSaveData kkm_last_timestamp [13:37:11]File name is /storage/kkm_last_timestamp [13:37:11]Write 4 bytes [13:37:11]NVStorageSaveData done [13:37:11]ExternCall_PrintAddStr [13:37:11]wPrintStart [13:37:11]Write to MH i2c: 01 00 00 B3 4F 02 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: 01 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: 01 07 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: 01 07 00 B3 4F 00 00 00 00 00 FF 0F 17 [13:37:11]RasterBufferAndPrint [13:37:11]line Счет N : (3)136573 [13:37:11]line ИНН: 02508201610067 [13:37:11]line Контрольно-Кассовый Чек [13:37:11]line ПРОДАЖА [13:37:11]line Товар: 4700000310043 [13:37:11]line Вода Жалалабат 27 1л [13:37:11]line 1.000 * 60.00 [13:37:11]line = 60.00 [13:37:11]line НДС 12% НСП 1% [13:37:11]line > о реализуемом товаре [13:37:11]line ИТОГО: 60.00 [13:37:11]line НСП 1% : 0.53 [13:37:11]line НДС 12% : 6.37 [13:37:11]line Наличными: 60.00 [13:37:11]line Безнал.: 0.00 [13:37:11]line Место: АЗС № 125 "Партнер Нефть" [13:37:11]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:37:11]line СНО: Общий режим [13:37:11]line Чек 111 28.07.2024 13:37 [13:37:11]line Смена: 429 ФФД: 1.0 [13:37:11]line ЗНМ: 0300000049 [13:37:11]line РНМ: 0000000000092638 [13:37:11]line Версия ККМ: 001 [13:37:11]line ФМ: 0000000000874949 [13:37:11]line ФД: 69228 [13:37:11]line ФПД: 95018954469467 [13:37:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T133718&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69228&fm=95018954469467&tin=02508201610067®Number=0000000000092638&sum=6000 [13:37:11]line 0 [13:37:11]OFD Sender: Processing packet 69228 [packets to send 19, broken 18] [13:37:11]ProducePacketName [13:37:11]name=ofd_packets/00069228 [13:37:11]OFD Sender: To server: pG, [13:37:11]CommunicateWithHost lk.salyk.kg:30040 [13:37:11]ConnectInit lk.salyk.kg [13:37:11]written 0, free lines is 4095 [13:37:11]Connected sock=10 [13:37: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 39 34 39 28 01 00 00 20 37 20 01 88 3E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 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 31 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 6F 00 00 00 F4 03 04 00 8E 49 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6C 0E 01 00 35 04 06 00 56 6B 53 07 30 5B 3B A1 50 45 6B B9 E5 43 [13:37:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 B9 20 47 00 76 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6C 0E 01 00 F4 03 04 00 FE EF A5 66 B6 04 01 00 00 BA D3 5B 3A D8 B3 EC B8 [13:37:12]CommunicateWithHost err = 0 [13:37:12]CheckOFDResponse [13:37:12]1017 (14) - 77093643461234 [13:37:12]1041 (16) - 0000000000874949 [13:37:12]1040 (4) - 69228 [13:37:12]1012 (4) - 28.07.2024 07:15 [13:37:12]1206 (1) - 0 [13:37:12]OFD Sender: Remove packet 69228 [13:37:12]ProducePacketName [13:37:12]name=ofd_packets/00069228 [13:37:12]NVStorageDeleteData [13:37:12]Write to MH i2c: 01 00 00 DB 4F 2A [13:37:12]Write i2c OK [13:37:12]MH_I2C_Read... [13:37:12]Read from MH i2c: 01 [13:37:12]MH_I2C_Read... [13:37:12]Read from MH i2c: 01 07 00 [13:37:12]MH_I2C_Read... [13:37:12]Read from MH i2c: 01 07 00 DB 4F 00 00 00 00 00 13 0D 51 [13:37:12]RasterBufferAndPrint [13:37:12]line [13:37:12]line [13:37:12]line [13:37:12]line [13:37:12]line [13:37:12]written 0, free lines is 3354 [13:37:12]MH_Cut [13:37:12]Write to MH i2c: D1 01 00 E2 4F 01 03 [13:37:12]Write i2c OK [13:37:12]MH_I2C_Read... [13:37:12]Read from MH i2c: D1 [13:37:12]MH_I2C_Read... [13:37:12]Read from MH i2c: D1 01 00 [13:37:12]MH_I2C_Read... [13:37:12]Read from MH i2c: D1 01 00 E2 4F 00 02 [13:37:12]Write to MH i2c: 01 00 00 E3 4F 32 [13:37:12]Write i2c OK [13:37:12]MH_I2C_Read... [13:37:12]OFD Sender: No OFD packet to send [13:37:12]*** Cut start [13:37:12]*** Partial cut [13:37:12]*** CUTSNS_PIN = 1 [13:37:12]*** CUTSNS_PIN = 0 [13:37:12]*** Brake cut motor [13:37:13]Read from MH i2c: 01 [13:37:13]MH_I2C_Read... [13:37:13]*** Stop cut motor [13:37:13]*** Cut end [13:37:13]Read from MH i2c: 01 07 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: 01 07 00 E3 4F 00 00 00 00 00 FF 0F 47 [13:37:13]process_action close_receipt done [13:37:13]requested_data is exist [13:37:13]produce_requested_data [13:37:13]requested_item fm.sn is exist - process it [13:37:13]wFMCommunicate request_size=4 [13:37:13]MH_SAM_APDU [13:37:13]CAPDU: 80 11 00 00 [13:37:13]Write to MH i2c: E2 08 00 E4 4F 80 11 00 00 00 00 00 00 AD [13:37:13]Write i2c OK [13:37:13]MH_I2C_Read... [13:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:13]Read from MH i2c: E2 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 17 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 17 00 E4 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 09 [13:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:37:13]wFMCommunicate OK [13:37:13]requested_item fd.num is exist - process it [13:37:13]SAM_PROTO_GetFieldsCounters [13:37:13]wFMCommunicate request_size=4 [13:37:13]MH_SAM_APDU [13:37:13]CAPDU: 80 13 00 00 [13:37:13]Write to MH i2c: E2 08 00 E5 4F 80 13 00 00 00 00 00 00 B0 [13:37:13]Write i2c OK [13:37:13]MH_I2C_Read... [13:37:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:13]Read from MH i2c: E2 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 62 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 62 00 E5 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 6C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [13:37: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 6C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:13]wFMCommunicate OK [13:37:13]SAM_PROTO_GetFieldsCounters done [13:37:13]requested_item shift.num is exist - process it [13:37:13]requested_item shift.opened is exist - process it [13:37:13]req_shift_opened [13:37:13]FM_GetShiftState [13:37:13]SAM_PROTO_GetShiftState [13:37:13]wFMCommunicate request_size=4 [13:37:13]MH_SAM_APDU [13:37:13]CAPDU: 80 13 01 00 [13:37:13]Write to MH i2c: E2 08 00 E6 4F 80 13 01 00 00 00 00 00 B2 [13:37:13]Write i2c OK [13:37:13]MH_I2C_Read... [13:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:13]Read from MH i2c: E2 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 0E 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 0E 00 E6 4F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 EF [13:37:13]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [13:37:13]wFMCommunicate OK [13:37:13]SAM_PROTO_GetShiftState done [13:37:13]FM_GetShiftState done [13:37:13]req_shift_opened done [13:37:13]requested_item shift.open_date is exist - process it [13:37:13]req_shift_open_date [13:37:13]req_shift_open_date done [13:37:13]produce_requested_data done [13:37:13]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69228,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [13:37:13]process_action_free close_receipt [13:37:13]json_value_free [13:37:13]json_value_free done [13:37:13]process_json_proto returns [13:37:13]Send response to host [13:37:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69228,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [13:37:13]free response buf [13:37:13]execute_script done [13:37:13]execute_script returns [13:37:13]free content buf [13:37:13]Sock 9.Close socket [13:37:13]Sock 9.Thread stoped [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:43]accept exits with 7 [13:37:43]New connection [13:37:43]New thread 3066641764 created [13:37:43]Thread 3066785124 joined [13:37:43]Waiting for new connection... [13:37:43] Sock 7.Parse request [13:37:43]Sock 7.Check first char [13:37:43]Sock 7.First char is OK [13:37:43]request: POST /json_proto HTTP/1.0 [13:37:43]Method: POST [13:37:43]URL: /json_proto [13:37:43]Method is POST - this is cgi request [13:37:43]url: /json_proto [13:37:43]query_string will be loaded in cgi processing [13:37:43]execute_cgi json_proto POST (null) [13:37:43]execute_cgi path=json_proto method=POST [13:37:43]POST find Content-Length [13:37:43]Host: 172.17.49.132:8080 [13:37:43]Content-Length: 621 [13:37:43]Content-Type: application/json [13:37:43] [13:37:43]POST finish read [13:37:43]Found Content-Length = 621 [13:37:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136574", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:43]execute_script... [13:37:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136574", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:43]POST & json_proto [13:37:43]process_json_proto [13:37:43]json parsed OK: [13:37:43]protocol is kg_v1.0 [13:37:43]action value=close_receipt [13:37:43]process_action close_receipt [13:37:43]cmd_close_receipt [13:37:43]MH_GetDate [13:37:43]Write to MH i2c: F0 00 00 E7 4F 25 [13:37:43]Write i2c OK [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: F0 [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: F0 09 00 [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: F0 09 00 E7 4F 00 B0 49 A6 66 E7 4B C0 64 89 [13:37:43]GetLastDocTimeStamp 1722173838 [13:37:43]current date 1722173872 [13:37:43]FM_GetShiftState [13:37:43]SAM_PROTO_GetShiftState [13:37:43]wFMCommunicate request_size=4 [13:37:43]MH_SAM_APDU [13:37:43]CAPDU: 80 13 01 00 [13:37:43]Write to MH i2c: E2 08 00 E8 4F 80 13 01 00 00 00 00 00 B4 [13:37:43]Write i2c OK [13:37:43]MH_I2C_Read... [13:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:43]Read from MH i2c: E2 [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: E2 0E 00 [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: E2 0E 00 E8 4F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F1 [13:37:43]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [13:37:43]wFMCommunicate OK [13:37:43]SAM_PROTO_GetShiftState done [13:37:43]FM_GetShiftState done [13:37:43]opened in 1722127251 [13:37:43]opened+sec_in_day 1722213651 [13:37:43]quantity*price = 14000 [13:37:43]sum+1 = 14001 [13:37:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 112 28.07.2024 13:37 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69229 ФПД: 244948654080670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T133753&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69229&fm=244948654080670&tin=02508201610067®Number=0000000000092638&sum=14000 0 [13:37:44]StoreToDocumentArchive [13:37:44]shift 429 fd 69229 [13:37:44]save to /storage/0429/doc_00069229 [13:37:44]save last doc name /storage/0429/doc_00069229 to /storage/kkm_last_doc_name [13:37:44]save OK [13:37:44]Clear old archive folders... [13:37:44]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:37:44]tlvbuf is B6D7F010 [13:37:44]SAM_PROTO_ClearQueue [13:37:44]wFMCommunicate request_size=4 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 09 00 00 [13:37:44]Write to MH i2c: E2 08 00 F5 4F 80 09 00 00 00 00 00 00 B6 [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 F5 4F 00 90 00 B8 [13:37:44]RAPDU: 90 00 [13:37:44]wFMCommunicate OK [13:37:44]SAM_PROTO_ClearQueue done [13:37:44]KKMCreateOFDPacket [13:37:44]OFDProtocolAddRootSTLVToBuf [13:37:44]FM_MakeSignedData [13:37:44]FM_MakeSignedData [13:37:44]SAM_PROTO_SignData [13:37:44]wFMCommunicate request_size=4 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 0D 01 02 [13:37:44]Write to MH i2c: E2 08 00 F6 4F 80 0D 01 02 00 00 00 00 BE [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 F6 4F 00 90 00 B9 [13:37:44]RAPDU: 90 00 [13:37:44]wFMCommunicate OK [13:37:44]wFMCommunicate request_size=255 [13:37:44]MH_SAM_APDU [13:37:44]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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 B1 49 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 [13:37:44]Write to MH i2c: E2 02 01 F7 4F 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 B1 49 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 00 00 C6 [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 F7 4F 00 90 00 BA [13:37:45]RAPDU: 90 00 [13:37:45]wFMCommunicate OK [13:37:45]wFMCommunicate request_size=32 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 39 10 04 04 00 6D 0E 01 00 35 04 06 00 DE C7 8D 83 C2 9E [13:37:45]Write to MH i2c: E2 23 00 F8 4F 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 39 10 04 04 00 6D 0E 01 00 35 04 06 00 DE C7 8D 83 C2 9E 00 00 B8 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 F8 4F 00 90 00 BB [13:37:45]RAPDU: 90 00 [13:37:45]wFMCommunicate OK [13:37:45]wFMCommunicate request_size=4 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 0D 03 02 [13:37:45]Write to MH i2c: E2 08 00 F9 4F 80 0D 03 02 00 00 00 00 C3 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 0B 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 0B 00 F9 4F 00 BB 0D 9D E9 7A BE A4 3A 90 00 28 [13:37:45]RAPDU: BB 0D 9D E9 7A BE A4 3A 90 00 [13:37:45]wFMCommunicate OK [13:37:45]SAM_PROTO_SignData done [13:37:45]FM_MakeSignedData done [13:37:45]CreateOFDProtocolMessage [13:37:45]wFMCommunicate request_size=4 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 11 00 00 [13:37:45]Write to MH i2c: E2 08 00 FA 4F 80 11 00 00 00 00 00 00 C3 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 17 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 17 00 FA 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 1F [13:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:37:45]wFMCommunicate OK [13:37:45]CreateOFDProtocolMessage done [13:37:45]OFDSenderStorePacket 69229 [13:37:45]StoreOFDPacket docnum=69229 [13:37:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 5C 29 1D 01 18 80 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 B1 49 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6D 0E 01 00 35 04 06 00 DE C7 8D 83 C2 9E BB 0D 9D E9 7A BE A4 3A [13:37:45]CheckFolder [13:37:45]dirname=/storage/ofd_packets [13:37:45]CheckFolder done [13:37:45]ProducePacketName [13:37:45]name=ofd_packets/00069229 [13:37:45]NVStorageSaveData ofd_packets/00069229 [13:37:45]File name is /storage/ofd_packets/00069229 [13:37:45]Write 323 bytes [13:37:45]NVStorageSaveData done [13:37:45]OFDSenderStorePacket done [13:37:45]KKMCreateOFDPacket done [13:37:45]NVStorageSaveData kkm_last_timestamp [13:37:45]File name is /storage/kkm_last_timestamp [13:37:45]Write 4 bytes [13:37:45]NVStorageSaveData done [13:37:45]ExternCall_PrintAddStr [13:37:45]wPrintStart [13:37:45]Write to MH i2c: 01 00 00 FB 4F 4A [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: 01 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: 01 07 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: 01 07 00 FB 4F 00 00 00 00 00 FF 0F 5F [13:37:45]RasterBufferAndPrint [13:37:45]line Счет N : (3)136574 [13:37:45]line ИНН: 02508201610067 [13:37:45]line Контрольно-Кассовый Чек [13:37:45]line ПРОДАЖА [13:37:45]line Товар: 48747059 [13:37:45]line Сигареты Winston Legend Blue [13:37:45]line 1.000 * 140.00 [13:37:45]line = 140.00 [13:37:45]line НДС 12% НСП 1% [13:37:45]line > о реализуемом товаре [13:37:45]line ИТОГО: 140.00 [13:37:45]line НСП 1% : 1.24 [13:37:45]line НДС 12% : 14.87 [13:37:45]line Наличными: 140.00 [13:37:45]line Безнал.: 0.00 [13:37:45]line Место: АЗС № 125 "Партнер Нефть" [13:37:45]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:37:45]line СНО: Общий режим [13:37:45]line Чек 112 28.07.2024 13:37 [13:37:45]line Смена: 429 ФФД: 1.0 [13:37:45]line ЗНМ: 0300000049 [13:37:45]line РНМ: 0000000000092638 [13:37:45]line Версия ККМ: 001 [13:37:45]line ФМ: 0000000000874949 [13:37:45]line ФД: 69229 [13:37:45]line ФПД: 244948654080670 [13:37:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T133753&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69229&fm=244948654080670&tin=02508201610067®Number=0000000000092638&sum=14000 [13:37:45]line 0 [13:37:45]OFD Sender: Processing packet 69229 [packets to send 19, broken 18] [13:37:45]ProducePacketName [13:37:45]name=ofd_packets/00069229 [13:37:45]OFD Sender: To server: pG, [13:37:45]CommunicateWithHost lk.salyk.kg:30040 [13:37:45]ConnectInit lk.salyk.kg [13:37:45]written 0, free lines is 4095 [13:37:45]Connected sock=10 [13:37:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 5C 29 1D 01 18 80 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 B1 49 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6D 0E 01 00 35 04 06 00 DE C7 8D 83 C2 9E BB 0D 9D E9 7A BE A4 3A [13:37:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 17 36 47 00 2A 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6D 0E 01 00 F4 03 04 00 20 F0 A5 66 B6 04 01 00 00 29 3C 3F 31 F3 47 F2 E7 [13:37:46]CommunicateWithHost err = 0 [13:37:46]CheckOFDResponse [13:37:46]1017 (14) - 77093643461234 [13:37:46]1041 (16) - 0000000000874949 [13:37:46]1040 (4) - 69229 [13:37:46]1012 (4) - 28.07.2024 07:15 [13:37:46]1206 (1) - 0 [13:37:46]OFD Sender: Remove packet 69229 [13:37:46]ProducePacketName [13:37:46]name=ofd_packets/00069229 [13:37:46]NVStorageDeleteData [13:37:46]Write to MH i2c: 01 00 00 24 50 74 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 07 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 07 00 24 50 00 00 00 00 00 F7 0C 7E [13:37:46]RasterBufferAndPrint [13:37:46]line [13:37:46]line [13:37:46]line [13:37:46]line [13:37:46]line [13:37:46]written 0, free lines is 3325 [13:37:46]MH_Cut [13:37:46]Write to MH i2c: D1 01 00 2B 50 01 4D [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: D1 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: D1 01 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: D1 01 00 2B 50 00 4C [13:37:46]Write to MH i2c: 01 00 00 2C 50 7C [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]OFD Sender: No OFD packet to send [13:37:46]*** Cut start [13:37:46]*** Partial cut [13:37:46]*** CUTSNS_PIN = 1 [13:37:46]*** CUTSNS_PIN = 0 [13:37:47]*** Brake cut motor [13:37:47]Read from MH i2c: 01 [13:37:47]MH_I2C_Read... [13:37:47]*** Stop cut motor [13:37:47]*** Cut end [13:37:47]Read from MH i2c: 01 07 00 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: 01 07 00 2C 50 00 00 00 00 00 FF 0F 91 [13:37:47]process_action close_receipt done [13:37:47]requested_data is exist [13:37:47]produce_requested_data [13:37:47]requested_item fm.sn is exist - process it [13:37:47]wFMCommunicate request_size=4 [13:37:47]MH_SAM_APDU [13:37:47]CAPDU: 80 11 00 00 [13:37:47]Write to MH i2c: E2 08 00 2D 50 80 11 00 00 00 00 00 00 F7 [13:37:47]Write i2c OK [13:37:47]MH_I2C_Read... [13:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:47]Read from MH i2c: E2 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 17 00 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 17 00 2D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 53 [13:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:37:47]wFMCommunicate OK [13:37:47]requested_item fd.num is exist - process it [13:37:47]SAM_PROTO_GetFieldsCounters [13:37:47]wFMCommunicate request_size=4 [13:37:47]MH_SAM_APDU [13:37:47]CAPDU: 80 13 00 00 [13:37:47]Write to MH i2c: E2 08 00 2E 50 80 13 00 00 00 00 00 00 FA [13:37:47]Write i2c OK [13:37:47]MH_I2C_Read... [13:37:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:47]Read from MH i2c: E2 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 62 00 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 62 00 2E 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 6D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [13:37:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 6D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:47]wFMCommunicate OK [13:37:47]SAM_PROTO_GetFieldsCounters done [13:37:47]requested_item shift.num is exist - process it [13:37:47]requested_item shift.opened is exist - process it [13:37:47]req_shift_opened [13:37:47]FM_GetShiftState [13:37:47]SAM_PROTO_GetShiftState [13:37:47]wFMCommunicate request_size=4 [13:37:47]MH_SAM_APDU [13:37:47]CAPDU: 80 13 01 00 [13:37:47]Write to MH i2c: E2 08 00 2F 50 80 13 01 00 00 00 00 00 FC [13:37:47]Write i2c OK [13:37:47]MH_I2C_Read... [13:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:47]Read from MH i2c: E2 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 0E 00 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 0E 00 2F 50 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 39 [13:37:47]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [13:37:47]wFMCommunicate OK [13:37:47]SAM_PROTO_GetShiftState done [13:37:47]FM_GetShiftState done [13:37:47]req_shift_opened done [13:37:47]requested_item shift.open_date is exist - process it [13:37:47]req_shift_open_date [13:37:47]req_shift_open_date done [13:37:47]produce_requested_data done [13:37:47]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69229,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [13:37:47]process_action_free close_receipt [13:37:47]json_value_free [13:37:47]json_value_free done [13:37:47]process_json_proto returns [13:37:47]Send response to host [13:37:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69229,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [13:37:47]free response buf [13:37:47]execute_script done [13:37:47]execute_script returns [13:37:47]free content buf [13:37:47]Sock 7.Close socket [13:37:47]Sock 7.Thread stoped [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47: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:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [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:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:52]accept exits with 9 [14:20:52]New connection [14:20:52]New thread 3066785124 created [14:20:52]Thread 3066641764 joined [14:20:52]Waiting for new connection... [14:20:52] Sock 9.Parse request [14:20:52]Sock 9.Check first char [14:20:52]Sock 9.First char is OK [14:20:52]request: POST /json_proto HTTP/1.0 [14:20:52]Method: POST [14:20:52]URL: /json_proto [14:20:52]Method is POST - this is cgi request [14:20:52]url: /json_proto [14:20:52]query_string will be loaded in cgi processing [14:20:52]execute_cgi json_proto POST (null) [14:20:52]execute_cgi path=json_proto method=POST [14:20:52]POST find Content-Length [14:20:52]Host: 172.17.49.132:8080 [14:20:52]Content-Length: 644 [14:20:52]Content-Type: application/json [14:20:52] [14:20:52]POST finish read [14:20:52]Found Content-Length = 644 [14:20:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136575", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 2.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" ] } } [14:20:52]execute_script... [14:20:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136575", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 2.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" ] } } [14:20:52]POST & json_proto [14:20:52]process_json_proto [14:20:52]json parsed OK: [14:20:52]protocol is kg_v1.0 [14:20:52]action value=close_receipt [14:20:52]process_action close_receipt [14:20:52]cmd_close_receipt [14:20:52]MH_GetDate [14:20:52]Write to MH i2c: F0 00 00 30 50 6F [14:20:52]Write i2c OK [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: F0 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: F0 09 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: F0 09 00 30 50 00 CE 53 A6 66 E7 4B C0 64 FB [14:20:52]GetLastDocTimeStamp 1722173873 [14:20:52]current date 1722176462 [14:20:52]FM_GetShiftState [14:20:52]SAM_PROTO_GetShiftState [14:20:52]wFMCommunicate request_size=4 [14:20:52]MH_SAM_APDU [14:20:52]CAPDU: 80 13 01 00 [14:20:52]Write to MH i2c: E2 08 00 31 50 80 13 01 00 00 00 00 00 FE [14:20:52]Write i2c OK [14:20:52]MH_I2C_Read... [14:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:52]Read from MH i2c: E2 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 0E 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 0E 00 31 50 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 3B [14:20:52]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:20:52]wFMCommunicate OK [14:20:52]SAM_PROTO_GetShiftState done [14:20:52]FM_GetShiftState done [14:20:52]opened in 1722127251 [14:20:52]opened+sec_in_day 1722213651 [14:20:52]quantity*price = 7000 [14:20:52]sum+1 = 7001 [14:20:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 113 28.07.2024 14:21 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69230 ФПД: 254910231451722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142102&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69230&fm=254910231451722&tin=02508201610067®Number=0000000000092638&sum=7000 0 [14:20:53]StoreToDocumentArchive [14:20:53]shift 429 fd 69230 [14:20:53]save to /storage/0429/doc_00069230 [14:20:53]save last doc name /storage/0429/doc_00069230 to /storage/kkm_last_doc_name [14:20:53]save OK [14:20:53]Clear old archive folders... [14:20:53]ProcessDocumentItem done err = 0, tmpTLVsize=275 [14:20:53]tlvbuf is 00A6B100 [14:20:53]SAM_PROTO_ClearQueue [14:20:53]wFMCommunicate request_size=4 [14:20:53]MH_SAM_APDU [14:20:53]CAPDU: 80 09 00 00 [14:20:53]Write to MH i2c: E2 08 00 3E 50 80 09 00 00 00 00 00 00 00 [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:53]Read from MH i2c: E2 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 03 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 03 00 3E 50 00 90 00 02 [14:20:53]RAPDU: 90 00 [14:20:53]wFMCommunicate OK [14:20:53]SAM_PROTO_ClearQueue done [14:20:53]KKMCreateOFDPacket [14:20:53]OFDProtocolAddRootSTLVToBuf [14:20:53]FM_MakeSignedData [14:20:53]FM_MakeSignedData [14:20:53]SAM_PROTO_SignData [14:20:53]wFMCommunicate request_size=4 [14:20:53]MH_SAM_APDU [14:20:53]CAPDU: 80 0D 01 02 [14:20:53]Write to MH i2c: E2 08 00 3F 50 80 0D 01 02 00 00 00 00 08 [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:53]Read from MH i2c: E2 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 03 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 03 00 3F 50 00 90 00 03 [14:20:53]RAPDU: 90 00 [14:20:53]wFMCommunicate OK [14:20:53]wFMCommunicate request_size=255 [14:20:53]MH_SAM_APDU [14:20:53]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 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 71 00 00 00 F4 03 04 00 CE 53 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 [14:20:53]Write to MH i2c: E2 02 01 40 50 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 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 71 00 00 00 F4 03 04 00 CE 53 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 00 00 EC [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 40 50 00 90 00 04 [14:20:54]RAPDU: 90 00 [14:20:54]wFMCommunicate OK [14:20:54]wFMCommunicate request_size=34 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6E 0E 01 00 35 04 06 00 E7 D6 E9 CB 98 4A [14:20:54]Write to MH i2c: E2 25 00 41 50 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6E 0E 01 00 35 04 06 00 E7 D6 E9 CB 98 4A 00 00 A5 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 41 50 00 90 00 05 [14:20:54]RAPDU: 90 00 [14:20:54]wFMCommunicate OK [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 0D 03 02 [14:20:54]Write to MH i2c: E2 08 00 42 50 80 0D 03 02 00 00 00 00 0D [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 0B 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 0B 00 42 50 00 45 54 C1 D6 93 E5 CA 7B 90 00 FB [14:20:54]RAPDU: 45 54 C1 D6 93 E5 CA 7B 90 00 [14:20:54]wFMCommunicate OK [14:20:54]SAM_PROTO_SignData done [14:20:54]FM_MakeSignedData done [14:20:54]CreateOFDProtocolMessage [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 11 00 00 [14:20:54]Write to MH i2c: E2 08 00 43 50 80 11 00 00 00 00 00 00 0D [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 17 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 17 00 43 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 69 [14:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:20:54]wFMCommunicate OK [14:20:54]CreateOFDProtocolMessage done [14:20:54]OFDSenderStorePacket 69230 [14:20:54]StoreOFDPacket docnum=69230 [14:20:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 5A 7B 1F 01 CB C3 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 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 71 00 00 00 F4 03 04 00 CE 53 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6E 0E 01 00 35 04 06 00 E7 D6 E9 CB 98 4A 45 54 C1 D6 93 E5 CA 7B [14:20:54]CheckFolder [14:20:54]dirname=/storage/ofd_packets [14:20:54]CheckFolder done [14:20:54]ProducePacketName [14:20:54]name=ofd_packets/00069230 [14:20:54]NVStorageSaveData ofd_packets/00069230 [14:20:54]File name is /storage/ofd_packets/00069230 [14:20:54]Write 325 bytes [14:20:54]NVStorageSaveData done [14:20:54]OFDSenderStorePacket done [14:20:54]KKMCreateOFDPacket done [14:20:54]NVStorageSaveData kkm_last_timestamp [14:20:54]File name is /storage/kkm_last_timestamp [14:20:54]Write 4 bytes [14:20:54]NVStorageSaveData done [14:20:54]ExternCall_PrintAddStr [14:20:54]wPrintStart [14:20:54]Write to MH i2c: 01 00 00 44 50 94 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 07 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 07 00 44 50 00 00 00 00 00 FF 0F A9 [14:20:54]RasterBufferAndPrint [14:20:54]line Счет N : (3)136575 [14:20:54]line ИНН: 02508201610067 [14:20:54]line Контрольно-Кассовый Чек [14:20:54]line ПРОДАЖА [14:20:54]line Товар: 4700000310326 [14:20:54]line Вода Адыгене 1л б/г [14:20:54]line 2.000 * 35.00 [14:20:54]line = 70.00 [14:20:54]line НДС 12% НСП 1% [14:20:54]line > о реализуемом товаре [14:20:54]line ИТОГО: 70.00 [14:20:54]line НСП 1% : 0.62 [14:20:54]line НДС 12% : 7.43 [14:20:54]line Наличными: 70.00 [14:20:54]line Безнал.: 0.00 [14:20:54]line Место: АЗС № 125 "Партнер Нефть" [14:20:54]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:20:54]line СНО: Общий режим [14:20:54]line Чек 113 28.07.2024 14:21 [14:20:54]line Смена: 429 ФФД: 1.0 [14:20:54]line ЗНМ: 0300000049 [14:20:54]line РНМ: 0000000000092638 [14:20:54]line Версия ККМ: 001 [14:20:54]line ФМ: 0000000000874949 [14:20:54]line ФД: 69230 [14:20:54]line ФПД: 254910231451722 [14:20:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142102&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69230&fm=254910231451722&tin=02508201610067®Number=0000000000092638&sum=7000 [14:20:54]line 0 [14:20:54]written 0, free lines is 4095 [14:20:54]OFD Sender: Processing packet 69230 [packets to send 19, broken 18] [14:20:54]ProducePacketName [14:20:54]name=ofd_packets/00069230 [14:20:54]OFD Sender: To server: pG, [14:20:54]CommunicateWithHost lk.salyk.kg:30040 [14:20:54]ConnectInit lk.salyk.kg [14:20:54]Connected sock=10 [14:20:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 5A 7B 1F 01 CB C3 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 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 71 00 00 00 F4 03 04 00 CE 53 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6E 0E 01 00 35 04 06 00 E7 D6 E9 CB 98 4A 45 54 C1 D6 93 E5 CA 7B [14:20:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 57 A2 47 00 33 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6E 0E 01 00 F4 03 04 00 3D FA A5 66 B6 04 01 00 00 23 E6 CC 70 12 FB 1C 3C [14:20:54]CommunicateWithHost err = 0 [14:20:54]CheckOFDResponse [14:20:54]1017 (14) - 77093643461234 [14:20:54]1041 (16) - 0000000000874949 [14:20:54]1040 (4) - 69230 [14:20:54]1012 (4) - 28.07.2024 07:58 [14:20:54]1206 (1) - 0 [14:20:54]OFD Sender: Remove packet 69230 [14:20:54]ProducePacketName [14:20:54]name=ofd_packets/00069230 [14:20:54]NVStorageDeleteData [14:20:55]Write to MH i2c: 01 00 00 6C 50 BC [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: 01 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: 01 07 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: 01 07 00 6C 50 00 00 00 00 00 11 0D E1 [14:20:55]RasterBufferAndPrint [14:20:55]line [14:20:55]line [14:20:55]line [14:20:55]line [14:20:55]line [14:20:55]written 0, free lines is 3354 [14:20:55]MH_Cut [14:20:55]Write to MH i2c: D1 01 00 73 50 01 95 [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: D1 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: D1 01 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: D1 01 00 73 50 00 94 [14:20:55]Write to MH i2c: 01 00 00 74 50 C4 [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]OFD Sender: No OFD packet to send [14:20:55]*** Cut start [14:20:55]*** Partial cut [14:20:55]*** CUTSNS_PIN = 1 [14:20:55]*** CUTSNS_PIN = 0 [14:20:55]*** Brake cut motor [14:20:56]Read from MH i2c: 01 [14:20:56]MH_I2C_Read... [14:20:56]*** Stop cut motor [14:20:56]*** Cut end [14:20:56]Read from MH i2c: 01 07 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 07 00 74 50 00 00 00 00 00 FF 0F D9 [14:20:56]process_action close_receipt done [14:20:56]requested_data is exist [14:20:56]produce_requested_data [14:20:56]requested_item fm.sn is exist - process it [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 11 00 00 [14:20:56]Write to MH i2c: E2 08 00 75 50 80 11 00 00 00 00 00 00 3F [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 17 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 17 00 75 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9B [14:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:20:56]wFMCommunicate OK [14:20:56]requested_item fd.num is exist - process it [14:20:56]SAM_PROTO_GetFieldsCounters [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 13 00 00 [14:20:56]Write to MH i2c: E2 08 00 76 50 80 13 00 00 00 00 00 00 42 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 62 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 62 00 76 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 6E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [14:20:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 6E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:56]wFMCommunicate OK [14:20:56]SAM_PROTO_GetFieldsCounters done [14:20:56]requested_item shift.num is exist - process it [14:20:56]requested_item shift.opened is exist - process it [14:20:56]req_shift_opened [14:20:56]FM_GetShiftState [14:20:56]SAM_PROTO_GetShiftState [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 13 01 00 [14:20:56]Write to MH i2c: E2 08 00 77 50 80 13 01 00 00 00 00 00 44 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 0E 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 0E 00 77 50 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 81 [14:20:56]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:20:56]wFMCommunicate OK [14:20:56]SAM_PROTO_GetShiftState done [14:20:56]FM_GetShiftState done [14:20:56]req_shift_opened done [14:20:56]requested_item shift.open_date is exist - process it [14:20:56]req_shift_open_date [14:20:56]req_shift_open_date done [14:20:56]produce_requested_data done [14:20:56]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69230,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:20:56]process_action_free close_receipt [14:20:56]json_value_free [14:20:56]json_value_free done [14:20:56]process_json_proto returns [14:20:56]Send response to host [14:20:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69230,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:20:56]free response buf [14:20:56]execute_script done [14:20:56]execute_script returns [14:20:56]free content buf [14:20:56]Sock 9.Close socket [14:20:56]Sock 9.Thread stoped [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:13]accept exits with 7 [14:21:13]New connection [14:21:13]New thread 3066641764 created [14:21:13]Thread 3066785124 joined [14:21:13]Waiting for new connection... [14:21:13] Sock 7.Parse request [14:21:13]Sock 7.Check first char [14:21:13]Sock 7.First char is OK [14:21:13]request: POST /json_proto HTTP/1.0 [14:21:13]Method: POST [14:21:13]URL: /json_proto [14:21:13]Method is POST - this is cgi request [14:21:13]url: /json_proto [14:21:13]query_string will be loaded in cgi processing [14:21:13]execute_cgi json_proto POST (null) [14:21:13]execute_cgi path=json_proto method=POST [14:21:13]POST find Content-Length [14:21:13]Host: 172.17.49.132:8080 [14:21:13]Content-Length: 939 [14:21:13]Content-Type: application/json [14:21:13] [14:21:13]POST finish read [14:21:13]Found Content-Length = 939 [14:21:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.20, "quantity" : 100.000, "sum" : 7420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:13]execute_script... [14:21:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.20, "quantity" : 100.000, "sum" : 7420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:13]POST & json_proto [14:21:13]process_json_proto [14:21:13]json parsed OK: [14:21:13]protocol is kg_v1.0 [14:21:13]action value=close_receipt [14:21:13]process_action close_receipt [14:21:13]cmd_close_receipt [14:21:13]MH_GetDate [14:21:13]Write to MH i2c: F0 00 00 78 50 B7 [14:21:13]Write i2c OK [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: F0 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: F0 09 00 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: F0 09 00 78 50 00 E3 53 A6 66 E7 4B C0 64 58 [14:21:13]GetLastDocTimeStamp 1722176462 [14:21:13]current date 1722176483 [14:21:13]FM_GetShiftState [14:21:13]SAM_PROTO_GetShiftState [14:21:13]wFMCommunicate request_size=4 [14:21:13]MH_SAM_APDU [14:21:13]CAPDU: 80 13 01 00 [14:21:13]Write to MH i2c: E2 08 00 79 50 80 13 01 00 00 00 00 00 46 [14:21:13]Write i2c OK [14:21:13]MH_I2C_Read... [14:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:14]Read from MH i2c: E2 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 0E 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 0E 00 79 50 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 83 [14:21:14]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:21:14]wFMCommunicate OK [14:21:14]SAM_PROTO_GetShiftState done [14:21:14]FM_GetShiftState done [14:21:14]opened in 1722127251 [14:21:14]opened+sec_in_day 1722213651 [14:21:14]quantity*price = 742000 [14:21:14]sum+1 = 742001 [14:21:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7420.00 НСП 1% : 65.66 НДС 12% : 787.96 Наличными: 7420.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 114 28.07.2024 14:21 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Дисконтная программа ДТ номер 125 сэкономлено 100.00 сом ФМ: 0000000000874949 ФД: 69231 ФПД: 260517394750736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142123&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69231&fm=260517394750736&tin=02508201610067®Number=0000000000092638&sum=742000 [14:21:15]StoreToDocumentArchive [14:21:15]shift 429 fd 69231 [14:21:15]save to /storage/0429/doc_00069231 [14:21:15]save last doc name /storage/0429/doc_00069231 to /storage/kkm_last_doc_name [14:21:15]save OK [14:21:15]Clear old archive folders... [14:21:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:21:15]tlvbuf is 00B279C0 [14:21:15]SAM_PROTO_ClearQueue [14:21:15]wFMCommunicate request_size=4 [14:21:15]MH_SAM_APDU [14:21:15]CAPDU: 80 09 00 00 [14:21:15]Write to MH i2c: E2 08 00 86 50 80 09 00 00 00 00 00 00 48 [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:15]Read from MH i2c: E2 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 03 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 03 00 86 50 00 90 00 4A [14:21:15]RAPDU: 90 00 [14:21:15]wFMCommunicate OK [14:21:15]SAM_PROTO_ClearQueue done [14:21:15]KKMCreateOFDPacket [14:21:15]OFDProtocolAddRootSTLVToBuf [14:21:15]FM_MakeSignedData [14:21:15]FM_MakeSignedData [14:21:15]SAM_PROTO_SignData [14:21:15]wFMCommunicate request_size=4 [14:21:15]MH_SAM_APDU [14:21:15]CAPDU: 80 0D 01 02 [14:21:15]Write to MH i2c: E2 08 00 87 50 80 0D 01 02 00 00 00 00 50 [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:15]Read from MH i2c: E2 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 03 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 03 00 87 50 00 90 00 4B [14:21:15]RAPDU: 90 00 [14:21:15]wFMCommunicate OK [14:21:15]wFMCommunicate request_size=255 [14:21:15]MH_SAM_APDU [14:21:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 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 E3 53 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6F 0E 01 00 35 04 06 00 EC F0 6E C5 [14:21:15]Write to MH i2c: E2 02 01 88 50 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 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 E3 53 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6F 0E 01 00 35 04 06 00 EC F0 6E C5 00 00 0D [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]OFD Sender: No OFD packet to send [14:21:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:15]Read from MH i2c: E2 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 03 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 03 00 88 50 00 90 00 4C [14:21:15]RAPDU: 90 00 [14:21:15]wFMCommunicate OK [14:21:15]wFMCommunicate request_size=7 [14:21:15]MH_SAM_APDU [14:21:15]CAPDU: 80 0D 02 02 02 9D 10 [14:21:15]Write to MH i2c: E2 0A 00 89 50 80 0D 02 02 02 00 9D 10 00 00 04 [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 [14:21:15]MH_I2C_Read... [14:21:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:15]Read from MH i2c: E2 03 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 03 00 89 50 00 90 00 4D [14:21:15]RAPDU: 90 00 [14:21:15]wFMCommunicate OK [14:21:15]wFMCommunicate request_size=4 [14:21:15]MH_SAM_APDU [14:21:15]CAPDU: 80 0D 03 02 [14:21:15]Write to MH i2c: E2 08 00 8A 50 80 0D 03 02 00 00 00 00 55 [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:15]Read from MH i2c: E2 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 0B 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 0B 00 8A 50 00 4A 04 CD 67 0E 3C F0 D1 90 00 E3 [14:21:15]RAPDU: 4A 04 CD 67 0E 3C F0 D1 90 00 [14:21:15]wFMCommunicate OK [14:21:15]SAM_PROTO_SignData done [14:21:15]FM_MakeSignedData done [14:21:15]CreateOFDProtocolMessage [14:21:15]wFMCommunicate request_size=4 [14:21:15]MH_SAM_APDU [14:21:15]CAPDU: 80 11 00 00 [14:21:15]Write to MH i2c: E2 08 00 8B 50 80 11 00 00 00 00 00 00 55 [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:15]Read from MH i2c: E2 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 17 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 17 00 8B 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B1 [14:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:21:15]wFMCommunicate OK [14:21:15]CreateOFDProtocolMessage done [14:21:15]OFDSenderStorePacket 69231 [14:21:15]StoreOFDPacket docnum=69231 [14:21:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 C6 FC 04 01 0B 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 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 E3 53 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6F 0E 01 00 35 04 06 00 EC F0 6E C5 9D 10 4A 04 CD 67 0E 3C F0 D1 [14:21:15]CheckFolder [14:21:15]dirname=/storage/ofd_packets [14:21:15]CheckFolder done [14:21:15]ProducePacketName [14:21:15]name=ofd_packets/00069231 [14:21:15]NVStorageSaveData ofd_packets/00069231 [14:21:15]File name is /storage/ofd_packets/00069231 [14:21:15]Write 298 bytes [14:21:15]NVStorageSaveData done [14:21:15]OFDSenderStorePacket done [14:21:15]KKMCreateOFDPacket done [14:21:15]NVStorageSaveData kkm_last_timestamp [14:21:15]File name is /storage/kkm_last_timestamp [14:21:15]Write 4 bytes [14:21:15]NVStorageSaveData done [14:21:15]ExternCall_PrintAddStr [14:21:15]wPrintStart [14:21:15]Write to MH i2c: 01 00 00 8C 50 DC [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: 01 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: 01 07 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: 01 07 00 8C 50 00 00 00 00 00 FF 0F F1 [14:21:15]RasterBufferAndPrint [14:21:15]line Счет N : (1)871948 [14:21:15]line ИНН: 02508201610067 [14:21:15]line Контрольно-Кассовый Чек [14:21:15]line ПРОДАЖА [14:21:15]line ТРК (МРК, ГНК) : 1 [14:21:15]line Товар: 2710194210 [14:21:15]line ДТ-К-5 [14:21:15]line 100.000 * 74.20 [14:21:15]line = 7420.00 [14:21:15]line НДС 12% НСП 1% [14:21:15]line > о реализуемом товаре [14:21:15]line ИТОГО: 7420.00 [14:21:15]line НСП 1% : 65.66 [14:21:15]line НДС 12% : 787.96 [14:21:15]line Наличными: 7420.00 [14:21:15]line Безнал.: 0.00 [14:21:15]line Место: АЗС № 125 "Партнер Нефть" [14:21:15]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:21:15]line СНО: Общий режим [14:21:15]line Чек 114 28.07.2024 14:21 [14:21:15]line Смена: 429 ФФД: 1.0 [14:21:15]line ЗНМ: 0300000049 [14:21:15]line РНМ: 0000000000092638 [14:21:15]line Версия ККМ: 001 [14:21:15]line [14:21:15]line Дисконтная программа [14:21:15]line ДТ [14:21:15]line номер 125 [14:21:15]line сэкономлено 100.00 сом [14:21:15]line ФМ: 0000000000874949 [14:21:15]line ФД: 69231 [14:21:15]line ФПД: 260517394750736 [14:21:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142123&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69231&fm=260517394750736&tin=02508201610067®Number=0000000000092638&sum=742000 [14:21:16]OFD Sender: Processing packet 69231 [packets to send 19, broken 18] [14:21:16]ProducePacketName [14:21:16]name=ofd_packets/00069231 [14:21:16]OFD Sender: To server: pG, [14:21:16]CommunicateWithHost lk.salyk.kg:30040 [14:21:16]ConnectInit lk.salyk.kg [14:21:16]written 0, free lines is 4095 [14:21:16]Connected sock=10 [14:21:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 C6 FC 04 01 0B 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 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 E3 53 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 6F 0E 01 00 35 04 06 00 EC F0 6E C5 9D 10 4A 04 CD 67 0E 3C F0 D1 [14:21:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 8D E4 47 00 58 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 39 34 39 10 04 04 00 6F 0E 01 00 F4 03 04 00 52 FA A5 66 B6 04 01 00 00 99 C8 14 CC F3 C5 29 5B [14:21:16]CommunicateWithHost err = 0 [14:21:16]CheckOFDResponse [14:21:16]1017 (14) - 77093643461234 [14:21:16]1041 (16) - 0000000000874949 [14:21:16]1040 (4) - 69231 [14:21:16]1012 (4) - 28.07.2024 07:59 [14:21:16]1206 (1) - 0 [14:21:16]OFD Sender: Remove packet 69231 [14:21:16]ProducePacketName [14:21:16]name=ofd_packets/00069231 [14:21:16]NVStorageDeleteData [14:21:16]Write to MH i2c: 01 00 00 B9 50 09 [14:21:16]Write i2c OK [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: 01 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: 01 07 00 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: 01 07 00 B9 50 00 00 00 00 00 C3 0C DF [14:21:16]RasterBufferAndPrint [14:21:16]line [14:21:16]line [14:21:16]line [14:21:16]line [14:21:16]line [14:21:16]written 0, free lines is 3275 [14:21:16]MH_Cut [14:21:16]Write to MH i2c: D1 01 00 C0 50 01 E2 [14:21:16]Write i2c OK [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: D1 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: D1 01 00 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: D1 01 00 C0 50 00 E1 [14:21:16]Write to MH i2c: 01 00 00 C1 50 11 [14:21:16]Write i2c OK [14:21:16]MH_I2C_Read... [14:21:16]OFD Sender: No OFD packet to send [14:21:17]*** Cut start [14:21:17]*** Partial cut [14:21:17]*** CUTSNS_PIN = 1 [14:21:17]*** CUTSNS_PIN = 0 [14:21:17]*** Brake cut motor [14:21:17]Read from MH i2c: 01 [14:21:17]MH_I2C_Read... [14:21:17]*** Stop cut motor [14:21:17]*** Cut end [14:21:17]Read from MH i2c: 01 07 00 [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: 01 07 00 C1 50 00 00 00 00 00 FF 0F 26 [14:21:17]process_action close_receipt done [14:21:17]requested_data is exist [14:21:17]produce_requested_data [14:21:17]requested_item fm.sn is exist - process it [14:21:17]wFMCommunicate request_size=4 [14:21:17]MH_SAM_APDU [14:21:17]CAPDU: 80 11 00 00 [14:21:17]Write to MH i2c: E2 08 00 C2 50 80 11 00 00 00 00 00 00 8C [14:21:17]Write i2c OK [14:21:17]MH_I2C_Read... [14:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:17]Read from MH i2c: E2 [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: E2 17 00 [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: E2 17 00 C2 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E8 [14:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:21:17]wFMCommunicate OK [14:21:17]requested_item fd.num is exist - process it [14:21:17]SAM_PROTO_GetFieldsCounters [14:21:17]wFMCommunicate request_size=4 [14:21:17]MH_SAM_APDU [14:21:17]CAPDU: 80 13 00 00 [14:21:17]Write to MH i2c: E2 08 00 C3 50 80 13 00 00 00 00 00 00 8F [14:21:17]Write i2c OK [14:21:17]MH_I2C_Read... [14:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:17]Read from MH i2c: E2 [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: E2 62 00 [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: E2 62 00 C3 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 6F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [14:21: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 6F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:17]wFMCommunicate OK [14:21:17]SAM_PROTO_GetFieldsCounters done [14:21:17]requested_item shift.num is exist - process it [14:21:17]requested_item shift.opened is exist - process it [14:21:17]req_shift_opened [14:21:17]FM_GetShiftState [14:21:17]SAM_PROTO_GetShiftState [14:21:17]wFMCommunicate request_size=4 [14:21:17]MH_SAM_APDU [14:21:17]CAPDU: 80 13 01 00 [14:21:17]Write to MH i2c: E2 08 00 C4 50 80 13 01 00 00 00 00 00 91 [14:21:17]Write i2c OK [14:21:17]MH_I2C_Read... [14:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:18]Read from MH i2c: E2 [14:21:18]MH_I2C_Read... [14:21:18]Read from MH i2c: E2 0E 00 [14:21:18]MH_I2C_Read... [14:21:18]Read from MH i2c: E2 0E 00 C4 50 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 CE [14:21:18]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:21:18]wFMCommunicate OK [14:21:18]SAM_PROTO_GetShiftState done [14:21:18]FM_GetShiftState done [14:21:18]req_shift_opened done [14:21:18]requested_item shift.open_date is exist - process it [14:21:18]req_shift_open_date [14:21:18]req_shift_open_date done [14:21:18]produce_requested_data done [14:21:18]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69231,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:21:18]process_action_free close_receipt [14:21:18]json_value_free [14:21:18]json_value_free done [14:21:18]process_json_proto returns [14:21:18]Send response to host [14:21:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69231,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:21:18]free response buf [14:21:18]execute_script done [14:21:18]execute_script returns [14:21:18]free content buf [14:21:18]Sock 7.Close socket [14:21:18]Sock 7.Thread stoped [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:45]accept exits with 9 [14:23:45]New connection [14:23:45]New thread 3066785124 created [14:23:45]Thread 3066641764 joined [14:23:45]Waiting for new connection... [14:23:45] Sock 9.Parse request [14:23:45]Sock 9.Check first char [14:23:45]Sock 9.First char is OK [14:23:45]request: POST /json_proto HTTP/1.0 [14:23:45]Method: POST [14:23:45]URL: /json_proto [14:23:45]Method is POST - this is cgi request [14:23:45]url: /json_proto [14:23:45]query_string will be loaded in cgi processing [14:23:45]execute_cgi json_proto POST (null) [14:23:45]execute_cgi path=json_proto method=POST [14:23:45]POST find Content-Length [14:23:45]Host: 172.17.49.132:8080 [14:23:45]Content-Length: 669 [14:23:45]Content-Type: application/json [14:23:45] [14:23:45]POST finish read [14:23:45]Found Content-Length = 669 [14:23:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136576", "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" : 110.00, "quantity" : 2.000, "sum" : 220.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" ] } } [14:23:45]execute_script... [14:23:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136576", "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" : 110.00, "quantity" : 2.000, "sum" : 220.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" ] } } [14:23:45]POST & json_proto [14:23:45]process_json_proto [14:23:45]json parsed OK: [14:23:45]protocol is kg_v1.0 [14:23:45]action value=close_receipt [14:23:45]process_action close_receipt [14:23:45]cmd_close_receipt [14:23:45]MH_GetDate [14:23:45]Write to MH i2c: F0 00 00 C5 50 04 [14:23:45]Write i2c OK [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: F0 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: F0 09 00 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: F0 09 00 C5 50 00 7B 54 A6 66 E7 4B C0 64 3E [14:23:45]GetLastDocTimeStamp 1722176483 [14:23:45]current date 1722176635 [14:23:45]FM_GetShiftState [14:23:45]SAM_PROTO_GetShiftState [14:23:45]wFMCommunicate request_size=4 [14:23:45]MH_SAM_APDU [14:23:45]CAPDU: 80 13 01 00 [14:23:45]Write to MH i2c: E2 08 00 C6 50 80 13 01 00 00 00 00 00 93 [14:23:45]Write i2c OK [14:23:45]MH_I2C_Read... [14:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:45]Read from MH i2c: E2 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 0E 00 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 0E 00 C6 50 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 D0 [14:23:45]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:23:45]wFMCommunicate OK [14:23:45]SAM_PROTO_GetShiftState done [14:23:45]FM_GetShiftState done [14:23:45]opened in 1722127251 [14:23:45]opened+sec_in_day 1722213651 [14:23:45]quantity*price = 22000 [14:23:45]sum+1 = 22001 [14:23:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 115 28.07.2024 14:23 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69232 ФПД: 139466887274867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142355&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69232&fm=139466887274867&tin=02508201610067®Number=0000000000092638&sum=22000 0 [14:23:46]StoreToDocumentArchive [14:23:46]shift 429 fd 69232 [14:23:46]save to /storage/0429/doc_00069232 [14:23:46]save last doc name /storage/0429/doc_00069232 to /storage/kkm_last_doc_name [14:23:46]save OK [14:23:46]Clear old archive folders... [14:23:46]ProcessDocumentItem done err = 0, tmpTLVsize=293 [14:23:46]tlvbuf is 00B6AA80 [14:23:46]SAM_PROTO_ClearQueue [14:23:46]wFMCommunicate request_size=4 [14:23:46]MH_SAM_APDU [14:23:46]CAPDU: 80 09 00 00 [14:23:46]Write to MH i2c: E2 08 00 D3 50 80 09 00 00 00 00 00 00 95 [14:23:46]Write i2c OK [14:23:46]MH_I2C_Read... [14:23:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:46]Read from MH i2c: E2 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: E2 03 00 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: E2 03 00 D3 50 00 90 00 97 [14:23:46]RAPDU: 90 00 [14:23:46]wFMCommunicate OK [14:23:46]SAM_PROTO_ClearQueue done [14:23:46]KKMCreateOFDPacket [14:23:46]OFDProtocolAddRootSTLVToBuf [14:23:46]FM_MakeSignedData [14:23:46]FM_MakeSignedData [14:23:46]SAM_PROTO_SignData [14:23:46]wFMCommunicate request_size=4 [14:23:46]MH_SAM_APDU [14:23:46]CAPDU: 80 0D 01 02 [14:23:46]Write to MH i2c: E2 08 00 D4 50 80 0D 01 02 00 00 00 00 9D [14:23:46]Write i2c OK [14:23:46]MH_I2C_Read... [14:23:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:46]Read from MH i2c: E2 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: E2 03 00 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: E2 03 00 D4 50 00 90 00 98 [14:23:46]RAPDU: 90 00 [14:23:46]wFMCommunicate OK [14:23:46]wFMCommunicate request_size=255 [14:23:46]MH_SAM_APDU [14:23:46]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 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 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 73 00 00 00 F4 03 04 00 7B 54 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [14:23:46]Write to MH i2c: E2 02 01 D5 50 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 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 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 73 00 00 00 F4 03 04 00 7B 54 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 FF [14:23:46]Write i2c OK [14:23:46]MH_I2C_Read... [14:23:47]OFD Sender: No OFD packet to send [14:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:47]Read from MH i2c: E2 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 03 00 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 03 00 D5 50 00 90 00 99 [14:23:47]RAPDU: 90 00 [14:23:47]wFMCommunicate OK [14:23:47]wFMCommunicate request_size=52 [14:23:47]MH_SAM_APDU [14:23:47]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 70 0E 01 00 35 04 06 00 7E D8 2A 46 21 73 [14:23:47]Write to MH i2c: E2 37 00 D6 50 80 0D 02 02 2F 00 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 70 0E 01 00 35 04 06 00 7E D8 2A 46 21 73 00 00 48 [14:23:47]Write i2c OK [14:23:47]MH_I2C_Read... [14:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:47]Read from MH i2c: E2 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 03 00 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 03 00 D6 50 00 90 00 9A [14:23:47]RAPDU: 90 00 [14:23:47]wFMCommunicate OK [14:23:47]wFMCommunicate request_size=4 [14:23:47]MH_SAM_APDU [14:23:47]CAPDU: 80 0D 03 02 [14:23:47]Write to MH i2c: E2 08 00 D7 50 80 0D 03 02 00 00 00 00 A2 [14:23:47]Write i2c OK [14:23:47]MH_I2C_Read... [14:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:47]Read from MH i2c: E2 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 0B 00 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 0B 00 D7 50 00 8A AB 6C 01 13 03 19 8C 90 00 00 [14:23:47]RAPDU: 8A AB 6C 01 13 03 19 8C 90 00 [14:23:47]wFMCommunicate OK [14:23:47]SAM_PROTO_SignData done [14:23:47]FM_MakeSignedData done [14:23:47]CreateOFDProtocolMessage [14:23:47]wFMCommunicate request_size=4 [14:23:47]MH_SAM_APDU [14:23:47]CAPDU: 80 11 00 00 [14:23:47]Write to MH i2c: E2 08 00 D8 50 80 11 00 00 00 00 00 00 A2 [14:23:47]Write i2c OK [14:23:47]MH_I2C_Read... [14:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:47]Read from MH i2c: E2 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 17 00 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 17 00 D8 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 FE [14:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:23:47]wFMCommunicate OK [14:23:47]CreateOFDProtocolMessage done [14:23:47]OFDSenderStorePacket 69232 [14:23:47]StoreOFDPacket docnum=69232 [14:23:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 39 01 00 00 B7 39 31 01 0C A9 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 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 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 73 00 00 00 F4 03 04 00 7B 54 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 70 0E 01 00 35 04 06 00 7E D8 2A 46 21 73 8A AB 6C 01 13 03 19 8C [14:23:47]CheckFolder [14:23:47]dirname=/storage/ofd_packets [14:23:47]CheckFolder done [14:23:47]ProducePacketName [14:23:47]name=ofd_packets/00069232 [14:23:47]NVStorageSaveData ofd_packets/00069232 [14:23:47]File name is /storage/ofd_packets/00069232 [14:23:47]Write 343 bytes [14:23:47]NVStorageSaveData done [14:23:47]OFDSenderStorePacket done [14:23:47]KKMCreateOFDPacket done [14:23:47]NVStorageSaveData kkm_last_timestamp [14:23:47]File name is /storage/kkm_last_timestamp [14:23:47]Write 4 bytes [14:23:47]NVStorageSaveData done [14:23:47]ExternCall_PrintAddStr [14:23:47]wPrintStart [14:23:47]Write to MH i2c: 01 00 00 D9 50 29 [14:23:47]Write i2c OK [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: 01 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: 01 07 00 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: 01 07 00 D9 50 00 00 00 00 00 FF 0F 3E [14:23:47]RasterBufferAndPrint [14:23:47]line Счет N : (3)136576 [14:23:47]line ИНН: 02508201610067 [14:23:47]line Контрольно-Кассовый Чек [14:23:47]line ПРОДАЖА [14:23:47]line Товар: 4870022003305 [14:23:47]line Напиток Gorilla эн нат ж/б 0,5/0,45л [14:23:47]line 2.000 * 110.00 [14:23:47]line = 220.00 [14:23:47]line НДС 12% НСП 1% [14:23:47]line > о реализуемом товаре [14:23:47]line ИТОГО: 220.00 [14:23:47]line НСП 1% : 1.95 [14:23:47]line НДС 12% : 23.36 [14:23:47]line Наличными: 220.00 [14:23:47]line Безнал.: 0.00 [14:23:47]line Место: АЗС № 125 "Партнер Нефть" [14:23:47]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:23:47]line СНО: Общий режим [14:23:47]line Чек 115 28.07.2024 14:23 [14:23:47]line Смена: 429 ФФД: 1.0 [14:23:47]line ЗНМ: 0300000049 [14:23:47]line РНМ: 0000000000092638 [14:23:47]line Версия ККМ: 001 [14:23:47]line ФМ: 0000000000874949 [14:23:47]line ФД: 69232 [14:23:47]line ФПД: 139466887274867 [14:23:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142355&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69232&fm=139466887274867&tin=02508201610067®Number=0000000000092638&sum=22000 [14:23:47]OFD Sender: Processing packet 69232 [packets to send 19, broken 18] [14:23:47]ProducePacketName [14:23:47]name=ofd_packets/00069232 [14:23:47]OFD Sender: To server: pG, [14:23:47]CommunicateWithHost lk.salyk.kg:30040 [14:23:47]ConnectInit lk.salyk.kg [14:23:47]line 0 [14:23:47]written 0, free lines is 4095 [14:23:47]Connected sock=10 [14:23:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 39 01 00 00 B7 39 31 01 0C A9 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 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 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 73 00 00 00 F4 03 04 00 7B 54 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 70 0E 01 00 35 04 06 00 7E D8 2A 46 21 73 8A AB 6C 01 13 03 19 8C [14:23:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 37 EF 47 00 56 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 70 0E 01 00 F4 03 04 00 EA FA A5 66 B6 04 01 00 00 96 AA 62 30 9E FD E6 AB [14:23:48]CommunicateWithHost err = 0 [14:23:48]CheckOFDResponse [14:23:48]1017 (14) - 77093643461234 [14:23:48]1041 (16) - 0000000000874949 [14:23:48]1040 (4) - 69232 [14:23:48]1012 (4) - 28.07.2024 08:01 [14:23:48]1206 (1) - 0 [14:23:48]OFD Sender: Remove packet 69232 [14:23:48]ProducePacketName [14:23:48]name=ofd_packets/00069232 [14:23:48]NVStorageDeleteData [14:23:48]Write to MH i2c: 01 00 00 02 51 53 [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: 01 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: 01 07 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: 01 07 00 02 51 00 00 00 00 00 1F 0D 86 [14:23:48]RasterBufferAndPrint [14:23:48]line [14:23:48]line [14:23:48]line [14:23:48]line [14:23:48]line [14:23:48]written 0, free lines is 3368 [14:23:48]MH_Cut [14:23:48]Write to MH i2c: D1 01 00 09 51 01 2C [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: D1 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: D1 01 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: D1 01 00 09 51 00 2B [14:23:48]Write to MH i2c: 01 00 00 0A 51 5B [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]OFD Sender: No OFD packet to send [14:23:48]*** Cut start [14:23:48]*** Partial cut [14:23:48]*** CUTSNS_PIN = 1 [14:23:48]*** CUTSNS_PIN = 0 [14:23:49]*** Brake cut motor [14:23:49]Read from MH i2c: 01 [14:23:49]MH_I2C_Read... [14:23:49]*** Stop cut motor [14:23:49]*** Cut end [14:23:49]Read from MH i2c: 01 07 00 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: 01 07 00 0A 51 00 00 00 00 00 FF 0F 70 [14:23:49]process_action close_receipt done [14:23:49]requested_data is exist [14:23:49]produce_requested_data [14:23:49]requested_item fm.sn is exist - process it [14:23:49]wFMCommunicate request_size=4 [14:23:49]MH_SAM_APDU [14:23:49]CAPDU: 80 11 00 00 [14:23:49]Write to MH i2c: E2 08 00 0B 51 80 11 00 00 00 00 00 00 D6 [14:23:49]Write i2c OK [14:23:49]MH_I2C_Read... [14:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:49]Read from MH i2c: E2 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 17 00 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 17 00 0B 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 32 [14:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:23:49]wFMCommunicate OK [14:23:49]requested_item fd.num is exist - process it [14:23:49]SAM_PROTO_GetFieldsCounters [14:23:49]wFMCommunicate request_size=4 [14:23:49]MH_SAM_APDU [14:23:49]CAPDU: 80 13 00 00 [14:23:49]Write to MH i2c: E2 08 00 0C 51 80 13 00 00 00 00 00 00 D9 [14:23:49]Write i2c OK [14:23:49]MH_I2C_Read... [14:23:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:49]Read from MH i2c: E2 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 62 00 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 62 00 0C 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 70 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [14:23:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 70 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:49]wFMCommunicate OK [14:23:49]SAM_PROTO_GetFieldsCounters done [14:23:49]requested_item shift.num is exist - process it [14:23:49]requested_item shift.opened is exist - process it [14:23:49]req_shift_opened [14:23:49]FM_GetShiftState [14:23:49]SAM_PROTO_GetShiftState [14:23:49]wFMCommunicate request_size=4 [14:23:49]MH_SAM_APDU [14:23:49]CAPDU: 80 13 01 00 [14:23:49]Write to MH i2c: E2 08 00 0D 51 80 13 01 00 00 00 00 00 DB [14:23:49]Write i2c OK [14:23:49]MH_I2C_Read... [14:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:49]Read from MH i2c: E2 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 0E 00 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 0E 00 0D 51 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 18 [14:23:49]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:23:49]wFMCommunicate OK [14:23:49]SAM_PROTO_GetShiftState done [14:23:49]FM_GetShiftState done [14:23:49]req_shift_opened done [14:23:49]requested_item shift.open_date is exist - process it [14:23:49]req_shift_open_date [14:23:49]req_shift_open_date done [14:23:49]produce_requested_data done [14:23:49]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69232,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:23:49]process_action_free close_receipt [14:23:49]json_value_free [14:23:49]json_value_free done [14:23:49]process_json_proto returns [14:23:49]Send response to host [14:23:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69232,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:23:49]free response buf [14:23:49]execute_script done [14:23:49]execute_script returns [14:23:49]free content buf [14:23:49]Sock 9.Close socket [14:23:49]Sock 9.Thread stoped [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:35]accept exits with 7 [14:26:35]New connection [14:26:35]New thread 3066641764 created [14:26:35]Thread 3066785124 joined [14:26:35]Waiting for new connection... [14:26:35] Sock 7.Parse request [14:26:35]Sock 7.Check first char [14:26:35]Sock 7.First char is OK [14:26:35]request: POST /json_proto HTTP/1.0 [14:26:35]Method: POST [14:26:35]URL: /json_proto [14:26:35]Method is POST - this is cgi request [14:26:35]url: /json_proto [14:26:35]query_string will be loaded in cgi processing [14:26:35]execute_cgi json_proto POST (null) [14:26:35]execute_cgi path=json_proto method=POST [14:26:35]POST find Content-Length [14:26:35]Host: 172.17.49.132:8080 [14:26:35]Content-Length: 939 [14:26:35]Content-Type: application/json [14:26:35] [14:26:35]POST finish read [14:26:35]Found Content-Length = 939 [14:26:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.20, "quantity" : 100.000, "sum" : 7420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:35]execute_script... [14:26:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.20, "quantity" : 100.000, "sum" : 7420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:35]POST & json_proto [14:26:35]process_json_proto [14:26:35]json parsed OK: [14:26:35]protocol is kg_v1.0 [14:26:35]action value=close_receipt [14:26:35]process_action close_receipt [14:26:35]cmd_close_receipt [14:26:35]MH_GetDate [14:26:35]Write to MH i2c: F0 00 00 0E 51 4E [14:26:35]Write i2c OK [14:26:35]MH_I2C_Read... [14:26:35]Read from MH i2c: F0 [14:26:35]MH_I2C_Read... [14:26:35]Read from MH i2c: F0 09 00 [14:26:35]MH_I2C_Read... [14:26:35]Read from MH i2c: F0 09 00 0E 51 00 24 55 A6 66 E7 4B C0 64 32 [14:26:35]GetLastDocTimeStamp 1722176635 [14:26:35]current date 1722176804 [14:26:35]FM_GetShiftState [14:26:35]SAM_PROTO_GetShiftState [14:26:35]wFMCommunicate request_size=4 [14:26:35]MH_SAM_APDU [14:26:35]CAPDU: 80 13 01 00 [14:26:35]Write to MH i2c: E2 08 00 0F 51 80 13 01 00 00 00 00 00 DD [14:26:35]Write i2c OK [14:26:35]MH_I2C_Read... [14:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:35]Read from MH i2c: E2 [14:26:35]MH_I2C_Read... [14:26:35]Read from MH i2c: E2 0E 00 [14:26:35]MH_I2C_Read... [14:26:35]Read from MH i2c: E2 0E 00 0F 51 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 1A [14:26:35]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:26:35]wFMCommunicate OK [14:26:35]SAM_PROTO_GetShiftState done [14:26:35]FM_GetShiftState done [14:26:35]opened in 1722127251 [14:26:35]opened+sec_in_day 1722213651 [14:26:35]quantity*price = 742000 [14:26:35]sum+1 = 742001 [14:26:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7420.00 НСП 1% : 65.66 НДС 12% : 787.96 Наличными: 7420.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 116 28.07.2024 14:26 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Дисконтная программа ДТ номер 125 сэкономлено 100.00 сом ФМ: 0000000000874949 ФД: 69233 ФПД: 276919829875947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142644&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69233&fm=276919829875947&tin=02508201610067®Number=0000000000092638&sum=742000 [14:26:36]StoreToDocumentArchive [14:26:36]shift 429 fd 69233 [14:26:36]save to /storage/0429/doc_00069233 [14:26:36]save last doc name /storage/0429/doc_00069233 to /storage/kkm_last_doc_name [14:26:36]save OK [14:26:36]Clear old archive folders... [14:26:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:26:36]tlvbuf is 00B277C0 [14:26:36]SAM_PROTO_ClearQueue [14:26:36]wFMCommunicate request_size=4 [14:26:36]MH_SAM_APDU [14:26:36]CAPDU: 80 09 00 00 [14:26:36]Write to MH i2c: E2 08 00 1C 51 80 09 00 00 00 00 00 00 DF [14:26:36]Write i2c OK [14:26:36]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 1C 51 00 90 00 E1 [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 1D 51 80 0D 01 02 00 00 00 00 E7 [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 1D 51 00 90 00 E2 [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 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 24 55 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 71 0E 01 00 35 04 06 00 FB DB 6C 17 [14:26:36]Write to MH i2c: E2 02 01 1E 51 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 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 24 55 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 71 0E 01 00 35 04 06 00 FB DB 6C 17 00 00 35 [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 1E 51 00 90 00 E3 [14:26:36]RAPDU: 90 00 [14:26:36]wFMCommunicate OK [14:26:36]wFMCommunicate request_size=7 [14:26:36]MH_SAM_APDU [14:26:36]CAPDU: 80 0D 02 02 02 4C EB [14:26:36]Write to MH i2c: E2 0A 00 1F 51 80 0D 02 02 02 00 4C EB 00 00 25 [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 1F 51 00 90 00 E4 [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 20 51 80 0D 03 02 00 00 00 00 EC [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 20 51 00 A7 19 63 FF 2E 63 1C FD 90 00 B9 [14:26:36]RAPDU: A7 19 63 FF 2E 63 1C FD 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 21 51 80 11 00 00 00 00 00 00 EC [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 21 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 48 [14:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:26:36]wFMCommunicate OK [14:26:36]CreateOFDProtocolMessage done [14:26:36]OFDSenderStorePacket 69233 [14:26:36]StoreOFDPacket docnum=69233 [14:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 A9 44 04 01 F7 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 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 24 55 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 71 0E 01 00 35 04 06 00 FB DB 6C 17 4C EB A7 19 63 FF 2E 63 1C FD [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/00069233 [14:26:36]NVStorageSaveData ofd_packets/00069233 [14:26:36]File name is /storage/ofd_packets/00069233 [14:26:36]Write 298 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 22 51 73 [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 22 51 00 00 00 00 00 FF 0F 88 [14:26:36]RasterBufferAndPrint [14:26:36]line Счет N : (1)871954 [14:26:36]line ИНН: 02508201610067 [14:26:36]line Контрольно-Кассовый Чек [14:26:36]line ПРОДАЖА [14:26:36]line ТРК (МРК, ГНК) : 1 [14:26:36]line Товар: 2710194210 [14:26:36]line ДТ-К-5 [14:26:36]line 100.000 * 74.20 [14:26:36]line = 7420.00 [14:26:36]line НДС 12% НСП 1% [14:26:36]line > о реализуемом товаре [14:26:36]line ИТОГО: 7420.00 [14:26:36]line НСП 1% : 65.66 [14:26:36]line НДС 12% : 787.96 [14:26:36]line Наличными: 7420.00 [14:26:36]line Безнал.: 0.00 [14:26:36]line Место: АЗС № 125 "Партнер Нефть" [14:26:36]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:26:36]line СНО: Общий режим [14:26:36]line Чек 116 28.07.2024 14:26 [14:26:36]line Смена: 429 ФФД: 1.0 [14:26:36]line ЗНМ: 0300000049 [14:26:36]line РНМ: 0000000000092638 [14:26:36]line Версия ККМ: 001 [14:26:36]line [14:26:36]line Дисконтная программа [14:26:36]line ДТ [14:26:36]line номер 125 [14:26:36]line сэкономлено 100.00 сом [14:26:36]line ФМ: 0000000000874949 [14:26:36]line ФД: 69233 [14:26:36]line ФПД: 276919829875947 [14:26:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T142644&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69233&fm=276919829875947&tin=02508201610067®Number=0000000000092638&sum=742000 [14:26:37]OFD Sender: Processing packet 69233 [packets to send 19, broken 18] [14:26:37]ProducePacketName [14:26:37]name=ofd_packets/00069233 [14:26:37]OFD Sender: To server: pG, [14:26:37]CommunicateWithHost lk.salyk.kg:30040 [14:26:37]ConnectInit lk.salyk.kg [14:26:37]written 0, free lines is 4095 [14:26:37]Connected sock=10 [14:26: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 39 34 39 0C 01 00 00 A9 44 04 01 F7 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 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 24 55 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 71 0E 01 00 35 04 06 00 FB DB 6C 17 4C EB A7 19 63 FF 2E 63 1C FD [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 39 34 39 4F 00 00 00 54 F2 47 00 23 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 71 0E 01 00 F4 03 04 00 94 FB A5 66 B6 04 01 00 00 DF 16 76 62 23 D0 CA E8 [14:26:37]CommunicateWithHost err = 0 [14:26:37]CheckOFDResponse [14:26:37]1017 (14) - 77093643461234 [14:26:37]1041 (16) - 0000000000874949 [14:26:37]1040 (4) - 69233 [14:26:37]1012 (4) - 28.07.2024 08:04 [14:26:37]1206 (1) - 0 [14:26:37]OFD Sender: Remove packet 69233 [14:26:37]ProducePacketName [14:26:37]name=ofd_packets/00069233 [14:26:37]NVStorageDeleteData [14:26:37]Write to MH i2c: 01 00 00 4F 51 A0 [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 4F 51 00 00 00 00 00 D2 0C 85 [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 3292 [14:26:37]MH_Cut [14:26:37]Write to MH i2c: D1 01 00 56 51 01 79 [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 56 51 00 78 [14:26:37]Write to MH i2c: 01 00 00 57 51 A8 [14:26:37]Write i2c OK [14:26:37]MH_I2C_Read... [14:26:38]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:39]Read from MH i2c: 01 [14:26:39]MH_I2C_Read... [14:26:39]*** Stop cut motor [14:26:39]*** Cut end [14:26:39]Read from MH i2c: 01 07 00 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: 01 07 00 57 51 00 00 00 00 00 FF 0F BD [14:26:39]process_action close_receipt done [14:26:39]requested_data is exist [14:26:39]produce_requested_data [14:26:39]requested_item fm.sn is exist - process it [14:26:39]wFMCommunicate request_size=4 [14:26:39]MH_SAM_APDU [14:26:39]CAPDU: 80 11 00 00 [14:26:39]Write to MH i2c: E2 08 00 58 51 80 11 00 00 00 00 00 00 23 [14:26:39]Write i2c OK [14:26:39]MH_I2C_Read... [14:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:39]Read from MH i2c: E2 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 17 00 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 17 00 58 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 7F [14:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:26:39]wFMCommunicate OK [14:26:39]requested_item fd.num is exist - process it [14:26:39]SAM_PROTO_GetFieldsCounters [14:26:39]wFMCommunicate request_size=4 [14:26:39]MH_SAM_APDU [14:26:39]CAPDU: 80 13 00 00 [14:26:39]Write to MH i2c: E2 08 00 59 51 80 13 00 00 00 00 00 00 26 [14:26:39]Write i2c OK [14:26:39]MH_I2C_Read... [14:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:39]Read from MH i2c: E2 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 62 00 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 62 00 59 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 71 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [14:26: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 71 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:39]wFMCommunicate OK [14:26:39]SAM_PROTO_GetFieldsCounters done [14:26:39]requested_item shift.num is exist - process it [14:26:39]requested_item shift.opened is exist - process it [14:26:39]req_shift_opened [14:26:39]FM_GetShiftState [14:26:39]SAM_PROTO_GetShiftState [14:26:39]wFMCommunicate request_size=4 [14:26:39]MH_SAM_APDU [14:26:39]CAPDU: 80 13 01 00 [14:26:39]Write to MH i2c: E2 08 00 5A 51 80 13 01 00 00 00 00 00 28 [14:26:39]Write i2c OK [14:26:39]MH_I2C_Read... [14:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:39]Read from MH i2c: E2 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 0E 00 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 0E 00 5A 51 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 65 [14:26:39]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:26:39]wFMCommunicate OK [14:26:39]SAM_PROTO_GetShiftState done [14:26:39]FM_GetShiftState done [14:26:39]req_shift_opened done [14:26:39]requested_item shift.open_date is exist - process it [14:26:39]req_shift_open_date [14:26:39]req_shift_open_date done [14:26:39]produce_requested_data done [14:26:39]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69233,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:26:39]process_action_free close_receipt [14:26:39]json_value_free [14:26:39]json_value_free done [14:26:39]process_json_proto returns [14:26:39]Send response to host [14:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69233,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:26:39]free response buf [14:26:39]execute_script done [14:26:39]execute_script returns [14:26:39]free content buf [14:26:39]Sock 7.Close socket [14:26:39]Sock 7.Thread stoped [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:01]accept exits with 9 [14:31:01]New connection [14:31:01]New thread 3066785124 created [14:31:01]Thread 3066641764 joined [14:31:01]Waiting for new connection... [14:31:01] Sock 9.Parse request [14:31:01]Sock 9.Check first char [14:31:01]Sock 9.First char is OK [14:31:01]request: POST /json_proto HTTP/1.0 [14:31:01]Method: POST [14:31:01]URL: /json_proto [14:31:01]Method is POST - this is cgi request [14:31:01]url: /json_proto [14:31:01]query_string will be loaded in cgi processing [14:31:01]execute_cgi json_proto POST (null) [14:31:01]execute_cgi path=json_proto method=POST [14:31:01]POST find Content-Length [14:31:01]Host: 172.17.49.132:8080 [14:31:01]Content-Length: 939 [14:31:01]Content-Type: application/json [14:31:01] [14:31:01]POST finish read [14:31:01]Found Content-Length = 939 [14:31:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.20, "quantity" : 100.000, "sum" : 7420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:01]execute_script... [14:31:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.20, "quantity" : 100.000, "sum" : 7420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:01]POST & json_proto [14:31:01]process_json_proto [14:31:01]json parsed OK: [14:31:01]protocol is kg_v1.0 [14:31:01]action value=close_receipt [14:31:01]process_action close_receipt [14:31:01]cmd_close_receipt [14:31:01]MH_GetDate [14:31:01]Write to MH i2c: F0 00 00 5B 51 9B [14:31:01]Write i2c OK [14:31:01]MH_I2C_Read... [14:31:01]Read from MH i2c: F0 [14:31:01]MH_I2C_Read... [14:31:01]Read from MH i2c: F0 09 00 [14:31:01]MH_I2C_Read... [14:31:01]Read from MH i2c: F0 09 00 5B 51 00 2E 56 A6 66 E7 4B C0 64 8A [14:31:01]GetLastDocTimeStamp 1722176804 [14:31:01]current date 1722177070 [14:31:01]FM_GetShiftState [14:31:01]SAM_PROTO_GetShiftState [14:31:01]wFMCommunicate request_size=4 [14:31:01]MH_SAM_APDU [14:31:01]CAPDU: 80 13 01 00 [14:31:01]Write to MH i2c: E2 08 00 5C 51 80 13 01 00 00 00 00 00 2A [14:31:01]Write i2c OK [14:31:01]MH_I2C_Read... [14:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:01]Read from MH i2c: E2 [14:31:01]MH_I2C_Read... [14:31:01]Read from MH i2c: E2 0E 00 [14:31:01]MH_I2C_Read... [14:31:01]Read from MH i2c: E2 0E 00 5C 51 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 67 [14:31:01]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:31:01]wFMCommunicate OK [14:31:01]SAM_PROTO_GetShiftState done [14:31:01]FM_GetShiftState done [14:31:01]opened in 1722127251 [14:31:01]opened+sec_in_day 1722213651 [14:31:01]quantity*price = 742000 [14:31:01]sum+1 = 742001 [14:31:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7420.00 НСП 1% : 65.66 НДС 12% : 787.96 Наличными: 7420.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 117 28.07.2024 14:31 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Дисконтная программа ДТ номер 125 сэкономлено 100.00 сом ФМ: 0000000000874949 ФД: 69234 ФПД: 271128033781726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143110&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69234&fm=271128033781726&tin=02508201610067®Number=0000000000092638&sum=742000 [14:31:02]StoreToDocumentArchive [14:31:02]shift 429 fd 69234 [14:31:02]save to /storage/0429/doc_00069234 [14:31:02]save last doc name /storage/0429/doc_00069234 to /storage/kkm_last_doc_name [14:31:02]save OK [14:31:02]Clear old archive folders... [14:31:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:31:02]tlvbuf is 00BC40A0 [14:31:02]SAM_PROTO_ClearQueue [14:31:02]wFMCommunicate request_size=4 [14:31:02]MH_SAM_APDU [14:31:02]CAPDU: 80 09 00 00 [14:31:02]Write to MH i2c: E2 08 00 69 51 80 09 00 00 00 00 00 00 2C [14:31:02]Write i2c OK [14:31:02]MH_I2C_Read... [14:31:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:02]Read from MH i2c: E2 [14:31:02]MH_I2C_Read... [14:31:02]Read from MH i2c: E2 03 00 [14:31:02]MH_I2C_Read... [14:31:02]Read from MH i2c: E2 03 00 69 51 00 90 00 2E [14:31:02]RAPDU: 90 00 [14:31:02]wFMCommunicate OK [14:31:02]SAM_PROTO_ClearQueue done [14:31:02]KKMCreateOFDPacket [14:31:02]OFDProtocolAddRootSTLVToBuf [14:31:02]FM_MakeSignedData [14:31:02]FM_MakeSignedData [14:31:02]SAM_PROTO_SignData [14:31:02]wFMCommunicate request_size=4 [14:31:02]MH_SAM_APDU [14:31:02]CAPDU: 80 0D 01 02 [14:31:02]Write to MH i2c: E2 08 00 6A 51 80 0D 01 02 00 00 00 00 34 [14:31:02]Write i2c OK [14:31:02]MH_I2C_Read... [14:31:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:02]Read from MH i2c: E2 [14:31:02]MH_I2C_Read... [14:31:02]Read from MH i2c: E2 03 00 [14:31:02]MH_I2C_Read... [14:31:02]Read from MH i2c: E2 03 00 6A 51 00 90 00 2F [14:31:02]RAPDU: 90 00 [14:31:02]wFMCommunicate OK [14:31:02]wFMCommunicate request_size=255 [14:31:02]MH_SAM_APDU [14:31:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2E 56 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 72 0E 01 00 35 04 06 00 F6 96 EA 24 [14:31:02]Write to MH i2c: E2 02 01 6B 51 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2E 56 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 72 0E 01 00 35 04 06 00 F6 96 EA 24 00 00 D0 [14:31:02]Write i2c OK [14:31:02]MH_I2C_Read... [14:31:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:02]Read from MH i2c: E2 [14:31:02]MH_I2C_Read... [14:31:02]Read from MH i2c: E2 03 00 [14:31:02]MH_I2C_Read... [14:31:02]Read from MH i2c: E2 03 00 6B 51 00 90 00 30 [14:31:02]RAPDU: 90 00 [14:31:02]wFMCommunicate OK [14:31:02]wFMCommunicate request_size=7 [14:31:02]MH_SAM_APDU [14:31:02]CAPDU: 80 0D 02 02 02 67 DE [14:31:02]Write to MH i2c: E2 0A 00 6C 51 80 0D 02 02 02 00 67 DE 00 00 80 [14:31:02]Write i2c OK [14:31:02]MH_I2C_Read... [14:31:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:02]Read from MH i2c: E2 [14:31:02]MH_I2C_Read... [14:31:02]Read from MH i2c: E2 03 00 [14:31:02]MH_I2C_Read... [14:31:02]Read from MH i2c: E2 03 00 6C 51 00 90 00 31 [14:31:02]RAPDU: 90 00 [14:31:02]wFMCommunicate OK [14:31:02]wFMCommunicate request_size=4 [14:31:02]MH_SAM_APDU [14:31:02]CAPDU: 80 0D 03 02 [14:31:02]Write to MH i2c: E2 08 00 6D 51 80 0D 03 02 00 00 00 00 39 [14:31:02]Write i2c OK [14:31:02]MH_I2C_Read... [14:31:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:02]Read from MH i2c: E2 [14:31:02]MH_I2C_Read... [14:31:02]Read from MH i2c: E2 0B 00 [14:31:02]MH_I2C_Read... [14:31:02]Read from MH i2c: E2 0B 00 6D 51 00 D0 6C 52 54 FC 74 6B 03 90 00 FA [14:31:02]RAPDU: D0 6C 52 54 FC 74 6B 03 90 00 [14:31:02]wFMCommunicate OK [14:31:02]SAM_PROTO_SignData done [14:31:02]FM_MakeSignedData done [14:31:02]CreateOFDProtocolMessage [14:31:02]wFMCommunicate request_size=4 [14:31:02]MH_SAM_APDU [14:31:02]CAPDU: 80 11 00 00 [14:31:02]Write to MH i2c: E2 08 00 6E 51 80 11 00 00 00 00 00 00 39 [14:31:02]Write i2c OK [14:31:02]MH_I2C_Read... [14:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:02]Read from MH i2c: E2 [14:31:02]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 17 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 17 00 6E 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 95 [14:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:31:03]wFMCommunicate OK [14:31:03]CreateOFDProtocolMessage done [14:31:03]OFDSenderStorePacket 69234 [14:31:03]StoreOFDPacket docnum=69234 [14:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 F3 C6 04 01 C2 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2E 56 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 72 0E 01 00 35 04 06 00 F6 96 EA 24 67 DE D0 6C 52 54 FC 74 6B 03 [14:31:03]CheckFolder [14:31:03]dirname=/storage/ofd_packets [14:31:03]CheckFolder done [14:31:03]ProducePacketName [14:31:03]name=ofd_packets/00069234 [14:31:03]NVStorageSaveData ofd_packets/00069234 [14:31:03]File name is /storage/ofd_packets/00069234 [14:31:03]Write 298 bytes [14:31:03]NVStorageSaveData done [14:31:03]OFDSenderStorePacket done [14:31:03]KKMCreateOFDPacket done [14:31:03]NVStorageSaveData kkm_last_timestamp [14:31:03]File name is /storage/kkm_last_timestamp [14:31:03]Write 4 bytes [14:31:03]NVStorageSaveData done [14:31:03]ExternCall_PrintAddStr [14:31:03]wPrintStart [14:31:03]Write to MH i2c: 01 00 00 6F 51 C0 [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: 01 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: 01 07 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: 01 07 00 6F 51 00 00 00 00 00 FF 0F D5 [14:31:03]RasterBufferAndPrint [14:31:03]line Счет N : (1)871956 [14:31:03]line ИНН: 02508201610067 [14:31:03]line Контрольно-Кассовый Чек [14:31:03]line ПРОДАЖА [14:31:03]line ТРК (МРК, ГНК) : 1 [14:31:03]line Товар: 2710194210 [14:31:03]line ДТ-К-5 [14:31:03]line 100.000 * 74.20 [14:31:03]line = 7420.00 [14:31:03]line НДС 12% НСП 1% [14:31:03]line > о реализуемом товаре [14:31:03]line ИТОГО: 7420.00 [14:31:03]line НСП 1% : 65.66 [14:31:03]line НДС 12% : 787.96 [14:31:03]line Наличными: 7420.00 [14:31:03]line Безнал.: 0.00 [14:31:03]line Место: АЗС № 125 "Партнер Нефть" [14:31:03]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:31:03]line СНО: Общий режим [14:31:03]line Чек 117 28.07.2024 14:31 [14:31:03]line Смена: 429 ФФД: 1.0 [14:31:03]line ЗНМ: 0300000049 [14:31:03]line РНМ: 0000000000092638 [14:31:03]line Версия ККМ: 001 [14:31:03]line [14:31:03]line Дисконтная программа [14:31:03]line ДТ [14:31:03]line номер 125 [14:31:03]line сэкономлено 100.00 сом [14:31:03]line ФМ: 0000000000874949 [14:31:03]line ФД: 69234 [14:31:03]line ФПД: 271128033781726 [14:31:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143110&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69234&fm=271128033781726&tin=02508201610067®Number=0000000000092638&sum=742000 [14:31:03]OFD Sender: Processing packet 69234 [packets to send 19, broken 18] [14:31:03]ProducePacketName [14:31:03]name=ofd_packets/00069234 [14:31:03]OFD Sender: To server: pG, [14:31:03]CommunicateWithHost lk.salyk.kg:30040 [14:31:03]ConnectInit lk.salyk.kg [14:31:03]written 0, free lines is 4095 [14:31:03]Connected sock=10 [14:31:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 F3 C6 04 01 C2 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 70 52 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 52 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 33 01 00 00 00 07 04 06 00 70 52 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2E 56 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 72 0E 01 00 35 04 06 00 F6 96 EA 24 67 DE D0 6C 52 54 FC 74 6B 03 [14:31:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 1F 7F 47 00 E5 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 72 0E 01 00 F4 03 04 00 9E FC A5 66 B6 04 01 00 00 9E CD F0 B4 52 A8 6D 57 [14:31:03]CommunicateWithHost err = 0 [14:31:03]CheckOFDResponse [14:31:03]1017 (14) - 77093643461234 [14:31:03]1041 (16) - 0000000000874949 [14:31:03]1040 (4) - 69234 [14:31:03]1012 (4) - 28.07.2024 08:09 [14:31:03]1206 (1) - 0 [14:31:03]OFD Sender: Remove packet 69234 [14:31:03]ProducePacketName [14:31:03]name=ofd_packets/00069234 [14:31:03]NVStorageDeleteData [14:31:03]Write to MH i2c: 01 00 00 9C 51 ED [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: 01 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: 01 07 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: 01 07 00 9C 51 00 00 00 00 00 C7 0C C7 [14:31:03]RasterBufferAndPrint [14:31:03]line [14:31:03]line [14:31:03]line [14:31:03]line [14:31:03]line [14:31:03]written 0, free lines is 3277 [14:31:03]MH_Cut [14:31:03]Write to MH i2c: D1 01 00 A3 51 01 C6 [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: D1 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: D1 01 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: D1 01 00 A3 51 00 C5 [14:31:03]Write to MH i2c: 01 00 00 A4 51 F5 [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:04]OFD Sender: No OFD packet to send [14:31:04]*** Cut start [14:31:04]*** Partial cut [14:31:04]*** CUTSNS_PIN = 1 [14:31:04]*** CUTSNS_PIN = 0 [14:31:04]*** Brake cut motor [14:31:05]Read from MH i2c: 01 [14:31:05]MH_I2C_Read... [14:31:05]*** Stop cut motor [14:31:05]*** Cut end [14:31:05]Read from MH i2c: 01 07 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: 01 07 00 A4 51 00 00 00 00 00 FF 0F 0A [14:31:05]process_action close_receipt done [14:31:05]requested_data is exist [14:31:05]produce_requested_data [14:31:05]requested_item fm.sn is exist - process it [14:31:05]wFMCommunicate request_size=4 [14:31:05]MH_SAM_APDU [14:31:05]CAPDU: 80 11 00 00 [14:31:05]Write to MH i2c: E2 08 00 A5 51 80 11 00 00 00 00 00 00 70 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 17 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 17 00 A5 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 CC [14:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:31:05]wFMCommunicate OK [14:31:05]requested_item fd.num is exist - process it [14:31:05]SAM_PROTO_GetFieldsCounters [14:31:05]wFMCommunicate request_size=4 [14:31:05]MH_SAM_APDU [14:31:05]CAPDU: 80 13 00 00 [14:31:05]Write to MH i2c: E2 08 00 A6 51 80 13 00 00 00 00 00 00 73 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 62 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 62 00 A6 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 72 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [14:31:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 72 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:05]wFMCommunicate OK [14:31:05]SAM_PROTO_GetFieldsCounters done [14:31:05]requested_item shift.num is exist - process it [14:31:05]requested_item shift.opened is exist - process it [14:31:05]req_shift_opened [14:31:05]FM_GetShiftState [14:31:05]SAM_PROTO_GetShiftState [14:31:05]wFMCommunicate request_size=4 [14:31:05]MH_SAM_APDU [14:31:05]CAPDU: 80 13 01 00 [14:31:05]Write to MH i2c: E2 08 00 A7 51 80 13 01 00 00 00 00 00 75 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 0E 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 0E 00 A7 51 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 B2 [14:31:05]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:31:05]wFMCommunicate OK [14:31:05]SAM_PROTO_GetShiftState done [14:31:05]FM_GetShiftState done [14:31:05]req_shift_opened done [14:31:05]requested_item shift.open_date is exist - process it [14:31:05]req_shift_open_date [14:31:05]req_shift_open_date done [14:31:05]produce_requested_data done [14:31:05]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69234,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:31:05]process_action_free close_receipt [14:31:05]json_value_free [14:31:05]json_value_free done [14:31:05]process_json_proto returns [14:31:05]Send response to host [14:31:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69234,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:31:05]free response buf [14:31:05]execute_script done [14:31:05]execute_script returns [14:31:05]free content buf [14:31:05]Sock 9.Close socket [14:31:05]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]accept exits with 7 [14:34:59]New connection [14:34:59]New thread 3066641764 created [14:34:59]Thread 3066785124 joined [14:34:59]Waiting for new connection... [14:34:59] Sock 7.Parse request [14:34:59]Sock 7.Check first char [14:34:59]Sock 7.First char is OK [14:34:59]request: POST /json_proto HTTP/1.0 [14:34:59]Method: POST [14:34:59]URL: /json_proto [14:34:59]Method is POST - this is cgi request [14:34:59]url: /json_proto [14:34:59]query_string will be loaded in cgi processing [14:34:59]execute_cgi json_proto POST (null) [14:34:59]execute_cgi path=json_proto method=POST [14:34:59]POST find Content-Length [14:34:59]Host: 172.17.49.132:8080 [14:34:59]Content-Length: 748 [14:34:59]Content-Type: application/json [14:34:59] [14:34:59]POST finish read [14:34:59]Found Content-Length = 748 [14:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136577", "tax_sys" : 0, "items" : [ { "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:59]execute_script... [14:34: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)136577", "tax_sys" : 0, "items" : [ { "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:59]POST & json_proto [14:34:59]process_json_proto [14:34:59]json parsed OK: [14:34:59]protocol is kg_v1.0 [14:34:59]action value=close_receipt [14:34:59]process_action close_receipt [14:34:59]cmd_close_receipt [14:34:59]MH_GetDate [14:34:59]Write to MH i2c: F0 00 00 A8 51 E8 [14:34:59]Write i2c OK [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: F0 [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: F0 09 00 [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: F0 09 00 A8 51 00 1C 57 A6 66 E7 4B C0 64 C6 [14:34:59]GetLastDocTimeStamp 1722177070 [14:34:59]current date 1722177308 [14:34:59]FM_GetShiftState [14:34:59]SAM_PROTO_GetShiftState [14:34:59]wFMCommunicate request_size=4 [14:34:59]MH_SAM_APDU [14:34:59]CAPDU: 80 13 01 00 [14:34:59]Write to MH i2c: E2 08 00 A9 51 80 13 01 00 00 00 00 00 77 [14:34:59]Write i2c OK [14:34:59]MH_I2C_Read... [14:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:59]Read from MH i2c: E2 [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: E2 0E 00 [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: E2 0E 00 A9 51 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 B4 [14:34:59]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:34:59]wFMCommunicate OK [14:34:59]SAM_PROTO_GetShiftState done [14:34:59]FM_GetShiftState done [14:34:59]opened in 1722127251 [14:34:59]opened+sec_in_day 1722213651 [14:34:59]quantity*price = 11000 [14:34:59]sum+1 = 11001 [14:34:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 118 28.07.2024 14:35 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69235 ФПД: 182285243515169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143508&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69235&fm=182285243515169&tin=02508201610067®Number=0000000000092638&sum=11000 0 [14:35:00]StoreToDocumentArchive [14:35:00]shift 429 fd 69235 [14:35:00]save to /storage/0429/doc_00069235 [14:35:00]save last doc name /storage/0429/doc_00069235 to /storage/kkm_last_doc_name [14:35:00]save OK [14:35:00]Clear old archive folders... [14:35:00]ProcessDocumentItem done err = 0, tmpTLVsize=312 [14:35:00]tlvbuf is 00A409A0 [14:35:00]SAM_PROTO_ClearQueue [14:35:00]wFMCommunicate request_size=4 [14:35:00]MH_SAM_APDU [14:35:00]CAPDU: 80 09 00 00 [14:35:00]Write to MH i2c: E2 08 00 B6 51 80 09 00 00 00 00 00 00 79 [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:00]Read from MH i2c: E2 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 B6 51 00 90 00 7B [14:35:00]RAPDU: 90 00 [14:35:00]wFMCommunicate OK [14:35:00]SAM_PROTO_ClearQueue done [14:35:00]KKMCreateOFDPacket [14:35:00]OFDProtocolAddRootSTLVToBuf [14:35:00]FM_MakeSignedData [14:35:00]FM_MakeSignedData [14:35:00]SAM_PROTO_SignData [14:35:00]wFMCommunicate request_size=4 [14:35:00]MH_SAM_APDU [14:35:00]CAPDU: 80 0D 01 02 [14:35:00]Write to MH i2c: E2 08 00 B7 51 80 0D 01 02 00 00 00 00 81 [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:00]Read from MH i2c: E2 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 B7 51 00 90 00 7C [14:35:00]RAPDU: 90 00 [14:35:00]wFMCommunicate OK [14:35:00]wFMCommunicate request_size=255 [14:35:00]MH_SAM_APDU [14:35:00]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 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 1C 57 A6 66 0E 04 04 00 AD [14:35:00]Write to MH i2c: E2 02 01 B8 51 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 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 1C 57 A6 66 0E 04 04 00 AD 00 00 09 [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:00]Read from MH i2c: E2 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 B8 51 00 90 00 7D [14:35:00]RAPDU: 90 00 [14:35:00]wFMCommunicate OK [14:35:00]wFMCommunicate request_size=71 [14:35:00]MH_SAM_APDU [14:35:00]CAPDU: 80 0D 02 02 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 73 0E 01 00 35 04 06 00 A5 C9 97 30 01 21 [14:35:00]Write to MH i2c: E2 4A 00 B9 51 80 0D 02 02 42 00 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 73 0E 01 00 35 04 06 00 A5 C9 97 30 01 21 00 00 83 [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:00]Read from MH i2c: E2 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 B9 51 00 90 00 7E [14:35:00]RAPDU: 90 00 [14:35:00]wFMCommunicate OK [14:35:00]wFMCommunicate request_size=4 [14:35:00]MH_SAM_APDU [14:35:00]CAPDU: 80 0D 03 02 [14:35:00]Write to MH i2c: E2 08 00 BA 51 80 0D 03 02 00 00 00 00 86 [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:00]Read from MH i2c: E2 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 0B 00 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 0B 00 BA 51 00 80 AA 1D D8 FE AF A6 64 90 00 5D [14:35:00]RAPDU: 80 AA 1D D8 FE AF A6 64 90 00 [14:35:00]wFMCommunicate OK [14:35:00]SAM_PROTO_SignData done [14:35:00]FM_MakeSignedData done [14:35:00]CreateOFDProtocolMessage [14:35:00]wFMCommunicate request_size=4 [14:35:00]MH_SAM_APDU [14:35:00]CAPDU: 80 11 00 00 [14:35:00]Write to MH i2c: E2 08 00 BB 51 80 11 00 00 00 00 00 00 86 [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:00]Read from MH i2c: E2 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 17 00 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 17 00 BB 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E2 [14:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:35:00]wFMCommunicate OK [14:35:00]CreateOFDProtocolMessage done [14:35:00]OFDSenderStorePacket 69235 [14:35:00]StoreOFDPacket docnum=69235 [14:35:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4C 01 00 00 CC 1F 44 01 B7 39 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 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 1C 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 73 0E 01 00 35 04 06 00 A5 C9 97 30 01 21 80 AA 1D D8 FE AF A6 64 [14:35:00]CheckFolder [14:35:00]dirname=/storage/ofd_packets [14:35:00]CheckFolder done [14:35:00]ProducePacketName [14:35:00]name=ofd_packets/00069235 [14:35:00]NVStorageSaveData ofd_packets/00069235 [14:35:00]File name is /storage/ofd_packets/00069235 [14:35:00]Write 362 bytes [14:35:00]NVStorageSaveData done [14:35:00]OFDSenderStorePacket done [14:35:00]KKMCreateOFDPacket done [14:35:00]NVStorageSaveData kkm_last_timestamp [14:35:00]File name is /storage/kkm_last_timestamp [14:35:00]Write 4 bytes [14:35:00]NVStorageSaveData done [14:35:00]ExternCall_PrintAddStr [14:35:00]wPrintStart [14:35:00]Write to MH i2c: 01 00 00 BC 51 0D [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: 01 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: 01 07 00 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: 01 07 00 BC 51 00 00 00 00 00 FF 0F 22 [14:35:00]RasterBufferAndPrint [14:35:00]line Счет N : (3)136577 [14:35:00]line ИНН: 02508201610067 [14:35:00]line Контрольно-Кассовый Чек [14:35:00]line ПРОДАЖА [14:35:00]line Товар: 4870202521254 [14:35:00]line Чай холодный MAXI черный со вкусом клубн [14:35:00]line 1.000 * 110.00 [14:35:00]line = 110.00 [14:35:00]line НДС 12% НСП 1% [14:35:00]line > о реализуемом товаре [14:35:00]line ИТОГО: 110.00 [14:35:00]line НСП 1% : 0.97 [14:35:00]line НДС 12% : 11.68 [14:35:00]line Наличными: 110.00 [14:35:00]line Безнал.: 0.00 [14:35:00]line Место: АЗС № 125 "Партнер Нефть" [14:35:00]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:35:00]line СНО: Общий режим [14:35:00]line Чек 118 28.07.2024 14:35 [14:35:00]line Смена: 429 ФФД: 1.0 [14:35:00]line ЗНМ: 0300000049 [14:35:01]line РНМ: 0000000000092638 [14:35:01]line Версия ККМ: 001 [14:35:01]line ФМ: 0000000000874949 [14:35:01]line ФД: 69235 [14:35:01]line ФПД: 182285243515169 [14:35:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143508&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69235&fm=182285243515169&tin=02508201610067®Number=0000000000092638&sum=11000 [14:35:01]line 0 [14:35:01]OFD Sender: Processing packet 69235 [packets to send 19, broken 18] [14:35:01]ProducePacketName [14:35:01]name=ofd_packets/00069235 [14:35:01]OFD Sender: To server: pG, [14:35:01]CommunicateWithHost lk.salyk.kg:30040 [14:35:01]ConnectInit lk.salyk.kg [14:35:01]written 0, free lines is 4095 [14:35:01]Connected sock=10 [14:35: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 39 34 39 4C 01 00 00 CC 1F 44 01 B7 39 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 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 1C 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 73 0E 01 00 35 04 06 00 A5 C9 97 30 01 21 80 AA 1D D8 FE AF A6 64 [14:35:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 29 73 47 00 8D 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 73 0E 01 00 F4 03 04 00 8C FD A5 66 B6 04 01 00 00 70 48 85 C3 BA 40 4B 87 [14:35:01]CommunicateWithHost err = 0 [14:35:01]CheckOFDResponse [14:35:01]1017 (14) - 77093643461234 [14:35:01]1041 (16) - 0000000000874949 [14:35:01]1040 (4) - 69235 [14:35:01]1012 (4) - 28.07.2024 08:13 [14:35:01]1206 (1) - 0 [14:35:01]OFD Sender: Remove packet 69235 [14:35:01]ProducePacketName [14:35:01]name=ofd_packets/00069235 [14:35:01]NVStorageDeleteData [14:35:01]Write to MH i2c: 01 00 00 E5 51 36 [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 07 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 07 00 E5 51 00 00 00 00 00 13 0D 5D [14:35:01]RasterBufferAndPrint [14:35:01]line [14:35:01]line [14:35:01]line [14:35:01]line [14:35:01]line [14:35:01]written 0, free lines is 3354 [14:35:01]MH_Cut [14:35:01]Write to MH i2c: D1 01 00 EC 51 01 0F [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: D1 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: D1 01 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: D1 01 00 EC 51 00 0E [14:35:01]Write to MH i2c: 01 00 00 ED 51 3E [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:02]OFD Sender: No OFD packet to send [14:35:02]*** Cut start [14:35:02]*** Partial cut [14:35:02]*** CUTSNS_PIN = 1 [14:35:02]*** CUTSNS_PIN = 0 [14:35:02]*** Brake cut motor [14:35:02]Read from MH i2c: 01 [14:35:02]MH_I2C_Read... [14:35:02]*** Stop cut motor [14:35:02]*** Cut end [14:35:02]Read from MH i2c: 01 07 00 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: 01 07 00 ED 51 00 00 00 00 00 FF 0F 53 [14:35:02]process_action close_receipt done [14:35:02]requested_data is exist [14:35:02]produce_requested_data [14:35:02]requested_item fm.sn is exist - process it [14:35:02]wFMCommunicate request_size=4 [14:35:02]MH_SAM_APDU [14:35:02]CAPDU: 80 11 00 00 [14:35:02]Write to MH i2c: E2 08 00 EE 51 80 11 00 00 00 00 00 00 B9 [14:35:02]Write i2c OK [14:35:02]MH_I2C_Read... [14:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:03]Read from MH i2c: E2 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 17 00 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 17 00 EE 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 15 [14:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:35:03]wFMCommunicate OK [14:35:03]requested_item fd.num is exist - process it [14:35:03]SAM_PROTO_GetFieldsCounters [14:35:03]wFMCommunicate request_size=4 [14:35:03]MH_SAM_APDU [14:35:03]CAPDU: 80 13 00 00 [14:35:03]Write to MH i2c: E2 08 00 EF 51 80 13 00 00 00 00 00 00 BC [14:35:03]Write i2c OK [14:35:03]MH_I2C_Read... [14:35:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:03]Read from MH i2c: E2 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 62 00 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 62 00 EF 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 73 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [14:35: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 73 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:03]wFMCommunicate OK [14:35:03]SAM_PROTO_GetFieldsCounters done [14:35:03]requested_item shift.num is exist - process it [14:35:03]requested_item shift.opened is exist - process it [14:35:03]req_shift_opened [14:35:03]FM_GetShiftState [14:35:03]SAM_PROTO_GetShiftState [14:35:03]wFMCommunicate request_size=4 [14:35:03]MH_SAM_APDU [14:35:03]CAPDU: 80 13 01 00 [14:35:03]Write to MH i2c: E2 08 00 F0 51 80 13 01 00 00 00 00 00 BE [14:35:03]Write i2c OK [14:35:03]MH_I2C_Read... [14:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:03]Read from MH i2c: E2 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 0E 00 [14:35:03]MH_I2C_Read... [14:35:03]Read from MH i2c: E2 0E 00 F0 51 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 FB [14:35:03]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:35:03]wFMCommunicate OK [14:35:03]SAM_PROTO_GetShiftState done [14:35:03]FM_GetShiftState done [14:35:03]req_shift_opened done [14:35:03]requested_item shift.open_date is exist - process it [14:35:03]req_shift_open_date [14:35:03]req_shift_open_date done [14:35:03]produce_requested_data done [14:35:03]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69235,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:35:03]process_action_free close_receipt [14:35:03]json_value_free [14:35:03]json_value_free done [14:35:03]process_json_proto returns [14:35:03]Send response to host [14:35:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69235,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:35:03]free response buf [14:35:03]execute_script done [14:35:03]execute_script returns [14:35:03]free content buf [14:35:03]Sock 7.Close socket [14:35:03]Sock 7.Thread stoped [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:35:59]accept exits with 9 [14:35:59]New connection [14:35:59]New thread 3066785124 created [14:35:59]Thread 3066641764 joined [14:35:59]Waiting for new connection... [14:35:59] Sock 9.Parse request [14:35:59]Sock 9.Check first char [14:35:59]Sock 9.First char is OK [14:35:59]request: POST /json_proto HTTP/1.0 [14:35:59]Method: POST [14:35:59]URL: /json_proto [14:35:59]Method is POST - this is cgi request [14:35:59]url: /json_proto [14:35:59]query_string will be loaded in cgi processing [14:35:59]execute_cgi json_proto POST (null) [14:35:59]execute_cgi path=json_proto method=POST [14:35:59]POST find Content-Length [14:35:59]Host: 172.17.49.132:8080 [14:35:59]Content-Length: 977 [14:35:59]Content-Type: application/json [14:35:59] [14:35:59]POST finish read [14:35:59]Found Content-Length = 977 [14:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.20, "quantity" : 77.360, "sum" : 5740.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 77.36 \u0441\u043E\u043C", "deposit" : 5740.00, "total" : 5740.00, "payments": [ { "type": 0, "sum" : 5740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:59]execute_script... [14:35:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.20, "quantity" : 77.360, "sum" : 5740.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 125\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 77.36 \u0441\u043E\u043C", "deposit" : 5740.00, "total" : 5740.00, "payments": [ { "type": 0, "sum" : 5740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:59]POST & json_proto [14:35:59]process_json_proto [14:35:59]json parsed OK: [14:35:59]protocol is kg_v1.0 [14:35:59]action value=close_receipt [14:35:59]process_action close_receipt [14:35:59]cmd_close_receipt [14:35:59]MH_GetDate [14:35:59]Write to MH i2c: F0 00 00 F1 51 31 [14:35:59]Write i2c OK [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: F0 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: F0 09 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: F0 09 00 F1 51 00 59 57 A6 66 E7 4B C0 64 4C [14:35:59]GetLastDocTimeStamp 1722177308 [14:35:59]current date 1722177369 [14:35:59]FM_GetShiftState [14:35:59]SAM_PROTO_GetShiftState [14:35:59]wFMCommunicate request_size=4 [14:35:59]MH_SAM_APDU [14:35:59]CAPDU: 80 13 01 00 [14:35:59]Write to MH i2c: E2 08 00 F2 51 80 13 01 00 00 00 00 00 C0 [14:35:59]Write i2c OK [14:35:59]MH_I2C_Read... [14:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:59]Read from MH i2c: E2 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 0E 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 0E 00 F2 51 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 FD [14:35:59]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:35:59]wFMCommunicate OK [14:35:59]SAM_PROTO_GetShiftState done [14:35:59]FM_GetShiftState done [14:35:59]opened in 1722127251 [14:35:59]opened+sec_in_day 1722213651 [14:35:59]quantity*price = 574011 [14:35:59]sum+1 = 574012 [14:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 5740.00 Внесено: 5740.00 СДАЧА: 0.00 НСП 1% : 50.80 НДС 12% : 609.57 Наличными: 5740.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 119 28.07.2024 14:36 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Дисконтная программа ДТ номер 125 сэкономлено 77.36 сом ФМ: 0000000000874949 ФД: 69236 ФПД: 104860371313885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143609&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69236&fm=104860371313885&tin=02508201610067®Number=0000000000092638&sum=574000 [14:36:00]StoreToDocumentArchive [14:36:00]shift 429 fd 69236 [14:36:00]save to /storage/0429/doc_00069236 [14:36:00]save last doc name /storage/0429/doc_00069236 to /storage/kkm_last_doc_name [14:36:00]save OK [14:36:00]Clear old archive folders... [14:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:36:00]tlvbuf is 00AB1040 [14:36:00]SAM_PROTO_ClearQueue [14:36:00]wFMCommunicate request_size=4 [14:36:00]MH_SAM_APDU [14:36:00]CAPDU: 80 09 00 00 [14:36:00]Write to MH i2c: E2 08 00 FF 51 80 09 00 00 00 00 00 00 C2 [14:36:00]Write i2c OK [14:36:00]MH_I2C_Read... [14:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:00]Read from MH i2c: E2 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 FF 51 00 90 00 C4 [14:36:00]RAPDU: 90 00 [14:36:00]wFMCommunicate OK [14:36:00]SAM_PROTO_ClearQueue done [14:36:00]KKMCreateOFDPacket [14:36:00]OFDProtocolAddRootSTLVToBuf [14:36:00]FM_MakeSignedData [14:36:00]FM_MakeSignedData [14:36:00]SAM_PROTO_SignData [14:36:00]wFMCommunicate request_size=4 [14:36:00]MH_SAM_APDU [14:36:00]CAPDU: 80 0D 01 02 [14:36:00]Write to MH i2c: E2 08 00 00 52 80 0D 01 02 00 00 00 00 CB [14:36:00]Write i2c OK [14:36:00]MH_I2C_Read... [14:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:01]Read from MH i2c: E2 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 03 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 03 00 00 52 00 90 00 C6 [14:36:01]RAPDU: 90 00 [14:36:01]wFMCommunicate OK [14:36:01]wFMCommunicate request_size=255 [14:36:01]MH_SAM_APDU [14:36:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 2E 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3B C2 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C2 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D EE 00 00 00 00 07 04 06 00 30 C2 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 59 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 74 0E 01 00 35 04 06 00 5F 5E B5 2E [14:36:01]Write to MH i2c: E2 02 01 01 52 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 2E 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3B C2 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C2 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D EE 00 00 00 00 07 04 06 00 30 C2 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 59 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 74 0E 01 00 35 04 06 00 5F 5E B5 2E 00 00 9E [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:01]Read from MH i2c: E2 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 03 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 03 00 01 52 00 90 00 C7 [14:36:01]RAPDU: 90 00 [14:36:01]wFMCommunicate OK [14:36:01]wFMCommunicate request_size=7 [14:36:01]MH_SAM_APDU [14:36:01]CAPDU: 80 0D 02 02 02 E4 DD [14:36:01]Write to MH i2c: E2 0A 00 02 52 80 0D 02 02 02 00 E4 DD 00 00 93 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:01]Read from MH i2c: E2 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 03 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 03 00 02 52 00 90 00 C8 [14:36:01]RAPDU: 90 00 [14:36:01]wFMCommunicate OK [14:36:01]wFMCommunicate request_size=4 [14:36:01]MH_SAM_APDU [14:36:01]CAPDU: 80 0D 03 02 [14:36:01]Write to MH i2c: E2 08 00 03 52 80 0D 03 02 00 00 00 00 D0 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:01]Read from MH i2c: E2 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 0B 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 0B 00 03 52 00 97 52 2D B7 EE 00 44 96 90 00 66 [14:36:01]RAPDU: 97 52 2D B7 EE 00 44 96 90 00 [14:36:01]wFMCommunicate OK [14:36:01]SAM_PROTO_SignData done [14:36:01]FM_MakeSignedData done [14:36:01]CreateOFDProtocolMessage [14:36:01]wFMCommunicate request_size=4 [14:36:01]MH_SAM_APDU [14:36:01]CAPDU: 80 11 00 00 [14:36:01]Write to MH i2c: E2 08 00 04 52 80 11 00 00 00 00 00 00 D0 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:01]Read from MH i2c: E2 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 17 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 17 00 04 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 2C [14:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:36:01]wFMCommunicate OK [14:36:01]CreateOFDProtocolMessage done [14:36:01]OFDSenderStorePacket 69236 [14:36:01]StoreOFDPacket docnum=69236 [14:36:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 7B 8B 04 01 35 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 2E 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3B C2 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C2 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D EE 00 00 00 00 07 04 06 00 30 C2 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 59 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 74 0E 01 00 35 04 06 00 5F 5E B5 2E E4 DD 97 52 2D B7 EE 00 44 96 [14:36:01]CheckFolder [14:36:01]dirname=/storage/ofd_packets [14:36:01]CheckFolder done [14:36:01]ProducePacketName [14:36:01]name=ofd_packets/00069236 [14:36:01]NVStorageSaveData ofd_packets/00069236 [14:36:01]File name is /storage/ofd_packets/00069236 [14:36:01]Write 298 bytes [14:36:01]NVStorageSaveData done [14:36:01]OFDSenderStorePacket done [14:36:01]KKMCreateOFDPacket done [14:36:01]NVStorageSaveData kkm_last_timestamp [14:36:01]File name is /storage/kkm_last_timestamp [14:36:01]Write 4 bytes [14:36:01]NVStorageSaveData done [14:36:01]ExternCall_PrintAddStr [14:36:01]wPrintStart [14:36:01]Write to MH i2c: 01 00 00 05 52 57 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 07 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 07 00 05 52 00 00 00 00 00 FF 0F 6C [14:36:01]RasterBufferAndPrint [14:36:01]line Счет N : (1)871960 [14:36:01]line ИНН: 02508201610067 [14:36:01]line Контрольно-Кассовый Чек [14:36:01]line ПРОДАЖА [14:36:01]line ТРК (МРК, ГНК) : 1 [14:36:01]line Товар: 2710194210 [14:36:01]line ДТ-К-5 [14:36:01]line 77.360 * 74.20 [14:36:01]line = 5740.11 [14:36:01]line НДС 12% НСП 1% [14:36:01]line > о реализуемом товаре [14:36:01]line ОКРУГЛЕНИЕ: -0.11 [14:36:01]line ИТОГО: 5740.00 [14:36:01]line Внесено: 5740.00 [14:36:01]line СДАЧА: 0.00 [14:36:01]line НСП 1% : 50.80 [14:36:01]line НДС 12% : 609.57 [14:36:01]line Наличными: 5740.00 [14:36:01]line Безнал.: 0.00 [14:36:01]line Место: АЗС № 125 "Партнер Нефть" [14:36:01]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:36:01]line СНО: Общий режим [14:36:01]line Чек 119 28.07.2024 14:36 [14:36:01]line Смена: 429 ФФД: 1.0 [14:36:01]line ЗНМ: 0300000049 [14:36:01]line РНМ: 0000000000092638 [14:36:01]line Версия ККМ: 001 [14:36:01]line [14:36:01]line Дисконтная программа [14:36:01]line ДТ [14:36:01]line номер 125 [14:36:01]line сэкономлено 77.36 сом [14:36:01]line ФМ: 0000000000874949 [14:36:01]line ФД: 69236 [14:36:01]line ФПД: 104860371313885 [14:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143609&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69236&fm=104860371313885&tin=02508201610067®Number=0000000000092638&sum=574000 [14:36:01]OFD Sender: Processing packet 69236 [packets to send 19, broken 18] [14:36:01]ProducePacketName [14:36:01]name=ofd_packets/00069236 [14:36:01]OFD Sender: To server: pG, [14:36:01]CommunicateWithHost lk.salyk.kg:30040 [14:36:01]ConnectInit lk.salyk.kg [14:36:01]written 0, free lines is 4095 [14:36:01]Connected sock=10 [14:36: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 39 34 39 0C 01 00 00 7B 8B 04 01 35 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 2E 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3B C2 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C2 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D EE 00 00 00 00 07 04 06 00 30 C2 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 59 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 74 0E 01 00 35 04 06 00 5F 5E B5 2E E4 DD 97 52 2D B7 EE 00 44 96 [14:36:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 56 9C 47 00 C6 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 74 0E 01 00 F4 03 04 00 C8 FD A5 66 B6 04 01 00 00 CA BC 9C 73 15 5B F8 35 [14:36:02]CommunicateWithHost err = 0 [14:36:02]CheckOFDResponse [14:36:02]1017 (14) - 77093643461234 [14:36:02]1041 (16) - 0000000000874949 [14:36:02]1040 (4) - 69236 [14:36:02]1012 (4) - 28.07.2024 08:14 [14:36:02]1206 (1) - 0 [14:36:02]OFD Sender: Remove packet 69236 [14:36:02]ProducePacketName [14:36:02]name=ofd_packets/00069236 [14:36:02]NVStorageDeleteData [14:36:02]Write to MH i2c: 01 00 00 35 52 87 [14:36:02]Write i2c OK [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: 01 [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: 01 07 00 [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: 01 07 00 35 52 00 00 00 00 00 98 0C 32 [14:36:02]RasterBufferAndPrint [14:36:02]line [14:36:02]line [14:36:02]line [14:36:02]line [14:36:02]line [14:36:02]written 0, free lines is 3233 [14:36:02]MH_Cut [14:36:02]Write to MH i2c: D1 01 00 3C 52 01 60 [14:36:02]Write i2c OK [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: D1 [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: D1 01 00 [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: D1 01 00 3C 52 00 5F [14:36:02]Write to MH i2c: 01 00 00 3D 52 8F [14:36:02]Write i2c OK [14:36:02]MH_I2C_Read... [14:36:02]OFD Sender: No OFD packet to send [14:36:02]*** Cut start [14:36:02]*** Partial cut [14:36:02]*** CUTSNS_PIN = 1 [14:36:03]*** CUTSNS_PIN = 0 [14:36:03]*** Brake cut motor [14:36:03]Read from MH i2c: 01 [14:36:03]MH_I2C_Read... [14:36:03]*** Stop cut motor [14:36:03]*** Cut end [14:36:03]Read from MH i2c: 01 07 00 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: 01 07 00 3D 52 00 00 00 00 00 FF 0F A4 [14:36:03]process_action close_receipt done [14:36:03]requested_data is exist [14:36:03]produce_requested_data [14:36:03]requested_item fm.sn is exist - process it [14:36:03]wFMCommunicate request_size=4 [14:36:03]MH_SAM_APDU [14:36:03]CAPDU: 80 11 00 00 [14:36:03]Write to MH i2c: E2 08 00 3E 52 80 11 00 00 00 00 00 00 0A [14:36:03]Write i2c OK [14:36:03]MH_I2C_Read... [14:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:03]Read from MH i2c: E2 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 17 00 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 17 00 3E 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 66 [14:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:36:03]wFMCommunicate OK [14:36:03]requested_item fd.num is exist - process it [14:36:03]SAM_PROTO_GetFieldsCounters [14:36:03]wFMCommunicate request_size=4 [14:36:03]MH_SAM_APDU [14:36:03]CAPDU: 80 13 00 00 [14:36:03]Write to MH i2c: E2 08 00 3F 52 80 13 00 00 00 00 00 00 0D [14:36:03]Write i2c OK [14:36:03]MH_I2C_Read... [14:36:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:03]Read from MH i2c: E2 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 62 00 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 62 00 3F 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 74 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [14:36: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 74 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:03]wFMCommunicate OK [14:36:03]SAM_PROTO_GetFieldsCounters done [14:36:03]requested_item shift.num is exist - process it [14:36:03]requested_item shift.opened is exist - process it [14:36:03]req_shift_opened [14:36:03]FM_GetShiftState [14:36:03]SAM_PROTO_GetShiftState [14:36:03]wFMCommunicate request_size=4 [14:36:03]MH_SAM_APDU [14:36:03]CAPDU: 80 13 01 00 [14:36:03]Write to MH i2c: E2 08 00 40 52 80 13 01 00 00 00 00 00 0F [14:36:03]Write i2c OK [14:36:03]MH_I2C_Read... [14:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:03]Read from MH i2c: E2 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 0E 00 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 0E 00 40 52 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 4C [14:36:03]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:36:03]wFMCommunicate OK [14:36:03]SAM_PROTO_GetShiftState done [14:36:03]FM_GetShiftState done [14:36:03]req_shift_opened done [14:36:03]requested_item shift.open_date is exist - process it [14:36:03]req_shift_open_date [14:36:03]req_shift_open_date done [14:36:03]produce_requested_data done [14:36:03]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69236,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:36:03]process_action_free close_receipt [14:36:03]json_value_free [14:36:03]json_value_free done [14:36:03]process_json_proto returns [14:36:03]Send response to host [14:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69236,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:36:03]free response buf [14:36:03]execute_script done [14:36:03]execute_script returns [14:36:03]free content buf [14:36:03]Sock 9.Close socket [14:36:03]Sock 9.Thread stoped [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:36:58]accept exits with 7 [14:36:58]New connection [14:36:58]New thread 3066641764 created [14:36:58]Thread 3066785124 joined [14:36:58]Waiting for new connection... [14:36:58] Sock 7.Parse request [14:36:58]Sock 7.Check first char [14:36:58]Sock 7.First char is OK [14:36:58]request: POST /json_proto HTTP/1.0 [14:36:58]Method: POST [14:36:58]URL: /json_proto [14:36:58]Method is POST - this is cgi request [14:36:58]url: /json_proto [14:36:58]query_string will be loaded in cgi processing [14:36:58]execute_cgi json_proto POST (null) [14:36:58]execute_cgi path=json_proto method=POST [14:36:58]POST find Content-Length [14:36:58]Host: 172.17.49.132:8080 [14:36:58]Content-Length: 678 [14:36:58]Content-Type: application/json [14:36:58] [14:36:58]POST finish read [14:36:58]Found Content-Length = 678 [14:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 22.490, "sum" : 1691.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1691.00, "total" : 1691.00, "payments": [ { "type": 0, "sum" : 1691.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:58]execute_script... [14:36:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 22.490, "sum" : 1691.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1691.00, "total" : 1691.00, "payments": [ { "type": 0, "sum" : 1691.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:58]POST & json_proto [14:36:58]process_json_proto [14:36:58]json parsed OK: [14:36:58]protocol is kg_v1.0 [14:36:58]action value=close_receipt [14:36:58]process_action close_receipt [14:36:58]cmd_close_receipt [14:36:58]MH_GetDate [14:36:58]Write to MH i2c: F0 00 00 41 52 82 [14:36:58]Write i2c OK [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: F0 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: F0 09 00 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: F0 09 00 41 52 00 94 57 A6 66 E7 4B C0 64 D8 [14:36:58]GetLastDocTimeStamp 1722177369 [14:36:58]current date 1722177428 [14:36:58]FM_GetShiftState [14:36:58]SAM_PROTO_GetShiftState [14:36:58]wFMCommunicate request_size=4 [14:36:58]MH_SAM_APDU [14:36:58]CAPDU: 80 13 01 00 [14:36:58]Write to MH i2c: E2 08 00 42 52 80 13 01 00 00 00 00 00 11 [14:36:58]Write i2c OK [14:36:58]MH_I2C_Read... [14:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:58]Read from MH i2c: E2 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: E2 0E 00 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: E2 0E 00 42 52 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 4E [14:36:58]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:36:58]wFMCommunicate OK [14:36:58]SAM_PROTO_GetShiftState done [14:36:58]FM_GetShiftState done [14:36:58]opened in 1722127251 [14:36:58]opened+sec_in_day 1722213651 [14:36:58]quantity*price = 169124 [14:36:58]sum+1 = 169126 [14:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1691.00 Внесено: 1691.00 СДАЧА: 0.00 НСП 1% : 14.97 НДС 12% : 179.60 Наличными: 1691.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 120 28.07.2024 14:37 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69237 ФПД: 197500242794657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143708&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69237&fm=197500242794657&tin=02508201610067®Number=0000000000092638&sum=169100 [14:36:59]StoreToDocumentArchive [14:36:59]shift 429 fd 69237 [14:36:59]save to /storage/0429/doc_00069237 [14:36:59]save last doc name /storage/0429/doc_00069237 to /storage/kkm_last_doc_name [14:36:59]save OK [14:36:59]Clear old archive folders... [14:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:36:59]tlvbuf is 00A2A990 [14:36:59]SAM_PROTO_ClearQueue [14:36:59]wFMCommunicate request_size=4 [14:36:59]MH_SAM_APDU [14:36:59]CAPDU: 80 09 00 00 [14:36:59]Write to MH i2c: E2 08 00 4F 52 80 09 00 00 00 00 00 00 13 [14:36:59]Write i2c OK [14:36:59]MH_I2C_Read... [14:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:59]Read from MH i2c: E2 [14:36:59]MH_I2C_Read... [14:36:59]Read from MH i2c: E2 03 00 [14:36:59]MH_I2C_Read... [14:36:59]Read from MH i2c: E2 03 00 4F 52 00 90 00 15 [14:36:59]RAPDU: 90 00 [14:36:59]wFMCommunicate OK [14:36:59]SAM_PROTO_ClearQueue done [14:36:59]KKMCreateOFDPacket [14:36:59]OFDProtocolAddRootSTLVToBuf [14:36:59]FM_MakeSignedData [14:36:59]FM_MakeSignedData [14:36:59]SAM_PROTO_SignData [14:36:59]wFMCommunicate request_size=4 [14:36:59]MH_SAM_APDU [14:36:59]CAPDU: 80 0D 01 02 [14:36:59]Write to MH i2c: E2 08 00 50 52 80 0D 01 02 00 00 00 00 1B [14:36:59]Write i2c OK [14:36:59]MH_I2C_Read... [14:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:59]Read from MH i2c: E2 [14:36:59]MH_I2C_Read... [14:36:59]Read from MH i2c: E2 03 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 50 52 00 90 00 16 [14:37:00]RAPDU: 90 00 [14:37:00]wFMCommunicate OK [14:37:00]wFMCommunicate request_size=255 [14:37:00]MH_SAM_APDU [14:37:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 57 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 A5 94 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 94 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 46 00 00 00 00 07 04 06 00 8C 94 02 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 94 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 75 0E 01 00 35 04 06 00 B3 A0 1B D0 [14:37:00]Write to MH i2c: E2 02 01 51 52 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 57 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 A5 94 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 94 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 46 00 00 00 00 07 04 06 00 8C 94 02 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 94 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 75 0E 01 00 35 04 06 00 B3 A0 1B D0 00 00 DC [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 51 52 00 90 00 17 [14:37:00]RAPDU: 90 00 [14:37:00]wFMCommunicate OK [14:37:00]wFMCommunicate request_size=7 [14:37:00]MH_SAM_APDU [14:37:00]CAPDU: 80 0D 02 02 02 98 A1 [14:37:00]Write to MH i2c: E2 0A 00 52 52 80 0D 02 02 02 00 98 A1 00 00 5B [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 03 00 52 52 00 90 00 18 [14:37:00]RAPDU: 90 00 [14:37:00]wFMCommunicate OK [14:37:00]wFMCommunicate request_size=4 [14:37:00]MH_SAM_APDU [14:37:00]CAPDU: 80 0D 03 02 [14:37:00]Write to MH i2c: E2 08 00 53 52 80 0D 03 02 00 00 00 00 20 [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 0B 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 0B 00 53 52 00 E0 3E D4 35 79 7D C7 A5 90 00 AA [14:37:00]RAPDU: E0 3E D4 35 79 7D C7 A5 90 00 [14:37:00]wFMCommunicate OK [14:37:00]SAM_PROTO_SignData done [14:37:00]FM_MakeSignedData done [14:37:00]CreateOFDProtocolMessage [14:37:00]wFMCommunicate request_size=4 [14:37:00]MH_SAM_APDU [14:37:00]CAPDU: 80 11 00 00 [14:37:00]Write to MH i2c: E2 08 00 54 52 80 11 00 00 00 00 00 00 20 [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 17 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 17 00 54 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 7C [14:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:37:00]wFMCommunicate OK [14:37:00]CreateOFDProtocolMessage done [14:37:00]OFDSenderStorePacket 69237 [14:37:00]StoreOFDPacket docnum=69237 [14:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 3C A6 04 01 F9 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 57 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 A5 94 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 94 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 46 00 00 00 00 07 04 06 00 8C 94 02 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 94 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 75 0E 01 00 35 04 06 00 B3 A0 1B D0 98 A1 E0 3E D4 35 79 7D C7 A5 [14:37:00]CheckFolder [14:37:00]dirname=/storage/ofd_packets [14:37:00]CheckFolder done [14:37:00]ProducePacketName [14:37:00]name=ofd_packets/00069237 [14:37:00]NVStorageSaveData ofd_packets/00069237 [14:37:00]File name is /storage/ofd_packets/00069237 [14:37:00]Write 298 bytes [14:37:00]NVStorageSaveData done [14:37:00]OFDSenderStorePacket done [14:37:00]KKMCreateOFDPacket done [14:37:00]NVStorageSaveData kkm_last_timestamp [14:37:00]File name is /storage/kkm_last_timestamp [14:37:00]Write 4 bytes [14:37:00]NVStorageSaveData done [14:37:00]ExternCall_PrintAddStr [14:37:00]wPrintStart [14:37:00]Write to MH i2c: 01 00 00 55 52 A7 [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: 01 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: 01 07 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: 01 07 00 55 52 00 00 00 00 00 FF 0F BC [14:37:00]RasterBufferAndPrint [14:37:00]line Счет N : (1)871961 [14:37:00]line ИНН: 02508201610067 [14:37:00]line Контрольно-Кассовый Чек [14:37:00]line ПРОДАЖА [14:37:00]line ТРК (МРК, ГНК) : 2 [14:37:00]line Товар: 2710194210 [14:37:00]line ДТ-К-5 [14:37:00]line 22.490 * 75.20 [14:37:00]line = 1691.25 [14:37:00]line НДС 12% НСП 1% [14:37:00]line > о реализуемом товаре [14:37:00]line ОКРУГЛЕНИЕ: -0.25 [14:37:00]line ИТОГО: 1691.00 [14:37:00]line Внесено: 1691.00 [14:37:00]line СДАЧА: 0.00 [14:37:00]line НСП 1% : 14.97 [14:37:00]line НДС 12% : 179.60 [14:37:00]line Наличными: 1691.00 [14:37:00]line Безнал.: 0.00 [14:37:00]line Место: АЗС № 125 "Партнер Нефть" [14:37:00]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:37:00]line СНО: Общий режим [14:37:00]line Чек 120 28.07.2024 14:37 [14:37:00]line Смена: 429 ФФД: 1.0 [14:37:00]line ЗНМ: 0300000049 [14:37:00]line РНМ: 0000000000092638 [14:37:00]line Версия ККМ: 001 [14:37:00]line ФМ: 0000000000874949 [14:37:00]line ФД: 69237 [14:37:00]line ФПД: 197500242794657 [14:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143708&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69237&fm=197500242794657&tin=02508201610067®Number=0000000000092638&sum=169100 [14:37:00]OFD Sender: Processing packet 69237 [packets to send 19, broken 18] [14:37:00]ProducePacketName [14:37:00]name=ofd_packets/00069237 [14:37:00]OFD Sender: To server: pG, [14:37:00]CommunicateWithHost lk.salyk.kg:30040 [14:37:00]ConnectInit lk.salyk.kg [14:37:00]written 0, free lines is 4095 [14:37:00]Connected sock=10 [14: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 39 34 39 0C 01 00 00 3C A6 04 01 F9 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 57 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 A5 94 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 94 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 46 00 00 00 00 07 04 06 00 8C 94 02 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 94 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 75 0E 01 00 35 04 06 00 B3 A0 1B D0 98 A1 E0 3E D4 35 79 7D C7 A5 [14:37:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 D5 38 47 00 6C A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 75 0E 01 00 F4 03 04 00 03 FE A5 66 B6 04 01 00 00 2D C4 0C 59 20 53 F3 5E [14:37:01]CommunicateWithHost err = 0 [14:37:01]CheckOFDResponse [14:37:01]1017 (14) - 77093643461234 [14:37:01]1041 (16) - 0000000000874949 [14:37:01]1040 (4) - 69237 [14:37:01]1012 (4) - 28.07.2024 08:14 [14:37:01]1206 (1) - 0 [14:37:01]OFD Sender: Remove packet 69237 [14:37:01]ProducePacketName [14:37:01]name=ofd_packets/00069237 [14:37:01]NVStorageDeleteData [14:37:01]Write to MH i2c: 01 00 00 80 52 D2 [14:37:01]Write i2c OK [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: 01 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: 01 07 00 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: 01 07 00 80 52 00 00 00 00 00 0B 0D F1 [14:37:01]RasterBufferAndPrint [14:37:01]line [14:37:01]line [14:37:01]line [14:37:01]line [14:37:01]line [14:37:01]written 0, free lines is 3345 [14:37:01]MH_Cut [14:37:01]Write to MH i2c: D1 01 00 87 52 01 AB [14:37:01]Write i2c OK [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: D1 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: D1 01 00 [14:37:01]MH_I2C_Read... [14:37:01]Read from MH i2c: D1 01 00 87 52 00 AA [14:37:01]Write to MH i2c: 01 00 00 88 52 DA [14:37:01]Write i2c OK [14:37:01]MH_I2C_Read... [14:37:01]OFD Sender: No OFD packet to send [14:37:01]*** Cut start [14:37:01]*** Partial cut [14:37:01]*** CUTSNS_PIN = 1 [14:37:01]*** CUTSNS_PIN = 0 [14:37:02]*** Brake cut motor [14:37:02]Read from MH i2c: 01 [14:37:02]MH_I2C_Read... [14:37:02]*** Stop cut motor [14:37:02]*** Cut end [14:37:02]Read from MH i2c: 01 07 00 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: 01 07 00 88 52 00 00 00 00 00 FF 0F EF [14:37:02]process_action close_receipt done [14:37:02]requested_data is exist [14:37:02]produce_requested_data [14:37:02]requested_item fm.sn is exist - process it [14:37:02]wFMCommunicate request_size=4 [14:37:02]MH_SAM_APDU [14:37:02]CAPDU: 80 11 00 00 [14:37:02]Write to MH i2c: E2 08 00 89 52 80 11 00 00 00 00 00 00 55 [14:37:02]Write i2c OK [14:37:02]MH_I2C_Read... [14:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:02]Read from MH i2c: E2 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 17 00 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 17 00 89 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B1 [14:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:37:02]wFMCommunicate OK [14:37:02]requested_item fd.num is exist - process it [14:37:02]SAM_PROTO_GetFieldsCounters [14:37:02]wFMCommunicate request_size=4 [14:37:02]MH_SAM_APDU [14:37:02]CAPDU: 80 13 00 00 [14:37:02]Write to MH i2c: E2 08 00 8A 52 80 13 00 00 00 00 00 00 58 [14:37:02]Write i2c OK [14:37:02]MH_I2C_Read... [14:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:02]Read from MH i2c: E2 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 62 00 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 62 00 8A 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 75 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [14: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 75 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:02]wFMCommunicate OK [14:37:02]SAM_PROTO_GetFieldsCounters done [14:37:02]requested_item shift.num is exist - process it [14:37:02]requested_item shift.opened is exist - process it [14:37:02]req_shift_opened [14:37:02]FM_GetShiftState [14:37:02]SAM_PROTO_GetShiftState [14:37:02]wFMCommunicate request_size=4 [14:37:02]MH_SAM_APDU [14:37:02]CAPDU: 80 13 01 00 [14:37:02]Write to MH i2c: E2 08 00 8B 52 80 13 01 00 00 00 00 00 5A [14:37:02]Write i2c OK [14:37:02]MH_I2C_Read... [14:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:02]Read from MH i2c: E2 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 0E 00 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 0E 00 8B 52 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 97 [14:37:02]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:37:02]wFMCommunicate OK [14:37:02]SAM_PROTO_GetShiftState done [14:37:02]FM_GetShiftState done [14:37:02]req_shift_opened done [14:37:02]requested_item shift.open_date is exist - process it [14:37:02]req_shift_open_date [14:37:02]req_shift_open_date done [14:37:02]produce_requested_data done [14:37:02]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69237,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:37:02]process_action_free close_receipt [14:37:02]json_value_free [14:37:02]json_value_free done [14:37:02]process_json_proto returns [14:37:02]Send response to host [14:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69237,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:37:02]free response buf [14:37:02]execute_script done [14:37:02]execute_script returns [14:37:02]free content buf [14:37:02]Sock 7.Close socket [14:37:02]Sock 7.Thread stoped [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:48]accept exits with 9 [14:37:48]New connection [14:37:48]New thread 3066785124 created [14:37:48]Thread 3066641764 joined [14:37:48]Waiting for new connection... [14:37:48] Sock 9.Parse request [14:37:48]Sock 9.Check first char [14:37:48]Sock 9.First char is OK [14:37:48]request: POST /json_proto HTTP/1.0 [14:37:48]Method: POST [14:37:48]URL: /json_proto [14:37:48]Method is POST - this is cgi request [14:37:48]url: /json_proto [14:37:48]query_string will be loaded in cgi processing [14:37:48]execute_cgi json_proto POST (null) [14:37:48]execute_cgi path=json_proto method=POST [14:37:48]POST find Content-Length [14:37:48]Host: 172.17.49.132:8080 [14:37:48]Content-Length: 642 [14:37:48]Content-Type: application/json [14:37:48] [14:37:48]POST finish read [14:37:48]Found Content-Length = 642 [14:37:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 15.000, "sum" : 1017.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1017.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:48]execute_script... [14:37: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)871962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 15.000, "sum" : 1017.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1017.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:48]POST & json_proto [14:37:48]process_json_proto [14:37:48]json parsed OK: [14:37:48]protocol is kg_v1.0 [14:37:48]action value=close_receipt [14:37:48]process_action close_receipt [14:37:48]cmd_close_receipt [14:37:48]MH_GetDate [14:37:48]Write to MH i2c: F0 00 00 8C 52 CD [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: F0 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: F0 09 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: F0 09 00 8C 52 00 C6 57 A6 66 E7 4B C0 64 55 [14:37:48]GetLastDocTimeStamp 1722177428 [14:37:48]current date 1722177478 [14:37:48]FM_GetShiftState [14:37:48]SAM_PROTO_GetShiftState [14:37:48]wFMCommunicate request_size=4 [14:37:48]MH_SAM_APDU [14:37:48]CAPDU: 80 13 01 00 [14:37:48]Write to MH i2c: E2 08 00 8D 52 80 13 01 00 00 00 00 00 5C [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:48]Read from MH i2c: E2 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 0E 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 0E 00 8D 52 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 99 [14:37:48]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:37:48]wFMCommunicate OK [14:37:48]SAM_PROTO_GetShiftState done [14:37:48]FM_GetShiftState done [14:37:48]opened in 1722127251 [14:37:48]opened+sec_in_day 1722213651 [14:37:48]quantity*price = 101700 [14:37:48]sum+1 = 101701 [14:37:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1017.00 НСП 1% : 9.00 НДС 12% : 108.00 Наличными: 1017.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 121 28.07.2024 14:37 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69238 ФПД: 159529391294002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143758&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69238&fm=159529391294002&tin=02508201610067®Number=0000000000092638&sum=101700 [14:37:50]StoreToDocumentArchive [14:37:50]shift 429 fd 69238 [14:37:50]save to /storage/0429/doc_00069238 [14:37:50]save last doc name /storage/0429/doc_00069238 to /storage/kkm_last_doc_name [14:37:50]save OK [14:37:50]Clear old archive folders... [14:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:50]tlvbuf is 00B54C70 [14:37:50]SAM_PROTO_ClearQueue [14:37:50]wFMCommunicate request_size=4 [14:37:50]MH_SAM_APDU [14:37:50]CAPDU: 80 09 00 00 [14:37:50]Write to MH i2c: E2 08 00 9A 52 80 09 00 00 00 00 00 00 5E [14:37:50]Write i2c OK [14:37:50]MH_I2C_Read... [14:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:50]Read from MH i2c: E2 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 03 00 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 03 00 9A 52 00 90 00 60 [14:37:50]RAPDU: 90 00 [14:37:50]wFMCommunicate OK [14:37:50]SAM_PROTO_ClearQueue done [14:37:50]KKMCreateOFDPacket [14:37:50]OFDProtocolAddRootSTLVToBuf [14:37:50]FM_MakeSignedData [14:37:50]FM_MakeSignedData [14:37:50]SAM_PROTO_SignData [14:37:50]wFMCommunicate request_size=4 [14:37:50]MH_SAM_APDU [14:37:50]CAPDU: 80 0D 01 02 [14:37:50]Write to MH i2c: E2 08 00 9B 52 80 0D 01 02 00 00 00 00 66 [14:37:50]Write i2c OK [14:37:50]MH_I2C_Read... [14:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:50]Read from MH i2c: E2 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 03 00 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 03 00 9B 52 00 90 00 61 [14:37:50]RAPDU: 90 00 [14:37:50]wFMCommunicate OK [14:37:50]wFMCommunicate request_size=255 [14:37:50]MH_SAM_APDU [14:37:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 44 8D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 8D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 2A 00 00 00 00 07 04 06 00 44 8D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C6 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 76 0E 01 00 35 04 06 00 91 [14:37:50]Write to MH i2c: E2 02 01 9C 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 44 8D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 8D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 2A 00 00 00 00 07 04 06 00 44 8D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C6 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 76 0E 01 00 35 04 06 00 91 00 00 A1 [14:37:50]Write i2c OK [14:37:50]MH_I2C_Read... [14:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:50]Read from MH i2c: E2 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 03 00 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 03 00 9C 52 00 90 00 62 [14:37:50]RAPDU: 90 00 [14:37:50]wFMCommunicate OK [14:37:50]wFMCommunicate request_size=10 [14:37:50]MH_SAM_APDU [14:37:50]CAPDU: 80 0D 02 02 05 17 54 B3 06 32 [14:37:50]Write to MH i2c: E2 0D 00 9D 52 80 0D 02 02 05 00 17 54 B3 06 32 00 00 C9 [14:37:50]Write i2c OK [14:37:50]MH_I2C_Read... [14:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:50]Read from MH i2c: E2 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 03 00 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 03 00 9D 52 00 90 00 63 [14:37:50]RAPDU: 90 00 [14:37:50]wFMCommunicate OK [14:37:50]wFMCommunicate request_size=4 [14:37:50]MH_SAM_APDU [14:37:50]CAPDU: 80 0D 03 02 [14:37:50]Write to MH i2c: E2 08 00 9E 52 80 0D 03 02 00 00 00 00 6B [14:37:50]Write i2c OK [14:37:50]MH_I2C_Read... [14:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:50]Read from MH i2c: E2 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 0B 00 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 0B 00 9E 52 00 F8 0F 91 ED 58 23 A4 42 90 00 52 [14:37:50]RAPDU: F8 0F 91 ED 58 23 A4 42 90 00 [14:37:50]wFMCommunicate OK [14:37:50]SAM_PROTO_SignData done [14:37:50]FM_MakeSignedData done [14:37:50]CreateOFDProtocolMessage [14:37:50]wFMCommunicate request_size=4 [14:37:50]MH_SAM_APDU [14:37:50]CAPDU: 80 11 00 00 [14:37:50]Write to MH i2c: E2 08 00 9F 52 80 11 00 00 00 00 00 00 6B [14:37:50]Write i2c OK [14:37:50]MH_I2C_Read... [14:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:50]Read from MH i2c: E2 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 17 00 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 17 00 9F 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C7 [14:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:37:50]wFMCommunicate OK [14:37:50]CreateOFDProtocolMessage done [14:37:50]OFDSenderStorePacket 69238 [14:37:50]StoreOFDPacket docnum=69238 [14:37:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 7A 37 07 01 9F C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 44 8D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 8D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 2A 00 00 00 00 07 04 06 00 44 8D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C6 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 76 0E 01 00 35 04 06 00 91 17 54 B3 06 32 F8 0F 91 ED 58 23 A4 42 [14:37:50]CheckFolder [14:37:50]dirname=/storage/ofd_packets [14:37:50]CheckFolder done [14:37:50]ProducePacketName [14:37:50]name=ofd_packets/00069238 [14:37:50]NVStorageSaveData ofd_packets/00069238 [14:37:50]File name is /storage/ofd_packets/00069238 [14:37:50]Write 301 bytes [14:37:50]NVStorageSaveData done [14:37:50]OFDSenderStorePacket done [14:37:50]KKMCreateOFDPacket done [14:37:50]NVStorageSaveData kkm_last_timestamp [14:37:50]File name is /storage/kkm_last_timestamp [14:37:50]Write 4 bytes [14:37:50]NVStorageSaveData done [14:37:50]ExternCall_PrintAddStr [14:37:50]wPrintStart [14:37:50]Write to MH i2c: 01 00 00 A0 52 F2 [14:37:50]Write i2c OK [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: 01 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: 01 07 00 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: 01 07 00 A0 52 00 00 00 00 00 FF 0F 07 [14:37:50]RasterBufferAndPrint [14:37:50]line Счет N : (1)871962 [14:37:50]line ИНН: 02508201610067 [14:37:50]line Контрольно-Кассовый Чек [14:37:50]line ПРОДАЖА [14:37:50]line ТРК (МРК, ГНК) : 62 [14:37:50]line Товар: 2710124130 [14:37:50]line Аи-92-К-5 [14:37:50]line 15.000 * 67.80 [14:37:50]line = 1017.00 [14:37:50]line НДС 12% НСП 1% [14:37:50]line > о реализуемом товаре [14:37:50]line ИТОГО: 1017.00 [14:37:50]line НСП 1% : 9.00 [14:37:50]line НДС 12% : 108.00 [14:37:50]line Наличными: 1017.00 [14:37:50]line Безнал.: 0.00 [14:37:50]line Место: АЗС № 125 "Партнер Нефть" [14:37:50]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:37:50]line СНО: Общий режим [14:37:50]line Чек 121 28.07.2024 14:37 [14:37:50]line Смена: 429 ФФД: 1.0 [14:37:50]line ЗНМ: 0300000049 [14:37:50]line РНМ: 0000000000092638 [14:37:50]line Версия ККМ: 001 [14:37:50]line ФМ: 0000000000874949 [14:37:50]line ФД: 69238 [14:37:50]line ФПД: 159529391294002 [14:37:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143758&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69238&fm=159529391294002&tin=02508201610067®Number=0000000000092638&sum=101700 [14:37:50]OFD Sender: Processing packet 69238 [packets to send 19, broken 18] [14:37:50]ProducePacketName [14:37:50]name=ofd_packets/00069238 [14:37:50]OFD Sender: To server: pG, [14:37:50]CommunicateWithHost lk.salyk.kg:30040 [14:37:50]ConnectInit lk.salyk.kg [14:37:50]written 0, free lines is 4095 [14:37:51]Connected sock=10 [14:37:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 7A 37 07 01 9F C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 44 8D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 8D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 2A 00 00 00 00 07 04 06 00 44 8D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C6 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 76 0E 01 00 35 04 06 00 91 17 54 B3 06 32 F8 0F 91 ED 58 23 A4 42 [14:37:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 39 D8 47 00 B2 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 39 34 39 10 04 04 00 76 0E 01 00 F4 03 04 00 35 FE A5 66 B6 04 01 00 00 B2 22 B4 F1 47 0B FA E6 [14:37:51]CommunicateWithHost err = 0 [14:37:51]CheckOFDResponse [14:37:51]1017 (14) - 77093643461234 [14:37:51]1041 (16) - 0000000000874949 [14:37:51]1040 (4) - 69238 [14:37:51]1012 (4) - 28.07.2024 08:15 [14:37:51]1206 (1) - 0 [14:37:51]OFD Sender: Remove packet 69238 [14:37:51]ProducePacketName [14:37:51]name=ofd_packets/00069238 [14:37:51]NVStorageDeleteData [14:37:51]Write to MH i2c: 01 00 00 C8 52 1A [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: 01 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: 01 07 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: 01 07 00 C8 52 00 00 00 00 00 1C 0D 4A [14:37:51]RasterBufferAndPrint [14:37:51]line [14:37:51]line [14:37:51]line [14:37:51]line [14:37:51]line [14:37:51]written 0, free lines is 3362 [14:37:51]MH_Cut [14:37:51]Write to MH i2c: D1 01 00 CF 52 01 F3 [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: D1 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: D1 01 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: D1 01 00 CF 52 00 F2 [14:37:51]Write to MH i2c: 01 00 00 D0 52 22 [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]OFD Sender: No OFD packet to send [14:37:51]*** Cut start [14:37:51]*** Partial cut [14:37:51]*** CUTSNS_PIN = 1 [14:37:52]*** CUTSNS_PIN = 0 [14:37:52]*** Brake cut motor [14:37:52]Read from MH i2c: 01 [14:37:52]MH_I2C_Read... [14:37:52]*** Stop cut motor [14:37:52]*** Cut end [14:37:52]Read from MH i2c: 01 07 00 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: 01 07 00 D0 52 00 00 00 00 00 FF 0F 37 [14:37:52]process_action close_receipt done [14:37:52]requested_data is exist [14:37:52]produce_requested_data [14:37:52]requested_item fm.sn is exist - process it [14:37:52]wFMCommunicate request_size=4 [14:37:52]MH_SAM_APDU [14:37:52]CAPDU: 80 11 00 00 [14:37:52]Write to MH i2c: E2 08 00 D1 52 80 11 00 00 00 00 00 00 9D [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:52]Read from MH i2c: E2 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 17 00 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 17 00 D1 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F9 [14:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:37:52]wFMCommunicate OK [14:37:52]requested_item fd.num is exist - process it [14:37:52]SAM_PROTO_GetFieldsCounters [14:37:52]wFMCommunicate request_size=4 [14:37:52]MH_SAM_APDU [14:37:52]CAPDU: 80 13 00 00 [14:37:52]Write to MH i2c: E2 08 00 D2 52 80 13 00 00 00 00 00 00 A0 [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:52]Read from MH i2c: E2 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 62 00 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 62 00 D2 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 76 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [14:37: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 76 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:52]wFMCommunicate OK [14:37:52]SAM_PROTO_GetFieldsCounters done [14:37:52]requested_item shift.num is exist - process it [14:37:52]requested_item shift.opened is exist - process it [14:37:52]req_shift_opened [14:37:52]FM_GetShiftState [14:37:52]SAM_PROTO_GetShiftState [14:37:52]wFMCommunicate request_size=4 [14:37:52]MH_SAM_APDU [14:37:52]CAPDU: 80 13 01 00 [14:37:52]Write to MH i2c: E2 08 00 D3 52 80 13 01 00 00 00 00 00 A2 [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:52]Read from MH i2c: E2 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 0E 00 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 0E 00 D3 52 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 DF [14:37:52]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:37:52]wFMCommunicate OK [14:37:52]SAM_PROTO_GetShiftState done [14:37:52]FM_GetShiftState done [14:37:52]req_shift_opened done [14:37:52]requested_item shift.open_date is exist - process it [14:37:52]req_shift_open_date [14:37:52]req_shift_open_date done [14:37:52]produce_requested_data done [14:37:52]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69238,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:37:52]process_action_free close_receipt [14:37:52]json_value_free [14:37:52]json_value_free done [14:37:52]process_json_proto returns [14:37:52]Send response to host [14:37:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69238,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:37:52]free response buf [14:37:52]execute_script done [14:37:52]execute_script returns [14:37:52]free content buf [14:37:52]Sock 9.Close socket [14:37:52]Sock 9.Thread stoped [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:22]accept exits with 7 [14:38:22]New connection [14:38:22]New thread 3066641764 created [14:38:22]Thread 3066785124 joined [14:38:22]Waiting for new connection... [14:38:22] Sock 7.Parse request [14:38:22]Sock 7.Check first char [14:38:22]Sock 7.First char is OK [14:38:22]request: POST /json_proto HTTP/1.0 [14:38:22]Method: POST [14:38:22]URL: /json_proto [14:38:22]Method is POST - this is cgi request [14:38:22]url: /json_proto [14:38:22]query_string will be loaded in cgi processing [14:38:22]execute_cgi json_proto POST (null) [14:38:22]execute_cgi path=json_proto method=POST [14:38:22]POST find Content-Length [14:38:22]Host: 172.17.49.132:8080 [14:38:22]Content-Length: 698 [14:38:22]Content-Type: application/json [14:38:22] [14:38:22]POST finish read [14:38:22]Found Content-Length = 698 [14:38:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69238, "base_FM": "0000000000874949", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 15.000, "sum" : 1017.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1017.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:22]execute_script... [14:38:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69238, "base_FM": "0000000000874949", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 15.000, "sum" : 1017.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1017.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:22]POST & json_proto [14:38:22]process_json_proto [14:38:22]json parsed OK: [14:38:22]protocol is kg_v1.0 [14:38:22]action value=close_receipt [14:38:22]process_action close_receipt [14:38:22]cmd_close_receipt [14:38:22]MH_GetDate [14:38:22]Write to MH i2c: F0 00 00 D4 52 15 [14:38:22]Write i2c OK [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: F0 [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: F0 09 00 [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: F0 09 00 D4 52 00 E8 57 A6 66 E7 4B C0 64 BF [14:38:22]GetLastDocTimeStamp 1722177478 [14:38:22]current date 1722177512 [14:38:22]FM_GetShiftState [14:38:22]SAM_PROTO_GetShiftState [14:38:22]wFMCommunicate request_size=4 [14:38:22]MH_SAM_APDU [14:38:22]CAPDU: 80 13 01 00 [14:38:22]Write to MH i2c: E2 08 00 D5 52 80 13 01 00 00 00 00 00 A4 [14:38:22]Write i2c OK [14:38:22]MH_I2C_Read... [14:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:22]Read from MH i2c: E2 [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: E2 0E 00 [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: E2 0E 00 D5 52 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 E1 [14:38:22]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:38:22]wFMCommunicate OK [14:38:22]SAM_PROTO_GetShiftState done [14:38:22]FM_GetShiftState done [14:38:22]opened in 1722127251 [14:38:22]opened+sec_in_day 1722213651 [14:38:22]quantity*price = 101700 [14:38:22]sum+1 = 101701 [14:38:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1017.00 НСП 1% : 9.00 НДС 12% : 108.00 Наличными: 1017.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 122 28.07.2024 14:38 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФД осн.: 69238 ФМ осн.: 0000000000874949 ФМ: 0000000000874949 ФД: 69239 ФПД: 159392554869116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143832&type=2&operation_type=1&fn_number=0000000000874949&fd_number=69239&fm=159392554869116&tin=02508201610067®Number=0000000000092638&sum=101700 [14:38:23]StoreToDocumentArchive [14:38:23]shift 429 fd 69239 [14:38:23]save to /storage/0429/doc_00069239 [14:38:23]save last doc name /storage/0429/doc_00069239 to /storage/kkm_last_doc_name [14:38:23]save OK [14:38:23]Clear old archive folders... [14:38:23]ProcessDocumentItem done err = 0, tmpTLVsize=279 [14:38:23]tlvbuf is B6D7F820 [14:38:23]SAM_PROTO_ClearQueue [14:38:23]wFMCommunicate request_size=4 [14:38:23]MH_SAM_APDU [14:38:23]CAPDU: 80 09 00 00 [14:38:23]Write to MH i2c: E2 08 00 E4 52 80 09 00 00 00 00 00 00 A8 [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:23]Read from MH i2c: E2 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 03 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 03 00 E4 52 00 90 00 AA [14:38:23]RAPDU: 90 00 [14:38:23]wFMCommunicate OK [14:38:23]SAM_PROTO_ClearQueue done [14:38:23]KKMCreateOFDPacket [14:38:23]OFDProtocolAddRootSTLVToBuf [14:38:23]FM_MakeSignedData [14:38:23]FM_MakeSignedData [14:38:23]SAM_PROTO_SignData [14:38:23]wFMCommunicate request_size=4 [14:38:23]MH_SAM_APDU [14:38:23]CAPDU: 80 0D 01 02 [14:38:23]Write to MH i2c: E2 08 00 E5 52 80 0D 01 02 00 00 00 00 B0 [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:23]Read from MH i2c: E2 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 03 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 03 00 E5 52 00 90 00 AB [14:38:23]RAPDU: 90 00 [14:38:23]wFMCommunicate OK [14:38:23]wFMCommunicate request_size=255 [14:38:23]MH_SAM_APDU [14:38:23]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 44 8D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 8D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 2A 00 00 00 00 07 04 06 00 44 8D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E8 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 27 04 04 00 76 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 11 04 10 00 30 [14:38:23]Write to MH i2c: E2 02 01 E6 52 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 44 8D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 8D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 2A 00 00 00 00 07 04 06 00 44 8D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E8 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 27 04 04 00 76 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 11 04 10 00 30 00 00 DF [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 E6 52 00 90 00 AC [14:38:24]RAPDU: 90 00 [14:38:24]wFMCommunicate OK [14:38:24]wFMCommunicate request_size=38 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 77 0E 01 00 35 04 06 00 90 F7 78 9C E1 7C [14:38:24]Write to MH i2c: E2 29 00 E7 52 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 77 0E 01 00 35 04 06 00 90 F7 78 9C E1 7C 00 00 C3 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 03 00 E7 52 00 90 00 AD [14:38:24]RAPDU: 90 00 [14:38:24]wFMCommunicate OK [14:38:24]wFMCommunicate request_size=4 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 0D 03 02 [14:38:24]Write to MH i2c: E2 08 00 E8 52 80 0D 03 02 00 00 00 00 B5 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 0B 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 0B 00 E8 52 00 E9 2C 08 57 78 45 2A BB 90 00 CC [14:38:24]RAPDU: E9 2C 08 57 78 45 2A BB 90 00 [14:38:24]wFMCommunicate OK [14:38:24]SAM_PROTO_SignData done [14:38:24]FM_MakeSignedData done [14:38:24]CreateOFDProtocolMessage [14:38:24]wFMCommunicate request_size=4 [14:38:24]MH_SAM_APDU [14:38:24]CAPDU: 80 11 00 00 [14:38:24]Write to MH i2c: E2 08 00 E9 52 80 11 00 00 00 00 00 00 B5 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:24]Read from MH i2c: E2 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 17 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: E2 17 00 E9 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 11 [14:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:38:24]wFMCommunicate OK [14:38:24]CreateOFDProtocolMessage done [14:38:24]OFDSenderStorePacket 69239 [14:38:24]StoreOFDPacket docnum=69239 [14:38:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2B 01 00 00 DC BA 23 01 28 96 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 44 8D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 8D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 2A 00 00 00 00 07 04 06 00 44 8D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E8 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 27 04 04 00 76 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 77 0E 01 00 35 04 06 00 90 F7 78 9C E1 7C E9 2C 08 57 78 45 2A BB [14:38:24]CheckFolder [14:38:24]dirname=/storage/ofd_packets [14:38:24]CheckFolder done [14:38:24]ProducePacketName [14:38:24]name=ofd_packets/00069239 [14:38:24]NVStorageSaveData ofd_packets/00069239 [14:38:24]File name is /storage/ofd_packets/00069239 [14:38:24]Write 329 bytes [14:38:24]NVStorageSaveData done [14:38:24]OFDSenderStorePacket done [14:38:24]KKMCreateOFDPacket done [14:38:24]NVStorageSaveData kkm_last_timestamp [14:38:24]File name is /storage/kkm_last_timestamp [14:38:24]Write 4 bytes [14:38:24]NVStorageSaveData done [14:38:24]ExternCall_PrintAddStr [14:38:24]wPrintStart [14:38:24]Write to MH i2c: 01 00 00 EA 52 3C [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 EA 52 00 00 00 00 00 FF 0F 51 [14:38:24]RasterBufferAndPrint [14:38:24]line Счет N : (1)871962 [14:38:24]line ИНН: 02508201610067 [14:38:24]line Контрольно-Кассовый Чек [14:38:24]line ВОЗВРАТ ПРОДАЖИ [14:38:24]line ТРК (МРК, ГНК) : 62 [14:38:24]line Товар: 2710124130 [14:38:24]line Аи-92-К-5 [14:38:24]line 15.000 * 67.80 [14:38:24]line = 1017.00 [14:38:24]line НДС 12% НСП 1% [14:38:24]line > о реализуемом товаре [14:38:24]line ИТОГО: 1017.00 [14:38:24]line НСП 1% : 9.00 [14:38:24]line НДС 12% : 108.00 [14:38:24]line Наличными: 1017.00 [14:38:24]line Безнал.: 0.00 [14:38:24]line Место: АЗС № 125 "Партнер Нефть" [14:38:24]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:38:24]line СНО: Общий режим [14:38:24]line Чек 122 28.07.2024 14:38 [14:38:24]line Смена: 429 ФФД: 1.0 [14:38:24]line ЗНМ: 0300000049 [14:38:24]line РНМ: 0000000000092638 [14:38:24]line Версия ККМ: 001 [14:38:24]line ФД осн.: 69238 [14:38:24]line ФМ осн.: 0000000000874949 [14:38:24]line ФМ: 0000000000874949 [14:38:24]line ФД: 69239 [14:38:24]line ФПД: 159392554869116 [14:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143832&type=2&operation_type=1&fn_number=0000000000874949&fd_number=69239&fm=159392554869116&tin=02508201610067®Number=0000000000092638&sum=101700 [14:38:24]OFD Sender: Processing packet 69239 [packets to send 19, broken 18] [14:38:24]ProducePacketName [14:38:24]name=ofd_packets/00069239 [14:38:24]OFD Sender: To server: pG, [14:38:24]CommunicateWithHost lk.salyk.kg:30040 [14:38:24]ConnectInit lk.salyk.kg [14:38:24]written 0, free lines is 4095 [14:38:24]Connected sock=10 [14:38: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 39 34 39 2B 01 00 00 DC BA 23 01 28 96 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 44 8D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 8D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 2A 00 00 00 00 07 04 06 00 44 8D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E8 57 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 27 04 04 00 76 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 77 0E 01 00 35 04 06 00 90 F7 78 9C E1 7C E9 2C 08 57 78 45 2A BB [14:38:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 36 E1 47 00 AA B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 77 0E 01 00 F4 03 04 00 57 FE A5 66 B6 04 01 00 00 3F 2D FF F5 37 AD EB 9C [14:38:25]CommunicateWithHost err = 0 [14:38:25]CheckOFDResponse [14:38:25]1017 (14) - 77093643461234 [14:38:25]1041 (16) - 0000000000874949 [14:38:25]1040 (4) - 69239 [14:38:25]1012 (4) - 28.07.2024 08:16 [14:38:25]1206 (1) - 0 [14:38:25]OFD Sender: Remove packet 69239 [14:38:25]ProducePacketName [14:38:25]name=ofd_packets/00069239 [14:38:25]NVStorageDeleteData [14:38:25]Write to MH i2c: 01 00 00 14 53 67 [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: 01 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: 01 07 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: 01 07 00 14 53 00 00 00 00 00 0E 0D 89 [14:38:25]RasterBufferAndPrint [14:38:25]line [14:38:25]line [14:38:25]line [14:38:25]line [14:38:25]line [14:38:25]written 0, free lines is 3353 [14:38:25]MH_Cut [14:38:25]Write to MH i2c: D1 01 00 1B 53 01 40 [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: D1 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: D1 01 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: D1 01 00 1B 53 00 3F [14:38:25]Write to MH i2c: 01 00 00 1C 53 6F [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]OFD Sender: No OFD packet to send [14:38:25]*** Cut start [14:38:25]*** Partial cut [14:38:25]*** CUTSNS_PIN = 1 [14:38:25]*** CUTSNS_PIN = 0 [14:38:26]*** Brake cut motor [14:38:26]Read from MH i2c: 01 [14:38:26]MH_I2C_Read... [14:38:26]*** Stop cut motor [14:38:26]*** Cut end [14:38:26]Read from MH i2c: 01 07 00 [14:38:26]MH_I2C_Read... [14:38:26]Read from MH i2c: 01 07 00 1C 53 00 00 00 00 00 FF 0F 84 [14:38:26]process_action close_receipt done [14:38:26]requested_data is exist [14:38:26]produce_requested_data [14:38:26]requested_item fm.sn is exist - process it [14:38:26]wFMCommunicate request_size=4 [14:38:26]MH_SAM_APDU [14:38:26]CAPDU: 80 11 00 00 [14:38:26]Write to MH i2c: E2 08 00 1D 53 80 11 00 00 00 00 00 00 EA [14:38:26]Write i2c OK [14:38:26]MH_I2C_Read... [14:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:26]Read from MH i2c: E2 [14:38:26]MH_I2C_Read... [14:38:26]Read from MH i2c: E2 17 00 [14:38:26]MH_I2C_Read... [14:38:26]Read from MH i2c: E2 17 00 1D 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 46 [14:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:38:26]wFMCommunicate OK [14:38:26]requested_item fd.num is exist - process it [14:38:26]SAM_PROTO_GetFieldsCounters [14:38:26]wFMCommunicate request_size=4 [14:38:26]MH_SAM_APDU [14:38:26]CAPDU: 80 13 00 00 [14:38:26]Write to MH i2c: E2 08 00 1E 53 80 13 00 00 00 00 00 00 ED [14:38:26]Write i2c OK [14:38:26]MH_I2C_Read... [14:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:26]Read from MH i2c: E2 [14:38:26]MH_I2C_Read... [14:38:26]Read from MH i2c: E2 62 00 [14:38:26]MH_I2C_Read... [14:38:26]Read from MH i2c: E2 62 00 1E 53 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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 77 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [14:38: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 77 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:26]wFMCommunicate OK [14:38:26]SAM_PROTO_GetFieldsCounters done [14:38:26]requested_item shift.num is exist - process it [14:38:26]requested_item shift.opened is exist - process it [14:38:26]req_shift_opened [14:38:26]FM_GetShiftState [14:38:26]SAM_PROTO_GetShiftState [14:38:26]wFMCommunicate request_size=4 [14:38:26]MH_SAM_APDU [14:38:26]CAPDU: 80 13 01 00 [14:38:26]Write to MH i2c: E2 08 00 1F 53 80 13 01 00 00 00 00 00 EF [14:38:26]Write i2c OK [14:38:26]MH_I2C_Read... [14:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:26]Read from MH i2c: E2 [14:38:26]MH_I2C_Read... [14:38:26]Read from MH i2c: E2 0E 00 [14:38:26]MH_I2C_Read... [14:38:26]Read from MH i2c: E2 0E 00 1F 53 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 2C [14:38:26]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:38:26]wFMCommunicate OK [14:38:26]SAM_PROTO_GetShiftState done [14:38:26]FM_GetShiftState done [14:38:26]req_shift_opened done [14:38:26]requested_item shift.open_date is exist - process it [14:38:26]req_shift_open_date [14:38:26]req_shift_open_date done [14:38:26]produce_requested_data done [14:38:26]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69239,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:38:26]process_action_free close_receipt [14:38:26]json_value_free [14:38:26]json_value_free done [14:38:26]process_json_proto returns [14:38:26]Send response to host [14:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69239,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:38:26]free response buf [14:38:26]execute_script done [14:38:26]execute_script returns [14:38:26]free content buf [14:38:26]Sock 7.Close socket [14:38:26]Sock 7.Thread stoped [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:38:56]accept exits with 9 [14:38:56]New connection [14:38:56]New thread 3066785124 created [14:38:56]Thread 3066641764 joined [14:38:56]Waiting for new connection... [14:38:56] Sock 9.Parse request [14:38:56]Sock 9.Check first char [14:38:56]Sock 9.First char is OK [14:38:56]request: POST /json_proto HTTP/1.0 [14:38:56]Method: POST [14:38:56]URL: /json_proto [14:38:56]Method is POST - this is cgi request [14:38:56]url: /json_proto [14:38:56]query_string will be loaded in cgi processing [14:38:56]execute_cgi json_proto POST (null) [14:38:56]execute_cgi path=json_proto method=POST [14:38:56]POST find Content-Length [14:38:56]Host: 172.17.49.132:8080 [14:38:56]Content-Length: 677 [14:38:56]Content-Type: application/json [14:38:56] [14:38:56]POST finish read [14:38:56]Found Content-Length = 677 [14:38:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:56]execute_script... [14:38:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:56]POST & json_proto [14:38:56]process_json_proto [14:38:56]json parsed OK: [14:38:56]protocol is kg_v1.0 [14:38:56]action value=close_receipt [14:38:56]process_action close_receipt [14:38:56]cmd_close_receipt [14:38:56]MH_GetDate [14:38:56]Write to MH i2c: F0 00 00 20 53 62 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: F0 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: F0 09 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: F0 09 00 20 53 00 0A 58 A6 66 E7 4B C0 64 2F [14:38:56]GetLastDocTimeStamp 1722177512 [14:38:56]current date 1722177546 [14:38:56]FM_GetShiftState [14:38:56]SAM_PROTO_GetShiftState [14:38:56]wFMCommunicate request_size=4 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 13 01 00 [14:38:56]Write to MH i2c: E2 08 00 21 53 80 13 01 00 00 00 00 00 F1 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 0E 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 0E 00 21 53 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 2E [14:38:56]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:38:56]wFMCommunicate OK [14:38:56]SAM_PROTO_GetShiftState done [14:38:56]FM_GetShiftState done [14:38:56]opened in 1722127251 [14:38:56]opened+sec_in_day 1722213651 [14:38:56]quantity*price = 50036 [14:38:56]sum+1 = 50037 [14:38:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 123 28.07.2024 14:39 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69240 ФПД: 52566358810091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143906&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69240&fm=52566358810091&tin=02508201610067®Number=0000000000092638&sum=50000 [14:38:57]StoreToDocumentArchive [14:38:57]shift 429 fd 69240 [14:38:57]save to /storage/0429/doc_00069240 [14:38:57]save last doc name /storage/0429/doc_00069240 to /storage/kkm_last_doc_name [14:38:57]save OK [14:38:57]Clear old archive folders... [14:38:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:57]tlvbuf is 00B85E00 [14:38:57]SAM_PROTO_ClearQueue [14:38:57]wFMCommunicate request_size=4 [14:38:57]MH_SAM_APDU [14:38:57]CAPDU: 80 09 00 00 [14:38:57]Write to MH i2c: E2 08 00 2E 53 80 09 00 00 00 00 00 00 F3 [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:57]Read from MH i2c: E2 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: E2 03 00 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: E2 03 00 2E 53 00 90 00 F5 [14:38:57]RAPDU: 90 00 [14:38:57]wFMCommunicate OK [14:38:57]SAM_PROTO_ClearQueue done [14:38:57]KKMCreateOFDPacket [14:38:57]OFDProtocolAddRootSTLVToBuf [14:38:57]FM_MakeSignedData [14:38:57]FM_MakeSignedData [14:38:57]SAM_PROTO_SignData [14:38:57]wFMCommunicate request_size=4 [14:38:57]MH_SAM_APDU [14:38:57]CAPDU: 80 0D 01 02 [14:38:57]Write to MH i2c: E2 08 00 2F 53 80 0D 01 02 00 00 00 00 FB [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:57]Read from MH i2c: E2 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: E2 03 00 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: E2 03 00 2F 53 00 90 00 F6 [14:38:57]RAPDU: 90 00 [14:38:57]wFMCommunicate OK [14:38:57]wFMCommunicate request_size=255 [14:38:57]MH_SAM_APDU [14:38:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7B 00 00 00 F4 03 04 00 0A 58 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 78 0E 01 00 35 04 06 00 2F [14:38:57]Write to MH i2c: E2 02 01 30 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7B 00 00 00 F4 03 04 00 0A 58 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 78 0E 01 00 35 04 06 00 2F 00 00 D3 [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:58]Read from MH i2c: E2 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 03 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 03 00 30 53 00 90 00 F7 [14:38:58]RAPDU: 90 00 [14:38:58]wFMCommunicate OK [14:38:58]wFMCommunicate request_size=10 [14:38:58]MH_SAM_APDU [14:38:58]CAPDU: 80 0D 02 02 05 CF 0F 24 DD EB [14:38:58]Write to MH i2c: E2 0D 00 31 53 80 0D 02 02 05 00 CF 0F 24 DD EB 00 00 D2 [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:58]Read from MH i2c: E2 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 03 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 03 00 31 53 00 90 00 F8 [14:38:58]RAPDU: 90 00 [14:38:58]wFMCommunicate OK [14:38:58]wFMCommunicate request_size=4 [14:38:58]MH_SAM_APDU [14:38:58]CAPDU: 80 0D 03 02 [14:38:58]Write to MH i2c: E2 08 00 32 53 80 0D 03 02 00 00 00 00 00 [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:58]Read from MH i2c: E2 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 0B 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 0B 00 32 53 00 16 26 3A 17 F7 F6 8B 72 90 00 78 [14:38:58]RAPDU: 16 26 3A 17 F7 F6 8B 72 90 00 [14:38:58]wFMCommunicate OK [14:38:58]SAM_PROTO_SignData done [14:38:58]FM_MakeSignedData done [14:38:58]CreateOFDProtocolMessage [14:38:58]wFMCommunicate request_size=4 [14:38:58]MH_SAM_APDU [14:38:58]CAPDU: 80 11 00 00 [14:38:58]Write to MH i2c: E2 08 00 33 53 80 11 00 00 00 00 00 00 00 [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:58]Read from MH i2c: E2 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 17 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: E2 17 00 33 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 5C [14:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:38:58]wFMCommunicate OK [14:38:58]CreateOFDProtocolMessage done [14:38:58]OFDSenderStorePacket 69240 [14:38:58]StoreOFDPacket docnum=69240 [14:38:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 4A C1 07 01 22 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7B 00 00 00 F4 03 04 00 0A 58 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 78 0E 01 00 35 04 06 00 2F CF 0F 24 DD EB 16 26 3A 17 F7 F6 8B 72 [14:38:58]CheckFolder [14:38:58]dirname=/storage/ofd_packets [14:38:58]CheckFolder done [14:38:58]ProducePacketName [14:38:58]name=ofd_packets/00069240 [14:38:58]NVStorageSaveData ofd_packets/00069240 [14:38:58]File name is /storage/ofd_packets/00069240 [14:38:58]Write 301 bytes [14:38:58]NVStorageSaveData done [14:38:58]OFDSenderStorePacket done [14:38:58]KKMCreateOFDPacket done [14:38:58]NVStorageSaveData kkm_last_timestamp [14:38:58]File name is /storage/kkm_last_timestamp [14:38:58]Write 4 bytes [14:38:58]NVStorageSaveData done [14:38:58]ExternCall_PrintAddStr [14:38:58]wPrintStart [14:38:58]Write to MH i2c: 01 00 00 34 53 87 [14:38:58]Write i2c OK [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: 01 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: 01 07 00 [14:38:58]MH_I2C_Read... [14:38:58]Read from MH i2c: 01 07 00 34 53 00 00 00 00 00 FF 0F 9C [14:38:58]RasterBufferAndPrint [14:38:58]line Счет N : (1)871963 [14:38:58]line ИНН: 02508201610067 [14:38:58]line Контрольно-Кассовый Чек [14:38:58]line ПРОДАЖА [14:38:58]line ТРК (МРК, ГНК) : 42 [14:38:58]line Товар: 2710124130 [14:38:58]line Аи-92-К-5 [14:38:58]line 7.380 * 67.80 [14:38:58]line = 500.36 [14:38:58]line НДС 12% НСП 1% [14:38:58]line > о реализуемом товаре [14:38:58]line ОКРУГЛЕНИЕ: -0.36 [14:38:58]line ИТОГО: 500.00 [14:38:58]line Внесено: 500.00 [14:38:58]line СДАЧА: 0.00 [14:38:58]line НСП 1% : 4.43 [14:38:58]line НДС 12% : 53.14 [14:38:58]line Наличными: 500.00 [14:38:58]line Безнал.: 0.00 [14:38:58]line Место: АЗС № 125 "Партнер Нефть" [14:38:58]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:38:58]line СНО: Общий режим [14:38:58]line Чек 123 28.07.2024 14:39 [14:38:58]line Смена: 429 ФФД: 1.0 [14:38:58]line ЗНМ: 0300000049 [14:38:58]line РНМ: 0000000000092638 [14:38:58]line Версия ККМ: 001 [14:38:58]line ФМ: 0000000000874949 [14:38:58]line ФД: 69240 [14:38:58]line ФПД: 52566358810091 [14:38:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143906&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69240&fm=52566358810091&tin=02508201610067®Number=0000000000092638&sum=50000 [14:38:58]written 0, free lines is 4095 [14:38:58]OFD Sender: Processing packet 69240 [packets to send 19, broken 18] [14:38:58]ProducePacketName [14:38:58]name=ofd_packets/00069240 [14:38:58]OFD Sender: To server: pG, [14:38:58]CommunicateWithHost lk.salyk.kg:30040 [14:38:58]ConnectInit lk.salyk.kg [14:38:58]Connected sock=10 [14:38: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 39 34 39 0F 01 00 00 4A C1 07 01 22 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7B 00 00 00 F4 03 04 00 0A 58 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 78 0E 01 00 35 04 06 00 2F CF 0F 24 DD EB 16 26 3A 17 F7 F6 8B 72 [14:38:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 17 4D 47 00 13 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 39 34 39 10 04 04 00 78 0E 01 00 F4 03 04 00 79 FE A5 66 B6 04 01 00 00 1E E8 C8 8D BD 10 1A 5A [14:38:58]CommunicateWithHost err = 0 [14:38:58]CheckOFDResponse [14:38:58]1017 (14) - 77093643461234 [14:38:58]1041 (16) - 0000000000874949 [14:38:58]1040 (4) - 69240 [14:38:58]1012 (4) - 28.07.2024 08:16 [14:38:58]1206 (1) - 0 [14:38:58]OFD Sender: Remove packet 69240 [14:38:58]ProducePacketName [14:38:58]name=ofd_packets/00069240 [14:38:58]NVStorageDeleteData [14:38:59]Write to MH i2c: 01 00 00 5F 53 B2 [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 07 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 07 00 5F 53 00 00 00 00 00 EA 0C AF [14:38:59]RasterBufferAndPrint [14:38:59]line [14:38:59]line [14:38:59]line [14:38:59]line [14:38:59]line [14:38:59]written 0, free lines is 3312 [14:38:59]MH_Cut [14:38:59]Write to MH i2c: D1 01 00 66 53 01 8B [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: D1 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: D1 01 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: D1 01 00 66 53 00 8A [14:38:59]Write to MH i2c: 01 00 00 67 53 BA [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]OFD Sender: No OFD packet to send [14:38:59]*** Cut start [14:38:59]*** Partial cut [14:38:59]*** CUTSNS_PIN = 1 [14:38:59]*** CUTSNS_PIN = 0 [14:38:59]*** Brake cut motor [14:39:00]Read from MH i2c: 01 [14:39:00]MH_I2C_Read... [14:39:00]*** Stop cut motor [14:39:00]*** Cut end [14:39:00]Read from MH i2c: 01 07 00 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: 01 07 00 67 53 00 00 00 00 00 FF 0F CF [14:39:00]process_action close_receipt done [14:39:00]requested_data is exist [14:39:00]produce_requested_data [14:39:00]requested_item fm.sn is exist - process it [14:39:00]wFMCommunicate request_size=4 [14:39:00]MH_SAM_APDU [14:39:00]CAPDU: 80 11 00 00 [14:39:00]Write to MH i2c: E2 08 00 68 53 80 11 00 00 00 00 00 00 35 [14:39:00]Write i2c OK [14:39:00]MH_I2C_Read... [14:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:00]Read from MH i2c: E2 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 17 00 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 17 00 68 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 91 [14:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:39:00]wFMCommunicate OK [14:39:00]requested_item fd.num is exist - process it [14:39:00]SAM_PROTO_GetFieldsCounters [14:39:00]wFMCommunicate request_size=4 [14:39:00]MH_SAM_APDU [14:39:00]CAPDU: 80 13 00 00 [14:39:00]Write to MH i2c: E2 08 00 69 53 80 13 00 00 00 00 00 00 38 [14:39:00]Write i2c OK [14:39:00]MH_I2C_Read... [14:39:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:00]Read from MH i2c: E2 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 62 00 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 62 00 69 53 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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 78 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [14:39: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 78 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:00]wFMCommunicate OK [14:39:00]SAM_PROTO_GetFieldsCounters done [14:39:00]requested_item shift.num is exist - process it [14:39:00]requested_item shift.opened is exist - process it [14:39:00]req_shift_opened [14:39:00]FM_GetShiftState [14:39:00]SAM_PROTO_GetShiftState [14:39:00]wFMCommunicate request_size=4 [14:39:00]MH_SAM_APDU [14:39:00]CAPDU: 80 13 01 00 [14:39:00]Write to MH i2c: E2 08 00 6A 53 80 13 01 00 00 00 00 00 3A [14:39:00]Write i2c OK [14:39:00]MH_I2C_Read... [14:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:00]Read from MH i2c: E2 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 0E 00 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 0E 00 6A 53 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 77 [14:39:00]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:39:00]wFMCommunicate OK [14:39:00]SAM_PROTO_GetShiftState done [14:39:00]FM_GetShiftState done [14:39:00]req_shift_opened done [14:39:00]requested_item shift.open_date is exist - process it [14:39:00]req_shift_open_date [14:39:00]req_shift_open_date done [14:39:00]produce_requested_data done [14:39:00]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69240,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:39:00]process_action_free close_receipt [14:39:00]json_value_free [14:39:00]json_value_free done [14:39:00]process_json_proto returns [14:39:00]Send response to host [14:39:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69240,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:39:00]free response buf [14:39:00]execute_script done [14:39:00]execute_script returns [14:39:00]free content buf [14:39:00]Sock 9.Close socket [14:39:00]Sock 9.Thread stoped [14:39:04]OFD Sender: No OFD packet to send [14:39:04]accept exits with 7 [14:39:04]New connection [14:39:04]New thread 3066641764 created [14:39:04]Thread 3066785124 joined [14:39:04]Waiting for new connection... [14:39:04] Sock 7.Parse request [14:39:04]Sock 7.Check first char [14:39:04]Sock 7.First char is OK [14:39:04]request: POST /json_proto HTTP/1.0 [14:39:04]Method: POST [14:39:04]URL: /json_proto [14:39:04]Method is POST - this is cgi request [14:39:04]url: /json_proto [14:39:04]query_string will be loaded in cgi processing [14:39:04]execute_cgi json_proto POST (null) [14:39:04]execute_cgi path=json_proto method=POST [14:39:04]POST find Content-Length [14:39:04]Host: 172.17.49.132:8080 [14:39:04]Content-Length: 734 [14:39:04]Content-Type: application/json [14:39:04] [14:39:04]POST finish read [14:39:04]Found Content-Length = 734 [14:39:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69237, "base_FM": "0000000000874949", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 22.490, "sum" : 1691.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1691.00, "total" : 1691.00, "payments": [ { "type": 0, "sum" : 1691.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:04]execute_script... [14:39:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69237, "base_FM": "0000000000874949", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 22.490, "sum" : 1691.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1691.00, "total" : 1691.00, "payments": [ { "type": 0, "sum" : 1691.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:04]POST & json_proto [14:39:04]process_json_proto [14:39:04]json parsed OK: [14:39:04]protocol is kg_v1.0 [14:39:04]action value=close_receipt [14:39:04]process_action close_receipt [14:39:04]cmd_close_receipt [14:39:04]MH_GetDate [14:39:04]Write to MH i2c: F0 00 00 6B 53 AD [14:39:04]Write i2c OK [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: F0 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: F0 09 00 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: F0 09 00 6B 53 00 12 58 A6 66 E7 4B C0 64 82 [14:39:04]GetLastDocTimeStamp 1722177546 [14:39:04]current date 1722177554 [14:39:04]FM_GetShiftState [14:39:04]SAM_PROTO_GetShiftState [14:39:04]wFMCommunicate request_size=4 [14:39:04]MH_SAM_APDU [14:39:04]CAPDU: 80 13 01 00 [14:39:04]Write to MH i2c: E2 08 00 6C 53 80 13 01 00 00 00 00 00 3C [14:39:04]Write i2c OK [14:39:04]MH_I2C_Read... [14:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:04]Read from MH i2c: E2 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: E2 0E 00 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: E2 0E 00 6C 53 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 79 [14:39:04]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:39:04]wFMCommunicate OK [14:39:04]SAM_PROTO_GetShiftState done [14:39:04]FM_GetShiftState done [14:39:04]opened in 1722127251 [14:39:04]opened+sec_in_day 1722213651 [14:39:04]quantity*price = 169124 [14:39:04]sum+1 = 169126 [14:39:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1691.00 НСП 1% : 14.97 НДС 12% : 179.60 Наличными: 1691.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 124 28.07.2024 14:39 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФД осн.: 69237 ФМ осн.: 0000000000874949 ФМ: 0000000000874949 ФД: 69241 ФПД: 114798837435396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143914&type=2&operation_type=1&fn_number=0000000000874949&fd_number=69241&fm=114798837435396&tin=02508201610067®Number=0000000000092638&sum=169100 [14:39:05]StoreToDocumentArchive [14:39:05]shift 429 fd 69241 [14:39:05]save to /storage/0429/doc_00069241 [14:39:05]save last doc name /storage/0429/doc_00069241 to /storage/kkm_last_doc_name [14:39:05]save OK [14:39:05]Clear old archive folders... [14:39:05]ProcessDocumentItem done err = 0, tmpTLVsize=276 [14:39:05]tlvbuf is 00B89FE0 [14:39:05]SAM_PROTO_ClearQueue [14:39:05]wFMCommunicate request_size=4 [14:39:05]MH_SAM_APDU [14:39:05]CAPDU: 80 09 00 00 [14:39:05]Write to MH i2c: E2 08 00 7B 53 80 09 00 00 00 00 00 00 40 [14:39:05]Write i2c OK [14:39:05]MH_I2C_Read... [14:39:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:05]Read from MH i2c: E2 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: E2 03 00 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: E2 03 00 7B 53 00 90 00 42 [14:39:05]RAPDU: 90 00 [14:39:05]wFMCommunicate OK [14:39:05]SAM_PROTO_ClearQueue done [14:39:05]KKMCreateOFDPacket [14:39:05]OFDProtocolAddRootSTLVToBuf [14:39:05]FM_MakeSignedData [14:39:05]FM_MakeSignedData [14:39:05]SAM_PROTO_SignData [14:39:05]wFMCommunicate request_size=4 [14:39:05]MH_SAM_APDU [14:39:05]CAPDU: 80 0D 01 02 [14:39:05]Write to MH i2c: E2 08 00 7C 53 80 0D 01 02 00 00 00 00 48 [14:39:05]Write i2c OK [14:39:05]MH_I2C_Read... [14:39:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:05]Read from MH i2c: E2 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: E2 03 00 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: E2 03 00 7C 53 00 90 00 43 [14:39:05]RAPDU: 90 00 [14:39:05]wFMCommunicate OK [14:39:05]wFMCommunicate request_size=255 [14:39:05]MH_SAM_APDU [14:39:05]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 57 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 A5 94 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 94 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 46 00 00 00 00 07 04 06 00 8C 94 02 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 12 58 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 27 04 04 00 75 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 11 04 10 00 30 30 30 30 [14:39:05]Write to MH i2c: E2 02 01 7D 53 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 57 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 A5 94 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 94 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 46 00 00 00 00 07 04 06 00 8C 94 02 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 12 58 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 27 04 04 00 75 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 11 04 10 00 30 30 30 30 00 00 40 [14:39:05]Write i2c OK [14:39:05]MH_I2C_Read... [14:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:06]Read from MH i2c: E2 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 03 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 03 00 7D 53 00 90 00 44 [14:39:06]RAPDU: 90 00 [14:39:06]wFMCommunicate OK [14:39:06]wFMCommunicate request_size=35 [14:39:06]MH_SAM_APDU [14:39:06]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 79 0E 01 00 35 04 06 00 68 68 AF ED 0C 04 [14:39:06]Write to MH i2c: E2 26 00 7E 53 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 79 0E 01 00 35 04 06 00 68 68 AF ED 0C 04 00 00 4B [14:39:06]Write i2c OK [14:39:06]MH_I2C_Read... [14:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:06]Read from MH i2c: E2 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 03 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 03 00 7E 53 00 90 00 45 [14:39:06]RAPDU: 90 00 [14:39:06]wFMCommunicate OK [14:39:06]wFMCommunicate request_size=4 [14:39:06]MH_SAM_APDU [14:39:06]CAPDU: 80 0D 03 02 [14:39:06]Write to MH i2c: E2 08 00 7F 53 80 0D 03 02 00 00 00 00 4D [14:39:06]Write i2c OK [14:39:06]MH_I2C_Read... [14:39:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:06]Read from MH i2c: E2 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 0B 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 0B 00 7F 53 00 55 D1 B1 44 3F 8B E0 1C 90 00 2F [14:39:06]RAPDU: 55 D1 B1 44 3F 8B E0 1C 90 00 [14:39:06]wFMCommunicate OK [14:39:06]SAM_PROTO_SignData done [14:39:06]FM_MakeSignedData done [14:39:06]CreateOFDProtocolMessage [14:39:06]wFMCommunicate request_size=4 [14:39:06]MH_SAM_APDU [14:39:06]CAPDU: 80 11 00 00 [14:39:06]Write to MH i2c: E2 08 00 80 53 80 11 00 00 00 00 00 00 4D [14:39:06]Write i2c OK [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 [14:39:06]MH_I2C_Read... [14:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:06]Read from MH i2c: E2 17 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 17 00 80 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A9 [14:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:39:06]wFMCommunicate OK [14:39:06]CreateOFDProtocolMessage done [14:39:06]OFDSenderStorePacket 69241 [14:39:06]StoreOFDPacket docnum=69241 [14:39:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 28 01 00 00 25 F2 20 01 A3 C4 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 57 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 A5 94 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 94 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 46 00 00 00 00 07 04 06 00 8C 94 02 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 12 58 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 27 04 04 00 75 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 79 0E 01 00 35 04 06 00 68 68 AF ED 0C 04 55 D1 B1 44 3F 8B E0 1C [14:39:06]CheckFolder [14:39:06]dirname=/storage/ofd_packets [14:39:06]CheckFolder done [14:39:06]ProducePacketName [14:39:06]name=ofd_packets/00069241 [14:39:06]NVStorageSaveData ofd_packets/00069241 [14:39:06]File name is /storage/ofd_packets/00069241 [14:39:06]Write 326 bytes [14:39:06]NVStorageSaveData done [14:39:06]OFDSenderStorePacket done [14:39:06]KKMCreateOFDPacket done [14:39:06]NVStorageSaveData kkm_last_timestamp [14:39:06]File name is /storage/kkm_last_timestamp [14:39:06]Write 4 bytes [14:39:06]NVStorageSaveData done [14:39:06]ExternCall_PrintAddStr [14:39:06]wPrintStart [14:39:06]Write to MH i2c: 01 00 00 81 53 D4 [14:39:06]Write i2c OK [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: 01 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: 01 07 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: 01 07 00 81 53 00 00 00 00 00 FF 0F E9 [14:39:06]RasterBufferAndPrint [14:39:06]line Счет N : (1)871961 [14:39:06]line ИНН: 02508201610067 [14:39:06]line Контрольно-Кассовый Чек [14:39:06]line ВОЗВРАТ ПРОДАЖИ [14:39:06]line ТРК (МРК, ГНК) : 2 [14:39:06]line Товар: 2710194210 [14:39:06]line ДТ-К-5 [14:39:06]line 22.490 * 75.20 [14:39:06]line = 1691.25 [14:39:06]line НДС 12% НСП 1% [14:39:06]line > о реализуемом товаре [14:39:06]line ОКРУГЛЕНИЕ: -0.25 [14:39:06]line ИТОГО: 1691.00 [14:39:06]line НСП 1% : 14.97 [14:39:06]line НДС 12% : 179.60 [14:39:06]line Наличными: 1691.00 [14:39:06]line Безнал.: 0.00 [14:39:06]line Место: АЗС № 125 "Партнер Нефть" [14:39:06]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:39:06]line СНО: Общий режим [14:39:06]line Чек 124 28.07.2024 14:39 [14:39:06]line Смена: 429 ФФД: 1.0 [14:39:06]line ЗНМ: 0300000049 [14:39:06]line РНМ: 0000000000092638 [14:39:06]line Версия ККМ: 001 [14:39:06]line ФД осн.: 69237 [14:39:06]line ФМ осн.: 0000000000874949 [14:39:06]line ФМ: 0000000000874949 [14:39:06]line ФД: 69241 [14:39:06]line ФПД: 114798837435396 [14:39:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143914&type=2&operation_type=1&fn_number=0000000000874949&fd_number=69241&fm=114798837435396&tin=02508201610067®Number=0000000000092638&sum=169100 [14:39:06]OFD Sender: Processing packet 69241 [packets to send 19, broken 18] [14:39:06]ProducePacketName [14:39:06]name=ofd_packets/00069241 [14:39:06]OFD Sender: To server: pG, [14:39:06]CommunicateWithHost lk.salyk.kg:30040 [14:39:06]ConnectInit lk.salyk.kg [14:39:06]written 0, free lines is 4095 [14:39:06]Connected sock=10 [14:39:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 28 01 00 00 25 F2 20 01 A3 C4 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 57 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 A5 94 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 94 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 46 00 00 00 00 07 04 06 00 8C 94 02 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 12 58 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 27 04 04 00 75 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 79 0E 01 00 35 04 06 00 68 68 AF ED 0C 04 55 D1 B1 44 3F 8B E0 1C [14:39:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 49 F8 47 00 F6 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 79 0E 01 00 F4 03 04 00 81 FE A5 66 B6 04 01 00 00 4A 56 1D 79 D5 C6 0E 12 [14:39:06]CommunicateWithHost err = 0 [14:39:06]CheckOFDResponse [14:39:06]1017 (14) - 77093643461234 [14:39:06]1041 (16) - 0000000000874949 [14:39:06]1040 (4) - 69241 [14:39:06]1012 (4) - 28.07.2024 08:17 [14:39:06]1206 (1) - 0 [14:39:06]OFD Sender: Remove packet 69241 [14:39:06]ProducePacketName [14:39:06]name=ofd_packets/00069241 [14:39:06]NVStorageDeleteData [14:39:06]Write to MH i2c: 01 00 00 AC 53 FF [14:39:06]Write i2c OK [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: 01 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: 01 07 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: 01 07 00 AC 53 00 00 00 00 00 0A 0D 1D [14:39:06]RasterBufferAndPrint [14:39:06]line [14:39:06]line [14:39:06]line [14:39:06]line [14:39:06]line [14:39:06]written 0, free lines is 3352 [14:39:06]MH_Cut [14:39:06]Write to MH i2c: D1 01 00 B3 53 01 D8 [14:39:06]Write i2c OK [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: D1 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: D1 01 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: D1 01 00 B3 53 00 D7 [14:39:06]Write to MH i2c: 01 00 00 B4 53 07 [14:39:06]Write i2c OK [14:39:06]MH_I2C_Read... [14:39:07]OFD Sender: No OFD packet to send [14:39:07]*** Cut start [14:39:07]*** Partial cut [14:39:07]*** CUTSNS_PIN = 1 [14:39:07]*** CUTSNS_PIN = 0 [14:39:07]*** Brake cut motor [14:39:08]Read from MH i2c: 01 [14:39:08]MH_I2C_Read... [14:39:08]*** Stop cut motor [14:39:08]*** Cut end [14:39:08]Read from MH i2c: 01 07 00 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: 01 07 00 B4 53 00 00 00 00 00 FF 0F 1C [14:39:08]process_action close_receipt done [14:39:08]requested_data is exist [14:39:08]produce_requested_data [14:39:08]requested_item fm.sn is exist - process it [14:39:08]wFMCommunicate request_size=4 [14:39:08]MH_SAM_APDU [14:39:08]CAPDU: 80 11 00 00 [14:39:08]Write to MH i2c: E2 08 00 B5 53 80 11 00 00 00 00 00 00 82 [14:39:08]Write i2c OK [14:39:08]MH_I2C_Read... [14:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:08]Read from MH i2c: E2 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 17 00 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 17 00 B5 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 DE [14:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:39:08]wFMCommunicate OK [14:39:08]requested_item fd.num is exist - process it [14:39:08]SAM_PROTO_GetFieldsCounters [14:39:08]wFMCommunicate request_size=4 [14:39:08]MH_SAM_APDU [14:39:08]CAPDU: 80 13 00 00 [14:39:08]Write to MH i2c: E2 08 00 B6 53 80 13 00 00 00 00 00 00 85 [14:39:08]Write i2c OK [14:39:08]MH_I2C_Read... [14:39:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:08]Read from MH i2c: E2 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 62 00 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 62 00 B6 53 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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 79 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [14:39: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 79 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:08]wFMCommunicate OK [14:39:08]SAM_PROTO_GetFieldsCounters done [14:39:08]requested_item shift.num is exist - process it [14:39:08]requested_item shift.opened is exist - process it [14:39:08]req_shift_opened [14:39:08]FM_GetShiftState [14:39:08]SAM_PROTO_GetShiftState [14:39:08]wFMCommunicate request_size=4 [14:39:08]MH_SAM_APDU [14:39:08]CAPDU: 80 13 01 00 [14:39:08]Write to MH i2c: E2 08 00 B7 53 80 13 01 00 00 00 00 00 87 [14:39:08]Write i2c OK [14:39:08]MH_I2C_Read... [14:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:08]Read from MH i2c: E2 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 0E 00 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 0E 00 B7 53 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 C4 [14:39:08]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:39:08]wFMCommunicate OK [14:39:08]SAM_PROTO_GetShiftState done [14:39:08]FM_GetShiftState done [14:39:08]req_shift_opened done [14:39:08]requested_item shift.open_date is exist - process it [14:39:08]req_shift_open_date [14:39:08]req_shift_open_date done [14:39:08]produce_requested_data done [14:39:08]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69241,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:39:08]process_action_free close_receipt [14:39:08]json_value_free [14:39:08]json_value_free done [14:39:08]process_json_proto returns [14:39:08]Send response to host [14:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69241,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:39:08]free response buf [14:39:08]execute_script done [14:39:08]execute_script returns [14:39:08]free content buf [14:39:08]Sock 7.Close socket [14:39:08]Sock 7.Thread stoped [14:39:08]accept exits with 9 [14:39:08]New connection [14:39:08]New thread 3066785124 created [14:39:08]Thread 3066641764 joined [14:39:08]Waiting for new connection... [14:39:08] Sock 9.Parse request [14:39:08]Sock 9.Check first char [14:39:08]Sock 9.First char is OK [14:39:08]request: POST /json_proto HTTP/1.0 [14:39:08]Method: POST [14:39:08]URL: /json_proto [14:39:08]Method is POST - this is cgi request [14:39:08]url: /json_proto [14:39:08]query_string will be loaded in cgi processing [14:39:08]execute_cgi json_proto POST (null) [14:39:08]execute_cgi path=json_proto method=POST [14:39:08]POST find Content-Length [14:39:08]Host: 172.17.49.132:8080 [14:39:08]Content-Length: 678 [14:39:08]Content-Type: application/json [14:39:08] [14:39:08]POST finish read [14:39:08]Found Content-Length = 678 [14:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)871961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 22.120, "sum" : 1663.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1691.00, "total" : 1663.00, "payments": [ { "type": 0, "sum" : 1663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:08]execute_script... [14:39: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)871961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 22.120, "sum" : 1663.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1691.00, "total" : 1663.00, "payments": [ { "type": 0, "sum" : 1663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:08]POST & json_proto [14:39:08]process_json_proto [14:39:08]json parsed OK: [14:39:08]protocol is kg_v1.0 [14:39:08]action value=close_receipt [14:39:08]process_action close_receipt [14:39:08]cmd_close_receipt [14:39:08]MH_GetDate [14:39:08]Write to MH i2c: F0 00 00 B8 53 FA [14:39:08]Write i2c OK [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: F0 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: F0 09 00 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: F0 09 00 B8 53 00 16 58 A6 66 E7 4B C0 64 D3 [14:39:08]GetLastDocTimeStamp 1722177554 [14:39:08]current date 1722177558 [14:39:08]FM_GetShiftState [14:39:08]SAM_PROTO_GetShiftState [14:39:08]wFMCommunicate request_size=4 [14:39:08]MH_SAM_APDU [14:39:08]CAPDU: 80 13 01 00 [14:39:08]Write to MH i2c: E2 08 00 B9 53 80 13 01 00 00 00 00 00 89 [14:39:08]Write i2c OK [14:39:08]MH_I2C_Read... [14:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:08]Read from MH i2c: E2 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 0E 00 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 0E 00 B9 53 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 C6 [14:39:08]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:39:08]wFMCommunicate OK [14:39:08]SAM_PROTO_GetShiftState done [14:39:08]FM_GetShiftState done [14:39:08]opened in 1722127251 [14:39:08]opened+sec_in_day 1722213651 [14:39:08]quantity*price = 166342 [14:39:08]sum+1 = 166343 [14:39:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 1663.00 Внесено: 1691.00 СДАЧА: 28.00 НСП 1% : 14.72 НДС 12% : 176.65 Наличными: 1663.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 125 28.07.2024 14:39 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69242 ФПД: 143523610370301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143918&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69242&fm=143523610370301&tin=02508201610067®Number=0000000000092638&sum=166300 [14:39:09]StoreToDocumentArchive [14:39:09]shift 429 fd 69242 [14:39:09]save to /storage/0429/doc_00069242 [14:39:09]save last doc name /storage/0429/doc_00069242 to /storage/kkm_last_doc_name [14:39:09]save OK [14:39:09]Clear old archive folders... [14:39:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:39:09]tlvbuf is 00A55E30 [14:39:09]SAM_PROTO_ClearQueue [14:39:09]wFMCommunicate request_size=4 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 09 00 00 [14:39:09]Write to MH i2c: E2 08 00 C6 53 80 09 00 00 00 00 00 00 8B [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 C6 53 00 90 00 8D [14:39:09]RAPDU: 90 00 [14:39:09]wFMCommunicate OK [14:39:09]SAM_PROTO_ClearQueue done [14:39:09]KKMCreateOFDPacket [14:39:09]OFDProtocolAddRootSTLVToBuf [14:39:09]FM_MakeSignedData [14:39:09]FM_MakeSignedData [14:39:09]SAM_PROTO_SignData [14:39:09]wFMCommunicate request_size=4 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 0D 01 02 [14:39:09]Write to MH i2c: E2 08 00 C7 53 80 0D 01 02 00 00 00 00 93 [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 C7 53 00 90 00 8E [14:39:09]RAPDU: 90 00 [14:39:09]wFMCommunicate OK [14:39:09]wFMCommunicate request_size=255 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 56 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C6 89 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 89 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 45 00 00 00 00 07 04 06 00 9C 89 02 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 16 58 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7A 0E 01 00 35 04 06 00 82 88 B1 D0 [14:39:09]Write to MH i2c: E2 02 01 C8 53 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 56 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C6 89 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 89 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 45 00 00 00 00 07 04 06 00 9C 89 02 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 16 58 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7A 0E 01 00 35 04 06 00 82 88 B1 D0 00 00 9A [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:10]Read from MH i2c: E2 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 03 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 03 00 C8 53 00 90 00 8F [14:39:10]RAPDU: 90 00 [14:39:10]wFMCommunicate OK [14:39:10]wFMCommunicate request_size=7 [14:39:10]MH_SAM_APDU [14:39:10]CAPDU: 80 0D 02 02 02 20 FD [14:39:10]Write to MH i2c: E2 0A 00 C9 53 80 0D 02 02 02 00 20 FD 00 00 B7 [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:10]Read from MH i2c: E2 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 03 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 03 00 C9 53 00 90 00 90 [14:39:10]RAPDU: 90 00 [14:39:10]wFMCommunicate OK [14:39:10]wFMCommunicate request_size=4 [14:39:10]MH_SAM_APDU [14:39:10]CAPDU: 80 0D 03 02 [14:39:10]Write to MH i2c: E2 08 00 CA 53 80 0D 03 02 00 00 00 00 98 [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:10]Read from MH i2c: E2 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 0B 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 0B 00 CA 53 00 C6 98 D3 26 99 55 A0 13 90 00 91 [14:39:10]RAPDU: C6 98 D3 26 99 55 A0 13 90 00 [14:39:10]wFMCommunicate OK [14:39:10]SAM_PROTO_SignData done [14:39:10]FM_MakeSignedData done [14:39:10]CreateOFDProtocolMessage [14:39:10]wFMCommunicate request_size=4 [14:39:10]MH_SAM_APDU [14:39:10]CAPDU: 80 11 00 00 [14:39:10]Write to MH i2c: E2 08 00 CB 53 80 11 00 00 00 00 00 00 98 [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:10]Read from MH i2c: E2 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 17 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 17 00 CB 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F4 [14:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:39:10]wFMCommunicate OK [14:39:10]CreateOFDProtocolMessage done [14:39:10]OFDSenderStorePacket 69242 [14:39:10]StoreOFDPacket docnum=69242 [14:39:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 B1 72 04 01 62 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 56 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C6 89 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 89 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 45 00 00 00 00 07 04 06 00 9C 89 02 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 16 58 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7A 0E 01 00 35 04 06 00 82 88 B1 D0 20 FD C6 98 D3 26 99 55 A0 13 [14:39:10]CheckFolder [14:39:10]dirname=/storage/ofd_packets [14:39:10]CheckFolder done [14:39:10]ProducePacketName [14:39:10]name=ofd_packets/00069242 [14:39:10]NVStorageSaveData ofd_packets/00069242 [14:39:10]File name is /storage/ofd_packets/00069242 [14:39:10]Write 298 bytes [14:39:10]NVStorageSaveData done [14:39:10]OFDSenderStorePacket done [14:39:10]KKMCreateOFDPacket done [14:39:10]NVStorageSaveData kkm_last_timestamp [14:39:10]File name is /storage/kkm_last_timestamp [14:39:10]Write 4 bytes [14:39:10]NVStorageSaveData done [14:39:10]ExternCall_PrintAddStr [14:39:10]wPrintStart [14:39:10]Write to MH i2c: 01 00 00 CC 53 1F [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: 01 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: 01 07 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: 01 07 00 CC 53 00 00 00 00 00 FF 0F 34 [14:39:10]RasterBufferAndPrint [14:39:10]line Счет N : (1)871961 [14:39:11]line ИНН: 02508201610067 [14:39:11]line Контрольно-Кассовый Чек [14:39:11]line ПРОДАЖА [14:39:11]line ТРК (МРК, ГНК) : 2 [14:39:11]line Товар: 2710194210 [14:39:11]line ДТ-К-5 [14:39:11]line 22.120 * 75.20 [14:39:11]line = 1663.42 [14:39:11]line НДС 12% НСП 1% [14:39:11]line > о реализуемом товаре [14:39:11]line ОКРУГЛЕНИЕ: -0.42 [14:39:11]line ИТОГО: 1663.00 [14:39:11]line Внесено: 1691.00 [14:39:11]line СДАЧА: 28.00 [14:39:11]line НСП 1% : 14.72 [14:39:11]line НДС 12% : 176.65 [14:39:11]line Наличными: 1663.00 [14:39:11]line Безнал.: 0.00 [14:39:11]line Место: АЗС № 125 "Партнер Нефть" [14:39:11]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:39:11]line СНО: Общий режим [14:39:11]line Чек 125 28.07.2024 14:39 [14:39:11]line Смена: 429 ФФД: 1.0 [14:39:11]line ЗНМ: 0300000049 [14:39:11]line РНМ: 0000000000092638 [14:39:11]line Версия ККМ: 001 [14:39:11]line ФМ: 0000000000874949 [14:39:11]line ФД: 69242 [14:39:11]line ФПД: 143523610370301 [14:39:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T143918&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69242&fm=143523610370301&tin=02508201610067®Number=0000000000092638&sum=166300 [14:39:11]OFD Sender: Processing packet 69242 [packets to send 19, broken 18] [14:39:11]ProducePacketName [14:39:11]name=ofd_packets/00069242 [14:39:11]OFD Sender: To server: pG, [14:39:11]CommunicateWithHost lk.salyk.kg:30040 [14:39:11]ConnectInit lk.salyk.kg [14:39:11]written 0, free lines is 4095 [14:39:11]Connected sock=10 [14:39: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 39 34 39 0C 01 00 00 B1 72 04 01 62 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 56 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C6 89 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 89 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 45 00 00 00 00 07 04 06 00 9C 89 02 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 16 58 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7A 0E 01 00 35 04 06 00 82 88 B1 D0 20 FD C6 98 D3 26 99 55 A0 13 [14:39:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 B2 35 47 00 F4 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7A 0E 01 00 F4 03 04 00 86 FE A5 66 B6 04 01 00 00 E6 CC 25 83 63 3D C7 88 [14:39:11]CommunicateWithHost err = 0 [14:39:11]CheckOFDResponse [14:39:11]1017 (14) - 77093643461234 [14:39:11]1041 (16) - 0000000000874949 [14:39:11]1040 (4) - 69242 [14:39:11]1012 (4) - 28.07.2024 08:17 [14:39:11]1206 (1) - 0 [14:39:11]OFD Sender: Remove packet 69242 [14:39:11]ProducePacketName [14:39:11]name=ofd_packets/00069242 [14:39:11]NVStorageDeleteData [14:39:11]Write to MH i2c: 01 00 00 F7 53 4A [14:39:11]Write i2c OK [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: 01 [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: 01 07 00 [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: 01 07 00 F7 53 00 00 00 00 00 FD 0C 5A [14:39:11]RasterBufferAndPrint [14:39:11]line [14:39:11]line [14:39:11]line [14:39:11]line [14:39:11]line [14:39:11]written 0, free lines is 3346 [14:39:11]MH_Cut [14:39:11]Write to MH i2c: D1 01 00 FE 53 01 23 [14:39:11]Write i2c OK [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: D1 [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: D1 01 00 [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: D1 01 00 FE 53 00 22 [14:39:11]Write to MH i2c: 01 00 00 FF 53 52 [14:39:11]Write i2c OK [14:39:11]MH_I2C_Read... [14:39:11]OFD Sender: No OFD packet to send [14:39:12]*** Cut start [14:39:12]*** Partial cut [14:39:12]*** CUTSNS_PIN = 1 [14:39:12]*** CUTSNS_PIN = 0 [14:39:12]*** Brake cut motor [14:39:12]Read from MH i2c: 01 [14:39:12]MH_I2C_Read... [14:39:12]*** Stop cut motor [14:39:12]*** Cut end [14:39:12]Read from MH i2c: 01 07 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: 01 07 00 FF 53 00 00 00 00 00 FF 0F 67 [14:39:12]process_action close_receipt done [14:39:12]requested_data is exist [14:39:12]produce_requested_data [14:39:12]requested_item fm.sn is exist - process it [14:39:12]wFMCommunicate request_size=4 [14:39:12]MH_SAM_APDU [14:39:12]CAPDU: 80 11 00 00 [14:39:12]Write to MH i2c: E2 08 00 00 54 80 11 00 00 00 00 00 00 CE [14:39:12]Write i2c OK [14:39:12]MH_I2C_Read... [14:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:12]Read from MH i2c: E2 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 17 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 17 00 00 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 2A [14:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:39:12]wFMCommunicate OK [14:39:12]requested_item fd.num is exist - process it [14:39:12]SAM_PROTO_GetFieldsCounters [14:39:12]wFMCommunicate request_size=4 [14:39:12]MH_SAM_APDU [14:39:12]CAPDU: 80 13 00 00 [14:39:12]Write to MH i2c: E2 08 00 01 54 80 13 00 00 00 00 00 00 D1 [14:39:12]Write i2c OK [14:39:12]MH_I2C_Read... [14:39:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:12]Read from MH i2c: E2 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 62 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 62 00 01 54 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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 7A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [14:39: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 7A 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:13]wFMCommunicate OK [14:39:13]SAM_PROTO_GetFieldsCounters done [14:39:13]requested_item shift.num is exist - process it [14:39:13]requested_item shift.opened is exist - process it [14:39:13]req_shift_opened [14:39:13]FM_GetShiftState [14:39:13]SAM_PROTO_GetShiftState [14:39:13]wFMCommunicate request_size=4 [14:39:13]MH_SAM_APDU [14:39:13]CAPDU: 80 13 01 00 [14:39:13]Write to MH i2c: E2 08 00 02 54 80 13 01 00 00 00 00 00 D3 [14:39:13]Write i2c OK [14:39:13]MH_I2C_Read... [14:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:13]Read from MH i2c: E2 [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: E2 0E 00 [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: E2 0E 00 02 54 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 10 [14:39:13]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:39:13]wFMCommunicate OK [14:39:13]SAM_PROTO_GetShiftState done [14:39:13]FM_GetShiftState done [14:39:13]req_shift_opened done [14:39:13]requested_item shift.open_date is exist - process it [14:39:13]req_shift_open_date [14:39:13]req_shift_open_date done [14:39:13]produce_requested_data done [14:39:13]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69242,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:39:13]process_action_free close_receipt [14:39:13]json_value_free [14:39:13]json_value_free done [14:39:13]process_json_proto returns [14:39:13]Send response to host [14:39:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69242,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:39:13]free response buf [14:39:13]execute_script done [14:39:13]execute_script returns [14:39:13]free content buf [14:39:13]Sock 9.Close socket [14:39:13]Sock 9.Thread stoped [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:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:24]accept exits with 7 [14:55:24]New connection [14:55:24]New thread 3066641764 created [14:55:24]Thread 3066785124 joined [14:55:24]Waiting for new connection... [14:55:24] Sock 7.Parse request [14:55:24]Sock 7.Check first char [14:55:24]Sock 7.First char is OK [14:55:24]request: POST /json_proto HTTP/1.0 [14:55:24]Method: POST [14:55:24]URL: /json_proto [14:55:24]Method is POST - this is cgi request [14:55:24]url: /json_proto [14:55:24]query_string will be loaded in cgi processing [14:55:24]execute_cgi json_proto POST (null) [14:55:24]execute_cgi path=json_proto method=POST [14:55:24]POST find Content-Length [14:55:24]Host: 172.17.49.132:8080 [14:55:24]Content-Length: 1410 [14:55:24]Content-Type: application/json [14:55:24] [14:55:24]POST finish read [14:55:24]Found Content-Length = 1410 [14:55:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136578", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680036914937", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 299.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:24]execute_script... [14:55: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)136578", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680036914937", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 299.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:24]POST & json_proto [14:55:24]process_json_proto [14:55:24]json parsed OK: [14:55:24]protocol is kg_v1.0 [14:55:24]action value=close_receipt [14:55:24]process_action close_receipt [14:55:24]cmd_close_receipt [14:55:24]MH_GetDate [14:55:24]Write to MH i2c: F0 00 00 03 54 46 [14:55:24]Write i2c OK [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: F0 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: F0 09 00 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: F0 09 00 03 54 00 E5 5B A6 66 E7 4B C0 64 F1 [14:55:24]GetLastDocTimeStamp 1722177558 [14:55:24]current date 1722178533 [14:55:24]FM_GetShiftState [14:55:24]SAM_PROTO_GetShiftState [14:55:24]wFMCommunicate request_size=4 [14:55:24]MH_SAM_APDU [14:55:24]CAPDU: 80 13 01 00 [14:55:24]Write to MH i2c: E2 08 00 04 54 80 13 01 00 00 00 00 00 D5 [14:55:24]Write i2c OK [14:55:24]MH_I2C_Read... [14:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:24]Read from MH i2c: E2 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: E2 0E 00 [14:55:24]MH_I2C_Read... [14:55:24]Read from MH i2c: E2 0E 00 04 54 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 12 [14:55:24]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:55:24]wFMCommunicate OK [14:55:24]SAM_PROTO_GetShiftState done [14:55:24]FM_GetShiftState done [14:55:24]opened in 1722127251 [14:55:24]opened+sec_in_day 1722213651 [14:55:24]quantity*price = 14000 [14:55:24]sum+1 = 14001 [14:55:24]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114120 Султан чай 1л. чер персик 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4680036914937 Gorilla эн нап 0,275л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 299.00 НСП 1% : 2.64 НДС 12% : 31.75 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 126 28.07.2024 14:55 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69243 ФПД: 31679191744621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145534&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69243&fm=31679191744621&tin=02508201610067®Number=0000000000092638&sum=29900 0 [14:55:25]StoreToDocumentArchive [14:55:25]shift 429 fd 69243 [14:55:25]save to /storage/0429/doc_00069243 [14:55:25]save last doc name /storage/0429/doc_00069243 to /storage/kkm_last_doc_name [14:55:25]save OK [14:55:25]Clear old archive folders... [14:55:25]ProcessDocumentItem done err = 0, tmpTLVsize=596 [14:55:25]tlvbuf is 00AF53B0 [14:55:25]SAM_PROTO_ClearQueue [14:55:25]wFMCommunicate request_size=4 [14:55:25]MH_SAM_APDU [14:55:25]CAPDU: 80 09 00 00 [14:55:25]Write to MH i2c: E2 08 00 11 54 80 09 00 00 00 00 00 00 D7 [14:55:25]Write i2c OK [14:55:25]MH_I2C_Read... [14:55:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:25]Read from MH i2c: E2 [14:55:25]MH_I2C_Read... [14:55:25]Read from MH i2c: E2 03 00 [14:55:25]MH_I2C_Read... [14:55:25]Read from MH i2c: E2 03 00 11 54 00 90 00 D9 [14:55:25]RAPDU: 90 00 [14:55:25]wFMCommunicate OK [14:55:25]SAM_PROTO_ClearQueue done [14:55:25]KKMCreateOFDPacket [14:55:25]OFDProtocolAddRootSTLVToBuf [14:55:25]FM_MakeSignedData [14:55:25]FM_MakeSignedData [14:55:25]SAM_PROTO_SignData [14:55:25]wFMCommunicate request_size=4 [14:55:25]MH_SAM_APDU [14:55:25]CAPDU: 80 0D 01 02 [14:55:25]Write to MH i2c: E2 08 00 12 54 80 0D 01 02 00 00 00 00 DF [14:55:25]Write i2c OK [14:55:25]MH_I2C_Read... [14:55:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:25]Read from MH i2c: E2 [14:55:25]MH_I2C_Read... [14:55:25]Read from MH i2c: E2 03 00 [14:55:25]MH_I2C_Read... [14:55:25]Read from MH i2c: E2 03 00 12 54 00 90 00 DA [14:55:25]RAPDU: 90 00 [14:55:25]wFMCommunicate OK [14:55:25]wFMCommunicate request_size=255 [14:55:25]MH_SAM_APDU [14:55:25]CAPDU: 80 0D 02 02 FA 03 00 54 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 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 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 [14:55:25]Write to MH i2c: E2 02 01 13 54 80 0D 02 02 FA 00 03 00 54 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 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 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 00 00 1A [14:55:25]Write i2c OK [14:55:25]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 13 54 00 90 00 DB [14:55:26]RAPDU: 90 00 [14:55:26]wFMCommunicate OK [14:55:26]wFMCommunicate request_size=255 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 0D 02 02 FA 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 [14:55:26]Write to MH i2c: E2 02 01 14 54 80 0D 02 02 FA 00 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 B2 [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 14 54 00 90 00 DC [14:55:26]RAPDU: 90 00 [14:55:26]wFMCommunicate OK [14:55:26]wFMCommunicate request_size=105 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 0D 02 02 64 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E6 5B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7B 0E 01 00 35 04 06 00 1C CF E2 F8 80 6D [14:55:26]Write to MH i2c: E2 6C 00 15 54 80 0D 02 02 64 00 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E6 5B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7B 0E 01 00 35 04 06 00 1C CF E2 F8 80 6D 00 00 52 [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 15 54 00 90 00 DD [14:55:26]RAPDU: 90 00 [14:55:26]wFMCommunicate OK [14:55:26]wFMCommunicate request_size=4 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 0D 03 02 [14:55:26]Write to MH i2c: E2 08 00 16 54 80 0D 03 02 00 00 00 00 E5 [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 0B 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 0B 00 16 54 00 73 51 E0 57 A0 1F FB D2 90 00 6D [14:55:26]RAPDU: 73 51 E0 57 A0 1F FB D2 90 00 [14:55:26]wFMCommunicate OK [14:55:26]SAM_PROTO_SignData done [14:55:26]FM_MakeSignedData done [14:55:26]CreateOFDProtocolMessage [14:55:26]wFMCommunicate request_size=4 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 11 00 00 [14:55:26]Write to MH i2c: E2 08 00 17 54 80 11 00 00 00 00 00 00 E5 [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 17 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 17 00 17 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 41 [14:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:55:26]wFMCommunicate OK [14:55:26]CreateOFDProtocolMessage done [14:55:26]OFDSenderStorePacket 69243 [14:55:26]StoreOFDPacket docnum=69243 [14:55:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 68 02 00 00 DD DA 60 02 89 C4 5A 03 01 00 03 00 54 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 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 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E6 5B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7B 0E 01 00 35 04 06 00 1C CF E2 F8 80 6D 73 51 E0 57 A0 1F FB D2 [14:55:26]CheckFolder [14:55:26]dirname=/storage/ofd_packets [14:55:26]CheckFolder done [14:55:26]ProducePacketName [14:55:26]name=ofd_packets/00069243 [14:55:26]NVStorageSaveData ofd_packets/00069243 [14:55:26]File name is /storage/ofd_packets/00069243 [14:55:26]Write 646 bytes [14:55:26]NVStorageSaveData done [14:55:26]OFDSenderStorePacket done [14:55:26]KKMCreateOFDPacket done [14:55:26]NVStorageSaveData kkm_last_timestamp [14:55:26]File name is /storage/kkm_last_timestamp [14:55:26]Write 4 bytes [14:55:26]NVStorageSaveData done [14:55:26]ExternCall_PrintAddStr [14:55:26]wPrintStart [14:55:26]Write to MH i2c: 01 00 00 18 54 6C [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: 01 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: 01 07 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: 01 07 00 18 54 00 00 00 00 00 FF 0F 81 [14:55:26]RasterBufferAndPrint [14:55:26]line Счет N : (3)136578 [14:55:26]line ИНН: 02508201610067 [14:55:26]line Контрольно-Кассовый Чек [14:55:26]line ПРОДАЖА [14:55:26]line Товар: 48743570 [14:55:26]line Сигареты Winston XStyle Blue [14:55:26]line 1.000 * 140.00 [14:55:26]line = 140.00 [14:55:26]line НДС 12% НСП 1% [14:55:26]line > о реализуемом товаре [14:55:26]line Товар: 4700040114120 [14:55:26]line Султан чай 1л. чер персик [14:55:26]line 1.000 * 65.00 [14:55:26]line = 65.00 [14:55:26]line НДС 12% НСП 1% [14:55:27]line > о реализуемом товаре [14:55:27]line Товар: 4680036914937 [14:55:27]line Gorilla эн нап 0,275л [14:55:27]line 1.000 * 90.00 [14:55:27]line = 90.00 [14:55:27]line НДС 12% НСП 1% [14:55:27]line > о реализуемом товаре [14:55:27]line Товар: 2000031750019 [14:55:27]line Пакет Партнер Нефть [14:55:27]line 1.000 * 4.00 [14:55:27]line = 4.00 [14:55:27]line НДС 12% НСП 1% [14:55:27]line > о реализуемом товаре [14:55:27]line ИТОГО: 299.00 [14:55:27]line НСП 1% : 2.64 [14:55:27]line НДС 12% : 31.75 [14:55:27]line Наличными: 299.00 [14:55:27]line Безнал.: 0.00 [14:55:27]line Место: АЗС № 125 "Партнер Нефть" [14:55:27]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:55:27]line СНО: Общий режим [14:55:27]line Чек 126 28.07.2024 14:55 [14:55:27]line Смена: 429 ФФД: 1.0 [14:55:27]line ЗНМ: 0300000049 [14:55:27]line РНМ: 0000000000092638 [14:55:27]line Версия ККМ: 001 [14:55:27]line ФМ: 0000000000874949 [14:55:27]line ФД: 69243 [14:55:27]line ФПД: 31679191744621 [14:55:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145534&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69243&fm=31679191744621&tin=02508201610067®Number=0000000000092638&sum=29900 [14:55:27]OFD Sender: Processing packet 69243 [packets to send 19, broken 18] [14:55:27]ProducePacketName [14:55:27]name=ofd_packets/00069243 [14:55:27]OFD Sender: To server: pG, [14:55:27]CommunicateWithHost lk.salyk.kg:30040 [14:55:27]ConnectInit lk.salyk.kg [14:55:27]line 0 [14:55:27]written 0, free lines is 4095 [14:55:27]Connected sock=10 [14:55: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 39 34 39 68 02 00 00 DD DA 60 02 89 C4 5A 03 01 00 03 00 54 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 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 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E6 5B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7B 0E 01 00 35 04 06 00 1C CF E2 F8 80 6D 73 51 E0 57 A0 1F FB D2 [14:55:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 42 60 47 00 3F 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7B 0E 01 00 F4 03 04 00 56 02 A6 66 B6 04 01 00 00 2C 31 39 40 C2 70 4E 29 [14:55:27]CommunicateWithHost err = 0 [14:55:27]CheckOFDResponse [14:55:27]1017 (14) - 77093643461234 [14:55:27]1041 (16) - 0000000000874949 [14:55:27]1040 (4) - 69243 [14:55:27]1012 (4) - 28.07.2024 08:33 [14:55:27]1206 (1) - 0 [14:55:27]OFD Sender: Remove packet 69243 [14:55:27]ProducePacketName [14:55:27]name=ofd_packets/00069243 [14:55:27]NVStorageDeleteData [14:55:27]Write to MH i2c: 01 00 00 52 54 A6 [14:55:27]Write i2c OK [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: 01 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: 01 07 00 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: 01 07 00 52 54 00 00 00 00 00 32 0C EB [14:55:27]RasterBufferAndPrint [14:55:27]line [14:55:27]line [14:55:27]line [14:55:27]line [14:55:27]line [14:55:27]written 0, free lines is 3132 [14:55:27]MH_Cut [14:55:27]Write to MH i2c: D1 01 00 59 54 01 7F [14:55:27]Write i2c OK [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: D1 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: D1 01 00 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: D1 01 00 59 54 00 7E [14:55:27]Write to MH i2c: 01 00 00 5A 54 AE [14:55:27]Write i2c OK [14:55:27]MH_I2C_Read... [14:55:27]OFD Sender: No OFD packet to send [14:55:28]*** Cut start [14:55:28]*** Partial cut [14:55:28]*** CUTSNS_PIN = 1 [14:55:28]*** CUTSNS_PIN = 0 [14:55:28]*** Brake cut motor [14:55:29]Read from MH i2c: 01 [14:55:29]MH_I2C_Read... [14:55:29]*** Stop cut motor [14:55:29]*** Cut end [14:55:29]Read from MH i2c: 01 07 00 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: 01 07 00 5A 54 00 00 00 00 00 FF 0F C3 [14:55:29]process_action close_receipt done [14:55:29]requested_data is exist [14:55:29]produce_requested_data [14:55:29]requested_item fm.sn is exist - process it [14:55:29]wFMCommunicate request_size=4 [14:55:29]MH_SAM_APDU [14:55:29]CAPDU: 80 11 00 00 [14:55:29]Write to MH i2c: E2 08 00 5B 54 80 11 00 00 00 00 00 00 29 [14:55:29]Write i2c OK [14:55:29]MH_I2C_Read... [14:55:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:29]Read from MH i2c: E2 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 17 00 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 17 00 5B 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 85 [14:55:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:55:29]wFMCommunicate OK [14:55:29]requested_item fd.num is exist - process it [14:55:29]SAM_PROTO_GetFieldsCounters [14:55:29]wFMCommunicate request_size=4 [14:55:29]MH_SAM_APDU [14:55:29]CAPDU: 80 13 00 00 [14:55:29]Write to MH i2c: E2 08 00 5C 54 80 13 00 00 00 00 00 00 2C [14:55:29]Write i2c OK [14:55:29]MH_I2C_Read... [14:55:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:29]Read from MH i2c: E2 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 62 00 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 62 00 5C 54 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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 7B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [14:55: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 7B 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:29]wFMCommunicate OK [14:55:29]SAM_PROTO_GetFieldsCounters done [14:55:29]requested_item shift.num is exist - process it [14:55:29]requested_item shift.opened is exist - process it [14:55:29]req_shift_opened [14:55:29]FM_GetShiftState [14:55:29]SAM_PROTO_GetShiftState [14:55:29]wFMCommunicate request_size=4 [14:55:29]MH_SAM_APDU [14:55:29]CAPDU: 80 13 01 00 [14:55:29]Write to MH i2c: E2 08 00 5D 54 80 13 01 00 00 00 00 00 2E [14:55:29]Write i2c OK [14:55:29]MH_I2C_Read... [14:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:29]Read from MH i2c: E2 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 0E 00 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 0E 00 5D 54 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 6B [14:55:29]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:55:29]wFMCommunicate OK [14:55:29]SAM_PROTO_GetShiftState done [14:55:29]FM_GetShiftState done [14:55:29]req_shift_opened done [14:55:29]requested_item shift.open_date is exist - process it [14:55:29]req_shift_open_date [14:55:29]req_shift_open_date done [14:55:29]produce_requested_data done [14:55:29]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69243,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:55:29]process_action_free close_receipt [14:55:29]json_value_free [14:55:29]json_value_free done [14:55:29]process_json_proto returns [14:55:29]Send response to host [14:55:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69243,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:55:29]free response buf [14:55:29]execute_script done [14:55:29]execute_script returns [14:55:29]free content buf [14:55:29]Sock 7.Close socket [14:55:29]Sock 7.Thread stoped [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:38]accept exits with 9 [14:56:38]New connection [14:56:38]New thread 3066785124 created [14:56:38]Thread 3066641764 joined [14:56:38]Waiting for new connection... [14:56:38] Sock 9.Parse request [14:56:38]Sock 9.Check first char [14:56:38]Sock 9.First char is OK [14:56:38]request: POST /json_proto HTTP/1.0 [14:56:38]Method: POST [14:56:38]URL: /json_proto [14:56:38]Method is POST - this is cgi request [14:56:38]url: /json_proto [14:56:38]query_string will be loaded in cgi processing [14:56:38]execute_cgi json_proto POST (null) [14:56:38]execute_cgi path=json_proto method=POST [14:56:38]POST find Content-Length [14:56:38]Host: 172.17.49.132:8080 [14:56:38]Content-Length: 788 [14:56:38]Content-Type: application/json [14:56:38] [14:56:38]POST finish read [14:56:38]Found Content-Length = 788 [14:56:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136579", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:38]execute_script... [14:56:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136579", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:38]POST & json_proto [14:56:38]process_json_proto [14:56:38]json parsed OK: [14:56:38]protocol is kg_v1.0 [14:56:38]action value=close_receipt [14:56:38]process_action close_receipt [14:56:38]cmd_close_receipt [14:56:38]MH_GetDate [14:56:38]Write to MH i2c: F0 00 00 5E 54 A1 [14:56:38]Write i2c OK [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: F0 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: F0 09 00 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: F0 09 00 5E 54 00 30 5C A6 66 E7 4B C0 64 98 [14:56:38]GetLastDocTimeStamp 1722178534 [14:56:38]current date 1722178608 [14:56:38]FM_GetShiftState [14:56:38]SAM_PROTO_GetShiftState [14:56:38]wFMCommunicate request_size=4 [14:56:38]MH_SAM_APDU [14:56:38]CAPDU: 80 13 01 00 [14:56:38]Write to MH i2c: E2 08 00 5F 54 80 13 01 00 00 00 00 00 30 [14:56:38]Write i2c OK [14:56:38]MH_I2C_Read... [14:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:38]Read from MH i2c: E2 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: E2 0E 00 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: E2 0E 00 5F 54 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 6D [14:56:38]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:56:38]wFMCommunicate OK [14:56:38]SAM_PROTO_GetShiftState done [14:56:38]FM_GetShiftState done [14:56:38]opened in 1722127251 [14:56:38]opened+sec_in_day 1722213651 [14:56:38]quantity*price = 6700 [14:56:38]sum+1 = 6701 [14:56:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 0.00 Безнал.: 67.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 127 28.07.2024 14:56 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874949 ФД: 69244 ФПД: 103612161790184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145648&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69244&fm=103612161790184&tin=02508201610067®Number=0000000000092638&sum=6700 0 [14:56:39]StoreToDocumentArchive [14:56:39]shift 429 fd 69244 [14:56:39]save to /storage/0429/doc_00069244 [14:56:39]save last doc name /storage/0429/doc_00069244 to /storage/kkm_last_doc_name [14:56:39]save OK [14:56:39]Clear old archive folders... [14:56:39]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:56:39]tlvbuf is 00A88490 [14:56:39]SAM_PROTO_ClearQueue [14:56:39]wFMCommunicate request_size=4 [14:56:39]MH_SAM_APDU [14:56:39]CAPDU: 80 09 00 00 [14:56:39]Write to MH i2c: E2 08 00 6C 54 80 09 00 00 00 00 00 00 32 [14:56:39]Write i2c OK [14:56:39]MH_I2C_Read... [14:56:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:39]Read from MH i2c: E2 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 03 00 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 03 00 6C 54 00 90 00 34 [14:56:39]RAPDU: 90 00 [14:56:39]wFMCommunicate OK [14:56:39]SAM_PROTO_ClearQueue done [14:56:39]KKMCreateOFDPacket [14:56:39]OFDProtocolAddRootSTLVToBuf [14:56:39]FM_MakeSignedData [14:56:39]FM_MakeSignedData [14:56:39]SAM_PROTO_SignData [14:56:39]wFMCommunicate request_size=4 [14:56:39]MH_SAM_APDU [14:56:39]CAPDU: 80 0D 01 02 [14:56:39]Write to MH i2c: E2 08 00 6D 54 80 0D 01 02 00 00 00 00 3A [14:56:39]Write i2c OK [14:56:39]MH_I2C_Read... [14:56:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:39]Read from MH i2c: E2 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 03 00 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 03 00 6D 54 00 90 00 35 [14:56:39]RAPDU: 90 00 [14:56:39]wFMCommunicate OK [14:56:39]wFMCommunicate request_size=255 [14:56:39]MH_SAM_APDU [14:56:39]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 30 5C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 [14:56:39]Write to MH i2c: E2 02 01 6E 54 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 30 5C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 00 00 23 [14:56:39]Write i2c OK [14:56:39]MH_I2C_Read... [14:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 03 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 03 00 6E 54 00 90 00 36 [14:56:40]RAPDU: 90 00 [14:56:40]wFMCommunicate OK [14:56:40]wFMCommunicate request_size=43 [14:56:40]MH_SAM_APDU [14:56:40]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7C 0E 01 00 35 04 06 00 5E 3C 16 19 10 E8 [14:56:40]Write to MH i2c: E2 2E 00 6F 54 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7C 0E 01 00 35 04 06 00 5E 3C 16 19 10 E8 00 00 7A [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 03 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 03 00 6F 54 00 90 00 37 [14:56:40]RAPDU: 90 00 [14:56:40]wFMCommunicate OK [14:56:40]wFMCommunicate request_size=4 [14:56:40]MH_SAM_APDU [14:56:40]CAPDU: 80 0D 03 02 [14:56:40]Write to MH i2c: E2 08 00 70 54 80 0D 03 02 00 00 00 00 3F [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 0B 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 0B 00 70 54 00 6F 7B C9 35 B8 F4 87 B7 90 00 12 [14:56:40]RAPDU: 6F 7B C9 35 B8 F4 87 B7 90 00 [14:56:40]wFMCommunicate OK [14:56:40]SAM_PROTO_SignData done [14:56:40]FM_MakeSignedData done [14:56:40]CreateOFDProtocolMessage [14:56:40]wFMCommunicate request_size=4 [14:56:40]MH_SAM_APDU [14:56:40]CAPDU: 80 11 00 00 [14:56:40]Write to MH i2c: E2 08 00 71 54 80 11 00 00 00 00 00 00 3F [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 17 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 17 00 71 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9B [14:56:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:56:40]wFMCommunicate OK [14:56:40]CreateOFDProtocolMessage done [14:56:40]OFDSenderStorePacket 69244 [14:56:40]StoreOFDPacket docnum=69244 [14:56:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 30 01 00 00 69 9C 28 01 77 98 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 30 5C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7C 0E 01 00 35 04 06 00 5E 3C 16 19 10 E8 6F 7B C9 35 B8 F4 87 B7 [14:56:40]CheckFolder [14:56:40]dirname=/storage/ofd_packets [14:56:40]CheckFolder done [14:56:40]ProducePacketName [14:56:40]name=ofd_packets/00069244 [14:56:40]NVStorageSaveData ofd_packets/00069244 [14:56:40]File name is /storage/ofd_packets/00069244 [14:56:40]Write 334 bytes [14:56:40]NVStorageSaveData done [14:56:40]OFDSenderStorePacket done [14:56:40]KKMCreateOFDPacket done [14:56:40]NVStorageSaveData kkm_last_timestamp [14:56:40]File name is /storage/kkm_last_timestamp [14:56:40]Write 4 bytes [14:56:40]NVStorageSaveData done [14:56:40]ExternCall_PrintAddStr [14:56:40]wPrintStart [14:56:40]Write to MH i2c: 01 00 00 72 54 C6 [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: 01 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: 01 07 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: 01 07 00 72 54 00 00 00 00 00 FF 0F DB [14:56:40]RasterBufferAndPrint [14:56:40]line Счет N : (3)136579 [14:56:40]line ИНН: 02508201610067 [14:56:40]line Контрольно-Кассовый Чек [14:56:40]line ПРОДАЖА [14:56:40]line Товар: 6931280300549 [14:56:40]line Зажигалка Cricket ПН пьезо [14:56:40]line 1.000 * 67.00 [14:56:40]line = 67.00 [14:56:40]line НДС 12% НСП 1% [14:56:40]line > о реализуемом товаре [14:56:40]line ИТОГО: 67.00 [14:56:40]line НСП 1% : 0.59 [14:56:40]line НДС 12% : 7.11 [14:56:40]line Наличными: 0.00 [14:56:40]line Безнал.: 67.00 [14:56:40]line Место: АЗС № 125 "Партнер Нефть" [14:56:40]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:56:40]line СНО: Общий режим [14:56:40]line Чек 127 28.07.2024 14:56 [14:56:40]line Смена: 429 ФФД: 1.0 [14:56:40]line ЗНМ: 0300000049 [14:56:40]line РНМ: 0000000000092638 [14:56:40]line Версия ККМ: 001 [14:56:40]line Платежная система: Mbank [14:56:40]line ФМ: 0000000000874949 [14:56:40]line ФД: 69244 [14:56:40]line ФПД: 103612161790184 [14:56:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T145648&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69244&fm=103612161790184&tin=02508201610067®Number=0000000000092638&sum=6700 [14:56:40]line 0 [14:56:40]OFD Sender: Processing packet 69244 [packets to send 19, broken 18] [14:56:40]ProducePacketName [14:56:40]name=ofd_packets/00069244 [14:56:40]OFD Sender: To server: pG, [14:56:40]CommunicateWithHost lk.salyk.kg:30040 [14:56:40]ConnectInit lk.salyk.kg [14:56:40]written 0, free lines is 4095 [14:56:40]Connected sock=10 [14:56: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 39 34 39 30 01 00 00 69 9C 28 01 77 98 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 30 5C A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7C 0E 01 00 35 04 06 00 5E 3C 16 19 10 E8 6F 7B C9 35 B8 F4 87 B7 [14:56:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 7B A3 47 00 58 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 39 34 39 10 04 04 00 7C 0E 01 00 F4 03 04 00 9F 02 A6 66 B6 04 01 00 00 FB 03 42 B7 58 FA 48 F6 [14:56:41]CommunicateWithHost err = 0 [14:56:41]CheckOFDResponse [14:56:41]1017 (14) - 77093643461234 [14:56:41]1041 (16) - 0000000000874949 [14:56:41]1040 (4) - 69244 [14:56:41]1012 (4) - 28.07.2024 08:34 [14:56:41]1206 (1) - 0 [14:56:41]OFD Sender: Remove packet 69244 [14:56:41]ProducePacketName [14:56:41]name=ofd_packets/00069244 [14:56:41]NVStorageDeleteData [14:56:41]Write to MH i2c: 01 00 00 9B 54 EF [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: 01 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: 01 07 00 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: 01 07 00 9B 54 00 00 00 00 00 15 0D 18 [14:56:41]RasterBufferAndPrint [14:56:41]line [14:56:41]line [14:56:41]line [14:56:41]line [14:56:41]line [14:56:41]written 0, free lines is 3355 [14:56:41]MH_Cut [14:56:41]Write to MH i2c: D1 01 00 A2 54 01 C8 [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: D1 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: D1 01 00 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: D1 01 00 A2 54 00 C7 [14:56:41]Write to MH i2c: 01 00 00 A3 54 F7 [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]OFD Sender: No OFD packet to send [14:56:41]*** Cut start [14:56:41]*** Partial cut [14:56:41]*** CUTSNS_PIN = 1 [14:56:41]*** CUTSNS_PIN = 0 [14:56:42]*** Brake cut motor [14:56:42]Read from MH i2c: 01 [14:56:42]MH_I2C_Read... [14:56:42]*** Stop cut motor [14:56:42]*** Cut end [14:56:42]Read from MH i2c: 01 07 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: 01 07 00 A3 54 00 00 00 00 00 FF 0F 0C [14:56:42]process_action close_receipt done [14:56:42]requested_data is exist [14:56:42]produce_requested_data [14:56:42]requested_item fm.sn is exist - process it [14:56:42]wFMCommunicate request_size=4 [14:56:42]MH_SAM_APDU [14:56:42]CAPDU: 80 11 00 00 [14:56:42]Write to MH i2c: E2 08 00 A4 54 80 11 00 00 00 00 00 00 72 [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:42]Read from MH i2c: E2 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 17 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 17 00 A4 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 CE [14:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:56:42]wFMCommunicate OK [14:56:42]requested_item fd.num is exist - process it [14:56:42]SAM_PROTO_GetFieldsCounters [14:56:42]wFMCommunicate request_size=4 [14:56:42]MH_SAM_APDU [14:56:42]CAPDU: 80 13 00 00 [14:56:42]Write to MH i2c: E2 08 00 A5 54 80 13 00 00 00 00 00 00 75 [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:42]Read from MH i2c: E2 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 62 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 62 00 A5 54 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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 7C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [14:56: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 7C 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:42]wFMCommunicate OK [14:56:42]SAM_PROTO_GetFieldsCounters done [14:56:42]requested_item shift.num is exist - process it [14:56:42]requested_item shift.opened is exist - process it [14:56:42]req_shift_opened [14:56:42]FM_GetShiftState [14:56:42]SAM_PROTO_GetShiftState [14:56:42]wFMCommunicate request_size=4 [14:56:42]MH_SAM_APDU [14:56:42]CAPDU: 80 13 01 00 [14:56:42]Write to MH i2c: E2 08 00 A6 54 80 13 01 00 00 00 00 00 77 [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:42]Read from MH i2c: E2 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 0E 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 0E 00 A6 54 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 B4 [14:56:42]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [14:56:42]wFMCommunicate OK [14:56:42]SAM_PROTO_GetShiftState done [14:56:42]FM_GetShiftState done [14:56:42]req_shift_opened done [14:56:42]requested_item shift.open_date is exist - process it [14:56:42]req_shift_open_date [14:56:42]req_shift_open_date done [14:56:42]produce_requested_data done [14:56:42]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69244,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [14:56:42]process_action_free close_receipt [14:56:42]json_value_free [14:56:42]json_value_free done [14:56:42]process_json_proto returns [14:56:42]Send response to host [14:56:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69244,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [14:56:42]free response buf [14:56:42]execute_script done [14:56:42]execute_script returns [14:56:42]free content buf [14:56:42]Sock 9.Close socket [14:56:42]Sock 9.Thread stoped [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:12]accept exits with 7 [15:14:12]New connection [15:14:12]New thread 3066641764 created [15:14:12]Thread 3066785124 joined [15:14:12]Waiting for new connection... [15:14:12] Sock 7.Parse request [15:14:12]Sock 7.Check first char [15:14:12]Sock 7.First char is OK [15:14:12]request: POST /json_proto HTTP/1.0 [15:14:12]Method: POST [15:14:12]URL: /json_proto [15:14:12]Method is POST - this is cgi request [15:14:12]url: /json_proto [15:14:12]query_string will be loaded in cgi processing [15:14:12]execute_cgi json_proto POST (null) [15:14:12]execute_cgi path=json_proto method=POST [15:14:12]POST find Content-Length [15:14:12]Host: 172.17.49.132:8080 [15:14:12]Content-Length: 1369 [15:14:12]Content-Type: application/json [15:14:12] [15:14:12]POST finish read [15:14:12]Found Content-Length = 1369 [15:14:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136580", "tax_sys" : 0, "items" : [ { "code": "4700000480081", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 \u0411\u0410\u0417\u0410\u041B\u041A\u041E\u0413\u041E\u041B\u042C\u041D\u041E\u0415 URBAN 312 0,", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400969", "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 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:12]execute_script... [15:14:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136580", "tax_sys" : 0, "items" : [ { "code": "4700000480081", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 \u0411\u0410\u0417\u0410\u041B\u041A\u041E\u0413\u041E\u041B\u042C\u041D\u041E\u0415 URBAN 312 0,", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400969", "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 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:12]POST & json_proto [15:14:12]process_json_proto [15:14:12]json parsed OK: [15:14:12]protocol is kg_v1.0 [15:14:12]action value=close_receipt [15:14:12]process_action close_receipt [15:14:12]cmd_close_receipt [15:14:12]MH_GetDate [15:14:12]Write to MH i2c: F0 00 00 A7 54 EA [15:14:12]Write i2c OK [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: F0 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: F0 09 00 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: F0 09 00 A7 54 00 4E 60 A6 66 E7 4B C0 64 03 [15:14:12]GetLastDocTimeStamp 1722178608 [15:14:12]current date 1722179662 [15:14:12]FM_GetShiftState [15:14:12]SAM_PROTO_GetShiftState [15:14:12]wFMCommunicate request_size=4 [15:14:12]MH_SAM_APDU [15:14:12]CAPDU: 80 13 01 00 [15:14:12]Write to MH i2c: E2 08 00 A8 54 80 13 01 00 00 00 00 00 79 [15:14:12]Write i2c OK [15:14:12]MH_I2C_Read... [15:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:13]Read from MH i2c: E2 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 0E 00 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 0E 00 A8 54 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 B6 [15:14:13]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [15:14:13]wFMCommunicate OK [15:14:13]SAM_PROTO_GetShiftState done [15:14:13]FM_GetShiftState done [15:14:13]opened in 1722127251 [15:14:13]opened+sec_in_day 1722213651 [15:14:13]quantity*price = 10700 [15:14:13]sum+1 = 10701 [15:14:13]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400969 Арахис жарен Караван орехов Стандарт 40 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.33 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 128 28.07.2024 15:14 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69245 ФПД: 208300767104460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151423&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69245&fm=208300767104460&tin=02508201610067®Number=0000000000092638&sum=15100 0 [15:14:14]StoreToDocumentArchive [15:14:14]shift 429 fd 69245 [15:14:14]save to /storage/0429/doc_00069245 [15:14:14]save last doc name /storage/0429/doc_00069245 to /storage/kkm_last_doc_name [15:14:14]save OK [15:14:14]Clear old archive folders... [15:14:14]ProcessDocumentItem done err = 0, tmpTLVsize=559 [15:14:14]tlvbuf is 00A7E890 [15:14:14]SAM_PROTO_ClearQueue [15:14:14]wFMCommunicate request_size=4 [15:14:14]MH_SAM_APDU [15:14:14]CAPDU: 80 09 00 00 [15:14:14]Write to MH i2c: E2 08 00 B5 54 80 09 00 00 00 00 00 00 7B [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:14]Read from MH i2c: E2 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 03 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 03 00 B5 54 00 90 00 7D [15:14:14]RAPDU: 90 00 [15:14:14]wFMCommunicate OK [15:14:14]SAM_PROTO_ClearQueue done [15:14:14]KKMCreateOFDPacket [15:14:14]OFDProtocolAddRootSTLVToBuf [15:14:14]FM_MakeSignedData [15:14:14]FM_MakeSignedData [15:14:14]SAM_PROTO_SignData [15:14:14]wFMCommunicate request_size=4 [15:14:14]MH_SAM_APDU [15:14:14]CAPDU: 80 0D 01 02 [15:14:14]Write to MH i2c: E2 08 00 B6 54 80 0D 01 02 00 00 00 00 83 [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:14]Read from MH i2c: E2 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 03 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 03 00 B6 54 00 90 00 7E [15:14:14]RAPDU: 90 00 [15:14:14]wFMCommunicate OK [15:14:14]wFMCommunicate request_size=255 [15:14:14]MH_SAM_APDU [15:14:14]CAPDU: 80 0D 02 02 FA 03 00 2F 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 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 34 30 20 FF 03 08 00 03 E8 03 [15:14:14]Write to MH i2c: E2 02 01 B7 54 80 0D 02 02 FA 00 03 00 2F 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 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 34 30 20 FF 03 08 00 03 E8 03 00 00 F7 [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:14]Read from MH i2c: E2 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 03 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 03 00 B7 54 00 90 00 7F [15:14:14]RAPDU: 90 00 [15:14:14]wFMCommunicate OK [15:14:14]wFMCommunicate request_size=255 [15:14:14]MH_SAM_APDU [15:14:14]CAPDU: 80 0D 02 02 FA 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 4F 60 A6 66 0E 04 04 00 AD 01 00 00 [15:14:14]Write to MH i2c: E2 02 01 B8 54 80 0D 02 02 FA 00 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 4F 60 A6 66 0E 04 04 00 AD 01 00 00 00 00 49 [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:15]Read from MH i2c: E2 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 03 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 03 00 B8 54 00 90 00 80 [15:14:15]RAPDU: 90 00 [15:14:15]wFMCommunicate OK [15:14:15]wFMCommunicate request_size=68 [15:14:15]MH_SAM_APDU [15:14:15]CAPDU: 80 0D 02 02 3F B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7D 0E 01 00 35 04 06 00 BD 72 CD 3A CD CC [15:14:15]Write to MH i2c: E2 47 00 B9 54 80 0D 02 02 3F 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7D 0E 01 00 35 04 06 00 BD 72 CD 3A CD CC 00 00 01 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:15]Read from MH i2c: E2 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 03 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 03 00 B9 54 00 90 00 81 [15:14:15]RAPDU: 90 00 [15:14:15]wFMCommunicate OK [15:14:15]wFMCommunicate request_size=4 [15:14:15]MH_SAM_APDU [15:14:15]CAPDU: 80 0D 03 02 [15:14:15]Write to MH i2c: E2 08 00 BA 54 80 0D 03 02 00 00 00 00 89 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:15]Read from MH i2c: E2 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 0B 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 0B 00 BA 54 00 C4 26 D0 4A 29 D2 D1 BE 90 00 18 [15:14:15]RAPDU: C4 26 D0 4A 29 D2 D1 BE 90 00 [15:14:15]wFMCommunicate OK [15:14:15]SAM_PROTO_SignData done [15:14:15]FM_MakeSignedData done [15:14:15]CreateOFDProtocolMessage [15:14:15]wFMCommunicate request_size=4 [15:14:15]MH_SAM_APDU [15:14:15]CAPDU: 80 11 00 00 [15:14:15]Write to MH i2c: E2 08 00 BB 54 80 11 00 00 00 00 00 00 89 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:15]Read from MH i2c: E2 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 17 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 17 00 BB 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E5 [15:14:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [15:14:15]wFMCommunicate OK [15:14:15]CreateOFDProtocolMessage done [15:14:15]OFDSenderStorePacket 69245 [15:14:15]StoreOFDPacket docnum=69245 [15:14:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 43 02 00 00 F6 80 3B 02 41 54 5A 03 01 00 03 00 2F 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 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 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 4F 60 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7D 0E 01 00 35 04 06 00 BD 72 CD 3A CD CC C4 26 D0 4A 29 D2 D1 BE [15:14:15]CheckFolder [15:14:15]dirname=/storage/ofd_packets [15:14:15]CheckFolder done [15:14:15]ProducePacketName [15:14:15]name=ofd_packets/00069245 [15:14:15]NVStorageSaveData ofd_packets/00069245 [15:14:15]File name is /storage/ofd_packets/00069245 [15:14:15]Write 609 bytes [15:14:15]NVStorageSaveData done [15:14:15]OFDSenderStorePacket done [15:14:15]KKMCreateOFDPacket done [15:14:15]NVStorageSaveData kkm_last_timestamp [15:14:15]File name is /storage/kkm_last_timestamp [15:14:15]Write 4 bytes [15:14:15]NVStorageSaveData done [15:14:15]ExternCall_PrintAddStr [15:14:15]wPrintStart [15:14:15]Write to MH i2c: 01 00 00 BC 54 10 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: 01 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: 01 07 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: 01 07 00 BC 54 00 00 00 00 00 FF 0F 25 [15:14:15]RasterBufferAndPrint [15:14:15]line Счет N : (3)136580 [15:14:15]line ИНН: 02508201610067 [15:14:15]line Контрольно-Кассовый Чек [15:14:15]line ПРОДАЖА [15:14:15]line Товар: 4700000480081 [15:14:15]line ПИВО СВЕТЛОЕ БАЗАЛКОГОЛЬНОЕ URBAN 312 0, [15:14:15]line 1.000 * 107.00 [15:14:15]line = 107.00 [15:14:15]line НДС 12% НСП 1% [15:14:15]line > о реализуемом товаре [15:14:15]line Товар: 4630007400969 [15:14:15]line Арахис жарен Караван орехов Стандарт 40 [15:14:15]line 1.000 * 40.00 [15:14:15]line = 40.00 [15:14:15]line НДС 12% НСП 1% [15:14:15]line > о реализуемом товаре [15:14:15]line Товар: 2000031750019 [15:14:15]line Пакет Партнер Нефть [15:14:15]line 1.000 * 4.00 [15:14:15]line = 4.00 [15:14:15]line НДС 12% НСП 1% [15:14:15]line > о реализуемом товаре [15:14:15]line ИТОГО: 151.00 [15:14:15]line НСП 1% : 1.33 [15:14:15]line НДС 12% : 16.03 [15:14:15]line Наличными: 151.00 [15:14:15]line Безнал.: 0.00 [15:14:15]line Место: АЗС № 125 "Партнер Нефть" [15:14:15]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [15:14:15]line СНО: Общий режим [15:14:15]line Чек 128 28.07.2024 15:14 [15:14:15]line Смена: 429 ФФД: 1.0 [15:14:15]line ЗНМ: 0300000049 [15:14:15]line РНМ: 0000000000092638 [15:14:15]line Версия ККМ: 001 [15:14:15]line ФМ: 0000000000874949 [15:14:15]line ФД: 69245 [15:14:15]line ФПД: 208300767104460 [15:14:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T151423&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69245&fm=208300767104460&tin=02508201610067®Number=0000000000092638&sum=15100 [15:14:15]line 0 [15:14:15]written 0, free lines is 4095 [15:14:15]OFD Sender: Processing packet 69245 [packets to send 19, broken 18] [15:14:15]ProducePacketName [15:14:15]name=ofd_packets/00069245 [15:14:15]OFD Sender: To server: pG, [15:14:15]CommunicateWithHost lk.salyk.kg:30040 [15:14:15]ConnectInit lk.salyk.kg [15:14:15]Connected sock=11 [15:14: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 39 34 39 43 02 00 00 F6 80 3B 02 41 54 5A 03 01 00 03 00 2F 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 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 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 4F 60 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7D 0E 01 00 35 04 06 00 BD 72 CD 3A CD CC C4 26 D0 4A 29 D2 D1 BE [15:14:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 82 44 47 00 60 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 39 34 39 10 04 04 00 7D 0E 01 00 F4 03 04 00 BE 06 A6 66 B6 04 01 00 00 42 1F A9 D0 A7 7A 40 CD [15:14:16]CommunicateWithHost err = 0 [15:14:16]CheckOFDResponse [15:14:16]1017 (14) - 77093643461234 [15:14:16]1041 (16) - 0000000000874949 [15:14:16]1040 (4) - 69245 [15:14:16]1012 (4) - 28.07.2024 08:52 [15:14:16]1206 (1) - 0 [15:14:16]OFD Sender: Remove packet 69245 [15:14:16]ProducePacketName [15:14:16]name=ofd_packets/00069245 [15:14:16]NVStorageDeleteData [15:14:16]Write to MH i2c: 01 00 00 F2 54 46 [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: 01 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: 01 07 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: 01 07 00 F2 54 00 00 00 00 00 60 0C B9 [15:14:16]RasterBufferAndPrint [15:14:16]line [15:14:16]line [15:14:16]line [15:14:16]line [15:14:16]line [15:14:16]written 0, free lines is 3177 [15:14:16]MH_Cut [15:14:16]Write to MH i2c: D1 01 00 F9 54 01 1F [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: D1 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: D1 01 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: D1 01 00 F9 54 00 1E [15:14:16]Write to MH i2c: 01 00 00 FA 54 4E [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]OFD Sender: No OFD packet to send [15:14:17]*** Cut start [15:14:17]*** Partial cut [15:14:17]*** CUTSNS_PIN = 1 [15:14:17]*** CUTSNS_PIN = 0 [15:14:17]*** Brake cut motor [15:14:17]Read from MH i2c: 01 [15:14:17]MH_I2C_Read... [15:14:17]*** Stop cut motor [15:14:17]*** Cut end [15:14:17]Read from MH i2c: 01 07 00 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: 01 07 00 FA 54 00 00 00 00 00 FF 0F 63 [15:14:17]process_action close_receipt done [15:14:17]requested_data is exist [15:14:17]produce_requested_data [15:14:17]requested_item fm.sn is exist - process it [15:14:17]wFMCommunicate request_size=4 [15:14:17]MH_SAM_APDU [15:14:17]CAPDU: 80 11 00 00 [15:14:17]Write to MH i2c: E2 08 00 FB 54 80 11 00 00 00 00 00 00 C9 [15:14:17]Write i2c OK [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: E2 [15:14:17]MH_I2C_Read... [15:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:17]Read from MH i2c: E2 17 00 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: E2 17 00 FB 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 25 [15:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [15:14:17]wFMCommunicate OK [15:14:17]requested_item fd.num is exist - process it [15:14:17]SAM_PROTO_GetFieldsCounters [15:14:17]wFMCommunicate request_size=4 [15:14:17]MH_SAM_APDU [15:14:17]CAPDU: 80 13 00 00 [15:14:17]Write to MH i2c: E2 08 00 FC 54 80 13 00 00 00 00 00 00 CC [15:14:17]Write i2c OK [15:14:17]MH_I2C_Read... [15:14:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:17]Read from MH i2c: E2 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: E2 62 00 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: E2 62 00 FC 54 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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 7D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [15:14: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 7D 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:17]wFMCommunicate OK [15:14:17]SAM_PROTO_GetFieldsCounters done [15:14:17]requested_item shift.num is exist - process it [15:14:17]requested_item shift.opened is exist - process it [15:14:17]req_shift_opened [15:14:17]FM_GetShiftState [15:14:17]SAM_PROTO_GetShiftState [15:14:17]wFMCommunicate request_size=4 [15:14:17]MH_SAM_APDU [15:14:17]CAPDU: 80 13 01 00 [15:14:17]Write to MH i2c: E2 08 00 FD 54 80 13 01 00 00 00 00 00 CE [15:14:17]Write i2c OK [15:14:17]MH_I2C_Read... [15:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:17]Read from MH i2c: E2 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: E2 0E 00 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: E2 0E 00 FD 54 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 0B [15:14:17]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [15:14:17]wFMCommunicate OK [15:14:17]SAM_PROTO_GetShiftState done [15:14:17]FM_GetShiftState done [15:14:17]req_shift_opened done [15:14:17]requested_item shift.open_date is exist - process it [15:14:17]req_shift_open_date [15:14:17]req_shift_open_date done [15:14:17]produce_requested_data done [15:14:17]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69245,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [15:14:17]process_action_free close_receipt [15:14:17]json_value_free [15:14:17]json_value_free done [15:14:17]process_json_proto returns [15:14:17]Send response to host [15:14:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69245,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [15:14:17]free response buf [15:14:17]execute_script done [15:14:17]execute_script returns [15:14:17]free content buf [15:14:17]Sock 7.Close socket [15:14:17]Sock 7.Thread stoped [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:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:43]accept exits with 9 [15:34:43]New connection [15:34:43]New thread 3066785124 created [15:34:43]Thread 3066641764 joined [15:34:43]Waiting for new connection... [15:34:43] Sock 9.Parse request [15:34:43]Sock 9.Check first char [15:34:43]Sock 9.First char is OK [15:34:43]request: POST /json_proto HTTP/1.0 [15:34:43]Method: POST [15:34:43]URL: /json_proto [15:34:43]Method is POST - this is cgi request [15:34:43]url: /json_proto [15:34:43]query_string will be loaded in cgi processing [15:34:43]execute_cgi json_proto POST (null) [15:34:43]execute_cgi path=json_proto method=POST [15:34:43]POST find Content-Length [15:34:43]Host: 172.17.49.132:8080 [15:34:43]Content-Length: 911 [15:34:43]Content-Type: application/json [15:34:43] [15:34:43]POST finish read [15:34:43]Found Content-Length = 911 [15:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136581", "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 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.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" ] } } [15:34:43]execute_script... [15:34:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136581", "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 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.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" ] } } [15:34:43]POST & json_proto [15:34:43]process_json_proto [15:34:43]json parsed OK: [15:34:43]protocol is kg_v1.0 [15:34:43]action value=close_receipt [15:34:43]process_action close_receipt [15:34:43]cmd_close_receipt [15:34:43]MH_GetDate [15:34:43]Write to MH i2c: F0 00 00 FE 54 41 [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: F0 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: F0 09 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: F0 09 00 FE 54 00 1D 65 A6 66 E7 4B C0 64 2E [15:34:43]GetLastDocTimeStamp 1722179663 [15:34:43]current date 1722180893 [15:34:43]FM_GetShiftState [15:34:43]SAM_PROTO_GetShiftState [15:34:43]wFMCommunicate request_size=4 [15:34:43]MH_SAM_APDU [15:34:43]CAPDU: 80 13 01 00 [15:34:43]Write to MH i2c: E2 08 00 FF 54 80 13 01 00 00 00 00 00 D0 [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:43]Read from MH i2c: E2 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 0E 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 0E 00 FF 54 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 0D [15:34:43]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [15:34:43]wFMCommunicate OK [15:34:43]SAM_PROTO_GetShiftState done [15:34:43]FM_GetShiftState done [15:34:43]opened in 1722127251 [15:34:43]opened+sec_in_day 1722213651 [15:34:43]quantity*price = 8500 [15:34:43]sum+1 = 8501 [15:34:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310326 Вода Адыгене 1л б/г 1.000 * 35.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.75 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 129 28.07.2024 15:34 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69246 ФПД: 196083726231631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T153453&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69246&fm=196083726231631&tin=02508201610067®Number=0000000000092638&sum=12000 0 [15:34:44]StoreToDocumentArchive [15:34:44]shift 429 fd 69246 [15:34:44]save to /storage/0429/doc_00069246 [15:34:44]save last doc name /storage/0429/doc_00069246 to /storage/kkm_last_doc_name [15:34:44]save OK [15:34:44]Clear old archive folders... [15:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=385 [15:34:44]tlvbuf is 00A9BAB0 [15:34:44]SAM_PROTO_ClearQueue [15:34:44]wFMCommunicate request_size=4 [15:34:44]MH_SAM_APDU [15:34:44]CAPDU: 80 09 00 00 [15:34:44]Write to MH i2c: E2 08 00 0C 55 80 09 00 00 00 00 00 00 D3 [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:44]Read from MH i2c: E2 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 03 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 03 00 0C 55 00 90 00 D5 [15:34:44]RAPDU: 90 00 [15:34:44]wFMCommunicate OK [15:34:44]SAM_PROTO_ClearQueue done [15:34:44]KKMCreateOFDPacket [15:34:44]OFDProtocolAddRootSTLVToBuf [15:34:44]FM_MakeSignedData [15:34:44]FM_MakeSignedData [15:34:44]SAM_PROTO_SignData [15:34:44]wFMCommunicate request_size=4 [15:34:44]MH_SAM_APDU [15:34:44]CAPDU: 80 0D 01 02 [15:34:44]Write to MH i2c: E2 08 00 0D 55 80 0D 01 02 00 00 00 00 DB [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:44]Read from MH i2c: E2 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 03 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 03 00 0D 55 00 90 00 D6 [15:34:44]RAPDU: 90 00 [15:34:44]wFMCommunicate OK [15:34:44]wFMCommunicate request_size=255 [15:34:44]MH_SAM_APDU [15:34:44]CAPDU: 80 0D 02 02 FA 03 00 81 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 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 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 [15:34:44]Write to MH i2c: E2 02 01 0E 55 80 0D 02 02 FA 00 03 00 81 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 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 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 00 EE [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:45]Read from MH i2c: E2 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 03 00 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 03 00 0E 55 00 90 00 D7 [15:34:45]RAPDU: 90 00 [15:34:45]wFMCommunicate OK [15:34:45]wFMCommunicate request_size=144 [15:34:45]MH_SAM_APDU [15:34:45]CAPDU: 80 0D 02 02 8B 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 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 81 00 00 00 F4 03 04 00 1D 65 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7E 0E 01 00 35 04 06 00 B2 56 4C D9 28 4F [15:34:45]Write to MH i2c: E2 93 00 0F 55 80 0D 02 02 8B 00 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 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 81 00 00 00 F4 03 04 00 1D 65 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7E 0E 01 00 35 04 06 00 B2 56 4C D9 28 4F 00 00 92 [15:34:45]Write i2c OK [15:34:45]MH_I2C_Read... [15:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:45]Read from MH i2c: E2 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 03 00 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 03 00 0F 55 00 90 00 D8 [15:34:45]RAPDU: 90 00 [15:34:45]wFMCommunicate OK [15:34:45]wFMCommunicate request_size=4 [15:34:45]MH_SAM_APDU [15:34:45]CAPDU: 80 0D 03 02 [15:34:45]Write to MH i2c: E2 08 00 10 55 80 0D 03 02 00 00 00 00 E0 [15:34:45]Write i2c OK [15:34:45]MH_I2C_Read... [15:34:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:45]Read from MH i2c: E2 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 0B 00 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 0B 00 10 55 00 A9 03 00 02 14 2F 23 42 90 00 37 [15:34:45]RAPDU: A9 03 00 02 14 2F 23 42 90 00 [15:34:45]wFMCommunicate OK [15:34:45]SAM_PROTO_SignData done [15:34:45]FM_MakeSignedData done [15:34:45]CreateOFDProtocolMessage [15:34:45]wFMCommunicate request_size=4 [15:34:45]MH_SAM_APDU [15:34:45]CAPDU: 80 11 00 00 [15:34:45]Write to MH i2c: E2 08 00 11 55 80 11 00 00 00 00 00 00 E0 [15:34:45]Write i2c OK [15:34:45]MH_I2C_Read... [15:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:45]Read from MH i2c: E2 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 17 00 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 17 00 11 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3C [15:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [15:34:45]wFMCommunicate OK [15:34:45]CreateOFDProtocolMessage done [15:34:45]OFDSenderStorePacket 69246 [15:34:45]StoreOFDPacket docnum=69246 [15:34:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 95 01 00 00 FE 0E 8D 01 00 8D 5A 03 01 00 03 00 81 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 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 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 FB 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 81 00 00 00 F4 03 04 00 1D 65 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7E 0E 01 00 35 04 06 00 B2 56 4C D9 28 4F A9 03 00 02 14 2F 23 42 [15:34:45]CheckFolder [15:34:45]dirname=/storage/ofd_packets [15:34:45]CheckFolder done [15:34:45]ProducePacketName [15:34:45]name=ofd_packets/00069246 [15:34:45]NVStorageSaveData ofd_packets/00069246 [15:34:45]File name is /storage/ofd_packets/00069246 [15:34:45]Write 435 bytes [15:34:45]NVStorageSaveData done [15:34:45]OFDSenderStorePacket done [15:34:45]KKMCreateOFDPacket done [15:34:45]NVStorageSaveData kkm_last_timestamp [15:34:45]File name is /storage/kkm_last_timestamp [15:34:45]Write 4 bytes [15:34:45]NVStorageSaveData done [15:34:45]ExternCall_PrintAddStr [15:34:45]wPrintStart [15:34:45]Write to MH i2c: 01 00 00 12 55 67 [15:34:45]Write i2c OK [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: 01 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: 01 07 00 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: 01 07 00 12 55 00 00 00 00 00 FF 0F 7C [15:34:45]RasterBufferAndPrint [15:34:45]line Счет N : (3)136581 [15:34:45]line ИНН: 02508201610067 [15:34:45]line Контрольно-Кассовый Чек [15:34:45]line ПРОДАЖА [15:34:45]line Товар: 4870227272957 [15:34:45]line Лимонад Sunbel Тархун 1л [15:34:45]line 1.000 * 85.00 [15:34:45]line = 85.00 [15:34:45]line НДС 12% НСП 1% [15:34:45]line > о реализуемом товаре [15:34:45]line Товар: 4700000310326 [15:34:45]line Вода Адыгене 1л б/г [15:34:45]line 1.000 * 35.00 [15:34:45]line = 35.00 [15:34:45]line НДС 12% НСП 1% [15:34:45]line > о реализуемом товаре [15:34:45]line ИТОГО: 120.00 [15:34:45]line НСП 1% : 1.06 [15:34:45]line НДС 12% : 12.75 [15:34:45]line Наличными: 120.00 [15:34:45]line Безнал.: 0.00 [15:34:45]line Место: АЗС № 125 "Партнер Нефть" [15:34:45]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [15:34:45]line СНО: Общий режим [15:34:45]line Чек 129 28.07.2024 15:34 [15:34:45]line Смена: 429 ФФД: 1.0 [15:34:45]line ЗНМ: 0300000049 [15:34:45]line РНМ: 0000000000092638 [15:34:45]line Версия ККМ: 001 [15:34:45]line ФМ: 0000000000874949 [15:34:45]line ФД: 69246 [15:34:45]line ФПД: 196083726231631 [15:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T153453&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69246&fm=196083726231631&tin=02508201610067®Number=0000000000092638&sum=12000 [15:34:45]line 0 [15:34:45]OFD Sender: Processing packet 69246 [packets to send 19, broken 18] [15:34:45]ProducePacketName [15:34:45]name=ofd_packets/00069246 [15:34:45]OFD Sender: To server: pG, [15:34:45]CommunicateWithHost lk.salyk.kg:30040 [15:34:45]ConnectInit lk.salyk.kg [15:34:45]written 0, free lines is 4095 [15:34:45]Connected sock=10 [15:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 95 01 00 00 FE 0E 8D 01 00 8D 5A 03 01 00 03 00 81 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 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 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 FB 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 81 00 00 00 F4 03 04 00 1D 65 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7E 0E 01 00 35 04 06 00 B2 56 4C D9 28 4F A9 03 00 02 14 2F 23 42 [15:34:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 B7 AA 47 00 96 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 39 34 39 10 04 04 00 7E 0E 01 00 F4 03 04 00 8C 0B A6 66 B6 04 01 00 00 F8 DB 81 3E 2D 6C 95 CD [15:34:46]CommunicateWithHost err = 0 [15:34:46]CheckOFDResponse [15:34:46]1017 (14) - 77093643461234 [15:34:46]1041 (16) - 0000000000874949 [15:34:46]1040 (4) - 69246 [15:34:46]1012 (4) - 28.07.2024 09:12 [15:34:46]1206 (1) - 0 [15:34:46]OFD Sender: Remove packet 69246 [15:34:46]ProducePacketName [15:34:46]name=ofd_packets/00069246 [15:34:46]NVStorageDeleteData [15:34:46]Write to MH i2c: 01 00 00 40 55 95 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: 01 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: 01 07 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: 01 07 00 40 55 00 00 00 00 00 D5 0C 7D [15:34:46]RasterBufferAndPrint [15:34:46]line [15:34:46]line [15:34:46]line [15:34:46]line [15:34:46]line [15:34:46]written 0, free lines is 3294 [15:34:46]MH_Cut [15:34:46]Write to MH i2c: D1 01 00 47 55 01 6E [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: D1 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: D1 01 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: D1 01 00 47 55 00 6D [15:34:46]Write to MH i2c: 01 00 00 48 55 9D [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]OFD Sender: No OFD packet to send [15:34:46]*** Cut start [15:34:46]*** Partial cut [15:34:46]*** CUTSNS_PIN = 1 [15:34:47]*** CUTSNS_PIN = 0 [15:34:47]*** Brake cut motor [15:34:47]Read from MH i2c: 01 [15:34:47]MH_I2C_Read... [15:34:47]*** Stop cut motor [15:34:47]*** Cut end [15:34:47]Read from MH i2c: 01 07 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: 01 07 00 48 55 00 00 00 00 00 FF 0F B2 [15:34:47]process_action close_receipt done [15:34:47]requested_data is exist [15:34:47]produce_requested_data [15:34:47]requested_item fm.sn is exist - process it [15:34:47]wFMCommunicate request_size=4 [15:34:47]MH_SAM_APDU [15:34:47]CAPDU: 80 11 00 00 [15:34:47]Write to MH i2c: E2 08 00 49 55 80 11 00 00 00 00 00 00 18 [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:47]Read from MH i2c: E2 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 17 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 17 00 49 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 74 [15:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [15:34:47]wFMCommunicate OK [15:34:47]requested_item fd.num is exist - process it [15:34:47]SAM_PROTO_GetFieldsCounters [15:34:47]wFMCommunicate request_size=4 [15:34:47]MH_SAM_APDU [15:34:47]CAPDU: 80 13 00 00 [15:34:47]Write to MH i2c: E2 08 00 4A 55 80 13 00 00 00 00 00 00 1B [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:47]Read from MH i2c: E2 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 62 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 62 00 4A 55 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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 7E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [15:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 7E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:47]wFMCommunicate OK [15:34:47]SAM_PROTO_GetFieldsCounters done [15:34:47]requested_item shift.num is exist - process it [15:34:47]requested_item shift.opened is exist - process it [15:34:47]req_shift_opened [15:34:47]FM_GetShiftState [15:34:47]SAM_PROTO_GetShiftState [15:34:47]wFMCommunicate request_size=4 [15:34:47]MH_SAM_APDU [15:34:47]CAPDU: 80 13 01 00 [15:34:47]Write to MH i2c: E2 08 00 4B 55 80 13 01 00 00 00 00 00 1D [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:47]Read from MH i2c: E2 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 0E 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 0E 00 4B 55 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 5A [15:34:47]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [15:34:47]wFMCommunicate OK [15:34:47]SAM_PROTO_GetShiftState done [15:34:47]FM_GetShiftState done [15:34:47]req_shift_opened done [15:34:47]requested_item shift.open_date is exist - process it [15:34:47]req_shift_open_date [15:34:47]req_shift_open_date done [15:34:47]produce_requested_data done [15:34:47]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69246,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [15:34:47]process_action_free close_receipt [15:34:47]json_value_free [15:34:47]json_value_free done [15:34:47]process_json_proto returns [15:34:47]Send response to host [15:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69246,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [15:34:47]free response buf [15:34:47]execute_script done [15:34:47]execute_script returns [15:34:47]free content buf [15:34:47]Sock 9.Close socket [15:34:47]Sock 9.Thread stoped [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:12]accept exits with 7 [15:36:12]New connection [15:36:12]New thread 3066641764 created [15:36:12]Thread 3066785124 joined [15:36:12]Waiting for new connection... [15:36:12] Sock 7.Parse request [15:36:12]Sock 7.Check first char [15:36:12]Sock 7.First char is OK [15:36:12]request: POST /json_proto HTTP/1.0 [15:36:12]Method: POST [15:36:12]URL: /json_proto [15:36:12]Method is POST - this is cgi request [15:36:12]url: /json_proto [15:36:12]query_string will be loaded in cgi processing [15:36:12]execute_cgi json_proto POST (null) [15:36:12]execute_cgi path=json_proto method=POST [15:36:12]POST find Content-Length [15:36:12]Host: 172.17.49.132:8080 [15:36:12]Content-Length: 741 [15:36:12]Content-Type: application/json [15:36:12] [15:36:12]POST finish read [15:36:12]Found Content-Length = 741 [15:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136582", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.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" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:12]execute_script... [15:36:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136582", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.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" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:12]POST & json_proto [15:36:12]process_json_proto [15:36:12]json parsed OK: [15:36:12]protocol is kg_v1.0 [15:36:12]action value=close_receipt [15:36:12]process_action close_receipt [15:36:12]cmd_close_receipt [15:36:12]MH_GetDate [15:36:12]Write to MH i2c: F0 00 00 4C 55 90 [15:36:12]Write i2c OK [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: F0 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: F0 09 00 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: F0 09 00 4C 55 00 76 65 A6 66 E7 4B C0 64 D6 [15:36:12]GetLastDocTimeStamp 1722180893 [15:36:12]current date 1722180982 [15:36:12]FM_GetShiftState [15:36:12]SAM_PROTO_GetShiftState [15:36:12]wFMCommunicate request_size=4 [15:36:12]MH_SAM_APDU [15:36:12]CAPDU: 80 13 01 00 [15:36:12]Write to MH i2c: E2 08 00 4D 55 80 13 01 00 00 00 00 00 1F [15:36:12]Write i2c OK [15:36:12]MH_I2C_Read... [15:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:12]Read from MH i2c: E2 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: E2 0E 00 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: E2 0E 00 4D 55 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 5C [15:36:12]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [15:36:12]wFMCommunicate OK [15:36:12]SAM_PROTO_GetShiftState done [15:36:12]FM_GetShiftState done [15:36:12]opened in 1722127251 [15:36:12]opened+sec_in_day 1722213651 [15:36:12]quantity*price = 11100 [15:36:12]sum+1 = 11101 [15:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 0.00 Безнал.: 111.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 130 28.07.2024 15:36 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874949 ФД: 69247 ФПД: 135091076185473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T153622&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69247&fm=135091076185473&tin=02508201610067®Number=0000000000092638&sum=11100 0 [15:36:13]StoreToDocumentArchive [15:36:13]shift 429 fd 69247 [15:36:13]save to /storage/0429/doc_00069247 [15:36:13]save last doc name /storage/0429/doc_00069247 to /storage/kkm_last_doc_name [15:36:13]save OK [15:36:13]Clear old archive folders... [15:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=266 [15:36:13]tlvbuf is 00B86460 [15:36:13]SAM_PROTO_ClearQueue [15:36:13]wFMCommunicate request_size=4 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 09 00 00 [15:36:13]Write to MH i2c: E2 08 00 5A 55 80 09 00 00 00 00 00 00 21 [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:13]Read from MH i2c: E2 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 03 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 03 00 5A 55 00 90 00 23 [15:36:13]RAPDU: 90 00 [15:36:13]wFMCommunicate OK [15:36:13]SAM_PROTO_ClearQueue done [15:36:13]KKMCreateOFDPacket [15:36:13]OFDProtocolAddRootSTLVToBuf [15:36:13]FM_MakeSignedData [15:36:13]FM_MakeSignedData [15:36:13]SAM_PROTO_SignData [15:36:13]wFMCommunicate request_size=4 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 0D 01 02 [15:36:13]Write to MH i2c: E2 08 00 5B 55 80 0D 01 02 00 00 00 00 29 [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:13]Read from MH i2c: E2 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 03 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 03 00 5B 55 00 90 00 24 [15:36:13]RAPDU: 90 00 [15:36:13]wFMCommunicate OK [15:36:13]wFMCommunicate request_size=255 [15:36:13]MH_SAM_APDU [15:36:13]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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 76 65 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 [15:36:13]Write to MH i2c: E2 02 01 5C 55 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 76 65 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 00 00 5E [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:14]Read from MH i2c: E2 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 03 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 03 00 5C 55 00 90 00 25 [15:36:14]RAPDU: 90 00 [15:36:14]wFMCommunicate OK [15:36:14]wFMCommunicate request_size=25 [15:36:14]MH_SAM_APDU [15:36:14]CAPDU: 80 0D 02 02 14 34 39 10 04 04 00 7F 0E 01 00 35 04 06 00 7A DD 57 9B BD 81 [15:36:14]Write to MH i2c: E2 1C 00 5D 55 80 0D 02 02 14 00 34 39 10 04 04 00 7F 0E 01 00 35 04 06 00 7A DD 57 9B BD 81 00 00 2D [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:14]Read from MH i2c: E2 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 03 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 03 00 5D 55 00 90 00 26 [15:36:14]RAPDU: 90 00 [15:36:14]wFMCommunicate OK [15:36:14]wFMCommunicate request_size=4 [15:36:14]MH_SAM_APDU [15:36:14]CAPDU: 80 0D 03 02 [15:36:14]Write to MH i2c: E2 08 00 5E 55 80 0D 03 02 00 00 00 00 2E [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:14]Read from MH i2c: E2 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 0B 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 0B 00 5E 55 00 34 25 9F DB 83 AD E8 6F 90 00 89 [15:36:14]RAPDU: 34 25 9F DB 83 AD E8 6F 90 00 [15:36:14]wFMCommunicate OK [15:36:14]SAM_PROTO_SignData done [15:36:14]FM_MakeSignedData done [15:36:14]CreateOFDProtocolMessage [15:36:14]wFMCommunicate request_size=4 [15:36:14]MH_SAM_APDU [15:36:14]CAPDU: 80 11 00 00 [15:36:14]Write to MH i2c: E2 08 00 5F 55 80 11 00 00 00 00 00 00 2E [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:14]Read from MH i2c: E2 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 17 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 17 00 5F 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 8A [15:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [15:36:14]wFMCommunicate OK [15:36:14]CreateOFDProtocolMessage done [15:36:14]OFDSenderStorePacket 69247 [15:36:14]StoreOFDPacket docnum=69247 [15:36:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 1E 01 00 00 D4 41 16 01 89 71 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 76 65 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7F 0E 01 00 35 04 06 00 7A DD 57 9B BD 81 34 25 9F DB 83 AD E8 6F [15:36:14]CheckFolder [15:36:14]dirname=/storage/ofd_packets [15:36:14]CheckFolder done [15:36:14]ProducePacketName [15:36:14]name=ofd_packets/00069247 [15:36:14]NVStorageSaveData ofd_packets/00069247 [15:36:14]File name is /storage/ofd_packets/00069247 [15:36:14]Write 316 bytes [15:36:14]NVStorageSaveData done [15:36:14]OFDSenderStorePacket done [15:36:14]KKMCreateOFDPacket done [15:36:14]NVStorageSaveData kkm_last_timestamp [15:36:14]File name is /storage/kkm_last_timestamp [15:36:14]Write 4 bytes [15:36:14]NVStorageSaveData done [15:36:14]ExternCall_PrintAddStr [15:36:14]wPrintStart [15:36:14]Write to MH i2c: 01 00 00 60 55 B5 [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: 01 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: 01 07 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: 01 07 00 60 55 00 00 00 00 00 FF 0F CA [15:36:14]RasterBufferAndPrint [15:36:14]line Счет N : (3)136582 [15:36:14]line ИНН: 02508201610067 [15:36:14]line Контрольно-Кассовый Чек [15:36:14]line ПРОДАЖА [15:36:14]line Товар: 4870001570071 [15:36:14]line Напиток Pepsi 1л [15:36:14]line 1.000 * 111.00 [15:36:14]line = 111.00 [15:36:14]line НДС 12% НСП 1% [15:36:14]line > о реализуемом товаре [15:36:14]line ИТОГО: 111.00 [15:36:14]line НСП 1% : 0.98 [15:36:14]line НДС 12% : 11.79 [15:36:14]line Наличными: 0.00 [15:36:14]line Безнал.: 111.00 [15:36:14]line Место: АЗС № 125 "Партнер Нефть" [15:36:14]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [15:36:14]line СНО: Общий режим [15:36:14]line Чек 130 28.07.2024 15:36 [15:36:14]line Смена: 429 ФФД: 1.0 [15:36:14]line ЗНМ: 0300000049 [15:36:14]line РНМ: 0000000000092638 [15:36:14]line Версия ККМ: 001 [15:36:14]line Платежная система: Mbank [15:36:14]line ФМ: 0000000000874949 [15:36:14]line ФД: 69247 [15:36:14]line ФПД: 135091076185473 [15:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T153622&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69247&fm=135091076185473&tin=02508201610067®Number=0000000000092638&sum=11100 [15:36:14]OFD Sender: Processing packet 69247 [packets to send 19, broken 18] [15:36:14]ProducePacketName [15:36:14]name=ofd_packets/00069247 [15:36:14]OFD Sender: To server: pG, [15:36:14]CommunicateWithHost lk.salyk.kg:30040 [15:36:14]ConnectInit lk.salyk.kg [15:36:14]line 0 [15:36:14]written 0, free lines is 4095 [15:36:14]Connected sock=10 [15:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 1E 01 00 00 D4 41 16 01 89 71 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 76 65 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7F 0E 01 00 35 04 06 00 7A DD 57 9B BD 81 34 25 9F DB 83 AD E8 6F [15:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 72 22 47 00 10 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 7F 0E 01 00 F4 03 04 00 E5 0B A6 66 B6 04 01 00 00 B7 07 46 23 4F F4 F1 0D [15:36:14]CommunicateWithHost err = 0 [15:36:14]CheckOFDResponse [15:36:14]1017 (14) - 77093643461234 [15:36:14]1041 (16) - 0000000000874949 [15:36:14]1040 (4) - 69247 [15:36:14]1012 (4) - 28.07.2024 09:14 [15:36:14]1206 (1) - 0 [15:36:14]OFD Sender: Remove packet 69247 [15:36:14]ProducePacketName [15:36:14]name=ofd_packets/00069247 [15:36:14]NVStorageDeleteData [15:36:15]Write to MH i2c: 01 00 00 89 55 DE [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: 01 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: 01 07 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: 01 07 00 89 55 00 00 00 00 00 09 0D FB [15:36:15]RasterBufferAndPrint [15:36:15]line [15:36:15]line [15:36:15]line [15:36:15]line [15:36:15]line [15:36:15]written 0, free lines is 3347 [15:36:15]MH_Cut [15:36:15]Write to MH i2c: D1 01 00 90 55 01 B7 [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: D1 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: D1 01 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: D1 01 00 90 55 00 B6 [15:36:15]Write to MH i2c: 01 00 00 91 55 E6 [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]OFD Sender: No OFD packet to send [15:36:15]*** Cut start [15:36:15]*** Partial cut [15:36:15]*** CUTSNS_PIN = 1 [15:36:15]*** CUTSNS_PIN = 0 [15:36:15]*** Brake cut motor [15:36:16]Read from MH i2c: 01 [15:36:16]MH_I2C_Read... [15:36:16]*** Stop cut motor [15:36:16]*** Cut end [15:36:16]Read from MH i2c: 01 07 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 07 00 91 55 00 00 00 00 00 FF 0F FB [15:36:16]process_action close_receipt done [15:36:16]requested_data is exist [15:36:16]produce_requested_data [15:36:16]requested_item fm.sn is exist - process it [15:36:16]wFMCommunicate request_size=4 [15:36:16]MH_SAM_APDU [15:36:16]CAPDU: 80 11 00 00 [15:36:16]Write to MH i2c: E2 08 00 92 55 80 11 00 00 00 00 00 00 61 [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:16]Read from MH i2c: E2 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 17 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 17 00 92 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 BD [15:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [15:36:16]wFMCommunicate OK [15:36:16]requested_item fd.num is exist - process it [15:36:16]SAM_PROTO_GetFieldsCounters [15:36:16]wFMCommunicate request_size=4 [15:36:16]MH_SAM_APDU [15:36:16]CAPDU: 80 13 00 00 [15:36:16]Write to MH i2c: E2 08 00 93 55 80 13 00 00 00 00 00 00 64 [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:16]Read from MH i2c: E2 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 62 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 62 00 93 55 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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 7F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [15:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 7F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:16]wFMCommunicate OK [15:36:16]SAM_PROTO_GetFieldsCounters done [15:36:16]requested_item shift.num is exist - process it [15:36:16]requested_item shift.opened is exist - process it [15:36:16]req_shift_opened [15:36:16]FM_GetShiftState [15:36:16]SAM_PROTO_GetShiftState [15:36:16]wFMCommunicate request_size=4 [15:36:16]MH_SAM_APDU [15:36:16]CAPDU: 80 13 01 00 [15:36:16]Write to MH i2c: E2 08 00 94 55 80 13 01 00 00 00 00 00 66 [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:16]Read from MH i2c: E2 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 0E 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 0E 00 94 55 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A3 [15:36:16]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [15:36:16]wFMCommunicate OK [15:36:16]SAM_PROTO_GetShiftState done [15:36:16]FM_GetShiftState done [15:36:16]req_shift_opened done [15:36:16]requested_item shift.open_date is exist - process it [15:36:16]req_shift_open_date [15:36:16]req_shift_open_date done [15:36:16]produce_requested_data done [15:36:16]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69247,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [15:36:16]process_action_free close_receipt [15:36:16]json_value_free [15:36:16]json_value_free done [15:36:16]process_json_proto returns [15:36:16]Send response to host [15:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69247,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [15:36:16]free response buf [15:36:16]execute_script done [15:36:16]execute_script returns [15:36:16]free content buf [15:36:16]Sock 7.Close socket [15:36:16]Sock 7.Thread stoped [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:35]OFD Sender: No OFD packet to send [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:44]accept exits with 9 [15:41:44]New connection [15:41:44]New thread 3066785124 created [15:41:44]Thread 3066641764 joined [15:41:44]Waiting for new connection... [15:41:44] Sock 9.Parse request [15:41:44]Sock 9.Check first char [15:41:44]Sock 9.First char is OK [15:41:44]request: POST /json_proto HTTP/1.0 [15:41:44]Method: POST [15:41:44]URL: /json_proto [15:41:44]Method is POST - this is cgi request [15:41:44]url: /json_proto [15:41:44]query_string will be loaded in cgi processing [15:41:44]execute_cgi json_proto POST (null) [15:41:44]execute_cgi path=json_proto method=POST [15:41:44]POST find Content-Length [15:41:44]Host: 172.17.49.132:8080 [15:41:44]Content-Length: 977 [15:41:44]Content-Type: application/json [15:41:44] [15:41:44]POST finish read [15:41:44]Found Content-Length = 977 [15:41:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136583", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.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" : 246.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:44]execute_script... [15:41:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136583", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.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" : 246.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:44]POST & json_proto [15:41:44]process_json_proto [15:41:44]json parsed OK: [15:41:44]protocol is kg_v1.0 [15:41:44]action value=close_receipt [15:41:44]process_action close_receipt [15:41:44]cmd_close_receipt [15:41:44]MH_GetDate [15:41:44]Write to MH i2c: F0 00 00 95 55 D9 [15:41:44]Write i2c OK [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: F0 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: F0 09 00 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: F0 09 00 95 55 00 C2 66 A6 66 E7 4B C0 64 6C [15:41:44]GetLastDocTimeStamp 1722180982 [15:41:44]current date 1722181314 [15:41:44]FM_GetShiftState [15:41:44]SAM_PROTO_GetShiftState [15:41:44]wFMCommunicate request_size=4 [15:41:44]MH_SAM_APDU [15:41:44]CAPDU: 80 13 01 00 [15:41:44]Write to MH i2c: E2 08 00 96 55 80 13 01 00 00 00 00 00 68 [15:41:44]Write i2c OK [15:41:44]MH_I2C_Read... [15:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:44]Read from MH i2c: E2 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 0E 00 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 0E 00 96 55 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A5 [15:41:44]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [15:41:44]wFMCommunicate OK [15:41:44]SAM_PROTO_GetShiftState done [15:41:44]FM_GetShiftState done [15:41:44]opened in 1722127251 [15:41:44]opened+sec_in_day 1722213651 [15:41:44]quantity*price = 13500 [15:41:44]sum+1 = 13501 [15:41:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 246.00 НСП 1% : 2.17 НДС 12% : 26.13 Наличными: 0.00 Безнал.: 246.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 131 28.07.2024 15:41 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874949 ФД: 69248 ФПД: 202306330727268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T154154&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69248&fm=202306330727268&tin=02508201610067®Number=0000000000092638&sum=24600 0 [15:41:45]StoreToDocumentArchive [15:41:45]shift 429 fd 69248 [15:41:45]save to /storage/0429/doc_00069248 [15:41:45]save last doc name /storage/0429/doc_00069248 to /storage/kkm_last_doc_name [15:41:45]save OK [15:41:45]Clear old archive folders... [15:41:45]ProcessDocumentItem done err = 0, tmpTLVsize=368 [15:41:45]tlvbuf is 00A378D0 [15:41:45]SAM_PROTO_ClearQueue [15:41:45]wFMCommunicate request_size=4 [15:41:45]MH_SAM_APDU [15:41:45]CAPDU: 80 09 00 00 [15:41:45]Write to MH i2c: E2 08 00 A3 55 80 09 00 00 00 00 00 00 6A [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:45]Read from MH i2c: E2 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: E2 03 00 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: E2 03 00 A3 55 00 90 00 6C [15:41:45]RAPDU: 90 00 [15:41:45]wFMCommunicate OK [15:41:45]SAM_PROTO_ClearQueue done [15:41:45]KKMCreateOFDPacket [15:41:45]OFDProtocolAddRootSTLVToBuf [15:41:45]FM_MakeSignedData [15:41:45]FM_MakeSignedData [15:41:45]SAM_PROTO_SignData [15:41:45]wFMCommunicate request_size=4 [15:41:45]MH_SAM_APDU [15:41:45]CAPDU: 80 0D 01 02 [15:41:45]Write to MH i2c: E2 08 00 A4 55 80 0D 01 02 00 00 00 00 72 [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 A4 55 00 90 00 6D [15:41:46]RAPDU: 90 00 [15:41:46]wFMCommunicate OK [15:41:46]wFMCommunicate request_size=255 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 0D 02 02 FA 03 00 70 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 [15:41:46]Write to MH i2c: E2 02 01 A5 55 80 0D 02 02 FA 00 03 00 70 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 00 00 F8 [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 A5 55 00 90 00 6E [15:41:46]RAPDU: 90 00 [15:41:46]wFMCommunicate OK [15:41:46]wFMCommunicate request_size=127 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 0D 02 02 7A 03 06 00 35 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C2 66 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 80 0E 01 00 35 04 06 00 B7 FF 1C FA 93 64 [15:41:46]Write to MH i2c: E2 82 00 A6 55 80 0D 02 02 7A 00 03 06 00 35 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C2 66 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 80 0E 01 00 35 04 06 00 B7 FF 1C FA 93 64 00 00 26 [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 03 00 A6 55 00 90 00 6F [15:41:46]RAPDU: 90 00 [15:41:46]wFMCommunicate OK [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 0D 03 02 [15:41:46]Write to MH i2c: E2 08 00 A7 55 80 0D 03 02 00 00 00 00 77 [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 0B 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 0B 00 A7 55 00 8C DA 8C 1F 27 76 B9 F1 90 00 D0 [15:41:46]RAPDU: 8C DA 8C 1F 27 76 B9 F1 90 00 [15:41:46]wFMCommunicate OK [15:41:46]SAM_PROTO_SignData done [15:41:46]FM_MakeSignedData done [15:41:46]CreateOFDProtocolMessage [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 11 00 00 [15:41:46]Write to MH i2c: E2 08 00 A8 55 80 11 00 00 00 00 00 00 77 [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 17 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 17 00 A8 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D3 [15:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [15:41:46]wFMCommunicate OK [15:41:46]CreateOFDProtocolMessage done [15:41:46]OFDSenderStorePacket 69248 [15:41:46]StoreOFDPacket docnum=69248 [15:41:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 84 01 00 00 AA CF 7C 01 6D 43 5A 03 01 00 03 00 70 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C2 66 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 80 0E 01 00 35 04 06 00 B7 FF 1C FA 93 64 8C DA 8C 1F 27 76 B9 F1 [15:41:46]CheckFolder [15:41:46]dirname=/storage/ofd_packets [15:41:46]CheckFolder done [15:41:46]ProducePacketName [15:41:46]name=ofd_packets/00069248 [15:41:46]NVStorageSaveData ofd_packets/00069248 [15:41:46]File name is /storage/ofd_packets/00069248 [15:41:46]Write 418 bytes [15:41:46]NVStorageSaveData done [15:41:46]OFDSenderStorePacket done [15:41:46]KKMCreateOFDPacket done [15:41:46]NVStorageSaveData kkm_last_timestamp [15:41:46]File name is /storage/kkm_last_timestamp [15:41:46]Write 4 bytes [15:41:46]NVStorageSaveData done [15:41:46]ExternCall_PrintAddStr [15:41:46]wPrintStart [15:41:46]Write to MH i2c: 01 00 00 A9 55 FE [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: 01 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: 01 07 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: 01 07 00 A9 55 00 00 00 00 00 FF 0F 13 [15:41:46]RasterBufferAndPrint [15:41:46]line Счет N : (3)136583 [15:41:46]line ИНН: 02508201610067 [15:41:46]line Контрольно-Кассовый Чек [15:41:46]line ПРОДАЖА [15:41:46]line Товар: 48745000 [15:41:46]line Сигареты Winston Purple Mix [15:41:46]line 1.000 * 135.00 [15:41:46]line = 135.00 [15:41:46]line НДС 12% НСП 1% [15:41:46]line > о реализуемом товаре [15:41:46]line Товар: 4870001570071 [15:41:46]line Напиток Pepsi 1л [15:41:46]line 1.000 * 111.00 [15:41:46]line = 111.00 [15:41:46]line НДС 12% НСП 1% [15:41:46]line > о реализуемом товаре [15:41:46]line ИТОГО: 246.00 [15:41:46]line НСП 1% : 2.17 [15:41:46]line НДС 12% : 26.13 [15:41:46]line Наличными: 0.00 [15:41:46]line Безнал.: 246.00 [15:41:46]line Место: АЗС № 125 "Партнер Нефть" [15:41:46]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [15:41:46]line СНО: Общий режим [15:41:46]line Чек 131 28.07.2024 15:41 [15:41:46]line Смена: 429 ФФД: 1.0 [15:41:46]line ЗНМ: 0300000049 [15:41:46]line РНМ: 0000000000092638 [15:41:46]line Версия ККМ: 001 [15:41:46]line Платежная система: Mbank [15:41:46]line ФМ: 0000000000874949 [15:41:46]line ФД: 69248 [15:41:46]line ФПД: 202306330727268 [15:41:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T154154&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69248&fm=202306330727268&tin=02508201610067®Number=0000000000092638&sum=24600 [15:41:46]line 0 [15:41:46]OFD Sender: Processing packet 69248 [packets to send 19, broken 18] [15:41:46]ProducePacketName [15:41:46]name=ofd_packets/00069248 [15:41:46]OFD Sender: To server: pG, [15:41:46]CommunicateWithHost lk.salyk.kg:30040 [15:41:46]ConnectInit lk.salyk.kg [15:41:46]written 0, free lines is 4095 [15:41:46]Connected sock=10 [15:41:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 84 01 00 00 AA CF 7C 01 6D 43 5A 03 01 00 03 00 70 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C2 66 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 80 0E 01 00 35 04 06 00 B7 FF 1C FA 93 64 8C DA 8C 1F 27 76 B9 F1 [15: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 39 34 39 4F 00 00 00 01 C7 47 00 5C 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 39 34 39 10 04 04 00 80 0E 01 00 F4 03 04 00 31 0D A6 66 B6 04 01 00 00 E8 3E 29 E3 C0 85 02 D9 [15:41:47]CommunicateWithHost err = 0 [15:41:47]CheckOFDResponse [15:41:47]1017 (14) - 77093643461234 [15:41:47]1041 (16) - 0000000000874949 [15:41:47]1040 (4) - 69248 [15:41:47]1012 (4) - 28.07.2024 09:19 [15:41:47]1206 (1) - 0 [15:41:47]OFD Sender: Remove packet 69248 [15:41:47]ProducePacketName [15:41:47]name=ofd_packets/00069248 [15:41:47]NVStorageDeleteData [15:41:47]Write to MH i2c: 01 00 00 D8 55 2D [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: 01 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: 01 07 00 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: 01 07 00 D8 55 00 00 00 00 00 BA 0C FA [15:41:47]RasterBufferAndPrint [15:41:47]line [15:41:47]line [15:41:47]line [15:41:47]line [15:41:47]line [15:41:47]written 0, free lines is 3267 [15:41:47]MH_Cut [15:41:47]Write to MH i2c: D1 01 00 DF 55 01 06 [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: D1 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: D1 01 00 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: D1 01 00 DF 55 00 05 [15:41:47]Write to MH i2c: 01 00 00 E0 55 35 [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:47]OFD Sender: No OFD packet to send [15:41:48]*** Cut start [15:41:48]*** Partial cut [15:41:48]*** CUTSNS_PIN = 1 [15:41:48]*** CUTSNS_PIN = 0 [15:41:48]*** Brake cut motor [15:41:48]Read from MH i2c: 01 [15:41:48]MH_I2C_Read... [15:41:48]*** Stop cut motor [15:41:48]*** Cut end [15:41:48]Read from MH i2c: 01 07 00 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: 01 07 00 E0 55 00 00 00 00 00 FF 0F 4A [15:41:48]process_action close_receipt done [15:41:48]requested_data is exist [15:41:48]produce_requested_data [15:41:48]requested_item fm.sn is exist - process it [15:41:48]wFMCommunicate request_size=4 [15:41:48]MH_SAM_APDU [15:41:48]CAPDU: 80 11 00 00 [15:41:48]Write to MH i2c: E2 08 00 E1 55 80 11 00 00 00 00 00 00 B0 [15:41:48]Write i2c OK [15:41:48]MH_I2C_Read... [15:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:48]Read from MH i2c: E2 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 17 00 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 17 00 E1 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 0C [15:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [15:41:48]wFMCommunicate OK [15:41:48]requested_item fd.num is exist - process it [15:41:48]SAM_PROTO_GetFieldsCounters [15:41:48]wFMCommunicate request_size=4 [15:41:48]MH_SAM_APDU [15:41:48]CAPDU: 80 13 00 00 [15:41:48]Write to MH i2c: E2 08 00 E2 55 80 13 00 00 00 00 00 00 B3 [15:41:48]Write i2c OK [15:41:48]MH_I2C_Read... [15:41:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:48]Read from MH i2c: E2 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 62 00 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 62 00 E2 55 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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 80 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [15:41:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 80 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:48]wFMCommunicate OK [15:41:48]SAM_PROTO_GetFieldsCounters done [15:41:48]requested_item shift.num is exist - process it [15:41:48]requested_item shift.opened is exist - process it [15:41:48]req_shift_opened [15:41:48]FM_GetShiftState [15:41:48]SAM_PROTO_GetShiftState [15:41:48]wFMCommunicate request_size=4 [15:41:48]MH_SAM_APDU [15:41:48]CAPDU: 80 13 01 00 [15:41:48]Write to MH i2c: E2 08 00 E3 55 80 13 01 00 00 00 00 00 B5 [15:41:48]Write i2c OK [15:41:48]MH_I2C_Read... [15:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:48]Read from MH i2c: E2 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 0E 00 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 0E 00 E3 55 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F2 [15:41:48]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [15:41:48]wFMCommunicate OK [15:41:48]SAM_PROTO_GetShiftState done [15:41:48]FM_GetShiftState done [15:41:48]req_shift_opened done [15:41:48]requested_item shift.open_date is exist - process it [15:41:48]req_shift_open_date [15:41:48]req_shift_open_date done [15:41:48]produce_requested_data done [15:41:48]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69248,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [15:41:48]process_action_free close_receipt [15:41:48]json_value_free [15:41:48]json_value_free done [15:41:48]process_json_proto returns [15:41:48]Send response to host [15:41:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69248,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [15:41:48]free response buf [15:41:48]execute_script done [15:41:48]execute_script returns [15:41:48]free content buf [15:41:48]Sock 9.Close socket [15:41:48]Sock 9.Thread stoped [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]accept exits with 7 [15:43:02]New connection [15:43:02]New thread 3066641764 created [15:43:02]Thread 3066785124 joined [15:43:02]Waiting for new connection... [15:43:02] Sock 7.Parse request [15:43:02]Sock 7.Check first char [15:43:02]Sock 7.First char is OK [15:43:02]request: POST /json_proto HTTP/1.0 [15:43:02]Method: POST [15:43:02]URL: /json_proto [15:43:02]Method is POST - this is cgi request [15:43:02]url: /json_proto [15:43:02]query_string will be loaded in cgi processing [15:43:02]execute_cgi json_proto POST (null) [15:43:02]execute_cgi path=json_proto method=POST [15:43:02]POST find Content-Length [15:43:02]Host: 172.17.49.132:8080 [15:43:02]Content-Length: 679 [15:43:02]Content-Type: application/json [15:43:02] [15:43:02]POST finish read [15:43:02]Found Content-Length = 679 [15:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136584", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:02]execute_script... [15:43:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136584", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:02]POST & json_proto [15:43:02]process_json_proto [15:43:02]json parsed OK: [15:43:02]protocol is kg_v1.0 [15:43:02]action value=close_receipt [15:43:02]process_action close_receipt [15:43:02]cmd_close_receipt [15:43:02]MH_GetDate [15:43:02]Write to MH i2c: F0 00 00 E4 55 28 [15:43:02]Write i2c OK [15:43:02]MH_I2C_Read... [15:43:02]Read from MH i2c: F0 [15:43:02]MH_I2C_Read... [15:43:02]Read from MH i2c: F0 09 00 [15:43:02]MH_I2C_Read... [15:43:02]Read from MH i2c: F0 09 00 E4 55 00 10 67 A6 66 E7 4B C0 64 0A [15:43:02]GetLastDocTimeStamp 1722181314 [15:43:02]current date 1722181392 [15:43:02]FM_GetShiftState [15:43:02]SAM_PROTO_GetShiftState [15:43:02]wFMCommunicate request_size=4 [15:43:02]MH_SAM_APDU [15:43:02]CAPDU: 80 13 01 00 [15:43:02]Write to MH i2c: E2 08 00 E5 55 80 13 01 00 00 00 00 00 B7 [15:43:02]Write i2c OK [15:43:02]MH_I2C_Read... [15:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:02]Read from MH i2c: E2 [15:43:02]MH_I2C_Read... [15:43:02]Read from MH i2c: E2 0E 00 [15:43:02]MH_I2C_Read... [15:43:02]Read from MH i2c: E2 0E 00 E5 55 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F4 [15:43:02]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [15:43:02]wFMCommunicate OK [15:43:02]SAM_PROTO_GetShiftState done [15:43:02]FM_GetShiftState done [15:43:02]opened in 1722127251 [15:43:02]opened+sec_in_day 1722213651 [15:43:02]quantity*price = 8000 [15:43:02]sum+1 = 8001 [15:43:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 132 28.07.2024 15:43 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69249 ФПД: 77326317025453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T154312&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69249&fm=77326317025453&tin=02508201610067®Number=0000000000092638&sum=8000 0 [15:43:03]StoreToDocumentArchive [15:43:03]shift 429 fd 69249 [15:43:03]save to /storage/0429/doc_00069249 [15:43:03]save last doc name /storage/0429/doc_00069249 to /storage/kkm_last_doc_name [15:43:03]save OK [15:43:03]Clear old archive folders... [15:43:03]ProcessDocumentItem done err = 0, tmpTLVsize=294 [15:43:03]tlvbuf is 00AB9860 [15:43:03]SAM_PROTO_ClearQueue [15:43:03]wFMCommunicate request_size=4 [15:43:03]MH_SAM_APDU [15:43:03]CAPDU: 80 09 00 00 [15:43:03]Write to MH i2c: E2 08 00 F2 55 80 09 00 00 00 00 00 00 B9 [15:43:03]Write i2c OK [15:43:03]MH_I2C_Read... [15:43:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:03]Read from MH i2c: E2 [15:43:03]MH_I2C_Read... [15:43:03]Read from MH i2c: E2 03 00 [15:43:03]MH_I2C_Read... [15:43:03]Read from MH i2c: E2 03 00 F2 55 00 90 00 BB [15:43:03]RAPDU: 90 00 [15:43:03]wFMCommunicate OK [15:43:03]SAM_PROTO_ClearQueue done [15:43:03]KKMCreateOFDPacket [15:43:03]OFDProtocolAddRootSTLVToBuf [15:43:03]FM_MakeSignedData [15:43:03]FM_MakeSignedData [15:43:03]SAM_PROTO_SignData [15:43:03]wFMCommunicate request_size=4 [15:43:03]MH_SAM_APDU [15:43:03]CAPDU: 80 0D 01 02 [15:43:03]Write to MH i2c: E2 08 00 F3 55 80 0D 01 02 00 00 00 00 C1 [15:43:03]Write i2c OK [15:43:03]MH_I2C_Read... [15:43:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:03]Read from MH i2c: E2 [15:43:03]MH_I2C_Read... [15:43:03]Read from MH i2c: E2 03 00 [15:43:03]MH_I2C_Read... [15:43:03]Read from MH i2c: E2 03 00 F3 55 00 90 00 BC [15:43:03]RAPDU: 90 00 [15:43:03]wFMCommunicate OK [15:43:03]wFMCommunicate request_size=255 [15:43:03]MH_SAM_APDU [15:43:03]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 10 67 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [15:43:03]Write to MH i2c: E2 02 01 F4 55 80 0D 02 02 FA 00 03 00 26 01 1E 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 10 67 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 78 [15:43:03]Write i2c OK [15:43:03]MH_I2C_Read... [15:43:04]Read from MH i2c: E2 [15:43:04]MH_I2C_Read... [15:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:04]Read from MH i2c: E2 03 00 [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: E2 03 00 F4 55 00 90 00 BD [15:43:04]RAPDU: 90 00 [15:43:04]wFMCommunicate OK [15:43:04]wFMCommunicate request_size=53 [15:43:04]MH_SAM_APDU [15:43:04]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 81 0E 01 00 35 04 06 00 46 53 EF A8 78 AD [15:43:04]Write to MH i2c: E2 38 00 F5 55 80 0D 02 02 30 00 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 81 0E 01 00 35 04 06 00 46 53 EF A8 78 AD 00 00 AA [15:43:04]Write i2c OK [15:43:04]MH_I2C_Read... [15:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:04]Read from MH i2c: E2 [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: E2 03 00 [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: E2 03 00 F5 55 00 90 00 BE [15:43:04]RAPDU: 90 00 [15:43:04]wFMCommunicate OK [15:43:04]wFMCommunicate request_size=4 [15:43:04]MH_SAM_APDU [15:43:04]CAPDU: 80 0D 03 02 [15:43:04]Write to MH i2c: E2 08 00 F6 55 80 0D 03 02 00 00 00 00 C6 [15:43:04]Write i2c OK [15:43:04]MH_I2C_Read... [15:43:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:04]Read from MH i2c: E2 [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: E2 0B 00 [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: E2 0B 00 F6 55 00 70 E8 79 49 95 16 BC 9D 90 00 E5 [15:43:04]RAPDU: 70 E8 79 49 95 16 BC 9D 90 00 [15:43:04]wFMCommunicate OK [15:43:04]SAM_PROTO_SignData done [15:43:04]FM_MakeSignedData done [15:43:04]CreateOFDProtocolMessage [15:43:04]wFMCommunicate request_size=4 [15:43:04]MH_SAM_APDU [15:43:04]CAPDU: 80 11 00 00 [15:43:04]Write to MH i2c: E2 08 00 F7 55 80 11 00 00 00 00 00 00 C6 [15:43:04]Write i2c OK [15:43:04]MH_I2C_Read... [15:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:04]Read from MH i2c: E2 [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: E2 17 00 [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: E2 17 00 F7 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 22 [15:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [15:43:04]wFMCommunicate OK [15:43:04]CreateOFDProtocolMessage done [15:43:04]OFDSenderStorePacket 69249 [15:43:04]StoreOFDPacket docnum=69249 [15:43:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3A 01 00 00 18 CC 32 01 E4 AF 5A 03 01 00 03 00 26 01 1E 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 10 67 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 81 0E 01 00 35 04 06 00 46 53 EF A8 78 AD 70 E8 79 49 95 16 BC 9D [15:43:04]CheckFolder [15:43:04]dirname=/storage/ofd_packets [15:43:04]CheckFolder done [15:43:04]ProducePacketName [15:43:04]name=ofd_packets/00069249 [15:43:04]NVStorageSaveData ofd_packets/00069249 [15:43:04]File name is /storage/ofd_packets/00069249 [15:43:04]Write 344 bytes [15:43:04]NVStorageSaveData done [15:43:04]OFDSenderStorePacket done [15:43:04]KKMCreateOFDPacket done [15:43:04]NVStorageSaveData kkm_last_timestamp [15:43:04]File name is /storage/kkm_last_timestamp [15:43:04]Write 4 bytes [15:43:04]NVStorageSaveData done [15:43:04]ExternCall_PrintAddStr [15:43:04]wPrintStart [15:43:04]Write to MH i2c: 01 00 00 F8 55 4D [15:43:04]Write i2c OK [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: 01 [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: 01 07 00 [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: 01 07 00 F8 55 00 00 00 00 00 FF 0F 62 [15:43:04]RasterBufferAndPrint [15:43:04]line Счет N : (3)136584 [15:43:04]line ИНН: 02508201610067 [15:43:04]line Контрольно-Кассовый Чек [15:43:04]line ПРОДАЖА [15:43:04]line Товар: 4700003010353 [15:43:04]line Напиток Let`s Go! с/с груша ПЭТ 1л [15:43:04]line 1.000 * 80.00 [15:43:04]line = 80.00 [15:43:04]line НДС 12% НСП 1% [15:43:04]line > о реализуемом товаре [15:43:04]line ИТОГО: 80.00 [15:43:04]line НСП 1% : 0.71 [15:43:04]line НДС 12% : 8.50 [15:43:04]line Наличными: 80.00 [15:43:04]line Безнал.: 0.00 [15:43:04]line Место: АЗС № 125 "Партнер Нефть" [15:43:04]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [15:43:04]line СНО: Общий режим [15:43:04]line Чек 132 28.07.2024 15:43 [15:43:04]line Смена: 429 ФФД: 1.0 [15:43:04]line ЗНМ: 0300000049 [15:43:04]line РНМ: 0000000000092638 [15:43:04]line Версия ККМ: 001 [15:43:04]line ФМ: 0000000000874949 [15:43:04]line ФД: 69249 [15:43:04]line ФПД: 77326317025453 [15:43:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T154312&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69249&fm=77326317025453&tin=02508201610067®Number=0000000000092638&sum=8000 [15:43:04]OFD Sender: Processing packet 69249 [packets to send 19, broken 18] [15:43:04]ProducePacketName [15:43:04]name=ofd_packets/00069249 [15:43:04]OFD Sender: To server: pG, [15:43:04]CommunicateWithHost lk.salyk.kg:30040 [15:43:04]ConnectInit lk.salyk.kg [15:43:04]line 0 [15:43:04]written 0, free lines is 4095 [15:43:04]Connected sock=10 [15:43:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3A 01 00 00 18 CC 32 01 E4 AF 5A 03 01 00 03 00 26 01 1E 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 10 67 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 81 0E 01 00 35 04 06 00 46 53 EF A8 78 AD 70 E8 79 49 95 16 BC 9D [15:43:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CF 36 47 00 9B 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 81 0E 01 00 F4 03 04 00 7F 0D A6 66 B6 04 01 00 00 BA B4 37 F9 4D 39 9C B6 [15:43:05]CommunicateWithHost err = 0 [15:43:05]CheckOFDResponse [15:43:05]1017 (14) - 77093643461234 [15:43:05]1041 (16) - 0000000000874949 [15:43:05]1040 (4) - 69249 [15:43:05]1012 (4) - 28.07.2024 09:21 [15:43:05]1206 (1) - 0 [15:43:05]OFD Sender: Remove packet 69249 [15:43:05]ProducePacketName [15:43:05]name=ofd_packets/00069249 [15:43:05]NVStorageDeleteData [15:43:05]Write to MH i2c: 01 00 00 21 56 77 [15:43:05]Write i2c OK [15:43:05]MH_I2C_Read... [15:43:05]Read from MH i2c: 01 [15:43:05]MH_I2C_Read... [15:43:05]Read from MH i2c: 01 07 00 [15:43:05]MH_I2C_Read... [15:43:05]Read from MH i2c: 01 07 00 21 56 00 00 00 00 00 08 0D 93 [15:43:05]RasterBufferAndPrint [15:43:05]line [15:43:05]line [15:43:05]line [15:43:05]line [15:43:05]line [15:43:05]written 0, free lines is 3342 [15:43:05]MH_Cut [15:43:05]Write to MH i2c: D1 01 00 28 56 01 50 [15:43:05]Write i2c OK [15:43:05]MH_I2C_Read... [15:43:05]Read from MH i2c: D1 [15:43:05]MH_I2C_Read... [15:43:05]Read from MH i2c: D1 01 00 [15:43:05]MH_I2C_Read... [15:43:05]Read from MH i2c: D1 01 00 28 56 00 4F [15:43:05]Write to MH i2c: 01 00 00 29 56 7F [15:43:05]Write i2c OK [15:43:05]MH_I2C_Read... [15:43:05]OFD Sender: No OFD packet to send [15:43:05]*** Cut start [15:43:05]*** Partial cut [15:43:05]*** CUTSNS_PIN = 1 [15:43:05]*** CUTSNS_PIN = 0 [15:43:06]*** Brake cut motor [15:43:06]Read from MH i2c: 01 [15:43:06]MH_I2C_Read... [15:43:06]*** Stop cut motor [15:43:06]*** Cut end [15:43:06]Read from MH i2c: 01 07 00 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: 01 07 00 29 56 00 00 00 00 00 FF 0F 94 [15:43:06]process_action close_receipt done [15:43:06]requested_data is exist [15:43:06]produce_requested_data [15:43:06]requested_item fm.sn is exist - process it [15:43:06]wFMCommunicate request_size=4 [15:43:06]MH_SAM_APDU [15:43:06]CAPDU: 80 11 00 00 [15:43:06]Write to MH i2c: E2 08 00 2A 56 80 11 00 00 00 00 00 00 FA [15:43:06]Write i2c OK [15:43:06]MH_I2C_Read... [15:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:06]Read from MH i2c: E2 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 17 00 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 17 00 2A 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 56 [15:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [15:43:06]wFMCommunicate OK [15:43:06]requested_item fd.num is exist - process it [15:43:06]SAM_PROTO_GetFieldsCounters [15:43:06]wFMCommunicate request_size=4 [15:43:06]MH_SAM_APDU [15:43:06]CAPDU: 80 13 00 00 [15:43:06]Write to MH i2c: E2 08 00 2B 56 80 13 00 00 00 00 00 00 FD [15:43:06]Write i2c OK [15:43:06]MH_I2C_Read... [15:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:06]Read from MH i2c: E2 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 62 00 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 62 00 2B 56 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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 81 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [15:43:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 81 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:06]wFMCommunicate OK [15:43:06]SAM_PROTO_GetFieldsCounters done [15:43:06]requested_item shift.num is exist - process it [15:43:06]requested_item shift.opened is exist - process it [15:43:06]req_shift_opened [15:43:06]FM_GetShiftState [15:43:06]SAM_PROTO_GetShiftState [15:43:06]wFMCommunicate request_size=4 [15:43:06]MH_SAM_APDU [15:43:06]CAPDU: 80 13 01 00 [15:43:06]Write to MH i2c: E2 08 00 2C 56 80 13 01 00 00 00 00 00 FF [15:43:06]Write i2c OK [15:43:06]MH_I2C_Read... [15:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:06]Read from MH i2c: E2 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 0E 00 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 0E 00 2C 56 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 3C [15:43:06]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [15:43:06]wFMCommunicate OK [15:43:06]SAM_PROTO_GetShiftState done [15:43:06]FM_GetShiftState done [15:43:06]req_shift_opened done [15:43:06]requested_item shift.open_date is exist - process it [15:43:06]req_shift_open_date [15:43:06]req_shift_open_date done [15:43:06]produce_requested_data done [15:43:06]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69249,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [15:43:06]process_action_free close_receipt [15:43:06]json_value_free [15:43:06]json_value_free done [15:43:06]process_json_proto returns [15:43:06]Send response to host [15:43:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69249,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [15:43:06]free response buf [15:43:06]execute_script done [15:43:06]execute_script returns [15:43:06]free content buf [15:43:06]Sock 7.Close socket [15:43:06]Sock 7.Thread stoped [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [22:14:30]ConnectInit Can't connect to host [22:14:34]OFD Sender: Processing packet 69250 [packets to send 46, broken 18] [22:14:34]ProducePacketName [22:14:34]name=ofd_packets/00069250 [22:14:34]OFD Sender: To server: pG, [22:14:34]CommunicateWithHost lk.salyk.kg:30040 [22:14:34]ConnectInit lk.salyk.kg [22:14:34]Connected sock=7 [22:14: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 39 34 39 3B 01 00 00 30 9D 33 01 48 70 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 54 6F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 82 0E 01 00 35 04 06 00 D1 8D EC B7 4E 1A 71 82 E9 7C 0B 45 17 73 [22:14:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 52 2A 47 00 CE 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 82 0E 01 00 F4 03 04 00 42 69 A6 66 B6 04 01 00 00 D4 17 FD 40 FD 8E 5F 2C [22:14:34]CommunicateWithHost err = 0 [22:14:34]CheckOFDResponse [22:14:34]1017 (14) - 77093643461234 [22:14:34]1041 (16) - 0000000000874949 [22:14:34]1040 (4) - 69250 [22:14:34]1012 (4) - 28.07.2024 15:52 [22:14:34]1206 (1) - 0 [22:14:34]OFD Sender: Remove packet 69250 [22:14:34]ProducePacketName [22:14:34]name=ofd_packets/00069250 [22:14:34]NVStorageDeleteData [22:14:35]OFD Sender: Processing packet 69251 [packets to send 45, broken 18] [22:14:35]ProducePacketName [22:14:35]name=ofd_packets/00069251 [22:14:35]OFD Sender: To server: pG, [22:14:35]CommunicateWithHost lk.salyk.kg:30040 [22:14:35]ConnectInit lk.salyk.kg [22:14:35]Connected sock=7 [22:14:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 9F 01 00 00 68 E0 97 01 65 2A 5A 03 01 00 03 00 8B 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 38 32 31 36 39 31 31 30 31 31 34 06 04 2D 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 31 30 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F7 6F A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 83 0E 01 00 35 04 06 00 1D CD 21 16 4D 4F 47 A1 80 95 DF 0C 57 E9 [22:14:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 61 F2 47 00 91 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 83 0E 01 00 F4 03 04 00 43 69 A6 66 B6 04 01 00 00 02 C9 7C 6F 1F 51 BE 8E [22:14:35]CommunicateWithHost err = 0 [22:14:35]CheckOFDResponse [22:14:35]1017 (14) - 77093643461234 [22:14:35]1041 (16) - 0000000000874949 [22:14:35]1040 (4) - 69251 [22:14:35]1012 (4) - 28.07.2024 15:52 [22:14:35]1206 (1) - 0 [22:14:35]OFD Sender: Remove packet 69251 [22:14:35]ProducePacketName [22:14:35]name=ofd_packets/00069251 [22:14:35]NVStorageDeleteData [22:14:36]OFD Sender: Processing packet 69252 [packets to send 44, broken 18] [22:14:36]ProducePacketName [22:14:36]name=ofd_packets/00069252 [22:14:36]OFD Sender: To server: pG, [22:14:36]CommunicateWithHost lk.salyk.kg:30040 [22:14:36]ConnectInit lk.salyk.kg [22:14:36]Connected sock=7 [22:14: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 39 34 39 18 03 00 00 0F 29 10 03 8A 90 5A 03 01 00 03 00 04 03 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 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 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F 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 7A 00 8A 04 0D 00 34 37 37 31 31 37 33 32 31 30 37 35 31 06 04 36 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 4A 65 67 61 20 D0 A1 D1 8B D1 80 20 D0 BF D0 BB D0 B0 D0 B2 D0 BB D0 B5 D0 BD D0 BD D1 8B D0 B9 20 32 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 5F 00 00 00 00 13 04 06 00 B4 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 13 00 00 00 00 07 04 06 00 28 B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 B3 70 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 84 0E 01 00 35 04 06 00 4B 9C 98 3D BD AB CD 00 83 CE A9 A6 9B 45 [22:14:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 91 1A 47 00 18 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 39 34 39 10 04 04 00 84 0E 01 00 F4 03 04 00 43 69 A6 66 B6 04 01 00 00 4F B6 07 59 C8 31 FC 66 [22:14:36]CommunicateWithHost err = 0 [22:14:36]CheckOFDResponse [22:14:36]1017 (14) - 77093643461234 [22:14:36]1041 (16) - 0000000000874949 [22:14:36]1040 (4) - 69252 [22:14:36]1012 (4) - 28.07.2024 15:52 [22:14:36]1206 (1) - 0 [22:14:36]OFD Sender: Remove packet 69252 [22:14:36]ProducePacketName [22:14:36]name=ofd_packets/00069252 [22:14:36]NVStorageDeleteData [22:14:37]OFD Sender: Processing packet 69253 [packets to send 43, broken 18] [22:14:37]ProducePacketName [22:14:37]name=ofd_packets/00069253 [22:14:37]OFD Sender: To server: pG, [22:14:37]CommunicateWithHost lk.salyk.kg:30040 [22:14:37]ConnectInit lk.salyk.kg [22:14:37]Connected sock=7 [22:14: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 39 34 39 88 01 00 00 43 B0 80 01 9B DE 5A 03 01 00 03 00 74 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC 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 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 3A 71 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 85 0E 01 00 35 04 06 00 F5 C7 F1 56 97 B1 44 0E 96 F6 6E AC 09 2E [22:14:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 F8 92 47 00 AC D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 85 0E 01 00 F4 03 04 00 44 69 A6 66 B6 04 01 00 00 C7 D4 1D EC 9B 26 D1 85 [22:14:37]CommunicateWithHost err = 0 [22:14:37]CheckOFDResponse [22:14:37]1017 (14) - 77093643461234 [22:14:37]1041 (16) - 0000000000874949 [22:14:37]1040 (4) - 69253 [22:14:37]1012 (4) - 28.07.2024 15:52 [22:14:37]1206 (1) - 0 [22:14:37]OFD Sender: Remove packet 69253 [22:14:37]ProducePacketName [22:14:37]name=ofd_packets/00069253 [22:14:37]NVStorageDeleteData [22:14:37]OFD Sender: Processing packet 69254 [packets to send 42, broken 18] [22:14:37]ProducePacketName [22:14:37]name=ofd_packets/00069254 [22:14:37]OFD Sender: To server: pG, [22:14:37]CommunicateWithHost lk.salyk.kg:30040 [22:14:37]ConnectInit lk.salyk.kg [22:14:37]Connected sock=7 [22:14: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 39 34 39 26 01 00 00 5D EB 1E 01 A0 F9 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3F 72 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 86 0E 01 00 35 04 06 00 72 83 8B 04 20 CB E4 CF A8 73 27 CC AF 28 [22:14:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 32 CE 47 00 C4 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 86 0E 01 00 F4 03 04 00 45 69 A6 66 B6 04 01 00 00 6F 76 81 36 38 91 62 BF [22:14:38]CommunicateWithHost err = 0 [22:14:38]CheckOFDResponse [22:14:38]1017 (14) - 77093643461234 [22:14:38]1041 (16) - 0000000000874949 [22:14:38]1040 (4) - 69254 [22:14:38]1012 (4) - 28.07.2024 15:52 [22:14:38]1206 (1) - 0 [22:14:38]OFD Sender: Remove packet 69254 [22:14:38]ProducePacketName [22:14:38]name=ofd_packets/00069254 [22:14:38]NVStorageDeleteData [22:14:38]OFD Sender: Processing packet 69255 [packets to send 41, broken 18] [22:14:38]ProducePacketName [22:14:38]name=ofd_packets/00069255 [22:14:38]OFD Sender: To server: pG, [22:14:38]CommunicateWithHost lk.salyk.kg:30040 [22:14:38]ConnectInit lk.salyk.kg [22:14:38]Connected sock=7 [22:14: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 39 34 39 19 01 00 00 03 FD 11 01 2E 39 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 8A 00 00 00 F4 03 04 00 7B 73 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 87 0E 01 00 35 04 06 00 BC 6E 3B 62 C1 6A 30 CF 58 E1 D3 79 7F 43 [22:14:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 1B 4B 47 00 0F 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 87 0E 01 00 F4 03 04 00 46 69 A6 66 B6 04 01 00 00 4C E9 31 7B D2 CF 68 EE [22:14:39]CommunicateWithHost err = 0 [22:14:39]CheckOFDResponse [22:14:39]1017 (14) - 77093643461234 [22:14:39]1041 (16) - 0000000000874949 [22:14:39]1040 (4) - 69255 [22:14:39]1012 (4) - 28.07.2024 15:52 [22:14:39]1206 (1) - 0 [22:14:39]OFD Sender: Remove packet 69255 [22:14:39]ProducePacketName [22:14:39]name=ofd_packets/00069255 [22:14:39]NVStorageDeleteData [22:14:39]OFD Sender: Processing packet 69256 [packets to send 40, broken 18] [22:14:39]ProducePacketName [22:14:39]name=ofd_packets/00069256 [22:14:39]OFD Sender: To server: pG, [22:14:39]CommunicateWithHost lk.salyk.kg:30040 [22:14:39]ConnectInit lk.salyk.kg [22:14:39]Connected sock=7 [22:14: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 39 34 39 8B 01 00 00 3D 40 83 01 86 55 5A 03 01 00 03 00 77 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 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 08 00 00 00 00 07 04 06 00 64 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 8B 00 00 00 F4 03 04 00 44 76 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 88 0E 01 00 35 04 06 00 8C ED 46 32 BF F1 33 11 0D BF 31 A5 F1 EC [22:14:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 23 0B 47 00 FC 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 88 0E 01 00 F4 03 04 00 47 69 A6 66 B6 04 01 00 00 D8 3D A5 19 ED 61 CB 47 [22:14:39]CommunicateWithHost err = 0 [22:14:39]CheckOFDResponse [22:14:39]1017 (14) - 77093643461234 [22:14:39]1041 (16) - 0000000000874949 [22:14:39]1040 (4) - 69256 [22:14:39]1012 (4) - 28.07.2024 15:52 [22:14:39]1206 (1) - 0 [22:14:39]OFD Sender: Remove packet 69256 [22:14:39]ProducePacketName [22:14:39]name=ofd_packets/00069256 [22:14:39]NVStorageDeleteData [22:14:40]OFD Sender: Processing packet 69257 [packets to send 39, broken 18] [22:14:40]ProducePacketName [22:14:40]name=ofd_packets/00069257 [22:14:40]OFD Sender: To server: pG, [22:14:40]CommunicateWithHost lk.salyk.kg:30040 [22:14:40]ConnectInit lk.salyk.kg [22:14:40]Connected sock=7 [22: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 39 34 39 8E 01 00 00 D3 5D 86 01 23 25 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC FF 00 00 00 00 13 04 06 00 DC FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 8F 78 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 89 0E 01 00 35 04 06 00 41 22 7C 64 4E EE E6 47 5A 91 BD FC 0A 4F [22: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 39 34 39 4F 00 00 00 3B 89 47 00 B1 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 39 34 39 10 04 04 00 89 0E 01 00 F4 03 04 00 48 69 A6 66 B6 04 01 00 00 57 2E A4 0C 7F 93 2F CC [22:14:40]CommunicateWithHost err = 0 [22:14:40]CheckOFDResponse [22:14:40]1017 (14) - 77093643461234 [22:14:40]1041 (16) - 0000000000874949 [22:14:40]1040 (4) - 69257 [22:14:40]1012 (4) - 28.07.2024 15:52 [22:14:40]1206 (1) - 0 [22:14:40]OFD Sender: Remove packet 69257 [22:14:40]ProducePacketName [22:14:40]name=ofd_packets/00069257 [22:14:40]NVStorageDeleteData [22:14:41]OFD Sender: Processing packet 69258 [packets to send 38, broken 18] [22:14:41]ProducePacketName [22:14:41]name=ofd_packets/00069258 [22:14:41]OFD Sender: To server: pG, [22:14:41]CommunicateWithHost lk.salyk.kg:30040 [22:14:41]ConnectInit lk.salyk.kg [22:14:41]Connected sock=9 [22:14: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 39 34 39 21 01 00 00 A5 9C 19 01 4C 18 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 D4 7B A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 8A 0E 01 00 35 04 06 00 3C B1 75 A9 DF 19 D9 AF 3F EE 47 4B 6B A2 [22:14:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 6D 46 47 00 20 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 8A 0E 01 00 F4 03 04 00 48 69 A6 66 B6 04 01 00 00 F1 51 AE 7A 7C FF 36 7C [22:14:41]CommunicateWithHost err = 0 [22:14:41]CheckOFDResponse [22:14:41]1017 (14) - 77093643461234 [22:14:41]1041 (16) - 0000000000874949 [22:14:41]1040 (4) - 69258 [22:14:41]1012 (4) - 28.07.2024 15:52 [22:14:41]1206 (1) - 0 [22:14:41]OFD Sender: Remove packet 69258 [22:14:41]ProducePacketName [22:14:41]name=ofd_packets/00069258 [22:14:41]NVStorageDeleteData [22:14:42]OFD Sender: Processing packet 69259 [packets to send 37, broken 18] [22:14:42]ProducePacketName [22:14:42]name=ofd_packets/00069259 [22:14:42]OFD Sender: To server: pG, [22:14:42]CommunicateWithHost lk.salyk.kg:30040 [22:14:42]ConnectInit lk.salyk.kg [22:14:42]Connected sock=7 [22:14: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 39 34 39 96 01 00 00 CD 10 8E 01 E2 13 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 9C 31 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 31 7D A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 8B 0E 01 00 35 04 06 00 16 7C DA C9 84 72 8B 3F 20 6B 29 68 BE EC [22:14:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 4C 7F 47 00 C7 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 8B 0E 01 00 F4 03 04 00 49 69 A6 66 B6 04 01 00 00 FB FD FE 11 E6 C7 CD C2 [22:14:42]CommunicateWithHost err = 0 [22:14:42]CheckOFDResponse [22:14:42]1017 (14) - 77093643461234 [22:14:42]1041 (16) - 0000000000874949 [22:14:42]1040 (4) - 69259 [22:14:42]1012 (4) - 28.07.2024 15:52 [22:14:42]1206 (1) - 0 [22:14:42]OFD Sender: Remove packet 69259 [22:14:42]ProducePacketName [22:14:42]name=ofd_packets/00069259 [22:14:42]NVStorageDeleteData [22:14:42]OFD Sender: Processing packet 69260 [packets to send 36, broken 18] [22:14:42]ProducePacketName [22:14:42]name=ofd_packets/00069260 [22:14:42]OFD Sender: To server: pG, [22:14:42]CommunicateWithHost lk.salyk.kg:30040 [22:14:42]ConnectInit lk.salyk.kg [22:14:42]Connected sock=7 [22:14: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 39 34 39 B8 01 00 00 E5 97 B0 01 EB 4D 5A 03 01 00 03 00 A4 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 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 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 A4 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 8F 00 00 00 F4 03 04 00 8B 82 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 8C 0E 01 00 35 04 06 00 6E E3 32 53 B0 F0 ED DF C0 4F FB 4C 32 A9 [22:14:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 1A 94 47 00 51 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 8C 0E 01 00 F4 03 04 00 4A 69 A6 66 B6 04 01 00 00 2D B0 35 36 24 61 6B AB [22:14:43]CommunicateWithHost err = 0 [22:14:43]CheckOFDResponse [22:14:43]1017 (14) - 77093643461234 [22:14:43]1041 (16) - 0000000000874949 [22:14:43]1040 (4) - 69260 [22:14:43]1012 (4) - 28.07.2024 15:52 [22:14:43]1206 (1) - 0 [22:14:43]OFD Sender: Remove packet 69260 [22:14:43]ProducePacketName [22:14:43]name=ofd_packets/00069260 [22:14:43]NVStorageDeleteData [22:14:43]OFD Sender: Processing packet 69261 [packets to send 35, broken 18] [22:14:43]ProducePacketName [22:14:43]name=ofd_packets/00069261 [22:14:43]OFD Sender: To server: pG, [22:14:43]CommunicateWithHost lk.salyk.kg:30040 [22:14:43]ConnectInit lk.salyk.kg [22:14:43]Connected sock=7 [22:14:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3C 01 00 00 EC 46 34 01 06 18 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 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 91 82 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 8D 0E 01 00 35 04 06 00 35 62 82 08 C8 70 BC 33 09 D5 45 1E 10 9C [22:14:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 D0 EF 47 00 AF 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 8D 0E 01 00 F4 03 04 00 4B 69 A6 66 B6 04 01 00 00 51 85 85 E5 C6 7A 78 9D [22:14:44]CommunicateWithHost err = 0 [22:14:44]CheckOFDResponse [22:14:44]1017 (14) - 77093643461234 [22:14:44]1041 (16) - 0000000000874949 [22:14:44]1040 (4) - 69261 [22:14:44]1012 (4) - 28.07.2024 15:52 [22:14:44]1206 (1) - 0 [22:14:44]OFD Sender: Remove packet 69261 [22:14:44]ProducePacketName [22:14:44]name=ofd_packets/00069261 [22:14:44]NVStorageDeleteData [22:14:44]OFD Sender: Processing packet 69262 [packets to send 34, broken 18] [22:14:44]ProducePacketName [22:14:44]name=ofd_packets/00069262 [22:14:44]OFD Sender: To server: pG, [22:14:44]CommunicateWithHost lk.salyk.kg:30040 [22:14:44]ConnectInit lk.salyk.kg [22:14:44]Connected sock=7 [22:14:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3A 01 00 00 82 CF 32 01 0D 15 5A 03 01 00 03 00 26 01 1E 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 E2 8E A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 8E 0E 01 00 35 04 06 00 26 1B 3C 7C 5C CC 91 FB 3E 72 C2 5A 4E 79 [22:14:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 24 6C 47 00 F2 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 8E 0E 01 00 F4 03 04 00 4C 69 A6 66 B6 04 01 00 00 AC A0 1E 9F 32 28 80 34 [22:14:44]CommunicateWithHost err = 0 [22:14:44]CheckOFDResponse [22:14:44]1017 (14) - 77093643461234 [22:14:44]1041 (16) - 0000000000874949 [22:14:44]1040 (4) - 69262 [22:14:44]1012 (4) - 28.07.2024 15:52 [22:14:44]1206 (1) - 0 [22:14:44]OFD Sender: Remove packet 69262 [22:14:44]ProducePacketName [22:14:44]name=ofd_packets/00069262 [22:14:44]NVStorageDeleteData [22:14:45]OFD Sender: Processing packet 69263 [packets to send 33, broken 18] [22:14:45]ProducePacketName [22:14:45]name=ofd_packets/00069263 [22:14:45]OFD Sender: To server: pG, [22:14:45]CommunicateWithHost lk.salyk.kg:30040 [22:14:45]ConnectInit lk.salyk.kg [22:14:45]Connected sock=7 [22:14:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 28 01 00 00 60 E2 20 01 8E 2A 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 36 36 35 36 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 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 C0 95 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 8F 0E 01 00 35 04 06 00 1A 9B 2B 86 8B 51 77 D6 7F 47 F3 B0 F9 46 [22:14:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 34 79 47 00 1E 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 8F 0E 01 00 F4 03 04 00 4D 69 A6 66 B6 04 01 00 00 59 09 20 CF 58 F1 C6 53 [22:14:45]CommunicateWithHost err = 0 [22:14:45]CheckOFDResponse [22:14:45]1017 (14) - 77093643461234 [22:14:45]1041 (16) - 0000000000874949 [22:14:45]1040 (4) - 69263 [22:14:45]1012 (4) - 28.07.2024 15:52 [22:14:45]1206 (1) - 0 [22:14:45]OFD Sender: Remove packet 69263 [22:14:45]ProducePacketName [22:14:45]name=ofd_packets/00069263 [22:14:45]NVStorageDeleteData [22:14:46]OFD Sender: Processing packet 69264 [packets to send 32, broken 18] [22:14:46]ProducePacketName [22:14:46]name=ofd_packets/00069264 [22:14:46]OFD Sender: To server: pG, [22:14:46]CommunicateWithHost lk.salyk.kg:30040 [22:14:46]ConnectInit lk.salyk.kg [22:14:46]Connected sock=7 [22:14:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 28 01 00 00 E4 11 20 01 04 D5 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 93 00 00 00 F4 03 04 00 07 96 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 90 0E 01 00 35 04 06 00 4F EA 86 89 12 A6 EB 68 5F D6 C2 30 2B EE [22:14:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 EF 5E 47 00 F8 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 90 0E 01 00 F4 03 04 00 4D 69 A6 66 B6 04 01 00 00 C9 D8 47 E4 46 53 BD DC [22:14:46]CommunicateWithHost err = 0 [22:14:46]CheckOFDResponse [22:14:46]1017 (14) - 77093643461234 [22:14:46]1041 (16) - 0000000000874949 [22:14:46]1040 (4) - 69264 [22:14:46]1012 (4) - 28.07.2024 15:52 [22:14:46]1206 (1) - 0 [22:14:46]OFD Sender: Remove packet 69264 [22:14:46]ProducePacketName [22:14:46]name=ofd_packets/00069264 [22:14:46]NVStorageDeleteData [22:14:47]OFD Sender: Processing packet 69265 [packets to send 31, broken 18] [22:14:47]ProducePacketName [22:14:47]name=ofd_packets/00069265 [22:14:47]OFD Sender: To server: pG, [22:14:47]CommunicateWithHost lk.salyk.kg:30040 [22:14:47]ConnectInit lk.salyk.kg [22:14:47]Connected sock=7 [22:14: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 39 34 39 26 01 00 00 64 5F 1E 01 A9 A3 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 25 97 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 91 0E 01 00 35 04 06 00 7F EF 9D 84 12 BC 83 A6 DE AC 6E DA C7 74 [22:14:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 AC 7B 47 00 1C 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 91 0E 01 00 F4 03 04 00 4E 69 A6 66 B6 04 01 00 00 63 CD 4B 9A 16 62 70 05 [22:14:47]CommunicateWithHost err = 0 [22:14:47]CheckOFDResponse [22:14:47]1017 (14) - 77093643461234 [22:14:47]1041 (16) - 0000000000874949 [22:14:47]1040 (4) - 69265 [22:14:47]1012 (4) - 28.07.2024 15:52 [22:14:47]1206 (1) - 0 [22:14:47]OFD Sender: Remove packet 69265 [22:14:47]ProducePacketName [22:14:47]name=ofd_packets/00069265 [22:14:47]NVStorageDeleteData [22:14:47]OFD Sender: Processing packet 69266 [packets to send 30, broken 18] [22:14:47]ProducePacketName [22:14:47]name=ofd_packets/00069266 [22:14:47]OFD Sender: To server: pG, [22:14:47]CommunicateWithHost lk.salyk.kg:30040 [22:14:47]ConnectInit lk.salyk.kg [22:14:47]Connected sock=7 [22:14: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 39 34 39 29 01 00 00 11 6E 21 01 D1 FF 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 39 32 06 04 23 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 72 65 65 6E 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 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 95 00 00 00 F4 03 04 00 6A 9A A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 92 0E 01 00 35 04 06 00 2B 89 ED 68 CB 38 A4 A2 C5 8E CF A8 08 B6 [22:14:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 FA 56 47 00 D2 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 92 0E 01 00 F4 03 04 00 4F 69 A6 66 B6 04 01 00 00 90 2F 62 5C 1F 26 6E 95 [22:14:48]CommunicateWithHost err = 0 [22:14:48]CheckOFDResponse [22:14:48]1017 (14) - 77093643461234 [22:14:48]1041 (16) - 0000000000874949 [22:14:48]1040 (4) - 69266 [22:14:48]1012 (4) - 28.07.2024 15:52 [22:14:48]1206 (1) - 0 [22:14:48]OFD Sender: Remove packet 69266 [22:14:48]ProducePacketName [22:14:48]name=ofd_packets/00069266 [22:14:48]NVStorageDeleteData [22:14:48]OFD Sender: Processing packet 69267 [packets to send 29, broken 18] [22:14:48]ProducePacketName [22:14:48]name=ofd_packets/00069267 [22:14:48]OFD Sender: To server: pG, [22:14:48]CommunicateWithHost lk.salyk.kg:30040 [22:14:48]ConnectInit lk.salyk.kg [22:14:48]Connected sock=7 [22:14: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 39 34 39 1D 01 00 00 19 23 15 01 59 58 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 7E 9D A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 93 0E 01 00 35 04 06 00 35 F6 44 99 12 BB 42 DF 64 9A D9 6A 17 A8 [22:14:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 37 E0 47 00 DC 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 39 34 39 10 04 04 00 93 0E 01 00 F4 03 04 00 50 69 A6 66 B6 04 01 00 00 9F 5F E8 BC C3 2B 73 B0 [22:14:49]CommunicateWithHost err = 0 [22:14:49]CheckOFDResponse [22:14:49]1017 (14) - 77093643461234 [22:14:49]1041 (16) - 0000000000874949 [22:14:49]1040 (4) - 69267 [22:14:49]1012 (4) - 28.07.2024 15:52 [22:14:49]1206 (1) - 0 [22:14:49]OFD Sender: Remove packet 69267 [22:14:49]ProducePacketName [22:14:49]name=ofd_packets/00069267 [22:14:49]NVStorageDeleteData [22:14:49]OFD Sender: Processing packet 69268 [packets to send 28, broken 18] [22:14:49]ProducePacketName [22:14:49]name=ofd_packets/00069268 [22:14:49]OFD Sender: To server: pG, [22:14:49]CommunicateWithHost lk.salyk.kg:30040 [22:14:49]ConnectInit lk.salyk.kg [22:14:49]Connected sock=7 [22:14: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 39 34 39 25 01 00 00 75 59 1D 01 C6 9C 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 E8 A1 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 94 0E 01 00 35 04 06 00 7C 0E B4 29 88 9F 0F 40 DD EB 9C 77 E0 38 [22:14:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 6A EB 47 00 6D D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 94 0E 01 00 F4 03 04 00 51 69 A6 66 B6 04 01 00 00 07 5D DE 3A 68 D4 D0 71 [22:14:49]CommunicateWithHost err = 0 [22:14:49]CheckOFDResponse [22:14:49]1017 (14) - 77093643461234 [22:14:49]1041 (16) - 0000000000874949 [22:14:49]1040 (4) - 69268 [22:14:49]1012 (4) - 28.07.2024 15:52 [22:14:49]1206 (1) - 0 [22:14:49]OFD Sender: Remove packet 69268 [22:14:49]ProducePacketName [22:14:49]name=ofd_packets/00069268 [22:14:49]NVStorageDeleteData [22:14:50]OFD Sender: Processing packet 69269 [packets to send 27, broken 18] [22:14:50]ProducePacketName [22:14:50]name=ofd_packets/00069269 [22:14:50]OFD Sender: To server: pG, [22:14:50]CommunicateWithHost lk.salyk.kg:30040 [22:14:50]ConnectInit lk.salyk.kg [22:14:50]Connected sock=7 [22:14: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 39 34 39 3C 01 00 00 6B 4A 34 01 64 F0 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 A3 A2 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 95 0E 01 00 35 04 06 00 3F A2 BF 50 52 AF F6 C7 5B 0C 3D 52 E5 1A [22:14:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 57 92 47 00 7C 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 95 0E 01 00 F4 03 04 00 52 69 A6 66 B6 04 01 00 00 9D 8F AE 3E 1D FD 4F F6 [22:14:50]CommunicateWithHost err = 0 [22:14:50]CheckOFDResponse [22:14:50]1017 (14) - 77093643461234 [22:14:50]1041 (16) - 0000000000874949 [22:14:50]1040 (4) - 69269 [22:14:50]1012 (4) - 28.07.2024 15:52 [22:14:50]1206 (1) - 0 [22:14:50]OFD Sender: Remove packet 69269 [22:14:50]ProducePacketName [22:14:50]name=ofd_packets/00069269 [22:14:50]NVStorageDeleteData [22:14:51]OFD Sender: Processing packet 69270 [packets to send 26, broken 18] [22:14:51]ProducePacketName [22:14:51]name=ofd_packets/00069270 [22:14:51]OFD Sender: To server: pG, [22:14:51]CommunicateWithHost lk.salyk.kg:30040 [22:14:51]ConnectInit lk.salyk.kg [22:14:51]Connected sock=7 [22:14:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 FA 01 00 00 E0 75 F2 01 1C 5E 5A 03 01 00 03 00 E6 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 13 00 00 00 00 07 04 06 00 40 B5 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 2A A3 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 96 0E 01 00 35 04 06 00 06 AE 8A 31 BC DD 46 FF 23 EE 21 32 F7 B6 [22:14:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 E6 9B 47 00 4C DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 96 0E 01 00 F4 03 04 00 52 69 A6 66 B6 04 01 00 00 7A F4 83 19 EE A1 8C 4C [22:14:51]CommunicateWithHost err = 0 [22:14:51]CheckOFDResponse [22:14:51]1017 (14) - 77093643461234 [22:14:51]1041 (16) - 0000000000874949 [22:14:51]1040 (4) - 69270 [22:14:51]1012 (4) - 28.07.2024 15:52 [22:14:51]1206 (1) - 0 [22:14:51]OFD Sender: Remove packet 69270 [22:14:51]ProducePacketName [22:14:51]name=ofd_packets/00069270 [22:14:51]NVStorageDeleteData [22:14:52]OFD Sender: Processing packet 69271 [packets to send 25, broken 18] [22:14:52]ProducePacketName [22:14:52]name=ofd_packets/00069271 [22:14:52]OFD Sender: To server: pG, [22:14:52]CommunicateWithHost lk.salyk.kg:30040 [22:14:52]ConnectInit lk.salyk.kg [22:14:52]Connected sock=7 [22:14:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 17 DF 1D 01 91 59 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 36 36 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 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 79 A3 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 97 0E 01 00 35 04 06 00 56 B3 57 71 9B B7 0B 4E 91 90 42 F6 2B FB [22:14:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 19 45 47 00 74 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 97 0E 01 00 F4 03 04 00 53 69 A6 66 B6 04 01 00 00 DA 38 99 42 75 79 12 C7 [22:14:52]CommunicateWithHost err = 0 [22:14:52]CheckOFDResponse [22:14:52]1017 (14) - 77093643461234 [22:14:52]1041 (16) - 0000000000874949 [22:14:52]1040 (4) - 69271 [22:14:52]1012 (4) - 28.07.2024 15:52 [22:14:52]1206 (1) - 0 [22:14:52]OFD Sender: Remove packet 69271 [22:14:52]ProducePacketName [22:14:52]name=ofd_packets/00069271 [22:14:52]NVStorageDeleteData [22:14:52]OFD Sender: Processing packet 69272 [packets to send 24, broken 18] [22:14:52]ProducePacketName [22:14:52]name=ofd_packets/00069272 [22:14:52]OFD Sender: To server: pG, [22:14:52]CommunicateWithHost lk.salyk.kg:30040 [22:14:52]ConnectInit lk.salyk.kg [22:14:53]Connected sock=7 [22:14:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 8A 01 00 00 F3 58 82 01 C9 AF 5A 03 01 00 03 00 76 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 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 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 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 2E A4 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 98 0E 01 00 35 04 06 00 EA 93 DF 83 2F 23 8A 2B 2D B3 B4 0D F3 75 [22:14:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 5B F7 47 00 4C 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 98 0E 01 00 F4 03 04 00 54 69 A6 66 B6 04 01 00 00 1E E1 6A D0 FF 81 5B A7 [22:14:53]CommunicateWithHost err = 0 [22:14:53]CheckOFDResponse [22:14:53]1017 (14) - 77093643461234 [22:14:53]1041 (16) - 0000000000874949 [22:14:53]1040 (4) - 69272 [22:14:53]1012 (4) - 28.07.2024 15:52 [22:14:53]1206 (1) - 0 [22:14:53]OFD Sender: Remove packet 69272 [22:14:53]ProducePacketName [22:14:53]name=ofd_packets/00069272 [22:14:53]NVStorageDeleteData [22:14:53]OFD Sender: Processing packet 69273 [packets to send 23, broken 18] [22:14:53]ProducePacketName [22:14:53]name=ofd_packets/00069273 [22:14:53]OFD Sender: To server: pG, [22:14:53]CommunicateWithHost lk.salyk.kg:30040 [22:14:53]ConnectInit lk.salyk.kg [22:14:53]Connected sock=7 [22:14:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 24 01 00 00 9E E6 1C 01 CF F6 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 53 A9 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 99 0E 01 00 35 04 06 00 EF 1E 8A 0E 41 4E 03 9C E5 3B 5D 84 1A 31 [22:14:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 25 A7 47 00 A2 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 39 34 39 10 04 04 00 99 0E 01 00 F4 03 04 00 55 69 A6 66 B6 04 01 00 00 F7 9A D4 B7 23 E2 F9 93 [22:14:54]CommunicateWithHost err = 0 [22:14:54]CheckOFDResponse [22:14:54]1017 (14) - 77093643461234 [22:14:54]1041 (16) - 0000000000874949 [22:14:54]1040 (4) - 69273 [22:14:54]1012 (4) - 28.07.2024 15:52 [22:14:54]1206 (1) - 0 [22:14:54]OFD Sender: Remove packet 69273 [22:14:54]ProducePacketName [22:14:54]name=ofd_packets/00069273 [22:14:54]NVStorageDeleteData [22:14:54]OFD Sender: Processing packet 69274 [packets to send 22, broken 18] [22:14:54]ProducePacketName [22:14:54]name=ofd_packets/00069274 [22:14:54]OFD Sender: To server: pG, [22:14:54]CommunicateWithHost lk.salyk.kg:30040 [22:14:54]ConnectInit lk.salyk.kg [22:14:54]Connected sock=7 [22:14: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 39 34 39 27 01 00 00 F9 96 1F 01 73 28 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 FE AB A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9A 0E 01 00 35 04 06 00 8F 41 64 63 0D 62 2D 53 06 15 5D D7 5E 88 [22:14:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 DD CC 47 00 84 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 39 34 39 10 04 04 00 9A 0E 01 00 F4 03 04 00 56 69 A6 66 B6 04 01 00 00 D4 67 DA 56 FA EC 1B 9B [22:14:55]CommunicateWithHost err = 0 [22:14:55]CheckOFDResponse [22:14:55]1017 (14) - 77093643461234 [22:14:55]1041 (16) - 0000000000874949 [22:14:55]1040 (4) - 69274 [22:14:55]1012 (4) - 28.07.2024 15:52 [22:14:55]1206 (1) - 0 [22:14:55]OFD Sender: Remove packet 69274 [22:14:55]ProducePacketName [22:14:55]name=ofd_packets/00069274 [22:14:55]NVStorageDeleteData [22:14:55]OFD Sender: Processing packet 69275 [packets to send 21, broken 18] [22:14:55]ProducePacketName [22:14:55]name=ofd_packets/00069275 [22:14:55]OFD Sender: To server: pG, [22:14:55]CommunicateWithHost lk.salyk.kg:30040 [22:14:55]ConnectInit lk.salyk.kg [22:14:55]Connected sock=7 [22:14: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 39 34 39 92 01 00 00 8B 57 8A 01 33 2F 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 63 AE A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9B 0E 01 00 35 04 06 00 09 FE 58 08 6A 06 11 35 A7 81 1A 41 83 FB [22:14:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 54 4F 47 00 27 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 39 34 39 10 04 04 00 9B 0E 01 00 F4 03 04 00 57 69 A6 66 B6 04 01 00 00 8E 85 FC 51 84 DB 5E 01 [22:14:55]CommunicateWithHost err = 0 [22:14:55]CheckOFDResponse [22:14:55]1017 (14) - 77093643461234 [22:14:55]1041 (16) - 0000000000874949 [22:14:55]1040 (4) - 69275 [22:14:55]1012 (4) - 28.07.2024 15:52 [22:14:55]1206 (1) - 0 [22:14:55]OFD Sender: Remove packet 69275 [22:14:55]ProducePacketName [22:14:55]name=ofd_packets/00069275 [22:14:55]NVStorageDeleteData [22:14:56]OFD Sender: Processing packet 69276 [packets to send 20, broken 18] [22:14:56]ProducePacketName [22:14:56]name=ofd_packets/00069276 [22:14:56]OFD Sender: To server: pG, [22:14:56]CommunicateWithHost lk.salyk.kg:30040 [22:14:56]ConnectInit lk.salyk.kg [22:14:56]Connected sock=7 [22:14:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2A 01 00 00 32 39 22 01 4C E5 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 7F C2 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9C 0E 01 00 35 04 06 00 0A 5C 89 4A 26 F8 37 45 78 AF 35 83 2A 28 [22:14:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 22 88 47 00 0D C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9C 0E 01 00 F4 03 04 00 58 69 A6 66 B6 04 01 00 00 AA B6 5B 2B 4A E1 33 D2 [22:14:56]CommunicateWithHost err = 0 [22:14:56]CheckOFDResponse [22:14:56]1017 (14) - 77093643461234 [22:14:56]1041 (16) - 0000000000874949 [22:14:56]1040 (4) - 69276 [22:14:56]1012 (4) - 28.07.2024 15:52 [22:14:56]1206 (1) - 0 [22:14:56]OFD Sender: Remove packet 69276 [22:14:56]ProducePacketName [22:14:56]name=ofd_packets/00069276 [22:14:56]NVStorageDeleteData [22:14:57]OFD Sender: Processing packet 69277 [packets to send 19, broken 18] [22:14:57]ProducePacketName [22:14:57]name=ofd_packets/00069277 [22:14:57]OFD Sender: To server: pG, [22:14:57]CommunicateWithHost lk.salyk.kg:30040 [22:14:57]ConnectInit lk.salyk.kg [22:14:57]Connected sock=9 [22:14: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 39 34 39 1E 01 00 00 BA 89 16 01 E0 65 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 B4 C2 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9D 0E 01 00 35 04 06 00 52 29 F4 83 85 DE D6 CA 58 C8 57 4D 28 60 [22:14:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 01 80 47 00 31 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9D 0E 01 00 F4 03 04 00 58 69 A6 66 B6 04 01 00 00 5F F4 10 8E 68 2E DC AC [22:14:57]CommunicateWithHost err = 0 [22:14:57]CheckOFDResponse [22:14:57]1017 (14) - 77093643461234 [22:14:57]1041 (16) - 0000000000874949 [22:14:57]1040 (4) - 69277 [22:14:57]1012 (4) - 28.07.2024 15:52 [22:14:57]1206 (1) - 0 [22:14:57]OFD Sender: Remove packet 69277 [22:14:57]ProducePacketName [22:14:57]name=ofd_packets/00069277 [22:14:57]NVStorageDeleteData [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]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:12]int [22:31:12]Write to MH i2c: 01 00 00 83 5E E1 [22:31:12]Write i2c OK [22:31:12]MH_I2C_Read... [22:31:12]Read from MH i2c: 01 [22:31:12]MH_I2C_Read... [22:31:12]Read from MH i2c: 01 07 00 [22:31:12]MH_I2C_Read... [22:31:12]*** FLAG_PRN_PAP1 set [22:31:12]*** FLAG_PRN_PAP1 reset [22:31:12]Read from MH i2c: 01 07 00 83 5E 00 00 00 00 00 FF 0F F6 [22:31:12]state=0 [22:31:12]int [22:31:12]Write to MH i2c: 01 00 00 84 5E E2 [22:31:12]Write i2c OK [22:31:12]MH_I2C_Read... [22:31:12]Read from MH i2c: 01 [22:31:12]MH_I2C_Read... [22:31:12]Read from MH i2c: 01 07 00 [22:31:12]MH_I2C_Read... [22:31:12]*** FLAG_PRN_PAP1 set [22:31:12]*** FLAG_PRN_PAP1 reset [22:31:12]Read from MH i2c: 01 07 00 84 5E 00 00 00 00 00 FF 0F F7 [22:31:12]state=0 [22:31:12]int [22:31:12]Write to MH i2c: 01 00 00 85 5E E3 [22:31:12]Write i2c OK [22:31:12]MH_I2C_Read... [22:31:12]Read from MH i2c: 01 [22:31:12]MH_I2C_Read... [22:31:12]Read from MH i2c: 01 07 00 [22:31:12]MH_I2C_Read... [22:31:12]*** FLAG_PRN_PAP1 set [22:31:12]*** FLAG_PRN_PAP1 reset [22:31:12]Read from MH i2c: 01 07 00 85 5E 00 00 00 00 00 FF 0F F8 [22:31:12]state=0 [22:31:12]int [22:31:12]Write to MH i2c: 01 00 00 86 5E E4 [22:31:12]*** FLAG_PRN_PAP1 set [22:31:12]Write i2c OK [22:31:12]MH_I2C_Read... [22:31:12]Read from MH i2c: 01 [22:31:12]MH_I2C_Read... [22:31:12]Read from MH i2c: 01 07 00 [22:31:12]MH_I2C_Read... [22:31:12]Read from MH i2c: 01 07 00 86 5E 00 01 00 00 00 FF 0F FA [22:31:12]state=0 [22:31:12]No paper [22:31:12]int [22:31:12]Write to MH i2c: 01 00 00 87 5E E5 [22:31:12]*** FLAG_PRN_PAP2 set [22:31:12]Write i2c OK [22:31:12]MH_I2C_Read... [22:31:12]Read from MH i2c: 01 [22:31:12]MH_I2C_Read... [22:31:12]Read from MH i2c: 01 07 00 [22:31:12]MH_I2C_Read... [22:31:12]Read from MH i2c: 01 07 00 87 5E 00 03 00 00 00 FF 0F FD [22:31:12]state=0 [22:31:12]No paper [22:31:12]Cover opened [22:31:13]OFD Sender: No OFD packet to send [22:31:14]int [22:31:14]Write to MH i2c: 01 00 00 88 5E E6 [22:31:14]*** FLAG_PRN_PAP1 reset [22:31:14]*** FLAG_PRN_PAP2 reset [22:31:14]Write i2c OK [22:31:14]MH_I2C_Read... [22:31:14]Read from MH i2c: 01 [22:31:14]MH_I2C_Read... [22:31:14]Read from MH i2c: 01 07 00 [22:31:14]MH_I2C_Read... [22:31:14]Read from MH i2c: 01 07 00 88 5E 00 00 00 00 00 FF 0F FB [22:31:14]state=3 [22:31:14]Cover closed [22:31:16]int [22:31:16]Write to MH i2c: 01 00 00 89 5E E7 [22:31:16]Write i2c OK [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: 01 [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: 01 07 00 [22:31:16]MH_I2C_Read... [22:31:16]*** FLAG_PRN_PAP1 set [22:31:16]*** FLAG_PRN_PAP1 reset [22:31:16]Read from MH i2c: 01 07 00 89 5E 00 00 00 00 00 FF 0F FC [22:31:16]state=0 [22:31:16]int [22:31:16]Write to MH i2c: 01 00 00 8A 5E E8 [22:31:16]Write i2c OK [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: 01 [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: 01 07 00 [22:31:16]MH_I2C_Read... [22:31:16]*** FLAG_PRN_PAP1 set [22:31:16]*** FLAG_PRN_PAP1 reset [22:31:16]Read from MH i2c: 01 07 00 8A 5E 00 00 00 00 00 FF 0F FD [22:31:16]state=0 [22:31:16]int [22:31:16]Write to MH i2c: 01 00 00 8B 5E E9 [22:31:16]*** FLAG_PRN_PAP1 set [22:31:16]Write i2c OK [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: 01 [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: 01 07 00 [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: 01 07 00 8B 5E 00 01 00 00 00 FF 0F FF [22:31:16]state=0 [22:31:16]No paper [22:31:16]int [22:31:16]Write to MH i2c: 01 00 00 8C 5E EA [22:31:16]*** FLAG_PRN_PAP2 set [22:31:16]Write i2c OK [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: 01 [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: 01 07 00 [22:31:16]MH_I2C_Read... [22:31:16]Read from MH i2c: 01 07 00 8C 5E 00 03 00 00 00 FF 0F 02 [22:31:16]state=0 [22:31:16]No paper [22:31:16]Cover opened [22:31:18]OFD Sender: No OFD packet to send [22:31:21]Write to MH i2c: 01 00 00 8D 5E EB [22:31:21]Write i2c OK [22:31:21]MH_I2C_Read... [22:31:21]Read from MH i2c: 01 [22:31:21]MH_I2C_Read... [22:31:21]Read from MH i2c: 01 07 00 [22:31:21]MH_I2C_Read... [22:31:21]Read from MH i2c: 01 07 00 8D 5E 00 03 00 00 00 FF 0F 03 [22:31:21]state=3 [22:31:21]No paper [22:31:21]Cover opened [22:31:23]OFD Sender: No OFD packet to send [22:31:24]int [22:31:24]Write to MH i2c: 01 00 00 8E 5E EC [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 07 00 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 07 00 8E 5E 00 01 00 00 00 FF 0F 02 [22:31:24]state=3 [22:31:24]No paper [22:31:24]Cover closed [22:31:24]int [22:31:24]Write to MH i2c: 01 00 00 8F 5E ED [22:31:24]*** FLAG_PRN_PAP1 reset [22:31:24]*** FLAG_PRN_PAP2 reset [22:31:24]*** FLAG_PRN_PAP1 set [22:31:24]*** FLAG_PRN_PAP1 reset [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 07 00 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 07 00 8F 5E 00 00 00 00 00 FF 0F 02 [22:31:24]state=0 [22:31:24]int [22:31:24]Write to MH i2c: 01 00 00 90 5E EE [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 07 00 [22:31:24]MH_I2C_Read... [22:31:24]*** FLAG_PRN_PAP1 set [22:31:24]*** FLAG_PRN_PAP1 reset [22:31:24]Read from MH i2c: 01 07 00 90 5E 00 00 00 00 00 FF 0F 03 [22:31:24]state=0 [22:31:24]int [22:31:24]Write to MH i2c: 01 00 00 91 5E EF [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 07 00 [22:31:24]MH_I2C_Read... [22:31:24]*** FLAG_PRN_PAP1 set [22:31:24]*** FLAG_PRN_PAP1 reset [22:31:24]Read from MH i2c: 01 07 00 91 5E 00 00 00 00 00 FF 0F 04 [22:31:24]state=0 [22:31:24]int [22:31:24]Write to MH i2c: 01 00 00 92 5E F0 [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 07 00 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 07 00 92 5E 00 00 00 00 00 FF 0F 05 [22:31:24]state=0 [22:31:24]int [22:31:24]Write to MH i2c: 01 00 00 93 5E F1 [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 07 00 [22:31:24]MH_I2C_Read... [22:31:24]*** FLAG_PRN_PAP1 set [22:31:24]*** FLAG_PRN_PAP1 reset [22:31:24]*** FLAG_PRN_PAP1 set [22:31:24]*** FLAG_PRN_PAP1 reset [22:31:24]Read from MH i2c: 01 07 00 93 5E 00 00 00 00 00 FF 0F 06 [22:31:24]state=0 [22:31:25]int [22:31:25]Write to MH i2c: 01 00 00 94 5E F2 [22:31:25]Write i2c OK [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: 01 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: 01 07 00 [22:31:25]MH_I2C_Read... [22:31:25]*** FLAG_PRN_PAP1 set [22:31:25]*** FLAG_PRN_PAP1 reset [22:31:25]Read from MH i2c: 01 07 00 94 5E 00 00 00 00 00 FF 0F 07 [22:31:25]state=0 [22:31:25]int [22:31:25]Write to MH i2c: 01 00 00 95 5E F3 [22:31:25]Write i2c OK [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: 01 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: 01 07 00 [22:31:25]MH_I2C_Read... [22:31:25]*** FLAG_PRN_PAP1 set [22:31:25]*** FLAG_PRN_PAP1 reset [22:31:25]Read from MH i2c: 01 07 00 95 5E 00 00 00 00 00 FF 0F 08 [22:31:25]state=0 [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:15]accept exits with 11 [22:41:15]New connection [22:41:15]New thread 3066785124 created [22:41:15]Thread 3066641764 joined [22:41:15]Waiting for new connection... [22:41:15] Sock 11.Parse request [22:41:15]Sock 11.Check first char [22:41:15]Sock 11.First char is OK [22:41:15]request: POST /json_proto HTTP/1.0 [22:41:15]Method: POST [22:41:15]URL: /json_proto [22:41:15]Method is POST - this is cgi request [22:41:15]url: /json_proto [22:41:15]query_string will be loaded in cgi processing [22:41:15]execute_cgi json_proto POST (null) [22:41:15]execute_cgi path=json_proto method=POST [22:41:15]POST find Content-Length [22:41:15]Host: 172.17.49.132:8080 [22:41:15]Content-Length: 1318 [22:41:15]Content-Type: application/json [22:41:15] [22:41:15]POST finish read [22:41:15]Found Content-Length = 1318 [22:41:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136613", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 256.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:15]execute_script... [22:41:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136613", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 256.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:15]POST & json_proto [22:41:15]process_json_proto [22:41:15]json parsed OK: [22:41:15]protocol is kg_v1.0 [22:41:15]action value=close_receipt [22:41:15]process_action close_receipt [22:41:15]cmd_close_receipt [22:41:15]MH_GetDate [22:41:15]Write to MH i2c: F0 00 00 96 5E E3 [22:41:15]Write i2c OK [22:41:15]MH_I2C_Read... [22:41:15]Read from MH i2c: F0 [22:41:15]MH_I2C_Read... [22:41:15]Read from MH i2c: F0 09 00 [22:41:15]MH_I2C_Read... [22:41:15]Read from MH i2c: F0 09 00 96 5E 00 16 C9 A6 66 E7 4B C0 64 2D [22:41:15]GetLastDocTimeStamp 1722204852 [22:41:15]current date 1722206486 [22:41:15]FM_GetShiftState [22:41:15]SAM_PROTO_GetShiftState [22:41:15]wFMCommunicate request_size=4 [22:41:15]MH_SAM_APDU [22:41:15]CAPDU: 80 13 01 00 [22:41:15]Write to MH i2c: E2 08 00 97 5E 80 13 01 00 00 00 00 00 72 [22:41:15]Write i2c OK [22:41:15]MH_I2C_Read... [22:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:15]Read from MH i2c: E2 [22:41:15]MH_I2C_Read... [22:41:15]Read from MH i2c: E2 0E 00 [22:41:15]MH_I2C_Read... [22:41:15]Read from MH i2c: E2 0E 00 97 5E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 AF [22:41:15]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [22:41:15]wFMCommunicate OK [22:41:15]SAM_PROTO_GetShiftState done [22:41:15]FM_GetShiftState done [22:41:15]opened in 1722127251 [22:41:15]opened+sec_in_day 1722213651 [22:41:15]quantity*price = 6500 [22:41:15]sum+1 = 6501 [22:41:15]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001571030 Вода ASU пит н.газ клубн,киви ПЭТ 1л 1.000 * 84.00 = 84.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 256.00 НСП 1% : 2.26 НДС 12% : 27.18 Наличными: 256.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 161 28.07.2024 22:41 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69278 ФПД: 153871149953658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224126&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69278&fm=153871149953658&tin=02508201610067®Number=0000000000092638&sum=25600 0 [22:41:16]StoreToDocumentArchive [22:41:16]shift 429 fd 69278 [22:41:16]save to /storage/0429/doc_00069278 [22:41:16]save last doc name /storage/0429/doc_00069278 to /storage/kkm_last_doc_name [22:41:16]save OK [22:41:16]Clear old archive folders... [22:41:16]ProcessDocumentItem done err = 0, tmpTLVsize=542 [22:41:16]tlvbuf is B6F2CA60 [22:41:16]SAM_PROTO_ClearQueue [22:41:16]wFMCommunicate request_size=4 [22:41:16]MH_SAM_APDU [22:41:16]CAPDU: 80 09 00 00 [22:41:16]Write to MH i2c: E2 08 00 A4 5E 80 09 00 00 00 00 00 00 74 [22:41:16]Write i2c OK [22:41:16]MH_I2C_Read... [22:41:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:16]Read from MH i2c: E2 [22:41:16]MH_I2C_Read... [22:41:16]Read from MH i2c: E2 03 00 [22:41:16]MH_I2C_Read... [22:41:16]Read from MH i2c: E2 03 00 A4 5E 00 90 00 76 [22:41:16]RAPDU: 90 00 [22:41:16]wFMCommunicate OK [22:41:16]SAM_PROTO_ClearQueue done [22:41:16]KKMCreateOFDPacket [22:41:16]OFDProtocolAddRootSTLVToBuf [22:41:16]FM_MakeSignedData [22:41:16]FM_MakeSignedData [22:41:16]SAM_PROTO_SignData [22:41:16]wFMCommunicate request_size=4 [22:41:16]MH_SAM_APDU [22:41:16]CAPDU: 80 0D 01 02 [22:41:16]Write to MH i2c: E2 08 00 A5 5E 80 0D 01 02 00 00 00 00 7C [22:41:16]Write i2c OK [22:41:16]MH_I2C_Read... [22:41:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:16]Read from MH i2c: E2 [22:41:16]MH_I2C_Read... [22:41:16]Read from MH i2c: E2 03 00 [22:41:16]MH_I2C_Read... [22:41:16]Read from MH i2c: E2 03 00 A5 5E 00 90 00 77 [22:41:16]RAPDU: 90 00 [22:41:16]wFMCommunicate OK [22:41:16]wFMCommunicate request_size=255 [22:41:16]MH_SAM_APDU [22:41:16]CAPDU: 80 0D 02 02 FA 03 00 1E 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [22:41:16]Write to MH i2c: E2 02 01 A6 5E 80 0D 02 02 FA 00 03 00 1E 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 00 00 89 [22:41:16]Write i2c OK [22:41:16]MH_I2C_Read... [22:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:16]Read from MH i2c: E2 [22:41:16]MH_I2C_Read... [22:41:16]Read from MH i2c: E2 03 00 [22:41:16]MH_I2C_Read... [22:41:16]Read from MH i2c: E2 03 00 A6 5E 00 90 00 78 [22:41:16]RAPDU: 90 00 [22:41:16]wFMCommunicate OK [22:41:16]wFMCommunicate request_size=255 [22:41:16]MH_SAM_APDU [22:41:16]CAPDU: 80 0D 02 02 FA 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 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 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0A 00 00 00 00 07 04 06 00 00 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 16 C9 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [22:41:16]Write to MH i2c: E2 02 01 A7 5E 80 0D 02 02 FA 00 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 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 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0A 00 00 00 00 07 04 06 00 00 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 16 C9 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 15 [22:41:16]Write i2c OK [22:41:16]MH_I2C_Read... [22:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:17]Read from MH i2c: E2 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: E2 03 00 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: E2 03 00 A7 5E 00 90 00 79 [22:41:17]RAPDU: 90 00 [22:41:17]wFMCommunicate OK [22:41:17]wFMCommunicate request_size=51 [22:41:17]MH_SAM_APDU [22:41:17]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9E 0E 01 00 35 04 06 00 8B F1 EB 3B F2 7A [22:41:17]Write to MH i2c: E2 36 00 A8 5E 80 0D 02 02 2E 00 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9E 0E 01 00 35 04 06 00 8B F1 EB 3B F2 7A 00 00 D8 [22:41:17]Write i2c OK [22:41:17]MH_I2C_Read... [22:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:17]Read from MH i2c: E2 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: E2 03 00 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: E2 03 00 A8 5E 00 90 00 7A [22:41:17]RAPDU: 90 00 [22:41:17]wFMCommunicate OK [22:41:17]wFMCommunicate request_size=4 [22:41:17]MH_SAM_APDU [22:41:17]CAPDU: 80 0D 03 02 [22:41:17]Write to MH i2c: E2 08 00 A9 5E 80 0D 03 02 00 00 00 00 82 [22:41:17]Write i2c OK [22:41:17]MH_I2C_Read... [22:41:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:17]Read from MH i2c: E2 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: E2 0B 00 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: E2 0B 00 A9 5E 00 27 31 AF 21 B5 61 2E 1C 90 00 0B [22:41:17]RAPDU: 27 31 AF 21 B5 61 2E 1C 90 00 [22:41:17]wFMCommunicate OK [22:41:17]SAM_PROTO_SignData done [22:41:17]FM_MakeSignedData done [22:41:17]CreateOFDProtocolMessage [22:41:17]wFMCommunicate request_size=4 [22:41:17]MH_SAM_APDU [22:41:17]CAPDU: 80 11 00 00 [22:41:17]Write to MH i2c: E2 08 00 AA 5E 80 11 00 00 00 00 00 00 82 [22:41:17]Write i2c OK [22:41:17]MH_I2C_Read... [22:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:17]Read from MH i2c: E2 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: E2 17 00 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: E2 17 00 AA 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 DE [22:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [22:41:17]wFMCommunicate OK [22:41:17]CreateOFDProtocolMessage done [22:41:17]OFDSenderStorePacket 69278 [22:41:17]StoreOFDPacket docnum=69278 [22:41:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 32 02 00 00 D4 46 2A 02 29 45 5A 03 01 00 03 00 1E 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 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 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0A 00 00 00 00 07 04 06 00 00 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 16 C9 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9E 0E 01 00 35 04 06 00 8B F1 EB 3B F2 7A 27 31 AF 21 B5 61 2E 1C [22:41:17]CheckFolder [22:41:17]dirname=/storage/ofd_packets [22:41:17]CheckFolder done [22:41:17]ProducePacketName [22:41:17]name=ofd_packets/00069278 [22:41:17]NVStorageSaveData ofd_packets/00069278 [22:41:17]File name is /storage/ofd_packets/00069278 [22:41:17]Write 592 bytes [22:41:17]NVStorageSaveData done [22:41:17]OFDSenderStorePacket done [22:41:17]KKMCreateOFDPacket done [22:41:17]NVStorageSaveData kkm_last_timestamp [22:41:17]File name is /storage/kkm_last_timestamp [22:41:17]Write 4 bytes [22:41:17]NVStorageSaveData done [22:41:17]ExternCall_PrintAddStr [22:41:17]wPrintStart [22:41:17]Write to MH i2c: 01 00 00 AB 5E 09 [22:41:17]Write i2c OK [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: 01 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: 01 07 00 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: 01 07 00 AB 5E 00 00 00 00 00 FF 0F 1E [22:41:17]RasterBufferAndPrint [22:41:17]line Счет N : (3)136613 [22:41:17]line ИНН: 02508201610067 [22:41:17]line Контрольно-Кассовый Чек [22:41:17]line ПРОДАЖА [22:41:17]line Товар: 47011656 [22:41:17]line Водка Пшеничная 0,1л [22:41:17]line 1.000 * 65.00 [22:41:17]line = 65.00 [22:41:17]line НДС 12% НСП 1% [22:41:17]line > о реализуемом товаре [22:41:17]line Товар: 5449000027474 [22:41:17]line Напиток FuzeTea зел чай манго,ромашка 1л [22:41:17]line 1.000 * 107.00 [22:41:17]line = 107.00 [22:41:17]line НДС 12% НСП 1% [22:41:17]line > о реализуемом товаре [22:41:17]line Товар: 4870001571030 [22:41:17]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [22:41:17]line 1.000 * 84.00 [22:41:17]line = 84.00 [22:41:17]line НДС 12% НСП 1% [22:41:17]line > о реализуемом товаре [22:41:17]line ИТОГО: 256.00 [22:41:17]line НСП 1% : 2.26 [22:41:17]line НДС 12% : 27.18 [22:41:17]line Наличными: 256.00 [22:41:17]line Безнал.: 0.00 [22:41:17]line Место: АЗС № 125 "Партнер Нефть" [22:41:17]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [22:41:17]line СНО: Общий режим [22:41:17]line Чек 161 28.07.2024 22:41 [22:41:17]line Смена: 429 ФФД: 1.0 [22:41:17]line ЗНМ: 0300000049 [22:41:17]line РНМ: 0000000000092638 [22:41:17]line Версия ККМ: 001 [22:41:17]line ФМ: 0000000000874949 [22:41:17]line ФД: 69278 [22:41:17]line ФПД: 153871149953658 [22:41:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224126&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69278&fm=153871149953658&tin=02508201610067®Number=0000000000092638&sum=25600 [22:41:17]line 0 [22:41:17]OFD Sender: Processing packet 69278 [packets to send 19, broken 18] [22:41:17]ProducePacketName [22:41:17]name=ofd_packets/00069278 [22:41:17]OFD Sender: To server: pG, [22:41:17]CommunicateWithHost lk.salyk.kg:30040 [22:41:17]ConnectInit lk.salyk.kg [22:41:17]written 0, free lines is 4095 [22:41:17]Connected sock=9 [22:41: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 39 34 39 32 02 00 00 D4 46 2A 02 29 45 5A 03 01 00 03 00 1E 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 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 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0A 00 00 00 00 07 04 06 00 00 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 16 C9 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9E 0E 01 00 35 04 06 00 8B F1 EB 3B F2 7A 27 31 AF 21 B5 61 2E 1C [22:41:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 63 B4 47 00 4B 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9E 0E 01 00 F4 03 04 00 85 6F A6 66 B6 04 01 00 00 F5 EB 23 F6 2D 4B F0 AF [22:41:18]CommunicateWithHost err = 0 [22:41:18]CheckOFDResponse [22:41:18]1017 (14) - 77093643461234 [22:41:18]1041 (16) - 0000000000874949 [22:41:18]1040 (4) - 69278 [22:41:18]1012 (4) - 28.07.2024 16:19 [22:41:18]1206 (1) - 0 [22:41:18]OFD Sender: Remove packet 69278 [22:41:18]ProducePacketName [22:41:18]name=ofd_packets/00069278 [22:41:18]NVStorageDeleteData [22:41:18]Write to MH i2c: 01 00 00 E1 5E 3F [22:41:18]Write i2c OK [22:41:18]MH_I2C_Read... [22:41:18]Read from MH i2c: 01 [22:41:18]MH_I2C_Read... [22:41:18]Read from MH i2c: 01 07 00 [22:41:18]MH_I2C_Read... [22:41:18]Read from MH i2c: 01 07 00 E1 5E 00 00 00 00 00 62 0C B4 [22:41:18]RasterBufferAndPrint [22:41:18]line [22:41:18]line [22:41:18]line [22:41:18]line [22:41:18]line [22:41:18]written 0, free lines is 3179 [22:41:18]MH_Cut [22:41:18]Write to MH i2c: D1 01 00 E8 5E 01 18 [22:41:18]Write i2c OK [22:41:18]MH_I2C_Read... [22:41:18]Read from MH i2c: D1 [22:41:18]MH_I2C_Read... [22:41:18]Read from MH i2c: D1 01 00 [22:41:18]MH_I2C_Read... [22:41:18]Read from MH i2c: D1 01 00 E8 5E 00 17 [22:41:18]Write to MH i2c: 01 00 00 E9 5E 47 [22:41:18]Write i2c OK [22:41:18]MH_I2C_Read... [22:41:18]OFD Sender: No OFD packet to send [22:41:19]*** Cut start [22:41:19]*** Partial cut [22:41:19]*** CUTSNS_PIN = 1 [22:41:19]*** CUTSNS_PIN = 0 [22:41:19]*** Brake cut motor [22:41:19]Read from MH i2c: 01 [22:41:19]MH_I2C_Read... [22:41:19]*** Stop cut motor [22:41:19]*** Cut end [22:41:19]Read from MH i2c: 01 07 00 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: 01 07 00 E9 5E 00 00 00 00 00 FF 0F 5C [22:41:19]process_action close_receipt done [22:41:19]requested_data is exist [22:41:19]produce_requested_data [22:41:19]requested_item fm.sn is exist - process it [22:41:19]wFMCommunicate request_size=4 [22:41:19]MH_SAM_APDU [22:41:19]CAPDU: 80 11 00 00 [22:41:19]Write to MH i2c: E2 08 00 EA 5E 80 11 00 00 00 00 00 00 C2 [22:41:19]Write i2c OK [22:41:19]MH_I2C_Read... [22:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:19]Read from MH i2c: E2 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 17 00 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 17 00 EA 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 1E [22:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [22:41:19]wFMCommunicate OK [22:41:19]requested_item fd.num is exist - process it [22:41:19]SAM_PROTO_GetFieldsCounters [22:41:19]wFMCommunicate request_size=4 [22:41:19]MH_SAM_APDU [22:41:19]CAPDU: 80 13 00 00 [22:41:19]Write to MH i2c: E2 08 00 EB 5E 80 13 00 00 00 00 00 00 C5 [22:41:19]Write i2c OK [22:41:19]MH_I2C_Read... [22:41:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:19]Read from MH i2c: E2 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 62 00 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 62 00 EB 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 9E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [22:41:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 9E 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:19]wFMCommunicate OK [22:41:19]SAM_PROTO_GetFieldsCounters done [22:41:19]requested_item shift.num is exist - process it [22:41:19]requested_item shift.opened is exist - process it [22:41:19]req_shift_opened [22:41:19]FM_GetShiftState [22:41:19]SAM_PROTO_GetShiftState [22:41:19]wFMCommunicate request_size=4 [22:41:19]MH_SAM_APDU [22:41:19]CAPDU: 80 13 01 00 [22:41:19]Write to MH i2c: E2 08 00 EC 5E 80 13 01 00 00 00 00 00 C7 [22:41:19]Write i2c OK [22:41:19]MH_I2C_Read... [22:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:19]Read from MH i2c: E2 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 0E 00 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 0E 00 EC 5E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 04 [22:41:19]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [22:41:19]wFMCommunicate OK [22:41:19]SAM_PROTO_GetShiftState done [22:41:19]FM_GetShiftState done [22:41:19]req_shift_opened done [22:41:19]requested_item shift.open_date is exist - process it [22:41:19]req_shift_open_date [22:41:19]req_shift_open_date done [22:41:19]produce_requested_data done [22:41:19]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69278,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [22:41:19]process_action_free close_receipt [22:41:19]json_value_free [22:41:19]json_value_free done [22:41:19]process_json_proto returns [22:41:19]Send response to host [22:41:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69278,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [22:41:19]free response buf [22:41:19]execute_script done [22:41:19]execute_script returns [22:41:19]free content buf [22:41:19]Sock 11.Close socket [22:41:19]Sock 11.Thread stoped [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [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:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:44]accept exits with 7 [22:45:44]New connection [22:45:44]New thread 3066641764 created [22:45:44]Thread 3066785124 joined [22:45:44]Waiting for new connection... [22:45:44] Sock 7.Parse request [22:45:44]Sock 7.Check first char [22:45:44]Sock 7.First char is OK [22:45:44]request: POST /json_proto HTTP/1.0 [22:45:44]Method: POST [22:45:44]URL: /json_proto [22:45:44]Method is POST - this is cgi request [22:45:44]url: /json_proto [22:45:44]query_string will be loaded in cgi processing [22:45:44]execute_cgi json_proto POST (null) [22:45:44]execute_cgi path=json_proto method=POST [22:45:44]POST find Content-Length [22:45:44]Host: 172.17.49.132:8080 [22:45:44]Content-Length: 963 [22:45:44]Content-Type: application/json [22:45:44] [22:45:44]POST finish read [22:45:44]Found Content-Length = 963 [22:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136614", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004968", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 9 \u043A\u0440\u0435\u043F\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:44]execute_script... [22:45:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136614", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004968", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 9 \u043A\u0440\u0435\u043F\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:44]POST & json_proto [22:45:44]process_json_proto [22:45:44]json parsed OK: [22:45:44]protocol is kg_v1.0 [22:45:44]action value=close_receipt [22:45:44]process_action close_receipt [22:45:44]cmd_close_receipt [22:45:44]MH_GetDate [22:45:44]Write to MH i2c: F0 00 00 ED 5E 3A [22:45:44]Write i2c OK [22:45:44]MH_I2C_Read... [22:45:44]Read from MH i2c: F0 [22:45:44]MH_I2C_Read... [22:45:44]Read from MH i2c: F0 09 00 [22:45:44]MH_I2C_Read... [22:45:44]Read from MH i2c: F0 09 00 ED 5E 00 24 CA A6 66 E7 4B C0 64 93 [22:45:44]GetLastDocTimeStamp 1722206486 [22:45:44]current date 1722206756 [22:45:44]FM_GetShiftState [22:45:44]SAM_PROTO_GetShiftState [22:45:44]wFMCommunicate request_size=4 [22:45:44]MH_SAM_APDU [22:45:44]CAPDU: 80 13 01 00 [22:45:44]Write to MH i2c: E2 08 00 EE 5E 80 13 01 00 00 00 00 00 C9 [22:45:44]Write i2c OK [22:45:44]MH_I2C_Read... [22:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:44]Read from MH i2c: E2 [22:45:44]MH_I2C_Read... [22:45:44]Read from MH i2c: E2 0E 00 [22:45:44]MH_I2C_Read... [22:45:44]Read from MH i2c: E2 0E 00 EE 5E 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 06 [22:45:44]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [22:45:44]wFMCommunicate OK [22:45:44]SAM_PROTO_GetShiftState done [22:45:44]FM_GetShiftState done [22:45:44]opened in 1722127251 [22:45:44]opened+sec_in_day 1722213651 [22:45:44]quantity*price = 14000 [22:45:44]sum+1 = 14001 [22:45:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870145004968 Пиво Жатецкий Гусь 9 крепкое 0,43л ж/б 2.000 * 105.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 162 28.07.2024 22:45 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69279 ФПД: 266407090138502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224556&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69279&fm=266407090138502&tin=02508201610067®Number=0000000000092638&sum=35000 0 [22:45:46]StoreToDocumentArchive [22:45:46]shift 429 fd 69279 [22:45:46]save to /storage/0429/doc_00069279 [22:45:46]save last doc name /storage/0429/doc_00069279 to /storage/kkm_last_doc_name [22:45:46]save OK [22:45:46]Clear old archive folders... [22:45:46]ProcessDocumentItem done err = 0, tmpTLVsize=409 [22:45:46]tlvbuf is 00B2DE30 [22:45:46]SAM_PROTO_ClearQueue [22:45:46]wFMCommunicate request_size=4 [22:45:46]MH_SAM_APDU [22:45:46]CAPDU: 80 09 00 00 [22:45:46]Write to MH i2c: E2 08 00 FB 5E 80 09 00 00 00 00 00 00 CB [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:46]Read from MH i2c: E2 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 FB 5E 00 90 00 CD [22:45:46]RAPDU: 90 00 [22:45:46]wFMCommunicate OK [22:45:46]SAM_PROTO_ClearQueue done [22:45:46]KKMCreateOFDPacket [22:45:46]OFDProtocolAddRootSTLVToBuf [22:45:46]FM_MakeSignedData [22:45:46]FM_MakeSignedData [22:45:46]SAM_PROTO_SignData [22:45:46]wFMCommunicate request_size=4 [22:45:46]MH_SAM_APDU [22:45:46]CAPDU: 80 0D 01 02 [22:45:46]Write to MH i2c: E2 08 00 FC 5E 80 0D 01 02 00 00 00 00 D3 [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:46]Read from MH i2c: E2 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 FC 5E 00 90 00 CE [22:45:46]RAPDU: 90 00 [22:45:46]wFMCommunicate OK [22:45:46]wFMCommunicate request_size=255 [22:45:46]MH_SAM_APDU [22:45:46]CAPDU: 80 0D 02 02 FA 03 00 99 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 B0 36 00 00 00 00 13 04 06 00 B0 36 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 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [22:45:46]Write to MH i2c: E2 02 01 FD 5E 80 0D 02 02 FA 00 03 00 99 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 B0 36 00 00 00 00 13 04 06 00 B0 36 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 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 F3 [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:46]Read from MH i2c: E2 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 FD 5E 00 90 00 CF [22:45:46]RAPDU: 90 00 [22:45:46]wFMCommunicate OK [22:45:46]wFMCommunicate request_size=168 [22:45:46]MH_SAM_APDU [22:45:46]CAPDU: 80 0D 02 02 A3 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 24 CA A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9F 0E 01 00 35 04 06 00 F2 4B BB F9 2D 86 [22:45:46]Write to MH i2c: E2 AB 00 FE 5E 80 0D 02 02 A3 00 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 24 CA A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9F 0E 01 00 35 04 06 00 F2 4B BB F9 2D 86 00 00 51 [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:46]Read from MH i2c: E2 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 03 00 FE 5E 00 90 00 D0 [22:45:46]RAPDU: 90 00 [22:45:46]wFMCommunicate OK [22:45:46]wFMCommunicate request_size=4 [22:45:46]MH_SAM_APDU [22:45:46]CAPDU: 80 0D 03 02 [22:45:46]Write to MH i2c: E2 08 00 FF 5E 80 0D 03 02 00 00 00 00 D8 [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:46]Read from MH i2c: E2 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 0B 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 0B 00 FF 5E 00 54 5F E6 8F A8 12 78 E8 90 00 1B [22:45:46]RAPDU: 54 5F E6 8F A8 12 78 E8 90 00 [22:45:46]wFMCommunicate OK [22:45:46]SAM_PROTO_SignData done [22:45:46]FM_MakeSignedData done [22:45:46]CreateOFDProtocolMessage [22:45:46]wFMCommunicate request_size=4 [22:45:46]MH_SAM_APDU [22:45:46]CAPDU: 80 11 00 00 [22:45:46]Write to MH i2c: E2 08 00 00 5F 80 11 00 00 00 00 00 00 D9 [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:46]Read from MH i2c: E2 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 17 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 17 00 00 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 35 [22:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [22:45:46]wFMCommunicate OK [22:45:46]CreateOFDProtocolMessage done [22:45:46]OFDSenderStorePacket 69279 [22:45:46]StoreOFDPacket docnum=69279 [22:45:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 AD 01 00 00 77 83 A5 01 A7 BB 5A 03 01 00 03 00 99 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 B0 36 00 00 00 00 13 04 06 00 B0 36 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 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 24 CA A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9F 0E 01 00 35 04 06 00 F2 4B BB F9 2D 86 54 5F E6 8F A8 12 78 E8 [22:45:46]CheckFolder [22:45:46]dirname=/storage/ofd_packets [22:45:46]CheckFolder done [22:45:46]ProducePacketName [22:45:46]name=ofd_packets/00069279 [22:45:46]NVStorageSaveData ofd_packets/00069279 [22:45:46]File name is /storage/ofd_packets/00069279 [22:45:46]Write 459 bytes [22:45:46]NVStorageSaveData done [22:45:46]OFDSenderStorePacket done [22:45:46]KKMCreateOFDPacket done [22:45:46]NVStorageSaveData kkm_last_timestamp [22:45:46]File name is /storage/kkm_last_timestamp [22:45:46]Write 4 bytes [22:45:46]NVStorageSaveData done [22:45:46]ExternCall_PrintAddStr [22:45:46]wPrintStart [22:45:46]Write to MH i2c: 01 00 00 01 5F 60 [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: 01 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: 01 07 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: 01 07 00 01 5F 00 00 00 00 00 FF 0F 75 [22:45:46]RasterBufferAndPrint [22:45:46]line Счет N : (3)136614 [22:45:47]line ИНН: 02508201610067 [22:45:47]line Контрольно-Кассовый Чек [22:45:47]line ПРОДАЖА [22:45:47]line Товар: 48743570 [22:45:47]line Сигареты Winston XStyle Blue [22:45:47]line 1.000 * 140.00 [22:45:47]line = 140.00 [22:45:47]line НДС 12% НСП 1% [22:45:47]line > о реализуемом товаре [22:45:47]line Товар: 4870145004968 [22:45:47]line Пиво Жатецкий Гусь 9 крепкое 0,43л ж/б [22:45:47]line 2.000 * 105.00 [22:45:47]line = 210.00 [22:45:47]line НДС 12% НСП 1% [22:45:47]line > о реализуемом товаре [22:45:47]line ИТОГО: 350.00 [22:45:47]line НСП 1% : 3.10 [22:45:47]line НДС 12% : 37.17 [22:45:47]line Наличными: 350.00 [22:45:47]line Безнал.: 0.00 [22:45:47]line Место: АЗС № 125 "Партнер Нефть" [22:45:47]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [22:45:47]line СНО: Общий режим [22:45:47]line Чек 162 28.07.2024 22:45 [22:45:47]line Смена: 429 ФФД: 1.0 [22:45:47]line ЗНМ: 0300000049 [22:45:47]line РНМ: 0000000000092638 [22:45:47]line Версия ККМ: 001 [22:45:47]line ФМ: 0000000000874949 [22:45:47]line ФД: 69279 [22:45:47]line ФПД: 266407090138502 [22:45:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T224556&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69279&fm=266407090138502&tin=02508201610067®Number=0000000000092638&sum=35000 [22:45:47]OFD Sender: Processing packet 69279 [packets to send 19, broken 18] [22:45:47]ProducePacketName [22:45:47]name=ofd_packets/00069279 [22:45:47]OFD Sender: To server: pG, [22:45:47]CommunicateWithHost lk.salyk.kg:30040 [22:45:47]ConnectInit lk.salyk.kg [22:45:47]line 0 [22:45:47]written 0, free lines is 4095 [22:45:47]Connected sock=10 [22:45: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 39 34 39 AD 01 00 00 77 83 A5 01 A7 BB 5A 03 01 00 03 00 99 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 B0 36 00 00 00 00 13 04 06 00 B0 36 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 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 24 CA A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9F 0E 01 00 35 04 06 00 F2 4B BB F9 2D 86 54 5F E6 8F A8 12 78 E8 [22:45:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 D4 4D 47 00 8A 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 9F 0E 01 00 F4 03 04 00 92 70 A6 66 B6 04 01 00 00 64 B6 48 64 13 95 C4 77 [22:45:47]CommunicateWithHost err = 0 [22:45:47]CheckOFDResponse [22:45:47]1017 (14) - 77093643461234 [22:45:47]1041 (16) - 0000000000874949 [22:45:47]1040 (4) - 69279 [22:45:47]1012 (4) - 28.07.2024 16:23 [22:45:47]1206 (1) - 0 [22:45:47]OFD Sender: Remove packet 69279 [22:45:47]ProducePacketName [22:45:47]name=ofd_packets/00069279 [22:45:47]NVStorageDeleteData [22:45:47]Write to MH i2c: 01 00 00 30 5F 8F [22:45:47]Write i2c OK [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: 01 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: 01 07 00 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: 01 07 00 30 5F 00 00 00 00 00 BC 0C 5E [22:45:47]RasterBufferAndPrint [22:45:47]line [22:45:47]line [22:45:47]line [22:45:47]line [22:45:47]line [22:45:47]written 0, free lines is 3270 [22:45:47]MH_Cut [22:45:47]Write to MH i2c: D1 01 00 37 5F 01 68 [22:45:47]Write i2c OK [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: D1 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: D1 01 00 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: D1 01 00 37 5F 00 67 [22:45:47]Write to MH i2c: 01 00 00 38 5F 97 [22:45:47]Write i2c OK [22:45:47]MH_I2C_Read... [22:45:47]OFD Sender: No OFD packet to send [22:45:48]*** Cut start [22:45:48]*** Partial cut [22:45:48]*** CUTSNS_PIN = 1 [22:45:48]*** CUTSNS_PIN = 0 [22:45:48]*** Brake cut motor [22:45:48]Read from MH i2c: 01 [22:45:48]MH_I2C_Read... [22:45:48]*** Stop cut motor [22:45:48]*** Cut end [22:45:48]Read from MH i2c: 01 07 00 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: 01 07 00 38 5F 00 00 00 00 00 FF 0F AC [22:45:48]process_action close_receipt done [22:45:48]requested_data is exist [22:45:48]produce_requested_data [22:45:48]requested_item fm.sn is exist - process it [22:45:48]wFMCommunicate request_size=4 [22:45:48]MH_SAM_APDU [22:45:48]CAPDU: 80 11 00 00 [22:45:48]Write to MH i2c: E2 08 00 39 5F 80 11 00 00 00 00 00 00 12 [22:45:48]Write i2c OK [22:45:48]MH_I2C_Read... [22:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:48]Read from MH i2c: E2 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 17 00 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 17 00 39 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 6E [22:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [22:45:48]wFMCommunicate OK [22:45:48]requested_item fd.num is exist - process it [22:45:48]SAM_PROTO_GetFieldsCounters [22:45:48]wFMCommunicate request_size=4 [22:45:48]MH_SAM_APDU [22:45:48]CAPDU: 80 13 00 00 [22:45:48]Write to MH i2c: E2 08 00 3A 5F 80 13 00 00 00 00 00 00 15 [22:45:48]Write i2c OK [22:45:48]MH_I2C_Read... [22:45:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:49]Read from MH i2c: E2 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 62 00 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 62 00 3A 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 9F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [22:45: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 9F 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:45:49]wFMCommunicate OK [22:45:49]SAM_PROTO_GetFieldsCounters done [22:45:49]requested_item shift.num is exist - process it [22:45:49]requested_item shift.opened is exist - process it [22:45:49]req_shift_opened [22:45:49]FM_GetShiftState [22:45:49]SAM_PROTO_GetShiftState [22:45:49]wFMCommunicate request_size=4 [22:45:49]MH_SAM_APDU [22:45:49]CAPDU: 80 13 01 00 [22:45:49]Write to MH i2c: E2 08 00 3B 5F 80 13 01 00 00 00 00 00 17 [22:45:49]Write i2c OK [22:45:49]MH_I2C_Read... [22:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:49]Read from MH i2c: E2 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 0E 00 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: E2 0E 00 3B 5F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 54 [22:45:49]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [22:45:49]wFMCommunicate OK [22:45:49]SAM_PROTO_GetShiftState done [22:45:49]FM_GetShiftState done [22:45:49]req_shift_opened done [22:45:49]requested_item shift.open_date is exist - process it [22:45:49]req_shift_open_date [22:45:49]req_shift_open_date done [22:45:49]produce_requested_data done [22:45:49]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69279,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [22:45:49]process_action_free close_receipt [22:45:49]json_value_free [22:45:49]json_value_free done [22:45:49]process_json_proto returns [22:45:49]Send response to host [22:45:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69279,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [22:45:49]free response buf [22:45:49]execute_script done [22:45:49]execute_script returns [22:45:49]free content buf [22:45:49]Sock 7.Close socket [22:45:49]Sock 7.Thread stoped [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:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:27]accept exits with 9 [22:50:27]New connection [22:50:27]New thread 3066785124 created [22:50:27]Thread 3066641764 joined [22:50:27]Waiting for new connection... [22:50:27] Sock 9.Parse request [22:50:27]Sock 9.Check first char [22:50:27]Sock 9.First char is OK [22:50:27]request: POST /json_proto HTTP/1.0 [22:50:27]Method: POST [22:50:27]URL: /json_proto [22:50:27]Method is POST - this is cgi request [22:50:27]url: /json_proto [22:50:27]query_string will be loaded in cgi processing [22:50:27]execute_cgi json_proto POST (null) [22:50:27]execute_cgi path=json_proto method=POST [22:50:27]POST find Content-Length [22:50:27]Host: 172.17.49.132:8080 [22:50:27]Content-Length: 828 [22:50:27]Content-Type: application/json [22:50:27] [22:50:27]POST finish read [22:50:27]Found Content-Length = 828 [22:50:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136615", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 177.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:27]execute_script... [22:50:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136615", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 177.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:27]POST & json_proto [22:50:27]process_json_proto [22:50:27]json parsed OK: [22:50:27]protocol is kg_v1.0 [22:50:27]action value=close_receipt [22:50:27]process_action close_receipt [22:50:27]cmd_close_receipt [22:50:27]MH_GetDate [22:50:27]Write to MH i2c: F0 00 00 3C 5F 8A [22:50:27]Write i2c OK [22:50:27]MH_I2C_Read... [22:50:27]Read from MH i2c: F0 [22:50:27]MH_I2C_Read... [22:50:27]Read from MH i2c: F0 09 00 [22:50:27]MH_I2C_Read... [22:50:27]Read from MH i2c: F0 09 00 3C 5F 00 3F CB A6 66 E7 4B C0 64 FF [22:50:27]GetLastDocTimeStamp 1722206756 [22:50:27]current date 1722207039 [22:50:27]FM_GetShiftState [22:50:27]SAM_PROTO_GetShiftState [22:50:27]wFMCommunicate request_size=4 [22:50:27]MH_SAM_APDU [22:50:27]CAPDU: 80 13 01 00 [22:50:27]Write to MH i2c: E2 08 00 3D 5F 80 13 01 00 00 00 00 00 19 [22:50:27]Write i2c OK [22:50:27]MH_I2C_Read... [22:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:28]Read from MH i2c: E2 [22:50:28]MH_I2C_Read... [22:50:28]Read from MH i2c: E2 0E 00 [22:50:28]MH_I2C_Read... [22:50:28]Read from MH i2c: E2 0E 00 3D 5F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 56 [22:50:28]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [22:50:28]wFMCommunicate OK [22:50:28]SAM_PROTO_GetShiftState done [22:50:28]FM_GetShiftState done [22:50:28]opened in 1722127251 [22:50:28]opened+sec_in_day 1722213651 [22:50:28]quantity*price = 14000 [22:50:28]sum+1 = 14001 [22:50:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42113164 Жев Orbit White Spearmint 1.000 * 37.00 = 37.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 177.00 НСП 1% : 1.57 НДС 12% : 18.80 Наличными: 177.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 163 28.07.2024 22:50 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69280 ФПД: 81877856415914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T225039&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69280&fm=81877856415914&tin=02508201610067®Number=0000000000092638&sum=17700 0 [22:50:29]StoreToDocumentArchive [22:50:29]shift 429 fd 69280 [22:50:29]save to /storage/0429/doc_00069280 [22:50:29]save last doc name /storage/0429/doc_00069280 to /storage/kkm_last_doc_name [22:50:29]save OK [22:50:29]Clear old archive folders... [22:50:29]ProcessDocumentItem done err = 0, tmpTLVsize=368 [22:50:29]tlvbuf is 00BC3FD0 [22:50:29]SAM_PROTO_ClearQueue [22:50:29]wFMCommunicate request_size=4 [22:50:29]MH_SAM_APDU [22:50:29]CAPDU: 80 09 00 00 [22:50:29]Write to MH i2c: E2 08 00 4A 5F 80 09 00 00 00 00 00 00 1B [22:50:29]Write i2c OK [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: E2 [22:50:29]MH_I2C_Read... [22:50:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:29]Read from MH i2c: E2 03 00 [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: E2 03 00 4A 5F 00 90 00 1D [22:50:29]RAPDU: 90 00 [22:50:29]wFMCommunicate OK [22:50:29]SAM_PROTO_ClearQueue done [22:50:29]KKMCreateOFDPacket [22:50:29]OFDProtocolAddRootSTLVToBuf [22:50:29]FM_MakeSignedData [22:50:29]FM_MakeSignedData [22:50:29]SAM_PROTO_SignData [22:50:29]wFMCommunicate request_size=4 [22:50:29]MH_SAM_APDU [22:50:29]CAPDU: 80 0D 01 02 [22:50:29]Write to MH i2c: E2 08 00 4B 5F 80 0D 01 02 00 00 00 00 23 [22:50:29]Write i2c OK [22:50:29]MH_I2C_Read... [22:50:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:29]Read from MH i2c: E2 [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: E2 03 00 [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: E2 03 00 4B 5F 00 90 00 1E [22:50:29]RAPDU: 90 00 [22:50:29]wFMCommunicate OK [22:50:29]wFMCommunicate request_size=255 [22:50:29]MH_SAM_APDU [22:50:29]CAPDU: 80 0D 02 02 FA 03 00 70 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 [22:50:29]Write to MH i2c: E2 02 01 4C 5F 80 0D 02 02 FA 00 03 00 70 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 00 00 A8 [22:50:29]Write i2c OK [22:50:29]MH_I2C_Read... [22:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:29]Read from MH i2c: E2 [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: E2 03 00 [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: E2 03 00 4C 5F 00 90 00 1F [22:50:29]RAPDU: 90 00 [22:50:29]wFMCommunicate OK [22:50:29]wFMCommunicate request_size=127 [22:50:29]MH_SAM_APDU [22:50:29]CAPDU: 80 0D 02 02 7A 03 06 00 58 07 00 00 00 00 07 04 06 00 24 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 3F CB A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A0 0E 01 00 35 04 06 00 4A 77 AC 8B F0 AA [22:50:29]Write to MH i2c: E2 82 00 4D 5F 80 0D 02 02 7A 00 03 06 00 58 07 00 00 00 00 07 04 06 00 24 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 3F CB A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A0 0E 01 00 35 04 06 00 4A 77 AC 8B F0 AA 00 00 D9 [22:50:29]Write i2c OK [22:50:29]MH_I2C_Read... [22:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:29]Read from MH i2c: E2 [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: E2 03 00 [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: E2 03 00 4D 5F 00 90 00 20 [22:50:29]RAPDU: 90 00 [22:50:29]wFMCommunicate OK [22:50:29]wFMCommunicate request_size=4 [22:50:29]MH_SAM_APDU [22:50:29]CAPDU: 80 0D 03 02 [22:50:29]Write to MH i2c: E2 08 00 4E 5F 80 0D 03 02 00 00 00 00 28 [22:50:29]Write i2c OK [22:50:29]MH_I2C_Read... [22:50:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:29]Read from MH i2c: E2 [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: E2 0B 00 [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: E2 0B 00 4E 5F 00 2F F7 67 88 E9 FE 63 A3 90 00 2B [22:50:29]RAPDU: 2F F7 67 88 E9 FE 63 A3 90 00 [22:50:29]wFMCommunicate OK [22:50:29]SAM_PROTO_SignData done [22:50:29]FM_MakeSignedData done [22:50:29]CreateOFDProtocolMessage [22:50:29]wFMCommunicate request_size=4 [22:50:29]MH_SAM_APDU [22:50:29]CAPDU: 80 11 00 00 [22:50:29]Write to MH i2c: E2 08 00 4F 5F 80 11 00 00 00 00 00 00 28 [22:50:29]Write i2c OK [22:50:29]MH_I2C_Read... [22:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:29]Read from MH i2c: E2 [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: E2 17 00 [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: E2 17 00 4F 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 84 [22:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [22:50:29]wFMCommunicate OK [22:50:29]CreateOFDProtocolMessage done [22:50:29]OFDSenderStorePacket 69280 [22:50:29]StoreOFDPacket docnum=69280 [22:50:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 84 01 00 00 20 BF 7C 01 52 B1 5A 03 01 00 03 00 70 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 07 00 00 00 00 07 04 06 00 24 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 3F CB A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A0 0E 01 00 35 04 06 00 4A 77 AC 8B F0 AA 2F F7 67 88 E9 FE 63 A3 [22:50:29]CheckFolder [22:50:29]dirname=/storage/ofd_packets [22:50:29]CheckFolder done [22:50:29]ProducePacketName [22:50:29]name=ofd_packets/00069280 [22:50:29]NVStorageSaveData ofd_packets/00069280 [22:50:29]File name is /storage/ofd_packets/00069280 [22:50:29]Write 418 bytes [22:50:29]NVStorageSaveData done [22:50:29]OFDSenderStorePacket done [22:50:29]KKMCreateOFDPacket done [22:50:29]NVStorageSaveData kkm_last_timestamp [22:50:29]File name is /storage/kkm_last_timestamp [22:50:29]Write 4 bytes [22:50:29]NVStorageSaveData done [22:50:29]ExternCall_PrintAddStr [22:50:29]wPrintStart [22:50:29]Write to MH i2c: 01 00 00 50 5F AF [22:50:29]Write i2c OK [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: 01 [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: 01 07 00 [22:50:29]MH_I2C_Read... [22:50:29]Read from MH i2c: 01 07 00 50 5F 00 00 00 00 00 FF 0F C4 [22:50:29]RasterBufferAndPrint [22:50:30]line Счет N : (3)136615 [22:50:30]line ИНН: 02508201610067 [22:50:30]line Контрольно-Кассовый Чек [22:50:30]line ПРОДАЖА [22:50:30]line Товар: 48743570 [22:50:30]line Сигареты Winston XStyle Blue [22:50:30]line 1.000 * 140.00 [22:50:30]line = 140.00 [22:50:30]line НДС 12% НСП 1% [22:50:30]line > о реализуемом товаре [22:50:30]line Товар: 42113164 [22:50:30]line Жев Orbit White Spearmint [22:50:30]line 1.000 * 37.00 [22:50:30]line = 37.00 [22:50:30]line НДС 12% НСП 1% [22:50:30]line > о реализуемом товаре [22:50:30]line ИТОГО: 177.00 [22:50:30]line НСП 1% : 1.57 [22:50:30]line НДС 12% : 18.80 [22:50:30]line Наличными: 177.00 [22:50:30]line Безнал.: 0.00 [22:50:30]line Место: АЗС № 125 "Партнер Нефть" [22:50:30]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [22:50:30]line СНО: Общий режим [22:50:30]line Чек 163 28.07.2024 22:50 [22:50:30]line Смена: 429 ФФД: 1.0 [22:50:30]line ЗНМ: 0300000049 [22:50:30]line РНМ: 0000000000092638 [22:50:30]line Версия ККМ: 001 [22:50:30]line ФМ: 0000000000874949 [22:50:30]line ФД: 69280 [22:50:30]line ФПД: 81877856415914 [22:50:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T225039&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69280&fm=81877856415914&tin=02508201610067®Number=0000000000092638&sum=17700 [22:50:30]line 0 [22:50:30]OFD Sender: Processing packet 69280 [packets to send 19, broken 18] [22:50:30]ProducePacketName [22:50:30]name=ofd_packets/00069280 [22:50:30]OFD Sender: To server: pG, [22:50:30]CommunicateWithHost lk.salyk.kg:30040 [22:50:30]ConnectInit lk.salyk.kg [22:50:30]written 0, free lines is 4095 [22:50:30]Connected sock=10 [22:50: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 39 34 39 84 01 00 00 20 BF 7C 01 52 B1 5A 03 01 00 03 00 70 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 07 00 00 00 00 07 04 06 00 24 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 3F CB A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A0 0E 01 00 35 04 06 00 4A 77 AC 8B F0 AA 2F F7 67 88 E9 FE 63 A3 [22:50:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 48 A5 47 00 0C 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A0 0E 01 00 F4 03 04 00 AD 71 A6 66 B6 04 01 00 00 D8 73 6E F7 60 70 47 60 [22:50:30]CommunicateWithHost err = 0 [22:50:30]CheckOFDResponse [22:50:30]1017 (14) - 77093643461234 [22:50:30]1041 (16) - 0000000000874949 [22:50:30]1040 (4) - 69280 [22:50:30]1012 (4) - 28.07.2024 16:28 [22:50:30]1206 (1) - 0 [22:50:30]OFD Sender: Remove packet 69280 [22:50:30]ProducePacketName [22:50:30]name=ofd_packets/00069280 [22:50:30]NVStorageDeleteData [22:50:30]Write to MH i2c: 01 00 00 7E 5F DD [22:50:30]Write i2c OK [22:50:30]MH_I2C_Read... [22:50:30]Read from MH i2c: 01 [22:50:30]MH_I2C_Read... [22:50:30]Read from MH i2c: 01 07 00 [22:50:30]MH_I2C_Read... [22:50:30]Read from MH i2c: 01 07 00 7E 5F 00 00 00 00 00 C4 0C B4 [22:50:30]RasterBufferAndPrint [22:50:30]line [22:50:30]line [22:50:30]line [22:50:30]line [22:50:30]line [22:50:30]written 0, free lines is 3274 [22:50:30]MH_Cut [22:50:30]Write to MH i2c: D1 01 00 85 5F 01 B6 [22:50:30]Write i2c OK [22:50:30]MH_I2C_Read... [22:50:30]Read from MH i2c: D1 [22:50:30]MH_I2C_Read... [22:50:30]Read from MH i2c: D1 01 00 [22:50:30]MH_I2C_Read... [22:50:30]Read from MH i2c: D1 01 00 85 5F 00 B5 [22:50:30]Write to MH i2c: 01 00 00 86 5F E5 [22:50:30]Write i2c OK [22:50:30]MH_I2C_Read... [22:50:30]OFD Sender: No OFD packet to send [22:50:31]*** Cut start [22:50:31]*** Partial cut [22:50:31]*** CUTSNS_PIN = 1 [22:50:31]*** CUTSNS_PIN = 0 [22:50:31]*** Brake cut motor [22:50:31]Read from MH i2c: 01 [22:50:31]MH_I2C_Read... [22:50:31]*** Stop cut motor [22:50:31]*** Cut end [22:50:31]Read from MH i2c: 01 07 00 [22:50:31]MH_I2C_Read... [22:50:31]Read from MH i2c: 01 07 00 86 5F 00 00 00 00 00 FF 0F FA [22:50:31]process_action close_receipt done [22:50:31]requested_data is exist [22:50:31]produce_requested_data [22:50:31]requested_item fm.sn is exist - process it [22:50:31]wFMCommunicate request_size=4 [22:50:31]MH_SAM_APDU [22:50:31]CAPDU: 80 11 00 00 [22:50:31]Write to MH i2c: E2 08 00 87 5F 80 11 00 00 00 00 00 00 60 [22:50:31]Write i2c OK [22:50:31]MH_I2C_Read... [22:50:31]Read from MH i2c: E2 [22:50:31]MH_I2C_Read... [22:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:31]Read from MH i2c: E2 17 00 [22:50:31]MH_I2C_Read... [22:50:31]Read from MH i2c: E2 17 00 87 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 BC [22:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [22:50:31]wFMCommunicate OK [22:50:31]requested_item fd.num is exist - process it [22:50:31]SAM_PROTO_GetFieldsCounters [22:50:31]wFMCommunicate request_size=4 [22:50:31]MH_SAM_APDU [22:50:31]CAPDU: 80 13 00 00 [22:50:31]Write to MH i2c: E2 08 00 88 5F 80 13 00 00 00 00 00 00 63 [22:50:31]Write i2c OK [22:50:31]MH_I2C_Read... [22:50:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:32]Read from MH i2c: E2 [22:50:32]MH_I2C_Read... [22:50:32]Read from MH i2c: E2 62 00 [22:50:32]MH_I2C_Read... [22:50:32]Read from MH i2c: E2 62 00 88 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A0 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [22:50: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A0 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:32]wFMCommunicate OK [22:50:32]SAM_PROTO_GetFieldsCounters done [22:50:32]requested_item shift.num is exist - process it [22:50:32]requested_item shift.opened is exist - process it [22:50:32]req_shift_opened [22:50:32]FM_GetShiftState [22:50:32]SAM_PROTO_GetShiftState [22:50:32]wFMCommunicate request_size=4 [22:50:32]MH_SAM_APDU [22:50:32]CAPDU: 80 13 01 00 [22:50:32]Write to MH i2c: E2 08 00 89 5F 80 13 01 00 00 00 00 00 65 [22:50:32]Write i2c OK [22:50:32]MH_I2C_Read... [22:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:32]Read from MH i2c: E2 [22:50:32]MH_I2C_Read... [22:50:32]Read from MH i2c: E2 0E 00 [22:50:32]MH_I2C_Read... [22:50:32]Read from MH i2c: E2 0E 00 89 5F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A2 [22:50:32]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [22:50:32]wFMCommunicate OK [22:50:32]SAM_PROTO_GetShiftState done [22:50:32]FM_GetShiftState done [22:50:32]req_shift_opened done [22:50:32]requested_item shift.open_date is exist - process it [22:50:32]req_shift_open_date [22:50:32]req_shift_open_date done [22:50:32]produce_requested_data done [22:50:32]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69280,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [22:50:32]process_action_free close_receipt [22:50:32]json_value_free [22:50:32]json_value_free done [22:50:32]process_json_proto returns [22:50:32]Send response to host [22:50:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69280,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [22:50:32]free response buf [22:50:32]execute_script done [22:50:32]execute_script returns [22:50:32]free content buf [22:50:32]Sock 9.Close socket [22:50:32]Sock 9.Thread stoped [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:15]accept exits with 7 [22:53:15]New connection [22:53:15]New thread 3066641764 created [22:53:15]Thread 3066785124 joined [22:53:15]Waiting for new connection... [22:53:15] Sock 7.Parse request [22:53:15]Sock 7.Check first char [22:53:15]Sock 7.First char is OK [22:53:15]request: POST /json_proto HTTP/1.0 [22:53:15]Method: POST [22:53:15]URL: /json_proto [22:53:15]Method is POST - this is cgi request [22:53:15]url: /json_proto [22:53:15]query_string will be loaded in cgi processing [22:53:15]execute_cgi json_proto POST (null) [22:53:15]execute_cgi path=json_proto method=POST [22:53:15]POST find Content-Length [22:53:15]Host: 172.17.49.132:8080 [22:53:15]Content-Length: 656 [22:53:15]Content-Type: application/json [22:53:15] [22:53:15]POST finish read [22:53:15]Found Content-Length = 656 [22:53:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136616", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "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" ] } } [22:53:15]execute_script... [22:53: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)136616", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "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" ] } } [22:53:15]POST & json_proto [22:53:15]process_json_proto [22:53:15]json parsed OK: [22:53:15]protocol is kg_v1.0 [22:53:15]action value=close_receipt [22:53:15]process_action close_receipt [22:53:15]cmd_close_receipt [22:53:15]MH_GetDate [22:53:15]Write to MH i2c: F0 00 00 8A 5F D8 [22:53:15]Write i2c OK [22:53:15]MH_I2C_Read... [22:53:15]Read from MH i2c: F0 [22:53:15]MH_I2C_Read... [22:53:15]Read from MH i2c: F0 09 00 [22:53:15]MH_I2C_Read... [22:53:15]Read from MH i2c: F0 09 00 8A 5F 00 E7 CB A6 66 E7 4B C0 64 F5 [22:53:15]GetLastDocTimeStamp 1722207039 [22:53:15]current date 1722207207 [22:53:15]FM_GetShiftState [22:53:15]SAM_PROTO_GetShiftState [22:53:15]wFMCommunicate request_size=4 [22:53:15]MH_SAM_APDU [22:53:15]CAPDU: 80 13 01 00 [22:53:15]Write to MH i2c: E2 08 00 8B 5F 80 13 01 00 00 00 00 00 67 [22:53:15]Write i2c OK [22:53:15]MH_I2C_Read... [22:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:15]Read from MH i2c: E2 [22:53:15]MH_I2C_Read... [22:53:15]Read from MH i2c: E2 0E 00 [22:53:15]MH_I2C_Read... [22:53:15]Read from MH i2c: E2 0E 00 8B 5F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A4 [22:53:15]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [22:53:15]wFMCommunicate OK [22:53:15]SAM_PROTO_GetShiftState done [22:53:15]FM_GetShiftState done [22:53:15]opened in 1722127251 [22:53:15]opened+sec_in_day 1722213651 [22:53:15]quantity*price = 24000 [22:53:15]sum+1 = 24001 [22:53:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 164 28.07.2024 22:53 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69281 ФПД: 265316036881313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T225327&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69281&fm=265316036881313&tin=02508201610067®Number=0000000000092638&sum=24000 0 [22:53:16]StoreToDocumentArchive [22:53:16]shift 429 fd 69281 [22:53:16]save to /storage/0429/doc_00069281 [22:53:16]save last doc name /storage/0429/doc_00069281 to /storage/kkm_last_doc_name [22:53:16]save OK [22:53:16]Clear old archive folders... [22:53:16]ProcessDocumentItem done err = 0, tmpTLVsize=284 [22:53:16]tlvbuf is 00BC3E30 [22:53:16]SAM_PROTO_ClearQueue [22:53:16]wFMCommunicate request_size=4 [22:53:16]MH_SAM_APDU [22:53:16]CAPDU: 80 09 00 00 [22:53:16]Write to MH i2c: E2 08 00 98 5F 80 09 00 00 00 00 00 00 69 [22:53:16]Write i2c OK [22:53:16]MH_I2C_Read... [22:53:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:17]Read from MH i2c: E2 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 03 00 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 03 00 98 5F 00 90 00 6B [22:53:17]RAPDU: 90 00 [22:53:17]wFMCommunicate OK [22:53:17]SAM_PROTO_ClearQueue done [22:53:17]KKMCreateOFDPacket [22:53:17]OFDProtocolAddRootSTLVToBuf [22:53:17]FM_MakeSignedData [22:53:17]FM_MakeSignedData [22:53:17]SAM_PROTO_SignData [22:53:17]wFMCommunicate request_size=4 [22:53:17]MH_SAM_APDU [22:53:17]CAPDU: 80 0D 01 02 [22:53:17]Write to MH i2c: E2 08 00 99 5F 80 0D 01 02 00 00 00 00 71 [22:53:17]Write i2c OK [22:53:17]MH_I2C_Read... [22:53:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:17]Read from MH i2c: E2 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 03 00 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 03 00 99 5F 00 90 00 6C [22:53:17]RAPDU: 90 00 [22:53:17]wFMCommunicate OK [22:53:17]wFMCommunicate request_size=255 [22:53:17]MH_SAM_APDU [22:53:17]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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 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 A4 00 00 00 F4 03 04 00 E7 CB A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 [22:53:17]Write to MH i2c: E2 02 01 9A 5F 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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 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 A4 00 00 00 F4 03 04 00 E7 CB A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 00 00 DE [22:53:17]Write i2c OK [22:53:17]MH_I2C_Read... [22:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:17]Read from MH i2c: E2 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 03 00 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 03 00 9A 5F 00 90 00 6D [22:53:17]RAPDU: 90 00 [22:53:17]wFMCommunicate OK [22:53:17]wFMCommunicate request_size=43 [22:53:17]MH_SAM_APDU [22:53:17]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A1 0E 01 00 35 04 06 00 F1 4D B4 21 AB A1 [22:53:17]Write to MH i2c: E2 2E 00 9B 5F 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A1 0E 01 00 35 04 06 00 F1 4D B4 21 AB A1 00 00 74 [22:53:17]Write i2c OK [22:53:17]MH_I2C_Read... [22:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:17]Read from MH i2c: E2 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 03 00 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 03 00 9B 5F 00 90 00 6E [22:53:17]RAPDU: 90 00 [22:53:17]wFMCommunicate OK [22:53:17]wFMCommunicate request_size=4 [22:53:17]MH_SAM_APDU [22:53:17]CAPDU: 80 0D 03 02 [22:53:17]Write to MH i2c: E2 08 00 9C 5F 80 0D 03 02 00 00 00 00 76 [22:53:17]Write i2c OK [22:53:17]MH_I2C_Read... [22:53:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:17]Read from MH i2c: E2 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 0B 00 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 0B 00 9C 5F 00 B6 C5 33 85 50 73 B1 CB 90 00 E9 [22:53:17]RAPDU: B6 C5 33 85 50 73 B1 CB 90 00 [22:53:17]wFMCommunicate OK [22:53:17]SAM_PROTO_SignData done [22:53:17]FM_MakeSignedData done [22:53:17]CreateOFDProtocolMessage [22:53:17]wFMCommunicate request_size=4 [22:53:17]MH_SAM_APDU [22:53:17]CAPDU: 80 11 00 00 [22:53:17]Write to MH i2c: E2 08 00 9D 5F 80 11 00 00 00 00 00 00 76 [22:53:17]Write i2c OK [22:53:17]MH_I2C_Read... [22:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:17]Read from MH i2c: E2 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 17 00 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 17 00 9D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D2 [22:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [22:53:17]wFMCommunicate OK [22:53:17]CreateOFDProtocolMessage done [22:53:17]OFDSenderStorePacket 69281 [22:53:17]StoreOFDPacket docnum=69281 [22:53:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 30 01 00 00 AD 3B 28 01 70 B0 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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 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 A4 00 00 00 F4 03 04 00 E7 CB A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A1 0E 01 00 35 04 06 00 F1 4D B4 21 AB A1 B6 C5 33 85 50 73 B1 CB [22:53:17]CheckFolder [22:53:17]dirname=/storage/ofd_packets [22:53:17]CheckFolder done [22:53:17]ProducePacketName [22:53:17]name=ofd_packets/00069281 [22:53:17]NVStorageSaveData ofd_packets/00069281 [22:53:17]File name is /storage/ofd_packets/00069281 [22:53:17]Write 334 bytes [22:53:17]NVStorageSaveData done [22:53:17]OFDSenderStorePacket done [22:53:17]KKMCreateOFDPacket done [22:53:17]NVStorageSaveData kkm_last_timestamp [22:53:17]File name is /storage/kkm_last_timestamp [22:53:17]Write 4 bytes [22:53:17]NVStorageSaveData done [22:53:17]ExternCall_PrintAddStr [22:53:17]wPrintStart [22:53:17]Write to MH i2c: 01 00 00 9E 5F FD [22:53:17]Write i2c OK [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: 01 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: 01 07 00 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: 01 07 00 9E 5F 00 00 00 00 00 FF 0F 12 [22:53:17]RasterBufferAndPrint [22:53:17]line Счет N : (3)136616 [22:53:17]line ИНН: 02508201610067 [22:53:17]line Контрольно-Кассовый Чек [22:53:17]line ПРОДАЖА [22:53:17]line Товар: 2000034250011 [22:53:17]line Горячий шоколад (GABB trade) [22:53:17]line 2.000 * 120.00 [22:53:17]line = 240.00 [22:53:17]line НДС 12% НСП 1% [22:53:17]line > о реализуемом товаре [22:53:17]line ИТОГО: 240.00 [22:53:17]line НСП 1% : 2.12 [22:53:17]line НДС 12% : 25.49 [22:53:17]line Наличными: 240.00 [22:53:17]line Безнал.: 0.00 [22:53:17]line Место: АЗС № 125 "Партнер Нефть" [22:53:17]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [22:53:17]line СНО: Общий режим [22:53:17]line Чек 164 28.07.2024 22:53 [22:53:17]line Смена: 429 ФФД: 1.0 [22:53:17]line ЗНМ: 0300000049 [22:53:17]line РНМ: 0000000000092638 [22:53:17]line Версия ККМ: 001 [22:53:17]line ФМ: 0000000000874949 [22:53:17]line ФД: 69281 [22:53:17]line ФПД: 265316036881313 [22:53:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T225327&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69281&fm=265316036881313&tin=02508201610067®Number=0000000000092638&sum=24000 [22:53:17]line 0 [22:53:17]written 0, free lines is 4095 [22:53:17]OFD Sender: Processing packet 69281 [packets to send 19, broken 18] [22:53:17]ProducePacketName [22:53:17]name=ofd_packets/00069281 [22:53:17]OFD Sender: To server: pG, [22:53:17]CommunicateWithHost lk.salyk.kg:30040 [22:53:17]ConnectInit lk.salyk.kg [22:53:17]Connected sock=11 [22:53: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 39 34 39 30 01 00 00 AD 3B 28 01 70 B0 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 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 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 A4 00 00 00 F4 03 04 00 E7 CB A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A1 0E 01 00 35 04 06 00 F1 4D B4 21 AB A1 B6 C5 33 85 50 73 B1 CB [22:53:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 5F 2D 47 00 E2 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A1 0E 01 00 F4 03 04 00 55 72 A6 66 B6 04 01 00 00 B5 2D 79 C0 C1 B9 31 E7 [22:53:17]CommunicateWithHost err = 0 [22:53:17]CheckOFDResponse [22:53:17]1017 (14) - 77093643461234 [22:53:17]1041 (16) - 0000000000874949 [22:53:17]1040 (4) - 69281 [22:53:17]1012 (4) - 28.07.2024 16:31 [22:53:17]1206 (1) - 0 [22:53:17]OFD Sender: Remove packet 69281 [22:53:17]ProducePacketName [22:53:17]name=ofd_packets/00069281 [22:53:17]NVStorageDeleteData [22:53:17]Write to MH i2c: 01 00 00 C7 5F 26 [22:53:17]Write i2c OK [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: 01 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: 01 07 00 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: 01 07 00 C7 5F 00 00 00 00 00 0C 0D 46 [22:53:17]RasterBufferAndPrint [22:53:17]line [22:53:17]line [22:53:17]line [22:53:17]line [22:53:17]line [22:53:17]written 0, free lines is 3346 [22:53:17]MH_Cut [22:53:17]Write to MH i2c: D1 01 00 CE 5F 01 FF [22:53:17]Write i2c OK [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: D1 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: D1 01 00 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: D1 01 00 CE 5F 00 FE [22:53:17]Write to MH i2c: 01 00 00 CF 5F 2E [22:53:17]Write i2c OK [22:53:17]MH_I2C_Read... [22:53:18]OFD Sender: No OFD packet to send [22:53:18]*** Cut start [22:53:18]*** Partial cut [22:53:18]*** CUTSNS_PIN = 1 [22:53:18]*** CUTSNS_PIN = 0 [22:53:18]*** Brake cut motor [22:53:19]Read from MH i2c: 01 [22:53:19]*** Stop cut motor [22:53:19]*** Cut end [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: 01 07 00 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: 01 07 00 CF 5F 00 00 00 00 00 FF 0F 43 [22:53:19]process_action close_receipt done [22:53:19]requested_data is exist [22:53:19]produce_requested_data [22:53:19]requested_item fm.sn is exist - process it [22:53:19]wFMCommunicate request_size=4 [22:53:19]MH_SAM_APDU [22:53:19]CAPDU: 80 11 00 00 [22:53:19]Write to MH i2c: E2 08 00 D0 5F 80 11 00 00 00 00 00 00 A9 [22:53:19]Write i2c OK [22:53:19]MH_I2C_Read... [22:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:19]Read from MH i2c: E2 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 17 00 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 17 00 D0 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 05 [22:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [22:53:19]wFMCommunicate OK [22:53:19]requested_item fd.num is exist - process it [22:53:19]SAM_PROTO_GetFieldsCounters [22:53:19]wFMCommunicate request_size=4 [22:53:19]MH_SAM_APDU [22:53:19]CAPDU: 80 13 00 00 [22:53:19]Write to MH i2c: E2 08 00 D1 5F 80 13 00 00 00 00 00 00 AC [22:53:19]Write i2c OK [22:53:19]MH_I2C_Read... [22:53:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:19]Read from MH i2c: E2 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 62 00 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 62 00 D1 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A1 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [22:53: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A1 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:19]wFMCommunicate OK [22:53:19]SAM_PROTO_GetFieldsCounters done [22:53:19]requested_item shift.num is exist - process it [22:53:19]requested_item shift.opened is exist - process it [22:53:19]req_shift_opened [22:53:19]FM_GetShiftState [22:53:19]SAM_PROTO_GetShiftState [22:53:19]wFMCommunicate request_size=4 [22:53:19]MH_SAM_APDU [22:53:19]CAPDU: 80 13 01 00 [22:53:19]Write to MH i2c: E2 08 00 D2 5F 80 13 01 00 00 00 00 00 AE [22:53:19]Write i2c OK [22:53:19]MH_I2C_Read... [22:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:19]Read from MH i2c: E2 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 0E 00 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 0E 00 D2 5F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 EB [22:53:19]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [22:53:19]wFMCommunicate OK [22:53:19]SAM_PROTO_GetShiftState done [22:53:19]FM_GetShiftState done [22:53:19]req_shift_opened done [22:53:19]requested_item shift.open_date is exist - process it [22:53:19]req_shift_open_date [22:53:19]req_shift_open_date done [22:53:19]produce_requested_data done [22:53:19]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69281,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [22:53:19]process_action_free close_receipt [22:53:19]json_value_free [22:53:19]json_value_free done [22:53:19]process_json_proto returns [22:53:19]Send response to host [22:53:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69281,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [22:53:19]free response buf [22:53:19]execute_script done [22:53:19]execute_script returns [22:53:19]free content buf [22:53:19]Sock 7.Close socket [22:53:19]Sock 7.Thread stoped [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [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:40]accept exits with 9 [22:54:40]New connection [22:54:40]New thread 3066785124 created [22:54:40]Thread 3066641764 joined [22:54:40]Waiting for new connection... [22:54:40] Sock 9.Parse request [22:54:40]Sock 9.Check first char [22:54:40]Sock 9.First char is OK [22:54:40]request: POST /json_proto HTTP/1.0 [22:54:40]Method: POST [22:54:40]URL: /json_proto [22:54:40]Method is POST - this is cgi request [22:54:40]url: /json_proto [22:54:40]query_string will be loaded in cgi processing [22:54:40]execute_cgi json_proto POST (null) [22:54:40]execute_cgi path=json_proto method=POST [22:54:40]POST find Content-Length [22:54:40]Host: 172.17.49.132:8080 [22:54:40]Content-Length: 667 [22:54:40]Content-Type: application/json [22:54:40] [22:54:40]POST finish read [22:54:40]Found Content-Length = 667 [22:54:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136617", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:40]execute_script... [22:54:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136617", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:40]POST & json_proto [22:54:40]process_json_proto [22:54:40]json parsed OK: [22:54:40]protocol is kg_v1.0 [22:54:40]action value=close_receipt [22:54:40]process_action close_receipt [22:54:40]cmd_close_receipt [22:54:40]MH_GetDate [22:54:40]Write to MH i2c: F0 00 00 D3 5F 21 [22:54:40]Write i2c OK [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: F0 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: F0 09 00 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: F0 09 00 D3 5F 00 3C CC A6 66 E7 4B C0 64 94 [22:54:40]GetLastDocTimeStamp 1722207207 [22:54:40]current date 1722207292 [22:54:40]FM_GetShiftState [22:54:40]SAM_PROTO_GetShiftState [22:54:40]wFMCommunicate request_size=4 [22:54:40]MH_SAM_APDU [22:54:40]CAPDU: 80 13 01 00 [22:54:40]Write to MH i2c: E2 08 00 D4 5F 80 13 01 00 00 00 00 00 B0 [22:54:40]Write i2c OK [22:54:40]MH_I2C_Read... [22:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:40]Read from MH i2c: E2 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 0E 00 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 0E 00 D4 5F 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 ED [22:54:40]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [22:54:40]wFMCommunicate OK [22:54:40]SAM_PROTO_GetShiftState done [22:54:40]FM_GetShiftState done [22:54:40]opened in 1722127251 [22:54:40]opened+sec_in_day 1722213651 [22:54:40]quantity*price = 35000 [22:54:40]sum+1 = 35001 [22:54:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 165 28.07.2024 22:54 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69282 ФПД: 72008180698951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T225452&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69282&fm=72008180698951&tin=02508201610067®Number=0000000000092638&sum=35000 0 [22:54:41]StoreToDocumentArchive [22:54:41]shift 429 fd 69282 [22:54:41]save to /storage/0429/doc_00069282 [22:54:41]save last doc name /storage/0429/doc_00069282 to /storage/kkm_last_doc_name [22:54:41]save OK [22:54:41]Clear old archive folders... [22:54:41]ProcessDocumentItem done err = 0, tmpTLVsize=283 [22:54:41]tlvbuf is 00B2DA40 [22:54:41]SAM_PROTO_ClearQueue [22:54:41]wFMCommunicate request_size=4 [22:54:41]MH_SAM_APDU [22:54:41]CAPDU: 80 09 00 00 [22:54:41]Write to MH i2c: E2 08 00 E1 5F 80 09 00 00 00 00 00 00 B2 [22:54:42]Write i2c OK [22:54:42]MH_I2C_Read... [22:54:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:42]Read from MH i2c: E2 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 03 00 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 03 00 E1 5F 00 90 00 B4 [22:54:42]RAPDU: 90 00 [22:54:42]wFMCommunicate OK [22:54:42]SAM_PROTO_ClearQueue done [22:54:42]KKMCreateOFDPacket [22:54:42]OFDProtocolAddRootSTLVToBuf [22:54:42]FM_MakeSignedData [22:54:42]FM_MakeSignedData [22:54:42]SAM_PROTO_SignData [22:54:42]wFMCommunicate request_size=4 [22:54:42]MH_SAM_APDU [22:54:42]CAPDU: 80 0D 01 02 [22:54:42]Write to MH i2c: E2 08 00 E2 5F 80 0D 01 02 00 00 00 00 BA [22:54:42]Write i2c OK [22:54:42]MH_I2C_Read... [22:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:42]Read from MH i2c: E2 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 03 00 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 03 00 E2 5F 00 90 00 B5 [22:54:42]RAPDU: 90 00 [22:54:42]wFMCommunicate OK [22:54:42]wFMCommunicate request_size=255 [22:54:42]MH_SAM_APDU [22:54:42]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 3C CC A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 [22:54:42]Write to MH i2c: E2 02 01 E3 5F 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 3C CC A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 00 00 9F [22:54:42]Write i2c OK [22:54:42]MH_I2C_Read... [22:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:42]Read from MH i2c: E2 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 03 00 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 03 00 E3 5F 00 90 00 B6 [22:54:42]RAPDU: 90 00 [22:54:42]wFMCommunicate OK [22:54:42]wFMCommunicate request_size=42 [22:54:42]MH_SAM_APDU [22:54:42]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A2 0E 01 00 35 04 06 00 41 7D B6 08 0F 47 [22:54:42]Write to MH i2c: E2 2D 00 E4 5F 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A2 0E 01 00 35 04 06 00 41 7D B6 08 0F 47 00 00 1E [22:54:42]Write i2c OK [22:54:42]MH_I2C_Read... [22:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:42]Read from MH i2c: E2 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 03 00 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 03 00 E4 5F 00 90 00 B7 [22:54:42]RAPDU: 90 00 [22:54:42]wFMCommunicate OK [22:54:42]wFMCommunicate request_size=4 [22:54:42]MH_SAM_APDU [22:54:42]CAPDU: 80 0D 03 02 [22:54:42]Write to MH i2c: E2 08 00 E5 5F 80 0D 03 02 00 00 00 00 BF [22:54:42]Write i2c OK [22:54:42]MH_I2C_Read... [22:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:42]Read from MH i2c: E2 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 0B 00 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 0B 00 E5 5F 00 CA 94 D7 8A 70 74 58 5E 90 00 19 [22:54:42]RAPDU: CA 94 D7 8A 70 74 58 5E 90 00 [22:54:42]wFMCommunicate OK [22:54:42]SAM_PROTO_SignData done [22:54:42]FM_MakeSignedData done [22:54:42]CreateOFDProtocolMessage [22:54:42]wFMCommunicate request_size=4 [22:54:42]MH_SAM_APDU [22:54:42]CAPDU: 80 11 00 00 [22:54:42]Write to MH i2c: E2 08 00 E6 5F 80 11 00 00 00 00 00 00 BF [22:54:42]Write i2c OK [22:54:42]MH_I2C_Read... [22:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:42]Read from MH i2c: E2 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 17 00 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 17 00 E6 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 1B [22:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [22:54:42]wFMCommunicate OK [22:54:42]CreateOFDProtocolMessage done [22:54:42]OFDSenderStorePacket 69282 [22:54:42]StoreOFDPacket docnum=69282 [22:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2F 01 00 00 DC E7 27 01 F0 8B 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 3C CC A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A2 0E 01 00 35 04 06 00 41 7D B6 08 0F 47 CA 94 D7 8A 70 74 58 5E [22:54:42]CheckFolder [22:54:42]dirname=/storage/ofd_packets [22:54:42]CheckFolder done [22:54:42]ProducePacketName [22:54:42]name=ofd_packets/00069282 [22:54:42]NVStorageSaveData ofd_packets/00069282 [22:54:42]File name is /storage/ofd_packets/00069282 [22:54:42]Write 333 bytes [22:54:42]NVStorageSaveData done [22:54:42]OFDSenderStorePacket done [22:54:42]KKMCreateOFDPacket done [22:54:42]NVStorageSaveData kkm_last_timestamp [22:54:42]File name is /storage/kkm_last_timestamp [22:54:42]Write 4 bytes [22:54:42]NVStorageSaveData done [22:54:42]ExternCall_PrintAddStr [22:54:42]wPrintStart [22:54:42]Write to MH i2c: 01 00 00 E7 5F 46 [22:54:42]Write i2c OK [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: 01 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: 01 07 00 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: 01 07 00 E7 5F 00 00 00 00 00 FF 0F 5B [22:54:42]RasterBufferAndPrint [22:54:42]line Счет N : (3)136617 [22:54:42]line ИНН: 02508201610067 [22:54:42]line Контрольно-Кассовый Чек [22:54:42]line ПРОДАЖА [22:54:42]line Товар: 4700002082191 [22:54:42]line Водка Белое золото 0,46л [22:54:42]line 1.000 * 350.00 [22:54:42]line = 350.00 [22:54:42]line НДС 12% НСП 1% [22:54:42]line > о реализуемом товаре [22:54:42]line ИТОГО: 350.00 [22:54:42]line НСП 1% : 3.10 [22:54:42]line НДС 12% : 37.17 [22:54:42]line Наличными: 350.00 [22:54:42]line Безнал.: 0.00 [22:54:42]line Место: АЗС № 125 "Партнер Нефть" [22:54:42]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [22:54:42]line СНО: Общий режим [22:54:42]line Чек 165 28.07.2024 22:54 [22:54:42]line Смена: 429 ФФД: 1.0 [22:54:42]line ЗНМ: 0300000049 [22:54:42]line РНМ: 0000000000092638 [22:54:42]line Версия ККМ: 001 [22:54:42]line ФМ: 0000000000874949 [22:54:42]line ФД: 69282 [22:54:42]line ФПД: 72008180698951 [22:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T225452&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69282&fm=72008180698951&tin=02508201610067®Number=0000000000092638&sum=35000 [22:54:42]line 0 [22:54:42]OFD Sender: Processing packet 69282 [packets to send 19, broken 18] [22:54:42]ProducePacketName [22:54:42]name=ofd_packets/00069282 [22:54:42]OFD Sender: To server: pG, [22:54:42]CommunicateWithHost lk.salyk.kg:30040 [22:54:42]ConnectInit lk.salyk.kg [22:54:42]written 0, free lines is 4095 [22:54:42]Connected sock=10 [22:54: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 39 34 39 2F 01 00 00 DC E7 27 01 F0 8B 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 3C CC A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A2 0E 01 00 35 04 06 00 41 7D B6 08 0F 47 CA 94 D7 8A 70 74 58 5E [22:54:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 91 C4 47 00 55 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A2 0E 01 00 F4 03 04 00 AA 72 A6 66 B6 04 01 00 00 DC 0B C9 33 D7 52 C8 3D [22:54:43]CommunicateWithHost err = 0 [22:54:43]CheckOFDResponse [22:54:43]1017 (14) - 77093643461234 [22:54:43]1041 (16) - 0000000000874949 [22:54:43]1040 (4) - 69282 [22:54:43]1012 (4) - 28.07.2024 16:32 [22:54:43]1206 (1) - 0 [22:54:43]OFD Sender: Remove packet 69282 [22:54:43]ProducePacketName [22:54:43]name=ofd_packets/00069282 [22:54:43]NVStorageDeleteData [22:54:43]Write to MH i2c: 01 00 00 0F 60 6F [22:54:43]Write i2c OK [22:54:43]MH_I2C_Read... [22:54:43]Read from MH i2c: 01 [22:54:43]MH_I2C_Read... [22:54:43]Read from MH i2c: 01 07 00 [22:54:43]MH_I2C_Read... [22:54:43]Read from MH i2c: 01 07 00 0F 60 00 00 00 00 00 23 0D A6 [22:54:43]RasterBufferAndPrint [22:54:43]line [22:54:43]line [22:54:43]line [22:54:43]line [22:54:43]line [22:54:43]written 0, free lines is 3370 [22:54:43]MH_Cut [22:54:43]Write to MH i2c: D1 01 00 16 60 01 48 [22:54:43]Write i2c OK [22:54:43]MH_I2C_Read... [22:54:43]Read from MH i2c: D1 [22:54:43]MH_I2C_Read... [22:54:43]Read from MH i2c: D1 01 00 [22:54:43]MH_I2C_Read... [22:54:43]Read from MH i2c: D1 01 00 16 60 00 47 [22:54:43]Write to MH i2c: 01 00 00 17 60 77 [22:54:43]Write i2c OK [22:54:43]MH_I2C_Read... [22:54:43]OFD Sender: No OFD packet to send [22:54:43]*** Cut start [22:54:43]*** Partial cut [22:54:43]*** CUTSNS_PIN = 1 [22:54:43]*** CUTSNS_PIN = 0 [22:54:44]*** Brake cut motor [22:54:44]Read from MH i2c: 01 [22:54:44]MH_I2C_Read... [22:54:44]*** Stop cut motor [22:54:44]*** Cut end [22:54:44]Read from MH i2c: 01 07 00 [22:54:44]MH_I2C_Read... [22:54:44]Read from MH i2c: 01 07 00 17 60 00 00 00 00 00 FF 0F 8C [22:54:44]process_action close_receipt done [22:54:44]requested_data is exist [22:54:44]produce_requested_data [22:54:44]requested_item fm.sn is exist - process it [22:54:44]wFMCommunicate request_size=4 [22:54:44]MH_SAM_APDU [22:54:44]CAPDU: 80 11 00 00 [22:54:44]Write to MH i2c: E2 08 00 18 60 80 11 00 00 00 00 00 00 F2 [22:54:44]Write i2c OK [22:54:44]MH_I2C_Read... [22:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:44]Read from MH i2c: E2 [22:54:44]MH_I2C_Read... [22:54:44]Read from MH i2c: E2 17 00 [22:54:44]MH_I2C_Read... [22:54:44]Read from MH i2c: E2 17 00 18 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 4E [22:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [22:54:44]wFMCommunicate OK [22:54:44]requested_item fd.num is exist - process it [22:54:44]SAM_PROTO_GetFieldsCounters [22:54:44]wFMCommunicate request_size=4 [22:54:44]MH_SAM_APDU [22:54:44]CAPDU: 80 13 00 00 [22:54:44]Write to MH i2c: E2 08 00 19 60 80 13 00 00 00 00 00 00 F5 [22:54:44]Write i2c OK [22:54:44]MH_I2C_Read... [22:54:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:44]Read from MH i2c: E2 [22:54:44]MH_I2C_Read... [22:54:44]Read from MH i2c: E2 62 00 [22:54:44]MH_I2C_Read... [22:54:44]Read from MH i2c: E2 62 00 19 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A2 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [22:54: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A2 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:54:44]wFMCommunicate OK [22:54:44]SAM_PROTO_GetFieldsCounters done [22:54:44]requested_item shift.num is exist - process it [22:54:44]requested_item shift.opened is exist - process it [22:54:44]req_shift_opened [22:54:44]FM_GetShiftState [22:54:44]SAM_PROTO_GetShiftState [22:54:44]wFMCommunicate request_size=4 [22:54:44]MH_SAM_APDU [22:54:44]CAPDU: 80 13 01 00 [22:54:44]Write to MH i2c: E2 08 00 1A 60 80 13 01 00 00 00 00 00 F7 [22:54:44]Write i2c OK [22:54:44]MH_I2C_Read... [22:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:44]Read from MH i2c: E2 [22:54:44]MH_I2C_Read... [22:54:44]Read from MH i2c: E2 0E 00 [22:54:44]MH_I2C_Read... [22:54:44]Read from MH i2c: E2 0E 00 1A 60 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 34 [22:54:44]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [22:54:44]wFMCommunicate OK [22:54:44]SAM_PROTO_GetShiftState done [22:54:44]FM_GetShiftState done [22:54:44]req_shift_opened done [22:54:44]requested_item shift.open_date is exist - process it [22:54:44]req_shift_open_date [22:54:44]req_shift_open_date done [22:54:44]produce_requested_data done [22:54:44]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69282,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [22:54:44]process_action_free close_receipt [22:54:44]json_value_free [22:54:44]json_value_free done [22:54:44]process_json_proto returns [22:54:44]Send response to host [22:54:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69282,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [22:54:44]free response buf [22:54:44]execute_script done [22:54:44]execute_script returns [22:54:44]free content buf [22:54:44]Sock 9.Close socket [22:54:44]Sock 9.Thread stoped [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:56]accept exits with 7 [22:55:56]New connection [22:55:56]New thread 3066641764 created [22:55:56]Thread 3066785124 joined [22:55:56]Waiting for new connection... [22:55:56] Sock 7.Parse request [22:55:56]Sock 7.Check first char [22:55:56]Sock 7.First char is OK [22:55:56]request: POST /json_proto HTTP/1.0 [22:55:56]Method: POST [22:55:56]URL: /json_proto [22:55:56]Method is POST - this is cgi request [22:55:56]url: /json_proto [22:55:56]query_string will be loaded in cgi processing [22:55:56]execute_cgi json_proto POST (null) [22:55:56]execute_cgi path=json_proto method=POST [22:55:56]POST find Content-Length [22:55:56]Host: 172.17.49.132:8080 [22:55:56]Content-Length: 617 [22:55:56]Content-Type: application/json [22:55:56] [22:55:56]POST finish read [22:55:56]Found Content-Length = 617 [22:55:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136618", "tax_sys" : 0, "items" : [ { "code": "48742184", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Red", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:56]execute_script... [22:55: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)136618", "tax_sys" : 0, "items" : [ { "code": "48742184", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Red", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:56]POST & json_proto [22:55:56]process_json_proto [22:55:56]json parsed OK: [22:55:56]protocol is kg_v1.0 [22:55:56]action value=close_receipt [22:55:56]process_action close_receipt [22:55:56]cmd_close_receipt [22:55:56]MH_GetDate [22:55:56]Write to MH i2c: F0 00 00 1B 60 6A [22:55:56]Write i2c OK [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: F0 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: F0 09 00 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: F0 09 00 1B 60 00 88 CC A6 66 E7 4B C0 64 29 [22:55:56]GetLastDocTimeStamp 1722207292 [22:55:56]current date 1722207368 [22:55:56]FM_GetShiftState [22:55:56]SAM_PROTO_GetShiftState [22:55:56]wFMCommunicate request_size=4 [22:55:56]MH_SAM_APDU [22:55:56]CAPDU: 80 13 01 00 [22:55:56]Write to MH i2c: E2 08 00 1C 60 80 13 01 00 00 00 00 00 F9 [22:55:56]Write i2c OK [22:55:56]MH_I2C_Read... [22:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:56]Read from MH i2c: E2 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 0E 00 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 0E 00 1C 60 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 36 [22:55:56]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [22:55:56]wFMCommunicate OK [22:55:56]SAM_PROTO_GetShiftState done [22:55:56]FM_GetShiftState done [22:55:56]opened in 1722127251 [22:55:56]opened+sec_in_day 1722213651 [22:55:56]quantity*price = 25000 [22:55:56]sum+1 = 25001 [22:55:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 166 28.07.2024 22:56 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69283 ФПД: 23725713058835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T225608&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69283&fm=23725713058835&tin=02508201610067®Number=0000000000092638&sum=25000 0 [22:55:57]StoreToDocumentArchive [22:55:57]shift 429 fd 69283 [22:55:57]save to /storage/0429/doc_00069283 [22:55:57]save last doc name /storage/0429/doc_00069283 to /storage/kkm_last_doc_name [22:55:57]save OK [22:55:57]Clear old archive folders... [22:55:57]ProcessDocumentItem done err = 0, tmpTLVsize=269 [22:55:57]tlvbuf is 00B2B4B0 [22:55:57]SAM_PROTO_ClearQueue [22:55:57]wFMCommunicate request_size=4 [22:55:57]MH_SAM_APDU [22:55:57]CAPDU: 80 09 00 00 [22:55:57]Write to MH i2c: E2 08 00 29 60 80 09 00 00 00 00 00 00 FB [22:55:57]Write i2c OK [22:55:57]MH_I2C_Read... [22:55:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:58]Read from MH i2c: E2 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 03 00 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 03 00 29 60 00 90 00 FD [22:55:58]RAPDU: 90 00 [22:55:58]wFMCommunicate OK [22:55:58]SAM_PROTO_ClearQueue done [22:55:58]KKMCreateOFDPacket [22:55:58]OFDProtocolAddRootSTLVToBuf [22:55:58]FM_MakeSignedData [22:55:58]FM_MakeSignedData [22:55:58]SAM_PROTO_SignData [22:55:58]wFMCommunicate request_size=4 [22:55:58]MH_SAM_APDU [22:55:58]CAPDU: 80 0D 01 02 [22:55:58]Write to MH i2c: E2 08 00 2A 60 80 0D 01 02 00 00 00 00 03 [22:55:58]Write i2c OK [22:55:58]MH_I2C_Read... [22:55:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:58]Read from MH i2c: E2 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 03 00 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 03 00 2A 60 00 90 00 FE [22:55:58]RAPDU: 90 00 [22:55:58]wFMCommunicate OK [22:55:58]wFMCommunicate request_size=255 [22:55:58]MH_SAM_APDU [22:55:58]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 38 37 34 32 31 38 34 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 52 65 64 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 88 CC A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [22:55:58]Write to MH i2c: E2 02 01 2B 60 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 38 37 34 32 31 38 34 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 52 65 64 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 88 CC A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 06 [22:55:58]Write i2c OK [22:55:58]MH_I2C_Read... [22:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:58]Read from MH i2c: E2 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 03 00 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 03 00 2B 60 00 90 00 FF [22:55:58]RAPDU: 90 00 [22:55:58]wFMCommunicate OK [22:55:58]wFMCommunicate request_size=28 [22:55:58]MH_SAM_APDU [22:55:58]CAPDU: 80 0D 02 02 17 37 34 39 34 39 10 04 04 00 A3 0E 01 00 35 04 06 00 15 94 12 B2 EC 13 [22:55:58]Write to MH i2c: E2 1F 00 2C 60 80 0D 02 02 17 00 37 34 39 34 39 10 04 04 00 A3 0E 01 00 35 04 06 00 15 94 12 B2 EC 13 00 00 BA [22:55:58]Write i2c OK [22:55:58]MH_I2C_Read... [22:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:58]Read from MH i2c: E2 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 03 00 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 03 00 2C 60 00 90 00 00 [22:55:58]RAPDU: 90 00 [22:55:58]wFMCommunicate OK [22:55:58]wFMCommunicate request_size=4 [22:55:58]MH_SAM_APDU [22:55:58]CAPDU: 80 0D 03 02 [22:55:58]Write to MH i2c: E2 08 00 2D 60 80 0D 03 02 00 00 00 00 08 [22:55:58]Write i2c OK [22:55:58]MH_I2C_Read... [22:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:58]Read from MH i2c: E2 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 0B 00 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 0B 00 2D 60 00 08 1E DC ED 0E 95 5F 71 90 00 6B [22:55:58]RAPDU: 08 1E DC ED 0E 95 5F 71 90 00 [22:55:58]wFMCommunicate OK [22:55:58]SAM_PROTO_SignData done [22:55:58]FM_MakeSignedData done [22:55:58]CreateOFDProtocolMessage [22:55:58]wFMCommunicate request_size=4 [22:55:58]MH_SAM_APDU [22:55:58]CAPDU: 80 11 00 00 [22:55:58]Write to MH i2c: E2 08 00 2E 60 80 11 00 00 00 00 00 00 08 [22:55:58]Write i2c OK [22:55:58]MH_I2C_Read... [22:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:58]Read from MH i2c: E2 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 17 00 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 17 00 2E 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 64 [22:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [22:55:58]wFMCommunicate OK [22:55:58]CreateOFDProtocolMessage done [22:55:58]OFDSenderStorePacket 69283 [22:55:58]StoreOFDPacket docnum=69283 [22:55:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 21 01 00 00 6B 1F 19 01 3F B1 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 38 37 34 32 31 38 34 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 52 65 64 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 88 CC A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A3 0E 01 00 35 04 06 00 15 94 12 B2 EC 13 08 1E DC ED 0E 95 5F 71 [22:55:58]CheckFolder [22:55:58]dirname=/storage/ofd_packets [22:55:58]CheckFolder done [22:55:58]ProducePacketName [22:55:58]name=ofd_packets/00069283 [22:55:58]NVStorageSaveData ofd_packets/00069283 [22:55:58]File name is /storage/ofd_packets/00069283 [22:55:58]Write 319 bytes [22:55:58]NVStorageSaveData done [22:55:58]OFDSenderStorePacket done [22:55:58]KKMCreateOFDPacket done [22:55:58]NVStorageSaveData kkm_last_timestamp [22:55:58]File name is /storage/kkm_last_timestamp [22:55:58]Write 4 bytes [22:55:58]NVStorageSaveData done [22:55:58]ExternCall_PrintAddStr [22:55:58]wPrintStart [22:55:58]Write to MH i2c: 01 00 00 2F 60 8F [22:55:58]Write i2c OK [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: 01 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: 01 07 00 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: 01 07 00 2F 60 00 00 00 00 00 FF 0F A4 [22:55:58]RasterBufferAndPrint [22:55:58]line Счет N : (3)136618 [22:55:58]line ИНН: 02508201610067 [22:55:58]line Контрольно-Кассовый Чек [22:55:58]line ПРОДАЖА [22:55:58]line Товар: 48742184 [22:55:58]line Сигареты Bond Street Red [22:55:58]line 2.000 * 125.00 [22:55:58]line = 250.00 [22:55:58]line НДС 12% НСП 1% [22:55:58]line > о реализуемом товаре [22:55:58]line ИТОГО: 250.00 [22:55:58]line НСП 1% : 2.21 [22:55:58]line НДС 12% : 26.55 [22:55:58]line Наличными: 250.00 [22:55:58]line Безнал.: 0.00 [22:55:58]line Место: АЗС № 125 "Партнер Нефть" [22:55:58]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [22:55:58]line СНО: Общий режим [22:55:58]line Чек 166 28.07.2024 22:56 [22:55:58]line Смена: 429 ФФД: 1.0 [22:55:58]line ЗНМ: 0300000049 [22:55:58]line РНМ: 0000000000092638 [22:55:58]line Версия ККМ: 001 [22:55:58]line ФМ: 0000000000874949 [22:55:58]line ФД: 69283 [22:55:58]line ФПД: 23725713058835 [22:55:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T225608&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69283&fm=23725713058835&tin=02508201610067®Number=0000000000092638&sum=25000 [22:55:58]line 0 [22:55:58]written 0, free lines is 4095 [22:55:58]OFD Sender: Processing packet 69283 [packets to send 19, broken 18] [22:55:58]ProducePacketName [22:55:58]name=ofd_packets/00069283 [22:55:58]OFD Sender: To server: pG, [22:55:58]CommunicateWithHost lk.salyk.kg:30040 [22:55:58]ConnectInit lk.salyk.kg [22:55:58]Write to MH i2c: 01 00 00 57 60 B7 [22:55:58]Write i2c OK [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: 01 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: 01 07 00 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: 01 07 00 57 60 00 00 00 00 00 11 0D DC [22:55:58]RasterBufferAndPrint [22:55:58]line [22:55:58]line [22:55:58]line [22:55:58]line [22:55:58]line [22:55:58]written 0, free lines is 3354 [22:55:58]Connected sock=10 [22:55: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 39 34 39 21 01 00 00 6B 1F 19 01 3F B1 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 38 37 34 32 31 38 34 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 52 65 64 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 88 CC A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A3 0E 01 00 35 04 06 00 15 94 12 B2 EC 13 08 1E DC ED 0E 95 5F 71 [22:55:58]MH_Cut [22:55:58]Write to MH i2c: D1 01 00 5E 60 01 90 [22:55:58]Write i2c OK [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: D1 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: D1 01 00 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: D1 01 00 5E 60 00 8F [22:55:58]Write to MH i2c: 01 00 00 5F 60 BF [22:55:58]Write i2c OK [22:55:58]MH_I2C_Read... [22:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 6C 0C 47 00 20 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A3 0E 01 00 F4 03 04 00 F6 72 A6 66 B6 04 01 00 00 BF 8A 19 D4 90 68 B2 59 [22:55:59]CommunicateWithHost err = 0 [22:55:59]CheckOFDResponse [22:55:59]1017 (14) - 77093643461234 [22:55:59]1041 (16) - 0000000000874949 [22:55:59]1040 (4) - 69283 [22:55:59]1012 (4) - 28.07.2024 16:33 [22:55:59]1206 (1) - 0 [22:55:59]OFD Sender: Remove packet 69283 [22:55:59]ProducePacketName [22:55:59]name=ofd_packets/00069283 [22:55:59]NVStorageDeleteData [22:55:59]*** Cut start [22:55:59]*** Partial cut [22:55:59]*** CUTSNS_PIN = 1 [22:55:59]*** CUTSNS_PIN = 0 [22:55:59]OFD Sender: No OFD packet to send [22:55:59]*** Brake cut motor [22:56:00]Read from MH i2c: 01 [22:56:00]MH_I2C_Read... [22:56:00]*** Stop cut motor [22:56:00]*** Cut end [22:56:00]Read from MH i2c: 01 07 00 [22:56:00]MH_I2C_Read... [22:56:00]Read from MH i2c: 01 07 00 5F 60 00 00 00 00 00 FF 0F D4 [22:56:00]process_action close_receipt done [22:56:00]requested_data is exist [22:56:00]produce_requested_data [22:56:00]requested_item fm.sn is exist - process it [22:56:00]wFMCommunicate request_size=4 [22:56:00]MH_SAM_APDU [22:56:00]CAPDU: 80 11 00 00 [22:56:00]Write to MH i2c: E2 08 00 60 60 80 11 00 00 00 00 00 00 3A [22:56:00]Write i2c OK [22:56:00]MH_I2C_Read... [22:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:00]Read from MH i2c: E2 [22:56:00]MH_I2C_Read... [22:56:00]Read from MH i2c: E2 17 00 [22:56:00]MH_I2C_Read... [22:56:00]Read from MH i2c: E2 17 00 60 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 96 [22:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [22:56:00]wFMCommunicate OK [22:56:00]requested_item fd.num is exist - process it [22:56:00]SAM_PROTO_GetFieldsCounters [22:56:00]wFMCommunicate request_size=4 [22:56:00]MH_SAM_APDU [22:56:00]CAPDU: 80 13 00 00 [22:56:00]Write to MH i2c: E2 08 00 61 60 80 13 00 00 00 00 00 00 3D [22:56:00]Write i2c OK [22:56:00]MH_I2C_Read... [22:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:00]Read from MH i2c: E2 [22:56:00]MH_I2C_Read... [22:56:00]Read from MH i2c: E2 62 00 [22:56:00]MH_I2C_Read... [22:56:00]Read from MH i2c: E2 62 00 61 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A3 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [22:56: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A3 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:00]wFMCommunicate OK [22:56:00]SAM_PROTO_GetFieldsCounters done [22:56:00]requested_item shift.num is exist - process it [22:56:00]requested_item shift.opened is exist - process it [22:56:00]req_shift_opened [22:56:00]FM_GetShiftState [22:56:00]SAM_PROTO_GetShiftState [22:56:00]wFMCommunicate request_size=4 [22:56:00]MH_SAM_APDU [22:56:00]CAPDU: 80 13 01 00 [22:56:00]Write to MH i2c: E2 08 00 62 60 80 13 01 00 00 00 00 00 3F [22:56:00]Write i2c OK [22:56:00]MH_I2C_Read... [22:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:00]Read from MH i2c: E2 [22:56:00]MH_I2C_Read... [22:56:00]Read from MH i2c: E2 0E 00 [22:56:00]MH_I2C_Read... [22:56:00]Read from MH i2c: E2 0E 00 62 60 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 7C [22:56:00]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [22:56:00]wFMCommunicate OK [22:56:00]SAM_PROTO_GetShiftState done [22:56:00]FM_GetShiftState done [22:56:00]req_shift_opened done [22:56:00]requested_item shift.open_date is exist - process it [22:56:00]req_shift_open_date [22:56:00]req_shift_open_date done [22:56:00]produce_requested_data done [22:56:00]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69283,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [22:56:00]process_action_free close_receipt [22:56:00]json_value_free [22:56:00]json_value_free done [22:56:00]process_json_proto returns [22:56:00]Send response to host [22:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69283,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [22:56:00]free response buf [22:56:00]execute_script done [22:56:00]execute_script returns [22:56:00]free content buf [22:56:00]Sock 7.Close socket [22:56:00]Sock 7.Thread stoped [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]accept exits with 9 [23:00:44]New connection [23:00:44]New thread 3066785124 created [23:00:44]Thread 3066641764 joined [23:00:44]Waiting for new connection... [23:00:44] Sock 9.Parse request [23:00:44]Sock 9.Check first char [23:00:44]Sock 9.First char is OK [23:00:44]request: POST /json_proto HTTP/1.0 [23:00:44]Method: POST [23:00:44]URL: /json_proto [23:00:44]Method is POST - this is cgi request [23:00:44]url: /json_proto [23:00:44]query_string will be loaded in cgi processing [23:00:44]execute_cgi json_proto POST (null) [23:00:44]execute_cgi path=json_proto method=POST [23:00:44]POST find Content-Length [23:00:44]Host: 172.17.49.132:8080 [23:00:44]Content-Length: 613 [23:00:44]Content-Type: application/json [23:00:44] [23:00:44]POST finish read [23:00:44]Found Content-Length = 613 [23:00:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136619", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:44]execute_script... [23:00:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136619", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:44]POST & json_proto [23:00:44]process_json_proto [23:00:44]json parsed OK: [23:00:44]protocol is kg_v1.0 [23:00:44]action value=close_receipt [23:00:44]process_action close_receipt [23:00:44]cmd_close_receipt [23:00:44]MH_GetDate [23:00:44]Write to MH i2c: F0 00 00 63 60 B2 [23:00:44]Write i2c OK [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: F0 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: F0 09 00 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: F0 09 00 63 60 00 A8 CD A6 66 E7 4B C0 64 92 [23:00:44]GetLastDocTimeStamp 1722207368 [23:00:44]current date 1722207656 [23:00:44]FM_GetShiftState [23:00:44]SAM_PROTO_GetShiftState [23:00:44]wFMCommunicate request_size=4 [23:00:44]MH_SAM_APDU [23:00:44]CAPDU: 80 13 01 00 [23:00:44]Write to MH i2c: E2 08 00 64 60 80 13 01 00 00 00 00 00 41 [23:00:44]Write i2c OK [23:00:44]MH_I2C_Read... [23:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:44]Read from MH i2c: E2 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 0E 00 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 0E 00 64 60 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 7E [23:00:44]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:00:44]wFMCommunicate OK [23:00:44]SAM_PROTO_GetShiftState done [23:00:44]FM_GetShiftState done [23:00:44]opened in 1722127251 [23:00:44]opened+sec_in_day 1722213651 [23:00:44]quantity*price = 15500 [23:00:44]sum+1 = 15501 [23:00:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 167 28.07.2024 23:00 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69284 ФПД: 27107129637233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T230056&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69284&fm=27107129637233&tin=02508201610067®Number=0000000000092638&sum=15500 0 [23:00:45]StoreToDocumentArchive [23:00:45]shift 429 fd 69284 [23:00:45]save to /storage/0429/doc_00069284 [23:00:45]save last doc name /storage/0429/doc_00069284 to /storage/kkm_last_doc_name [23:00:45]save OK [23:00:45]Clear old archive folders... [23:00:45]ProcessDocumentItem done err = 0, tmpTLVsize=265 [23:00:45]tlvbuf is 00A7E890 [23:00:45]SAM_PROTO_ClearQueue [23:00:45]wFMCommunicate request_size=4 [23:00:45]MH_SAM_APDU [23:00:45]CAPDU: 80 09 00 00 [23:00:45]Write to MH i2c: E2 08 00 71 60 80 09 00 00 00 00 00 00 43 [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:45]Read from MH i2c: E2 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 03 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 03 00 71 60 00 90 00 45 [23:00:45]RAPDU: 90 00 [23:00:45]wFMCommunicate OK [23:00:45]SAM_PROTO_ClearQueue done [23:00:45]KKMCreateOFDPacket [23:00:45]OFDProtocolAddRootSTLVToBuf [23:00:45]FM_MakeSignedData [23:00:45]FM_MakeSignedData [23:00:45]SAM_PROTO_SignData [23:00:45]wFMCommunicate request_size=4 [23:00:45]MH_SAM_APDU [23:00:45]CAPDU: 80 0D 01 02 [23:00:45]Write to MH i2c: E2 08 00 72 60 80 0D 01 02 00 00 00 00 4B [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:45]Read from MH i2c: E2 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 03 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 03 00 72 60 00 90 00 46 [23:00:45]RAPDU: 90 00 [23:00:45]wFMCommunicate OK [23:00:45]wFMCommunicate request_size=255 [23:00:45]MH_SAM_APDU [23:00:45]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A8 CD A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 [23:00:45]Write to MH i2c: E2 02 01 73 60 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A8 CD A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 00 00 E0 [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:46]Read from MH i2c: E2 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 03 00 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 03 00 73 60 00 90 00 47 [23:00:46]RAPDU: 90 00 [23:00:46]wFMCommunicate OK [23:00:46]wFMCommunicate request_size=24 [23:00:46]MH_SAM_APDU [23:00:46]CAPDU: 80 0D 02 02 13 39 10 04 04 00 A4 0E 01 00 35 04 06 00 18 A7 5E D5 39 71 [23:00:46]Write to MH i2c: E2 1B 00 74 60 80 0D 02 02 13 00 39 10 04 04 00 A4 0E 01 00 35 04 06 00 18 A7 5E D5 39 71 00 00 53 [23:00:46]Write i2c OK [23:00:46]MH_I2C_Read... [23:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:46]Read from MH i2c: E2 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 03 00 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 03 00 74 60 00 90 00 48 [23:00:46]RAPDU: 90 00 [23:00:46]wFMCommunicate OK [23:00:46]wFMCommunicate request_size=4 [23:00:46]MH_SAM_APDU [23:00:46]CAPDU: 80 0D 03 02 [23:00:46]Write to MH i2c: E2 08 00 75 60 80 0D 03 02 00 00 00 00 50 [23:00:46]Write i2c OK [23:00:46]MH_I2C_Read... [23:00:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:46]Read from MH i2c: E2 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 0B 00 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 0B 00 75 60 00 B4 33 72 C4 AB 79 C2 5C 90 00 B0 [23:00:46]RAPDU: B4 33 72 C4 AB 79 C2 5C 90 00 [23:00:46]wFMCommunicate OK [23:00:46]SAM_PROTO_SignData done [23:00:46]FM_MakeSignedData done [23:00:46]CreateOFDProtocolMessage [23:00:46]wFMCommunicate request_size=4 [23:00:46]MH_SAM_APDU [23:00:46]CAPDU: 80 11 00 00 [23:00:46]Write to MH i2c: E2 08 00 76 60 80 11 00 00 00 00 00 00 50 [23:00:46]Write i2c OK [23:00:46]MH_I2C_Read... [23:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:46]Read from MH i2c: E2 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 17 00 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: E2 17 00 76 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AC [23:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:00:46]wFMCommunicate OK [23:00:46]CreateOFDProtocolMessage done [23:00:46]OFDSenderStorePacket 69284 [23:00:46]StoreOFDPacket docnum=69284 [23:00:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 1D 01 00 00 7D 77 15 01 19 E8 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A8 CD A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A4 0E 01 00 35 04 06 00 18 A7 5E D5 39 71 B4 33 72 C4 AB 79 C2 5C [23:00:46]CheckFolder [23:00:46]dirname=/storage/ofd_packets [23:00:46]CheckFolder done [23:00:46]ProducePacketName [23:00:46]name=ofd_packets/00069284 [23:00:46]NVStorageSaveData ofd_packets/00069284 [23:00:46]File name is /storage/ofd_packets/00069284 [23:00:46]Write 315 bytes [23:00:46]NVStorageSaveData done [23:00:46]OFDSenderStorePacket done [23:00:46]KKMCreateOFDPacket done [23:00:46]NVStorageSaveData kkm_last_timestamp [23:00:46]File name is /storage/kkm_last_timestamp [23:00:46]Write 4 bytes [23:00:46]NVStorageSaveData done [23:00:46]ExternCall_PrintAddStr [23:00:46]wPrintStart [23:00:46]Write to MH i2c: 01 00 00 77 60 D7 [23:00:46]Write i2c OK [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: 01 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: 01 07 00 [23:00:46]MH_I2C_Read... [23:00:46]Read from MH i2c: 01 07 00 77 60 00 00 00 00 00 FF 0F EC [23:00:46]RasterBufferAndPrint [23:00:46]line Счет N : (3)136619 [23:00:46]line ИНН: 02508201610067 [23:00:46]line Контрольно-Кассовый Чек [23:00:46]line ПРОДАЖА [23:00:46]line Товар: 47803152 [23:00:46]line Сигареты Mevius Revo [23:00:46]line 1.000 * 155.00 [23:00:46]line = 155.00 [23:00:46]line НДС 12% НСП 1% [23:00:46]line > о реализуемом товаре [23:00:46]line ИТОГО: 155.00 [23:00:46]line НСП 1% : 1.37 [23:00:46]line НДС 12% : 16.46 [23:00:46]line Наличными: 155.00 [23:00:46]line Безнал.: 0.00 [23:00:46]line Место: АЗС № 125 "Партнер Нефть" [23:00:46]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [23:00:46]line СНО: Общий режим [23:00:46]line Чек 167 28.07.2024 23:00 [23:00:46]line Смена: 429 ФФД: 1.0 [23:00:46]line ЗНМ: 0300000049 [23:00:46]line РНМ: 0000000000092638 [23:00:46]line Версия ККМ: 001 [23:00:46]line ФМ: 0000000000874949 [23:00:46]line ФД: 69284 [23:00:46]line ФПД: 27107129637233 [23:00:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T230056&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69284&fm=27107129637233&tin=02508201610067®Number=0000000000092638&sum=15500 [23:00:46]OFD Sender: Processing packet 69284 [packets to send 19, broken 18] [23:00:46]ProducePacketName [23:00:46]name=ofd_packets/00069284 [23:00:46]OFD Sender: To server: pG, [23:00:46]CommunicateWithHost lk.salyk.kg:30040 [23:00:46]ConnectInit lk.salyk.kg [23:00:46]line 0 [23:00:46]written 0, free lines is 4095 [23:00:46]Connected sock=10 [23:00:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 1D 01 00 00 7D 77 15 01 19 E8 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A8 CD A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A4 0E 01 00 35 04 06 00 18 A7 5E D5 39 71 B4 33 72 C4 AB 79 C2 5C [23:00:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 C1 15 47 00 71 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A4 0E 01 00 F4 03 04 00 16 74 A6 66 B6 04 01 00 00 EE FA 3D 34 39 34 28 E6 [23:00:47]CommunicateWithHost err = 0 [23:00:47]CheckOFDResponse [23:00:47]1017 (14) - 77093643461234 [23:00:47]1041 (16) - 0000000000874949 [23:00:47]1040 (4) - 69284 [23:00:47]1012 (4) - 28.07.2024 16:38 [23:00:47]1206 (1) - 0 [23:00:47]OFD Sender: Remove packet 69284 [23:00:47]ProducePacketName [23:00:47]name=ofd_packets/00069284 [23:00:47]NVStorageDeleteData [23:00:47]Write to MH i2c: 01 00 00 9F 60 FF [23:00:47]Write i2c OK [23:00:47]MH_I2C_Read... [23:00:47]Read from MH i2c: 01 [23:00:47]MH_I2C_Read... [23:00:47]Read from MH i2c: 01 07 00 [23:00:47]MH_I2C_Read... [23:00:47]Read from MH i2c: 01 07 00 9F 60 00 00 00 00 00 1F 0D 32 [23:00:47]RasterBufferAndPrint [23:00:47]line [23:00:47]line [23:00:47]line [23:00:47]line [23:00:47]line [23:00:47]written 0, free lines is 3365 [23:00:47]MH_Cut [23:00:47]Write to MH i2c: D1 01 00 A6 60 01 D8 [23:00:47]Write i2c OK [23:00:47]MH_I2C_Read... [23:00:47]Read from MH i2c: D1 [23:00:47]MH_I2C_Read... [23:00:47]Read from MH i2c: D1 01 00 [23:00:47]MH_I2C_Read... [23:00:47]Read from MH i2c: D1 01 00 A6 60 00 D7 [23:00:47]Write to MH i2c: 01 00 00 A7 60 07 [23:00:47]Write i2c OK [23:00:47]MH_I2C_Read... [23:00:47]OFD Sender: No OFD packet to send [23:00:47]*** Cut start [23:00:47]*** Partial cut [23:00:47]*** CUTSNS_PIN = 1 [23:00:47]*** CUTSNS_PIN = 0 [23:00:48]*** Brake cut motor [23:00:48]Read from MH i2c: 01 [23:00:48]MH_I2C_Read... [23:00:48]*** Stop cut motor [23:00:48]*** Cut end [23:00:48]Read from MH i2c: 01 07 00 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: 01 07 00 A7 60 00 00 00 00 00 FF 0F 1C [23:00:48]process_action close_receipt done [23:00:48]requested_data is exist [23:00:48]produce_requested_data [23:00:48]requested_item fm.sn is exist - process it [23:00:48]wFMCommunicate request_size=4 [23:00:48]MH_SAM_APDU [23:00:48]CAPDU: 80 11 00 00 [23:00:48]Write to MH i2c: E2 08 00 A8 60 80 11 00 00 00 00 00 00 82 [23:00:48]Write i2c OK [23:00:48]MH_I2C_Read... [23:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:48]Read from MH i2c: E2 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 17 00 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 17 00 A8 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 DE [23:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:00:48]wFMCommunicate OK [23:00:48]requested_item fd.num is exist - process it [23:00:48]SAM_PROTO_GetFieldsCounters [23:00:48]wFMCommunicate request_size=4 [23:00:48]MH_SAM_APDU [23:00:48]CAPDU: 80 13 00 00 [23:00:48]Write to MH i2c: E2 08 00 A9 60 80 13 00 00 00 00 00 00 85 [23:00:48]Write i2c OK [23:00:48]MH_I2C_Read... [23:00:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:48]Read from MH i2c: E2 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 62 00 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 62 00 A9 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A4 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [23:00:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A4 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:48]wFMCommunicate OK [23:00:48]SAM_PROTO_GetFieldsCounters done [23:00:48]requested_item shift.num is exist - process it [23:00:48]requested_item shift.opened is exist - process it [23:00:48]req_shift_opened [23:00:48]FM_GetShiftState [23:00:48]SAM_PROTO_GetShiftState [23:00:48]wFMCommunicate request_size=4 [23:00:48]MH_SAM_APDU [23:00:48]CAPDU: 80 13 01 00 [23:00:48]Write to MH i2c: E2 08 00 AA 60 80 13 01 00 00 00 00 00 87 [23:00:48]Write i2c OK [23:00:48]MH_I2C_Read... [23:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:48]Read from MH i2c: E2 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 0E 00 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: E2 0E 00 AA 60 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 C4 [23:00:48]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:00:48]wFMCommunicate OK [23:00:48]SAM_PROTO_GetShiftState done [23:00:48]FM_GetShiftState done [23:00:48]req_shift_opened done [23:00:48]requested_item shift.open_date is exist - process it [23:00:48]req_shift_open_date [23:00:48]req_shift_open_date done [23:00:48]produce_requested_data done [23:00:48]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69284,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [23:00:48]process_action_free close_receipt [23:00:48]json_value_free [23:00:48]json_value_free done [23:00:48]process_json_proto returns [23:00:48]Send response to host [23:00:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69284,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [23:00:48]free response buf [23:00:48]execute_script done [23:00:48]execute_script returns [23:00:48]free content buf [23:00:48]Sock 9.Close socket [23:00:48]Sock 9.Thread stoped [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:10:12]ConnectInit Can't connect to host [23:10:13]ConnectInit Can't take IP for lk.salyk.kg [23:10:13]CommunicateWithHost connect error [23:10:13]CommunicateWithHost err = -1 [23:10:13]OFD Sender: Server communicate error [23:10:18]OFD Sender: Processing packet 69285 [packets to send 19, broken 18] [23:10:18]ProducePacketName [23:10:18]name=ofd_packets/00069285 [23:10:18]OFD Sender: To server: pG, [23:10:18]CommunicateWithHost lk.salyk.kg:30040 [23:10:18]ConnectInit lk.salyk.kg [23:10:18]Connected sock=7 [23:10: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 39 34 39 26 01 00 00 1E 26 1E 01 31 64 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 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 A8 00 00 00 F4 03 04 00 1B CF A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A5 0E 01 00 35 04 06 00 52 4D 21 6A A7 53 95 45 02 41 27 02 A8 9D [23:10:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 7D 2B 47 00 22 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A5 0E 01 00 F4 03 04 00 51 76 A6 66 B6 04 01 00 00 EB E7 00 AD 1E 34 75 F5 [23:10:18]CommunicateWithHost err = 0 [23:10:18]CheckOFDResponse [23:10:18]1017 (14) - 77093643461234 [23:10:18]1041 (16) - 0000000000874949 [23:10:18]1040 (4) - 69285 [23:10:18]1012 (4) - 28.07.2024 16:48 [23:10:18]1206 (1) - 0 [23:10:18]OFD Sender: Remove packet 69285 [23:10:18]ProducePacketName [23:10:18]name=ofd_packets/00069285 [23:10:18]NVStorageDeleteData [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:17:08]ConnectInit Can't connect to host [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:17]accept exits with 10 [23:17:17]New connection [23:17:17]New thread 3066785124 created [23:17:17]Thread 3066641764 joined [23:17:17]Waiting for new connection... [23:17:17] Sock 10.Parse request [23:17:17]Sock 10.Check first char [23:17:17]Sock 10.First char is OK [23:17:17]request: POST /json_proto HTTP/1.0 [23:17:17]Method: POST [23:17:17]URL: /json_proto [23:17:17]Method is POST - this is cgi request [23:17:17]url: /json_proto [23:17:17]query_string will be loaded in cgi processing [23:17:17]execute_cgi json_proto POST (null) [23:17:17]execute_cgi path=json_proto method=POST [23:17:17]POST find Content-Length [23:17:17]Host: 172.17.49.132:8080 [23:17:17]Content-Length: 1145 [23:17:17]Content-Type: application/json [23:17:17] [23:17:17]POST finish read [23:17:17]Found Content-Length = 1145 [23:17:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136621", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 344.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:17]execute_script... [23:17:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136621", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 344.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:17]POST & json_proto [23:17:17]process_json_proto [23:17:17]json parsed OK: [23:17:17]protocol is kg_v1.0 [23:17:17]action value=close_receipt [23:17:17]process_action close_receipt [23:17:17]cmd_close_receipt [23:17:17]MH_GetDate [23:17:17]Write to MH i2c: F0 00 00 F3 60 42 [23:17:17]Write i2c OK [23:17:17]MH_I2C_Read... [23:17:17]Read from MH i2c: F0 [23:17:17]MH_I2C_Read... [23:17:17]Read from MH i2c: F0 09 00 [23:17:17]MH_I2C_Read... [23:17:17]Read from MH i2c: F0 09 00 F3 60 00 89 D1 A6 66 E7 4B C0 64 07 [23:17:17]GetLastDocTimeStamp 1722208027 [23:17:17]current date 1722208649 [23:17:17]FM_GetShiftState [23:17:17]SAM_PROTO_GetShiftState [23:17:17]wFMCommunicate request_size=4 [23:17:17]MH_SAM_APDU [23:17:17]CAPDU: 80 13 01 00 [23:17:17]Write to MH i2c: E2 08 00 F4 60 80 13 01 00 00 00 00 00 D1 [23:17:17]Write i2c OK [23:17:17]MH_I2C_Read... [23:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:18]Read from MH i2c: E2 [23:17:18]MH_I2C_Read... [23:17:18]Read from MH i2c: E2 0E 00 [23:17:18]MH_I2C_Read... [23:17:18]Read from MH i2c: E2 0E 00 F4 60 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 0E [23:17:18]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:17:18]wFMCommunicate OK [23:17:18]SAM_PROTO_GetShiftState done [23:17:18]FM_GetShiftState done [23:17:18]opened in 1722127251 [23:17:18]opened+sec_in_day 1722213651 [23:17:18]quantity*price = 34000 [23:17:18]sum+1 = 34001 [23:17:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 344.00 НСП 1% : 3.04 НДС 12% : 36.53 Наличными: 0.00 Безнал.: 344.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 169 28.07.2024 23:17 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69286 ФПД: 28606341599579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231729&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69286&fm=28606341599579&tin=02508201610067®Number=0000000000092638&sum=34400 0 [23:17:19]StoreToDocumentArchive [23:17:19]shift 429 fd 69286 [23:17:19]save to /storage/0429/doc_00069286 [23:17:19]save last doc name /storage/0429/doc_00069286 to /storage/kkm_last_doc_name [23:17:19]save OK [23:17:19]Clear old archive folders... [23:17:19]ProcessDocumentItem done err = 0, tmpTLVsize=390 [23:17:19]tlvbuf is 00C44660 [23:17:19]SAM_PROTO_ClearQueue [23:17:19]wFMCommunicate request_size=4 [23:17:19]MH_SAM_APDU [23:17:19]CAPDU: 80 09 00 00 [23:17:19]Write to MH i2c: E2 08 00 01 61 80 09 00 00 00 00 00 00 D4 [23:17:19]Write i2c OK [23:17:19]MH_I2C_Read... [23:17:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:19]Read from MH i2c: E2 [23:17:19]MH_I2C_Read... [23:17:19]Read from MH i2c: E2 03 00 [23:17:19]MH_I2C_Read... [23:17:19]Read from MH i2c: E2 03 00 01 61 00 90 00 D6 [23:17:19]RAPDU: 90 00 [23:17:19]wFMCommunicate OK [23:17:19]SAM_PROTO_ClearQueue done [23:17:19]KKMCreateOFDPacket [23:17:19]OFDProtocolAddRootSTLVToBuf [23:17:19]FM_MakeSignedData [23:17:19]FM_MakeSignedData [23:17:19]SAM_PROTO_SignData [23:17:19]wFMCommunicate request_size=4 [23:17:19]MH_SAM_APDU [23:17:19]CAPDU: 80 0D 01 02 [23:17:19]Write to MH i2c: E2 08 00 02 61 80 0D 01 02 00 00 00 00 DC [23:17:19]Write i2c OK [23:17:19]MH_I2C_Read... [23:17:19]OFD Sender: No OFD packet to send [23:17:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:19]Read from MH i2c: E2 [23:17:19]MH_I2C_Read... [23:17:19]Read from MH i2c: E2 03 00 [23:17:19]MH_I2C_Read... [23:17:19]Read from MH i2c: E2 03 00 02 61 00 90 00 D7 [23:17:19]RAPDU: 90 00 [23:17:19]wFMCommunicate OK [23:17:19]wFMCommunicate request_size=255 [23:17:19]MH_SAM_APDU [23:17:19]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [23:17:19]Write to MH i2c: E2 02 01 03 61 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 BB [23:17:19]Write i2c OK [23:17:19]MH_I2C_Read... [23:17:19]Read from MH i2c: E2 [23:17:19]MH_I2C_Read... [23:17:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:19]Read from MH i2c: E2 03 00 [23:17:19]MH_I2C_Read... [23:17:19]Read from MH i2c: E2 03 00 03 61 00 90 00 D8 [23:17:19]RAPDU: 90 00 [23:17:19]wFMCommunicate OK [23:17:19]wFMCommunicate request_size=149 [23:17:19]MH_SAM_APDU [23:17:19]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 86 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 89 D1 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A6 0E 01 00 35 04 06 00 1A 04 6E D4 51 5B [23:17:19]Write to MH i2c: E2 98 00 04 61 80 0D 02 02 90 00 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 86 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 89 D1 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A6 0E 01 00 35 04 06 00 1A 04 6E D4 51 5B 00 00 21 [23:17:19]Write i2c OK [23:17:19]MH_I2C_Read... [23:17:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:19]Read from MH i2c: E2 [23:17:19]MH_I2C_Read... [23:17:19]Read from MH i2c: E2 03 00 [23:17:19]MH_I2C_Read... [23:17:19]Read from MH i2c: E2 03 00 04 61 00 90 00 D9 [23:17:19]RAPDU: 90 00 [23:17:19]wFMCommunicate OK [23:17:19]wFMCommunicate request_size=4 [23:17:19]MH_SAM_APDU [23:17:19]CAPDU: 80 0D 03 02 [23:17:19]Write to MH i2c: E2 08 00 05 61 80 0D 03 02 00 00 00 00 E1 [23:17:19]Write i2c OK [23:17:19]MH_I2C_Read... [23:17:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:19]Read from MH i2c: E2 [23:17:19]MH_I2C_Read... [23:17:19]Read from MH i2c: E2 0B 00 [23:17:19]MH_I2C_Read... [23:17:19]Read from MH i2c: E2 0B 00 05 61 00 5B F9 08 CF BA 69 5B FB 90 00 86 [23:17:19]RAPDU: 5B F9 08 CF BA 69 5B FB 90 00 [23:17:19]wFMCommunicate OK [23:17:19]SAM_PROTO_SignData done [23:17:19]FM_MakeSignedData done [23:17:19]CreateOFDProtocolMessage [23:17:19]wFMCommunicate request_size=4 [23:17:19]MH_SAM_APDU [23:17:19]CAPDU: 80 11 00 00 [23:17:19]Write to MH i2c: E2 08 00 06 61 80 11 00 00 00 00 00 00 E1 [23:17:19]Write i2c OK [23:17:19]MH_I2C_Read... [23:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:19]Read from MH i2c: E2 [23:17:19]MH_I2C_Read... [23:17:19]Read from MH i2c: E2 17 00 [23:17:19]MH_I2C_Read... [23:17:19]Read from MH i2c: E2 17 00 06 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3D [23:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:17:19]wFMCommunicate OK [23:17:19]CreateOFDProtocolMessage done [23:17:19]OFDSenderStorePacket 69286 [23:17:19]StoreOFDPacket docnum=69286 [23:17:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 9A 01 00 00 A8 2C 92 01 E5 B6 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 86 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 89 D1 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A6 0E 01 00 35 04 06 00 1A 04 6E D4 51 5B 5B F9 08 CF BA 69 5B FB [23:17:19]CheckFolder [23:17:19]dirname=/storage/ofd_packets [23:17:19]CheckFolder done [23:17:19]ProducePacketName [23:17:19]name=ofd_packets/00069286 [23:17:19]NVStorageSaveData ofd_packets/00069286 [23:17:19]File name is /storage/ofd_packets/00069286 [23:17:19]Write 440 bytes [23:17:19]NVStorageSaveData done [23:17:19]OFDSenderStorePacket done [23:17:19]KKMCreateOFDPacket done [23:17:19]NVStorageSaveData kkm_last_timestamp [23:17:19]File name is /storage/kkm_last_timestamp [23:17:19]Write 4 bytes [23:17:20]NVStorageSaveData done [23:17:20]ExternCall_PrintAddStr [23:17:20]wPrintStart [23:17:20]Write to MH i2c: 01 00 00 07 61 68 [23:17:20]OFD Sender: Processing packet 69286 [packets to send 19, broken 18] [23:17:20]ProducePacketName [23:17:20]name=ofd_packets/00069286 [23:17:20]OFD Sender: To server: pG, [23:17:20]CommunicateWithHost lk.salyk.kg:30040 [23:17:20]ConnectInit lk.salyk.kg [23:17:20]Write i2c OK [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: 01 [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: 01 07 00 [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: 01 07 00 07 61 00 00 00 00 00 FF 0F 7D [23:17:20]RasterBufferAndPrint [23:17:20]line Счет N : (3)136621 [23:17:20]line ИНН: 02508201610067 [23:17:20]line Контрольно-Кассовый Чек [23:17:20]line ПРОДАЖА [23:17:20]line Товар: 4700000480357 [23:17:20]line Пиво шахтерское 1л ПЭТ [23:17:20]line 2.000 * 170.00 [23:17:20]line = 340.00 [23:17:20]line НДС 12% НСП 1% [23:17:20]line > о реализуемом товаре [23:17:20]line Товар: 2000031750019 [23:17:20]line Пакет Партнер Нефть [23:17:20]line 1.000 * 4.00 [23:17:20]line = 4.00 [23:17:20]line НДС 12% НСП 1% [23:17:20]line > о реализуемом товаре [23:17:20]line ИТОГО: 344.00 [23:17:20]line НСП 1% : 3.04 [23:17:20]line НДС 12% : 36.53 [23:17:20]line Наличными: 0.00 [23:17:20]line Безнал.: 344.00 [23:17:20]line Место: АЗС № 125 "Партнер Нефть" [23:17:20]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [23:17:20]line СНО: Общий режим [23:17:20]line Чек 169 28.07.2024 23:17 [23:17:20]line Смена: 429 ФФД: 1.0 [23:17:20]line ЗНМ: 0300000049 [23:17:20]line РНМ: 0000000000092638 [23:17:20]line Версия ККМ: 001 [23:17:20]line Платежная система: АКБ Кыргызстан [23:17:20]line ФМ: 0000000000874949 [23:17:20]line ФД: 69286 [23:17:20]line ФПД: 28606341599579 [23:17:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T231729&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69286&fm=28606341599579&tin=02508201610067®Number=0000000000092638&sum=34400 [23:17:20]line 0 [23:17:20]written 0, free lines is 4095 [23:17:20]Connected sock=9 [23:17: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 39 34 39 9A 01 00 00 A8 2C 92 01 E5 B6 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 86 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 89 D1 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A6 0E 01 00 35 04 06 00 1A 04 6E D4 51 5B 5B F9 08 CF BA 69 5B FB [23:17:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 3D 1A 47 00 4F 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 39 34 39 10 04 04 00 A6 0E 01 00 F4 03 04 00 F7 77 A6 66 B6 04 01 00 00 E7 F6 56 2D 93 3E D3 06 [23:17:20]CommunicateWithHost err = 0 [23:17:20]CheckOFDResponse [23:17:20]1017 (14) - 77093643461234 [23:17:20]1041 (16) - 0000000000874949 [23:17:20]1040 (4) - 69286 [23:17:20]1012 (4) - 28.07.2024 16:55 [23:17:20]1206 (1) - 0 [23:17:20]OFD Sender: Remove packet 69286 [23:17:20]ProducePacketName [23:17:20]name=ofd_packets/00069286 [23:17:20]NVStorageDeleteData [23:17:20]Write to MH i2c: 01 00 00 37 61 98 [23:17:20]Write i2c OK [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: 01 [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: 01 07 00 [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: 01 07 00 37 61 00 00 00 00 00 BA 0C 65 [23:17:20]RasterBufferAndPrint [23:17:20]line [23:17:20]line [23:17:20]line [23:17:20]line [23:17:20]line [23:17:20]written 0, free lines is 3268 [23:17:20]MH_Cut [23:17:20]Write to MH i2c: D1 01 00 3E 61 01 71 [23:17:20]Write i2c OK [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: D1 [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: D1 01 00 [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: D1 01 00 3E 61 00 70 [23:17:20]Write to MH i2c: 01 00 00 3F 61 A0 [23:17:20]Write i2c OK [23:17:20]MH_I2C_Read... [23:17:20]OFD Sender: No OFD packet to send [23:17:21]*** Cut start [23:17:21]*** Partial cut [23:17:21]*** CUTSNS_PIN = 1 [23:17:21]*** CUTSNS_PIN = 0 [23:17:21]*** Brake cut motor [23:17:21]Read from MH i2c: 01 [23:17:21]MH_I2C_Read... [23:17:21]*** Stop cut motor [23:17:21]*** Cut end [23:17:21]Read from MH i2c: 01 07 00 [23:17:21]MH_I2C_Read... [23:17:21]Read from MH i2c: 01 07 00 3F 61 00 00 00 00 00 FF 0F B5 [23:17:21]process_action close_receipt done [23:17:21]requested_data is exist [23:17:21]produce_requested_data [23:17:21]requested_item fm.sn is exist - process it [23:17:21]wFMCommunicate request_size=4 [23:17:21]MH_SAM_APDU [23:17:21]CAPDU: 80 11 00 00 [23:17:21]Write to MH i2c: E2 08 00 40 61 80 11 00 00 00 00 00 00 1B [23:17:21]Write i2c OK [23:17:21]MH_I2C_Read... [23:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:22]Read from MH i2c: E2 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 17 00 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 17 00 40 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 77 [23:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:17:22]wFMCommunicate OK [23:17:22]requested_item fd.num is exist - process it [23:17:22]SAM_PROTO_GetFieldsCounters [23:17:22]wFMCommunicate request_size=4 [23:17:22]MH_SAM_APDU [23:17:22]CAPDU: 80 13 00 00 [23:17:22]Write to MH i2c: E2 08 00 41 61 80 13 00 00 00 00 00 00 1E [23:17:22]Write i2c OK [23:17:22]MH_I2C_Read... [23:17:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:22]Read from MH i2c: E2 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 62 00 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 62 00 41 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A6 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [23:17: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A6 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:17:22]wFMCommunicate OK [23:17:22]SAM_PROTO_GetFieldsCounters done [23:17:22]requested_item shift.num is exist - process it [23:17:22]requested_item shift.opened is exist - process it [23:17:22]req_shift_opened [23:17:22]FM_GetShiftState [23:17:22]SAM_PROTO_GetShiftState [23:17:22]wFMCommunicate request_size=4 [23:17:22]MH_SAM_APDU [23:17:22]CAPDU: 80 13 01 00 [23:17:22]Write to MH i2c: E2 08 00 42 61 80 13 01 00 00 00 00 00 20 [23:17:22]Write i2c OK [23:17:22]MH_I2C_Read... [23:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:22]Read from MH i2c: E2 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 0E 00 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 0E 00 42 61 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 5D [23:17:22]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:17:22]wFMCommunicate OK [23:17:22]SAM_PROTO_GetShiftState done [23:17:22]FM_GetShiftState done [23:17:22]req_shift_opened done [23:17:22]requested_item shift.open_date is exist - process it [23:17:22]req_shift_open_date [23:17:22]req_shift_open_date done [23:17:22]produce_requested_data done [23:17:22]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69286,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [23:17:22]process_action_free close_receipt [23:17:22]json_value_free [23:17:22]json_value_free done [23:17:22]process_json_proto returns [23:17:22]Send response to host [23:17:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69286,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [23:17:22]free response buf [23:17:22]execute_script done [23:17:22]execute_script returns [23:17:22]free content buf [23:17:22]Sock 10.Close socket [23:17:22]Sock 10.Thread stoped [23:17:25]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:32]accept exits with 7 [23:23:32]New connection [23:23:32]New thread 3066641764 created [23:23:32]Thread 3066785124 joined [23:23:32]Waiting for new connection... [23:23:32] Sock 7.Parse request [23:23:32]Sock 7.Check first char [23:23:32]Sock 7.First char is OK [23:23:32]request: POST /json_proto HTTP/1.0 [23:23:32]Method: POST [23:23:32]URL: /json_proto [23:23:32]Method is POST - this is cgi request [23:23:32]url: /json_proto [23:23:32]query_string will be loaded in cgi processing [23:23:32]execute_cgi json_proto POST (null) [23:23:32]execute_cgi path=json_proto method=POST [23:23:32]POST find Content-Length [23:23:32]Host: 172.17.49.132:8080 [23:23:32]Content-Length: 876 [23:23:32]Content-Type: application/json [23:23:32] [23:23:32]POST finish read [23:23:32]Found Content-Length = 876 [23:23:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136622", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:32]execute_script... [23:23:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136622", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:32]POST & json_proto [23:23:32]process_json_proto [23:23:32]json parsed OK: [23:23:32]protocol is kg_v1.0 [23:23:32]action value=close_receipt [23:23:32]process_action close_receipt [23:23:32]cmd_close_receipt [23:23:32]MH_GetDate [23:23:32]Write to MH i2c: F0 00 00 43 61 93 [23:23:32]Write i2c OK [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: F0 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: F0 09 00 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: F0 09 00 43 61 00 00 D3 A6 66 E7 4B C0 64 D1 [23:23:32]GetLastDocTimeStamp 1722208649 [23:23:32]current date 1722209024 [23:23:32]FM_GetShiftState [23:23:32]SAM_PROTO_GetShiftState [23:23:32]wFMCommunicate request_size=4 [23:23:32]MH_SAM_APDU [23:23:32]CAPDU: 80 13 01 00 [23:23:32]Write to MH i2c: E2 08 00 44 61 80 13 01 00 00 00 00 00 22 [23:23:32]Write i2c OK [23:23:32]MH_I2C_Read... [23:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:32]Read from MH i2c: E2 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 0E 00 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 0E 00 44 61 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 5F [23:23:32]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:23:32]wFMCommunicate OK [23:23:32]SAM_PROTO_GetShiftState done [23:23:32]FM_GetShiftState done [23:23:32]opened in 1722127251 [23:23:32]opened+sec_in_day 1722213651 [23:23:32]quantity*price = 6500 [23:23:32]sum+1 = 6501 [23:23:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 0.00 Безнал.: 65.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 170 28.07.2024 23:23 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69287 ФПД: 123167775981682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T232344&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69287&fm=123167775981682&tin=02508201610067®Number=0000000000092638&sum=6500 0 [23:23:33]StoreToDocumentArchive [23:23:33]shift 429 fd 69287 [23:23:33]save to /storage/0429/doc_00069287 [23:23:33]save last doc name /storage/0429/doc_00069287 to /storage/kkm_last_doc_name [23:23:33]save OK [23:23:33]Clear old archive folders... [23:23:33]ProcessDocumentItem done err = 0, tmpTLVsize=286 [23:23:33]tlvbuf is 00C22FC0 [23:23:33]SAM_PROTO_ClearQueue [23:23:33]wFMCommunicate request_size=4 [23:23:33]MH_SAM_APDU [23:23:33]CAPDU: 80 09 00 00 [23:23:33]Write to MH i2c: E2 08 00 51 61 80 09 00 00 00 00 00 00 24 [23:23:33]Write i2c OK [23:23:33]MH_I2C_Read... [23:23:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:34]Read from MH i2c: E2 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 03 00 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 03 00 51 61 00 90 00 26 [23:23:34]RAPDU: 90 00 [23:23:34]wFMCommunicate OK [23:23:34]SAM_PROTO_ClearQueue done [23:23:34]KKMCreateOFDPacket [23:23:34]OFDProtocolAddRootSTLVToBuf [23:23:34]FM_MakeSignedData [23:23:34]FM_MakeSignedData [23:23:34]SAM_PROTO_SignData [23:23:34]wFMCommunicate request_size=4 [23:23:34]MH_SAM_APDU [23:23:34]CAPDU: 80 0D 01 02 [23:23:34]Write to MH i2c: E2 08 00 52 61 80 0D 01 02 00 00 00 00 2C [23:23:34]Write i2c OK [23:23:34]MH_I2C_Read... [23:23:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:34]Read from MH i2c: E2 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 03 00 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 03 00 52 61 00 90 00 27 [23:23:34]RAPDU: 90 00 [23:23:34]wFMCommunicate OK [23:23:34]wFMCommunicate request_size=255 [23:23:34]MH_SAM_APDU [23:23:34]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 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 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 00 D3 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 [23:23:34]Write to MH i2c: E2 02 01 53 61 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 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 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 00 D3 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 00 00 2B [23:23:34]Write i2c OK [23:23:34]MH_I2C_Read... [23:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:34]Read from MH i2c: E2 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 03 00 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 03 00 53 61 00 90 00 28 [23:23:34]RAPDU: 90 00 [23:23:34]wFMCommunicate OK [23:23:34]wFMCommunicate request_size=45 [23:23:34]MH_SAM_APDU [23:23:34]CAPDU: 80 0D 02 02 28 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A7 0E 01 00 35 04 06 00 70 05 3B 89 00 72 [23:23:34]Write to MH i2c: E2 30 00 54 61 80 0D 02 02 28 00 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A7 0E 01 00 35 04 06 00 70 05 3B 89 00 72 00 00 F0 [23:23:34]Write i2c OK [23:23:34]MH_I2C_Read... [23:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:34]Read from MH i2c: E2 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 03 00 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 03 00 54 61 00 90 00 29 [23:23:34]RAPDU: 90 00 [23:23:34]wFMCommunicate OK [23:23:34]wFMCommunicate request_size=4 [23:23:34]MH_SAM_APDU [23:23:34]CAPDU: 80 0D 03 02 [23:23:34]Write to MH i2c: E2 08 00 55 61 80 0D 03 02 00 00 00 00 31 [23:23:34]Write i2c OK [23:23:34]MH_I2C_Read... [23:23:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:34]Read from MH i2c: E2 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 0B 00 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 0B 00 55 61 00 58 0B 45 5F 39 01 DB 0B 90 00 59 [23:23:34]RAPDU: 58 0B 45 5F 39 01 DB 0B 90 00 [23:23:34]wFMCommunicate OK [23:23:34]SAM_PROTO_SignData done [23:23:34]FM_MakeSignedData done [23:23:34]CreateOFDProtocolMessage [23:23:34]wFMCommunicate request_size=4 [23:23:34]MH_SAM_APDU [23:23:34]CAPDU: 80 11 00 00 [23:23:34]Write to MH i2c: E2 08 00 56 61 80 11 00 00 00 00 00 00 31 [23:23:34]Write i2c OK [23:23:34]MH_I2C_Read... [23:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:34]Read from MH i2c: E2 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 17 00 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 17 00 56 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 8D [23:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:23:34]wFMCommunicate OK [23:23:34]CreateOFDProtocolMessage done [23:23:34]OFDSenderStorePacket 69287 [23:23:34]StoreOFDPacket docnum=69287 [23:23:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 32 01 00 00 4A 69 2A 01 2E AD 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 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 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 00 D3 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A7 0E 01 00 35 04 06 00 70 05 3B 89 00 72 58 0B 45 5F 39 01 DB 0B [23:23:34]CheckFolder [23:23:34]dirname=/storage/ofd_packets [23:23:34]CheckFolder done [23:23:34]ProducePacketName [23:23:34]name=ofd_packets/00069287 [23:23:34]NVStorageSaveData ofd_packets/00069287 [23:23:34]File name is /storage/ofd_packets/00069287 [23:23:34]Write 336 bytes [23:23:34]NVStorageSaveData done [23:23:34]OFDSenderStorePacket done [23:23:34]KKMCreateOFDPacket done [23:23:34]NVStorageSaveData kkm_last_timestamp [23:23:34]File name is /storage/kkm_last_timestamp [23:23:34]Write 4 bytes [23:23:34]NVStorageSaveData done [23:23:34]ExternCall_PrintAddStr [23:23:34]wPrintStart [23:23:34]Write to MH i2c: 01 00 00 57 61 B8 [23:23:34]Write i2c OK [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: 01 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: 01 07 00 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: 01 07 00 57 61 00 00 00 00 00 FF 0F CD [23:23:34]RasterBufferAndPrint [23:23:34]line Счет N : (3)136622 [23:23:34]line ИНН: 02508201610067 [23:23:34]line Контрольно-Кассовый Чек [23:23:34]line ПРОДАЖА [23:23:34]line Товар: 4700040114120 [23:23:34]line Султан чай 1л. чер персик [23:23:34]line 1.000 * 65.00 [23:23:34]line = 65.00 [23:23:34]line НДС 12% НСП 1% [23:23:34]line > о реализуемом товаре [23:23:34]line ИТОГО: 65.00 [23:23:34]line НСП 1% : 0.57 [23:23:34]line НДС 12% : 6.90 [23:23:34]line Наличными: 0.00 [23:23:34]line Безнал.: 65.00 [23:23:34]line Место: АЗС № 125 "Партнер Нефть" [23:23:34]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [23:23:34]line СНО: Общий режим [23:23:34]line Чек 170 28.07.2024 23:23 [23:23:34]line Смена: 429 ФФД: 1.0 [23:23:34]line ЗНМ: 0300000049 [23:23:34]line РНМ: 0000000000092638 [23:23:34]line Версия ККМ: 001 [23:23:34]line Платежная система: АКБ Кыргызстан [23:23:34]line ФМ: 0000000000874949 [23:23:34]line ФД: 69287 [23:23:34]line ФПД: 123167775981682 [23:23:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T232344&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69287&fm=123167775981682&tin=02508201610067®Number=0000000000092638&sum=6500 [23:23:34]line 0 [23:23:34]OFD Sender: Processing packet 69287 [packets to send 19, broken 18] [23:23:34]ProducePacketName [23:23:34]name=ofd_packets/00069287 [23:23:34]OFD Sender: To server: pG, [23:23:34]CommunicateWithHost lk.salyk.kg:30040 [23:23:34]ConnectInit lk.salyk.kg [23:23:34]written 0, free lines is 4095 [23:23:34]Connected sock=10 [23:23: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 39 34 39 32 01 00 00 4A 69 2A 01 2E AD 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 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 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 00 D3 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A7 0E 01 00 35 04 06 00 70 05 3B 89 00 72 58 0B 45 5F 39 01 DB 0B [23:23:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 33 93 47 00 78 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A7 0E 01 00 F4 03 04 00 6E 79 A6 66 B6 04 01 00 00 E2 F0 1E BA 6B 2F CF 51 [23:23:35]CommunicateWithHost err = 0 [23:23:35]CheckOFDResponse [23:23:35]1017 (14) - 77093643461234 [23:23:35]1041 (16) - 0000000000874949 [23:23:35]1040 (4) - 69287 [23:23:35]1012 (4) - 28.07.2024 17:01 [23:23:35]1206 (1) - 0 [23:23:35]OFD Sender: Remove packet 69287 [23:23:35]ProducePacketName [23:23:35]name=ofd_packets/00069287 [23:23:35]NVStorageDeleteData [23:23:35]Write to MH i2c: 01 00 00 81 61 E2 [23:23:35]Write i2c OK [23:23:35]MH_I2C_Read... [23:23:35]Read from MH i2c: 01 [23:23:35]MH_I2C_Read... [23:23:35]Read from MH i2c: 01 07 00 [23:23:35]MH_I2C_Read... [23:23:35]Read from MH i2c: 01 07 00 81 61 00 00 00 00 00 0A 0D 00 [23:23:35]RasterBufferAndPrint [23:23:35]line [23:23:35]line [23:23:35]line [23:23:35]line [23:23:35]line [23:23:35]written 0, free lines is 3344 [23:23:35]MH_Cut [23:23:35]Write to MH i2c: D1 01 00 88 61 01 BB [23:23:35]Write i2c OK [23:23:35]MH_I2C_Read... [23:23:35]Read from MH i2c: D1 [23:23:35]MH_I2C_Read... [23:23:35]Read from MH i2c: D1 01 00 [23:23:35]MH_I2C_Read... [23:23:35]Read from MH i2c: D1 01 00 88 61 00 BA [23:23:35]Write to MH i2c: 01 00 00 89 61 EA [23:23:35]Write i2c OK [23:23:35]MH_I2C_Read... [23:23:35]OFD Sender: No OFD packet to send [23:23:35]*** Cut start [23:23:35]*** Partial cut [23:23:35]*** CUTSNS_PIN = 1 [23:23:36]*** CUTSNS_PIN = 0 [23:23:36]*** Brake cut motor [23:23:36]Read from MH i2c: 01 [23:23:36]MH_I2C_Read... [23:23:36]*** Stop cut motor [23:23:36]*** Cut end [23:23:36]Read from MH i2c: 01 07 00 [23:23:36]MH_I2C_Read... [23:23:36]Read from MH i2c: 01 07 00 89 61 00 00 00 00 00 FF 0F FF [23:23:36]process_action close_receipt done [23:23:36]requested_data is exist [23:23:36]produce_requested_data [23:23:36]requested_item fm.sn is exist - process it [23:23:36]wFMCommunicate request_size=4 [23:23:36]MH_SAM_APDU [23:23:36]CAPDU: 80 11 00 00 [23:23:36]Write to MH i2c: E2 08 00 8A 61 80 11 00 00 00 00 00 00 65 [23:23:36]Write i2c OK [23:23:36]MH_I2C_Read... [23:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:36]Read from MH i2c: E2 [23:23:36]MH_I2C_Read... [23:23:36]Read from MH i2c: E2 17 00 [23:23:36]MH_I2C_Read... [23:23:36]Read from MH i2c: E2 17 00 8A 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C1 [23:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:23:36]wFMCommunicate OK [23:23:36]requested_item fd.num is exist - process it [23:23:36]SAM_PROTO_GetFieldsCounters [23:23:36]wFMCommunicate request_size=4 [23:23:36]MH_SAM_APDU [23:23:36]CAPDU: 80 13 00 00 [23:23:36]Write to MH i2c: E2 08 00 8B 61 80 13 00 00 00 00 00 00 68 [23:23:36]Write i2c OK [23:23:36]MH_I2C_Read... [23:23:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:36]Read from MH i2c: E2 [23:23:36]MH_I2C_Read... [23:23:36]Read from MH i2c: E2 62 00 [23:23:36]MH_I2C_Read... [23:23:36]Read from MH i2c: E2 62 00 8B 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A7 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [23:23: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A7 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:36]wFMCommunicate OK [23:23:36]SAM_PROTO_GetFieldsCounters done [23:23:36]requested_item shift.num is exist - process it [23:23:36]requested_item shift.opened is exist - process it [23:23:36]req_shift_opened [23:23:36]FM_GetShiftState [23:23:36]SAM_PROTO_GetShiftState [23:23:36]wFMCommunicate request_size=4 [23:23:36]MH_SAM_APDU [23:23:36]CAPDU: 80 13 01 00 [23:23:36]Write to MH i2c: E2 08 00 8C 61 80 13 01 00 00 00 00 00 6A [23:23:36]Write i2c OK [23:23:36]MH_I2C_Read... [23:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:36]Read from MH i2c: E2 [23:23:36]MH_I2C_Read... [23:23:36]Read from MH i2c: E2 0E 00 [23:23:36]MH_I2C_Read... [23:23:36]Read from MH i2c: E2 0E 00 8C 61 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A7 [23:23:36]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:23:36]wFMCommunicate OK [23:23:36]SAM_PROTO_GetShiftState done [23:23:36]FM_GetShiftState done [23:23:36]req_shift_opened done [23:23:36]requested_item shift.open_date is exist - process it [23:23:36]req_shift_open_date [23:23:36]req_shift_open_date done [23:23:36]produce_requested_data done [23:23:36]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69287,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [23:23:36]process_action_free close_receipt [23:23:36]json_value_free [23:23:36]json_value_free done [23:23:36]process_json_proto returns [23:23:36]Send response to host [23:23:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69287,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [23:23:36]free response buf [23:23:36]execute_script done [23:23:36]execute_script returns [23:23:36]free content buf [23:23:36]Sock 7.Close socket [23:23:36]Sock 7.Thread stoped [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:23]accept exits with 9 [23:26:23]New connection [23:26:23]New thread 3066785124 created [23:26:23]Thread 3066641764 joined [23:26:23]Waiting for new connection... [23:26:23] Sock 9.Parse request [23:26:23]Sock 9.Check first char [23:26:23]Sock 9.First char is OK [23:26:23]request: POST /json_proto HTTP/1.0 [23:26:23]Method: POST [23:26:23]URL: /json_proto [23:26:23]Method is POST - this is cgi request [23:26:23]url: /json_proto [23:26:23]query_string will be loaded in cgi processing [23:26:23]execute_cgi json_proto POST (null) [23:26:23]execute_cgi path=json_proto method=POST [23:26:23]POST find Content-Length [23:26:23]Host: 172.17.49.132:8080 [23:26:23]Content-Length: 655 [23:26:23]Content-Type: application/json [23:26:23] [23:26:23]POST finish read [23:26:23]Found Content-Length = 655 [23:26:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136623", "tax_sys" : 0, "items" : [ { "code": "4680037724146", "name": "\u0412\u043E\u0440\u043E\u043D\u043A\u0430 \u0440\u0430\u0437\u0431\u043E\u0440\u043D\u0430\u044F", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:23]execute_script... [23:26:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136623", "tax_sys" : 0, "items" : [ { "code": "4680037724146", "name": "\u0412\u043E\u0440\u043E\u043D\u043A\u0430 \u0440\u0430\u0437\u0431\u043E\u0440\u043D\u0430\u044F", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:23]POST & json_proto [23:26:23]process_json_proto [23:26:23]json parsed OK: [23:26:23]protocol is kg_v1.0 [23:26:23]action value=close_receipt [23:26:23]process_action close_receipt [23:26:23]cmd_close_receipt [23:26:23]MH_GetDate [23:26:23]Write to MH i2c: F0 00 00 8D 61 DD [23:26:23]Write i2c OK [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: F0 [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: F0 09 00 [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: F0 09 00 8D 61 00 AB D3 A6 66 E7 4B C0 64 C6 [23:26:23]GetLastDocTimeStamp 1722209024 [23:26:23]current date 1722209195 [23:26:23]FM_GetShiftState [23:26:23]SAM_PROTO_GetShiftState [23:26:23]wFMCommunicate request_size=4 [23:26:23]MH_SAM_APDU [23:26:23]CAPDU: 80 13 01 00 [23:26:23]Write to MH i2c: E2 08 00 8E 61 80 13 01 00 00 00 00 00 6C [23:26:23]Write i2c OK [23:26:23]MH_I2C_Read... [23:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:23]Read from MH i2c: E2 [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: E2 0E 00 [23:26:23]MH_I2C_Read... [23:26:23]Read from MH i2c: E2 0E 00 8E 61 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 A9 [23:26:23]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:26:23]wFMCommunicate OK [23:26:23]SAM_PROTO_GetShiftState done [23:26:23]FM_GetShiftState done [23:26:23]opened in 1722127251 [23:26:23]opened+sec_in_day 1722213651 [23:26:23]quantity*price = 19900 [23:26:23]sum+1 = 19901 [23:26:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 199.00 НСП 1% : 1.76 НДС 12% : 21.13 Наличными: 199.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 171 28.07.2024 23:26 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69288 ФПД: 263348671422978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T232635&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69288&fm=263348671422978&tin=02508201610067®Number=0000000000092638&sum=19900 0 [23:26:24]StoreToDocumentArchive [23:26:24]shift 429 fd 69288 [23:26:24]save to /storage/0429/doc_00069288 [23:26:24]save last doc name /storage/0429/doc_00069288 to /storage/kkm_last_doc_name [23:26:24]save OK [23:26:24]Clear old archive folders... [23:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=275 [23:26:24]tlvbuf is 00A48F90 [23:26:24]SAM_PROTO_ClearQueue [23:26:24]wFMCommunicate request_size=4 [23:26:24]MH_SAM_APDU [23:26:24]CAPDU: 80 09 00 00 [23:26:24]Write to MH i2c: E2 08 00 9B 61 80 09 00 00 00 00 00 00 6E [23:26:24]Write i2c OK [23:26:24]MH_I2C_Read... [23:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:24]Read from MH i2c: E2 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 03 00 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 03 00 9B 61 00 90 00 70 [23:26:24]RAPDU: 90 00 [23:26:24]wFMCommunicate OK [23:26:24]SAM_PROTO_ClearQueue done [23:26:24]KKMCreateOFDPacket [23:26:24]OFDProtocolAddRootSTLVToBuf [23:26:24]FM_MakeSignedData [23:26:24]FM_MakeSignedData [23:26:24]SAM_PROTO_SignData [23:26:24]wFMCommunicate request_size=4 [23:26:24]MH_SAM_APDU [23:26:24]CAPDU: 80 0D 01 02 [23:26:24]Write to MH i2c: E2 08 00 9C 61 80 0D 01 02 00 00 00 00 76 [23:26:24]Write i2c OK [23:26:24]MH_I2C_Read... [23:26:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:24]Read from MH i2c: E2 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 03 00 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 03 00 9C 61 00 90 00 71 [23:26:24]RAPDU: 90 00 [23:26:24]wFMCommunicate OK [23:26:24]wFMCommunicate request_size=255 [23:26:24]MH_SAM_APDU [23:26:24]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 31 34 36 06 04 21 00 D0 92 D0 BE D1 80 D0 BE D0 BD D0 BA D0 B0 20 D1 80 D0 B0 D0 B7 D0 B1 D0 BE D1 80 D0 BD D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 AB D3 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 [23:26:24]Write to MH i2c: E2 02 01 9D 61 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 31 34 36 06 04 21 00 D0 92 D0 BE D1 80 D0 BE D0 BD D0 BA D0 B0 20 D1 80 D0 B0 D0 B7 D0 B1 D0 BE D1 80 D0 BD D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 AB D3 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 00 00 11 [23:26:25]Write i2c OK [23:26:25]MH_I2C_Read... [23:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:25]Read from MH i2c: E2 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: E2 03 00 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: E2 03 00 9D 61 00 90 00 72 [23:26:25]RAPDU: 90 00 [23:26:25]wFMCommunicate OK [23:26:25]wFMCommunicate request_size=34 [23:26:25]MH_SAM_APDU [23:26:25]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A8 0E 01 00 35 04 06 00 EF 83 A4 03 22 02 [23:26:25]Write to MH i2c: E2 25 00 9E 61 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A8 0E 01 00 35 04 06 00 EF 83 A4 03 22 02 00 00 37 [23:26:25]Write i2c OK [23:26:25]MH_I2C_Read... [23:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:25]Read from MH i2c: E2 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: E2 03 00 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: E2 03 00 9E 61 00 90 00 73 [23:26:25]RAPDU: 90 00 [23:26:25]wFMCommunicate OK [23:26:25]wFMCommunicate request_size=4 [23:26:25]MH_SAM_APDU [23:26:25]CAPDU: 80 0D 03 02 [23:26:25]Write to MH i2c: E2 08 00 9F 61 80 0D 03 02 00 00 00 00 7B [23:26:25]Write i2c OK [23:26:25]MH_I2C_Read... [23:26:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:25]Read from MH i2c: E2 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: E2 0B 00 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: E2 0B 00 9F 61 00 C2 0D F0 AB 06 74 0D 34 90 00 A1 [23:26:25]RAPDU: C2 0D F0 AB 06 74 0D 34 90 00 [23:26:25]wFMCommunicate OK [23:26:25]SAM_PROTO_SignData done [23:26:25]FM_MakeSignedData done [23:26:25]CreateOFDProtocolMessage [23:26:25]wFMCommunicate request_size=4 [23:26:25]MH_SAM_APDU [23:26:25]CAPDU: 80 11 00 00 [23:26:25]Write to MH i2c: E2 08 00 A0 61 80 11 00 00 00 00 00 00 7B [23:26:25]Write i2c OK [23:26:25]MH_I2C_Read... [23:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:25]Read from MH i2c: E2 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: E2 17 00 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: E2 17 00 A0 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D7 [23:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:26:25]wFMCommunicate OK [23:26:25]CreateOFDProtocolMessage done [23:26:25]OFDSenderStorePacket 69288 [23:26:25]StoreOFDPacket docnum=69288 [23:26:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 40 CE 1F 01 5F 4B 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 31 34 36 06 04 21 00 D0 92 D0 BE D1 80 D0 BE D0 BD D0 BA D0 B0 20 D1 80 D0 B0 D0 B7 D0 B1 D0 BE D1 80 D0 BD D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 AB D3 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A8 0E 01 00 35 04 06 00 EF 83 A4 03 22 02 C2 0D F0 AB 06 74 0D 34 [23:26:25]CheckFolder [23:26:25]dirname=/storage/ofd_packets [23:26:25]CheckFolder done [23:26:25]ProducePacketName [23:26:25]name=ofd_packets/00069288 [23:26:25]NVStorageSaveData ofd_packets/00069288 [23:26:25]File name is /storage/ofd_packets/00069288 [23:26:25]Write 325 bytes [23:26:25]NVStorageSaveData done [23:26:25]OFDSenderStorePacket done [23:26:25]KKMCreateOFDPacket done [23:26:25]NVStorageSaveData kkm_last_timestamp [23:26:25]File name is /storage/kkm_last_timestamp [23:26:25]Write 4 bytes [23:26:25]NVStorageSaveData done [23:26:25]ExternCall_PrintAddStr [23:26:25]wPrintStart [23:26:25]Write to MH i2c: 01 00 00 A1 61 02 [23:26:25]Write i2c OK [23:26:25]MH_I2C_Read... [23:26:25]OFD Sender: Processing packet 69288 [packets to send 19, broken 18] [23:26:25]ProducePacketName [23:26:25]name=ofd_packets/00069288 [23:26:25]OFD Sender: To server: pG, [23:26:25]CommunicateWithHost lk.salyk.kg:30040 [23:26:25]ConnectInit lk.salyk.kg [23:26:25]Read from MH i2c: 01 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: 01 07 00 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: 01 07 00 A1 61 00 00 00 00 00 FF 0F 17 [23:26:25]RasterBufferAndPrint [23:26:25]line Счет N : (3)136623 [23:26:25]line ИНН: 02508201610067 [23:26:25]line Контрольно-Кассовый Чек [23:26:25]line ПРОДАЖА [23:26:25]line Товар: 4680037724146 [23:26:25]line Воронка разборная [23:26:25]line 1.000 * 199.00 [23:26:25]line = 199.00 [23:26:25]line НДС 12% НСП 1% [23:26:25]line > о реализуемом товаре [23:26:25]line ИТОГО: 199.00 [23:26:25]line НСП 1% : 1.76 [23:26:25]line НДС 12% : 21.13 [23:26:25]line Наличными: 199.00 [23:26:25]line Безнал.: 0.00 [23:26:25]line Место: АЗС № 125 "Партнер Нефть" [23:26:25]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [23:26:25]line СНО: Общий режим [23:26:25]line Чек 171 28.07.2024 23:26 [23:26:25]line Смена: 429 ФФД: 1.0 [23:26:25]line ЗНМ: 0300000049 [23:26:25]line РНМ: 0000000000092638 [23:26:25]line Версия ККМ: 001 [23:26:25]line ФМ: 0000000000874949 [23:26:25]line ФД: 69288 [23:26:25]line ФПД: 263348671422978 [23:26:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T232635&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69288&fm=263348671422978&tin=02508201610067®Number=0000000000092638&sum=19900 [23:26:25]line 0 [23:26:25]written 0, free lines is 4095 [23:26:25]Connected sock=10 [23:26: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 39 34 39 27 01 00 00 40 CE 1F 01 5F 4B 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 31 34 36 06 04 21 00 D0 92 D0 BE D1 80 D0 BE D0 BD D0 BA D0 B0 20 D1 80 D0 B0 D0 B7 D0 B1 D0 BE D1 80 D0 BD D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 AB D3 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A8 0E 01 00 35 04 06 00 EF 83 A4 03 22 02 C2 0D F0 AB 06 74 0D 34 [23:26:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 26 4A 47 00 F0 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A8 0E 01 00 F4 03 04 00 19 7A A6 66 B6 04 01 00 00 BF 36 CC A9 EE 0C 57 DF [23:26:25]CommunicateWithHost err = 0 [23:26:25]CheckOFDResponse [23:26:25]1017 (14) - 77093643461234 [23:26:25]1041 (16) - 0000000000874949 [23:26:25]1040 (4) - 69288 [23:26:25]1012 (4) - 28.07.2024 17:04 [23:26:25]1206 (1) - 0 [23:26:25]OFD Sender: Remove packet 69288 [23:26:25]ProducePacketName [23:26:25]name=ofd_packets/00069288 [23:26:25]NVStorageDeleteData [23:26:25]Write to MH i2c: 01 00 00 C9 61 2A [23:26:25]Write i2c OK [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: 01 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: 01 07 00 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: 01 07 00 C9 61 00 00 00 00 00 24 0D 62 [23:26:25]RasterBufferAndPrint [23:26:25]line [23:26:25]line [23:26:25]line [23:26:25]line [23:26:25]line [23:26:25]written 0, free lines is 3370 [23:26:25]MH_Cut [23:26:25]Write to MH i2c: D1 01 00 D0 61 01 03 [23:26:25]Write i2c OK [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: D1 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: D1 01 00 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: D1 01 00 D0 61 00 02 [23:26:25]Write to MH i2c: 01 00 00 D1 61 32 [23:26:25]Write i2c OK [23:26:25]MH_I2C_Read... [23:26:26]OFD Sender: No OFD packet to send [23:26:26]*** Cut start [23:26:26]*** Partial cut [23:26:26]*** CUTSNS_PIN = 1 [23:26:26]*** CUTSNS_PIN = 0 [23:26:26]*** Brake cut motor [23:26:27]Read from MH i2c: 01 [23:26:27]MH_I2C_Read... [23:26:27]*** Stop cut motor [23:26:27]*** Cut end [23:26:27]Read from MH i2c: 01 07 00 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: 01 07 00 D1 61 00 00 00 00 00 FF 0F 47 [23:26:27]process_action close_receipt done [23:26:27]requested_data is exist [23:26:27]produce_requested_data [23:26:27]requested_item fm.sn is exist - process it [23:26:27]wFMCommunicate request_size=4 [23:26:27]MH_SAM_APDU [23:26:27]CAPDU: 80 11 00 00 [23:26:27]Write to MH i2c: E2 08 00 D2 61 80 11 00 00 00 00 00 00 AD [23:26:27]Write i2c OK [23:26:27]MH_I2C_Read... [23:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:27]Read from MH i2c: E2 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: E2 17 00 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: E2 17 00 D2 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 09 [23:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:26:27]wFMCommunicate OK [23:26:27]requested_item fd.num is exist - process it [23:26:27]SAM_PROTO_GetFieldsCounters [23:26:27]wFMCommunicate request_size=4 [23:26:27]MH_SAM_APDU [23:26:27]CAPDU: 80 13 00 00 [23:26:27]Write to MH i2c: E2 08 00 D3 61 80 13 00 00 00 00 00 00 B0 [23:26:27]Write i2c OK [23:26:27]MH_I2C_Read... [23:26:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:27]Read from MH i2c: E2 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: E2 62 00 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: E2 62 00 D3 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A8 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [23:26:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A8 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:26:27]wFMCommunicate OK [23:26:27]SAM_PROTO_GetFieldsCounters done [23:26:27]requested_item shift.num is exist - process it [23:26:27]requested_item shift.opened is exist - process it [23:26:27]req_shift_opened [23:26:27]FM_GetShiftState [23:26:27]SAM_PROTO_GetShiftState [23:26:27]wFMCommunicate request_size=4 [23:26:27]MH_SAM_APDU [23:26:27]CAPDU: 80 13 01 00 [23:26:27]Write to MH i2c: E2 08 00 D4 61 80 13 01 00 00 00 00 00 B2 [23:26:27]Write i2c OK [23:26:27]MH_I2C_Read... [23:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:27]Read from MH i2c: E2 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: E2 0E 00 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: E2 0E 00 D4 61 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 EF [23:26:27]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:26:27]wFMCommunicate OK [23:26:27]SAM_PROTO_GetShiftState done [23:26:27]FM_GetShiftState done [23:26:27]req_shift_opened done [23:26:27]requested_item shift.open_date is exist - process it [23:26:27]req_shift_open_date [23:26:27]req_shift_open_date done [23:26:27]produce_requested_data done [23:26:27]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69288,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [23:26:27]process_action_free close_receipt [23:26:27]json_value_free [23:26:27]json_value_free done [23:26:27]process_json_proto returns [23:26:27]Send response to host [23:26:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69288,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [23:26:27]free response buf [23:26:27]execute_script done [23:26:27]execute_script returns [23:26:27]free content buf [23:26:27]Sock 9.Close socket [23:26:27]Sock 9.Thread stoped [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:33:19]ConnectInit Can't connect to host [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:46]OFD Sender: No OFD packet to send [23:34:47]accept exits with 7 [23:34:47]New connection [23:34:47]New thread 3066641764 created [23:34:47]Thread 3066785124 joined [23:34:47]Waiting for new connection... [23:34:47] Sock 7.Parse request [23:34:47]Sock 7.Check first char [23:34:47]Sock 7.First char is OK [23:34:47]request: POST /json_proto HTTP/1.0 [23:34:47]Method: POST [23:34:47]URL: /json_proto [23:34:47]Method is POST - this is cgi request [23:34:47]url: /json_proto [23:34:47]query_string will be loaded in cgi processing [23:34:47]execute_cgi json_proto POST (null) [23:34:47]execute_cgi path=json_proto method=POST [23:34:47]POST find Content-Length [23:34:47]Host: 172.17.49.132:8080 [23:34:47]Content-Length: 1279 [23:34:47]Content-Type: application/json [23:34:47] [23:34:47]POST finish read [23:34:47]Found Content-Length = 1279 [23:34:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136624", "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" : 1.000, "sum" : 120.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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:47]execute_script... [23:34:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136624", "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" : 1.000, "sum" : 120.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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:47]POST & json_proto [23:34:47]process_json_proto [23:34:47]json parsed OK: [23:34:47]protocol is kg_v1.0 [23:34:47]action value=close_receipt [23:34:47]process_action close_receipt [23:34:47]cmd_close_receipt [23:34:47]MH_GetDate [23:34:47]Write to MH i2c: F0 00 00 D5 61 25 [23:34:47]Write i2c OK [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: F0 [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: F0 09 00 [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: F0 09 00 D5 61 00 A2 D5 A6 66 E7 4B C0 64 07 [23:34:47]GetLastDocTimeStamp 1722209195 [23:34:47]current date 1722209698 [23:34:47]FM_GetShiftState [23:34:47]SAM_PROTO_GetShiftState [23:34:47]wFMCommunicate request_size=4 [23:34:47]MH_SAM_APDU [23:34:47]CAPDU: 80 13 01 00 [23:34:47]Write to MH i2c: E2 08 00 D6 61 80 13 01 00 00 00 00 00 B4 [23:34:47]Write i2c OK [23:34:47]MH_I2C_Read... [23:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:47]Read from MH i2c: E2 [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: E2 0E 00 [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: E2 0E 00 D6 61 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 F1 [23:34:47]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:34:47]wFMCommunicate OK [23:34:47]SAM_PROTO_GetShiftState done [23:34:47]FM_GetShiftState done [23:34:47]opened in 1722127251 [23:34:47]opened+sec_in_day 1722213651 [23:34:47]quantity*price = 12000 [23:34:47]sum+1 = 12001 [23:34:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 0.00 Безнал.: 180.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 172 28.07.2024 23:34 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69289 ФПД: 177334812790704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233459&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69289&fm=177334812790704&tin=02508201610067®Number=0000000000092638&sum=18000 0 [23:34:48]StoreToDocumentArchive [23:34:48]shift 429 fd 69289 [23:34:48]save to /storage/0429/doc_00069289 [23:34:48]save last doc name /storage/0429/doc_00069289 to /storage/kkm_last_doc_name [23:34:48]save OK [23:34:48]Clear old archive folders... [23:34:48]ProcessDocumentItem done err = 0, tmpTLVsize=438 [23:34:48]tlvbuf is 00BD4050 [23:34:48]SAM_PROTO_ClearQueue [23:34:48]wFMCommunicate request_size=4 [23:34:48]MH_SAM_APDU [23:34:48]CAPDU: 80 09 00 00 [23:34:48]Write to MH i2c: E2 08 00 E3 61 80 09 00 00 00 00 00 00 B6 [23:34:48]Write i2c OK [23:34:48]MH_I2C_Read... [23:34:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:48]Read from MH i2c: E2 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 03 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 03 00 E3 61 00 90 00 B8 [23:34:48]RAPDU: 90 00 [23:34:48]wFMCommunicate OK [23:34:48]SAM_PROTO_ClearQueue done [23:34:48]KKMCreateOFDPacket [23:34:48]OFDProtocolAddRootSTLVToBuf [23:34:48]FM_MakeSignedData [23:34:48]FM_MakeSignedData [23:34:48]SAM_PROTO_SignData [23:34:48]wFMCommunicate request_size=4 [23:34:48]MH_SAM_APDU [23:34:48]CAPDU: 80 0D 01 02 [23:34:48]Write to MH i2c: E2 08 00 E4 61 80 0D 01 02 00 00 00 00 BE [23:34:48]Write i2c OK [23:34:48]MH_I2C_Read... [23:34:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:48]Read from MH i2c: E2 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 03 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 03 00 E4 61 00 90 00 B9 [23:34:48]RAPDU: 90 00 [23:34:48]wFMCommunicate OK [23:34:48]wFMCommunicate request_size=255 [23:34:48]MH_SAM_APDU [23:34:48]CAPDU: 80 0D 02 02 FA 03 00 B6 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 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [23:34:48]Write to MH i2c: E2 02 01 E5 61 80 0D 02 02 FA 00 03 00 B6 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 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 [23:34:48]Write i2c OK [23:34:48]MH_I2C_Read... [23:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:48]Read from MH i2c: E2 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 03 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 03 00 E5 61 00 90 00 BA [23:34:48]RAPDU: 90 00 [23:34:48]wFMCommunicate OK [23:34:48]wFMCommunicate request_size=197 [23:34:48]MH_SAM_APDU [23:34:48]CAPDU: 80 0D 02 02 C0 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 A3 D5 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A9 0E 01 00 35 04 06 00 A1 48 FA 85 CF B0 [23:34:48]Write to MH i2c: E2 C8 00 E6 61 80 0D 02 02 C0 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 A3 D5 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A9 0E 01 00 35 04 06 00 A1 48 FA 85 CF B0 00 00 AD [23:34:48]Write i2c OK [23:34:48]MH_I2C_Read... [23:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:49]Read from MH i2c: E2 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: E2 03 00 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: E2 03 00 E6 61 00 90 00 BB [23:34:49]RAPDU: 90 00 [23:34:49]wFMCommunicate OK [23:34:49]wFMCommunicate request_size=4 [23:34:49]MH_SAM_APDU [23:34:49]CAPDU: 80 0D 03 02 [23:34:49]Write to MH i2c: E2 08 00 E7 61 80 0D 03 02 00 00 00 00 C3 [23:34:49]Write i2c OK [23:34:49]MH_I2C_Read... [23:34:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:49]Read from MH i2c: E2 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: E2 0B 00 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: E2 0B 00 E7 61 00 AF 15 4A C3 E9 07 49 E5 90 00 B3 [23:34:49]RAPDU: AF 15 4A C3 E9 07 49 E5 90 00 [23:34:49]wFMCommunicate OK [23:34:49]SAM_PROTO_SignData done [23:34:49]FM_MakeSignedData done [23:34:49]CreateOFDProtocolMessage [23:34:49]wFMCommunicate request_size=4 [23:34:49]MH_SAM_APDU [23:34:49]CAPDU: 80 11 00 00 [23:34:49]Write to MH i2c: E2 08 00 E8 61 80 11 00 00 00 00 00 00 C3 [23:34:49]Write i2c OK [23:34:49]MH_I2C_Read... [23:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:49]Read from MH i2c: E2 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: E2 17 00 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: E2 17 00 E8 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 1F [23:34:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:34:49]wFMCommunicate OK [23:34:49]CreateOFDProtocolMessage done [23:34:49]OFDSenderStorePacket 69289 [23:34:49]StoreOFDPacket docnum=69289 [23:34:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 CA 01 00 00 AB F8 C2 01 67 7A 5A 03 01 00 03 00 B6 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 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 A3 D5 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A9 0E 01 00 35 04 06 00 A1 48 FA 85 CF B0 AF 15 4A C3 E9 07 49 E5 [23:34:49]CheckFolder [23:34:49]dirname=/storage/ofd_packets [23:34:49]CheckFolder done [23:34:49]ProducePacketName [23:34:49]name=ofd_packets/00069289 [23:34:49]NVStorageSaveData ofd_packets/00069289 [23:34:49]File name is /storage/ofd_packets/00069289 [23:34:49]Write 488 bytes [23:34:49]NVStorageSaveData done [23:34:49]OFDSenderStorePacket done [23:34:49]KKMCreateOFDPacket done [23:34:49]NVStorageSaveData kkm_last_timestamp [23:34:49]File name is /storage/kkm_last_timestamp [23:34:49]Write 4 bytes [23:34:49]NVStorageSaveData done [23:34:49]ExternCall_PrintAddStr [23:34:49]wPrintStart [23:34:49]Write to MH i2c: 01 00 00 E9 61 4A [23:34:49]Write i2c OK [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: 01 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: 01 07 00 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: 01 07 00 E9 61 00 00 00 00 00 FF 0F 5F [23:34:49]RasterBufferAndPrint [23:34:49]line Счет N : (3)136624 [23:34:49]line ИНН: 02508201610067 [23:34:49]line Контрольно-Кассовый Чек [23:34:49]line ПРОДАЖА [23:34:49]line Товар: 4630007401201 [23:34:49]line Семечки соленые ДЖИНН Великан 100гр [23:34:49]line 1.000 * 120.00 [23:34:49]line = 120.00 [23:34:49]line НДС 12% НСП 1% [23:34:49]line > о реализуемом товаре [23:34:49]line Товар: 4700000160792 [23:34:49]line Снек Курут классический (круглый) [23:34:49]line 1.000 * 60.00 [23:34:49]line = 60.00 [23:34:49]line НДС 12% НСП 1% [23:34:49]line > о реализуемом товаре [23:34:49]line ИТОГО: 180.00 [23:34:49]line НСП 1% : 1.59 [23:34:49]line НДС 12% : 19.11 [23:34:49]line Наличными: 0.00 [23:34:49]line Безнал.: 180.00 [23:34:49]line Место: АЗС № 125 "Партнер Нефть" [23:34:49]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [23:34:49]line СНО: Общий режим [23:34:49]line Чек 172 28.07.2024 23:34 [23:34:49]line Смена: 429 ФФД: 1.0 [23:34:49]line ЗНМ: 0300000049 [23:34:49]line РНМ: 0000000000092638 [23:34:49]line Версия ККМ: 001 [23:34:49]line Платежная система: АКБ Кыргызстан [23:34:49]line ФМ: 0000000000874949 [23:34:49]line ФД: 69289 [23:34:49]line ФПД: 177334812790704 [23:34:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233459&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69289&fm=177334812790704&tin=02508201610067®Number=0000000000092638&sum=18000 [23:34:49]line 0 [23:34:49]written 0, free lines is 4095 [23:34:49]OFD Sender: Processing packet 69289 [packets to send 19, broken 18] [23:34:49]ProducePacketName [23:34:49]name=ofd_packets/00069289 [23:34:49]OFD Sender: To server: pG, [23:34:49]CommunicateWithHost lk.salyk.kg:30040 [23:34:49]ConnectInit lk.salyk.kg [23:34:49]Write to MH i2c: 01 00 00 1B 62 7D [23:34:49]Write i2c OK [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: 01 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: 01 07 00 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: 01 07 00 1B 62 00 00 00 00 00 88 0C 18 [23:34:49]RasterBufferAndPrint [23:34:49]line [23:34:49]line [23:34:49]line [23:34:49]line [23:34:49]line [23:34:49]written 0, free lines is 3217 [23:34:49]MH_Cut [23:34:49]Write to MH i2c: D1 01 00 22 62 01 56 [23:34:49]Write i2c OK [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: D1 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: D1 01 00 [23:34:49]MH_I2C_Read... [23:34:49]Read from MH i2c: D1 01 00 22 62 00 55 [23:34:49]Write to MH i2c: 01 00 00 23 62 85 [23:34:49]Write i2c OK [23:34:49]MH_I2C_Read... [23:34:50]*** Cut start [23:34:50]*** Partial cut [23:34:50]*** CUTSNS_PIN = 1 [23:34:50]*** CUTSNS_PIN = 0 [23:34:50]*** Brake cut motor [23:34:51]Read from MH i2c: 01 [23:34:51]MH_I2C_Read... [23:34:51]*** Stop cut motor [23:34:51]*** Cut end [23:34:51]Read from MH i2c: 01 07 00 [23:34:51]MH_I2C_Read... [23:34:51]Read from MH i2c: 01 07 00 23 62 00 00 00 00 00 FF 0F 9A [23:34:51]process_action close_receipt done [23:34:51]requested_data is exist [23:34:51]produce_requested_data [23:34:51]requested_item fm.sn is exist - process it [23:34:51]wFMCommunicate request_size=4 [23:34:51]MH_SAM_APDU [23:34:51]CAPDU: 80 11 00 00 [23:34:51]Write to MH i2c: E2 08 00 24 62 80 11 00 00 00 00 00 00 00 [23:34:51]Write i2c OK [23:34:51]MH_I2C_Read... [23:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:51]Read from MH i2c: E2 [23:34:51]MH_I2C_Read... [23:34:51]Read from MH i2c: E2 17 00 [23:34:51]MH_I2C_Read... [23:34:51]Read from MH i2c: E2 17 00 24 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 5C [23:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:34:51]wFMCommunicate OK [23:34:51]requested_item fd.num is exist - process it [23:34:51]SAM_PROTO_GetFieldsCounters [23:34:51]wFMCommunicate request_size=4 [23:34:51]MH_SAM_APDU [23:34:51]CAPDU: 80 13 00 00 [23:34:51]Write to MH i2c: E2 08 00 25 62 80 13 00 00 00 00 00 00 03 [23:34:51]Write i2c OK [23:34:51]MH_I2C_Read... [23:34:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:51]Read from MH i2c: E2 [23:34:51]MH_I2C_Read... [23:34:51]Read from MH i2c: E2 62 00 [23:34:51]MH_I2C_Read... [23:34:51]Read from MH i2c: E2 62 00 25 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A9 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [23:34:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 A9 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:51]wFMCommunicate OK [23:34:51]SAM_PROTO_GetFieldsCounters done [23:34:51]requested_item shift.num is exist - process it [23:34:51]requested_item shift.opened is exist - process it [23:34:51]req_shift_opened [23:34:51]FM_GetShiftState [23:34:51]SAM_PROTO_GetShiftState [23:34:51]wFMCommunicate request_size=4 [23:34:51]MH_SAM_APDU [23:34:51]CAPDU: 80 13 01 00 [23:34:51]Write to MH i2c: E2 08 00 26 62 80 13 01 00 00 00 00 00 05 [23:34:51]Write i2c OK [23:34:51]MH_I2C_Read... [23:34:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:51]Read from MH i2c: E2 [23:34:51]MH_I2C_Read... [23:34:51]Read from MH i2c: E2 0E 00 [23:34:51]MH_I2C_Read... [23:34:51]Read from MH i2c: E2 0E 00 26 62 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 42 [23:34:51]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:34:51]wFMCommunicate OK [23:34:51]SAM_PROTO_GetShiftState done [23:34:51]FM_GetShiftState done [23:34:51]req_shift_opened done [23:34:51]requested_item shift.open_date is exist - process it [23:34:51]req_shift_open_date [23:34:51]req_shift_open_date done [23:34:51]produce_requested_data done [23:34:51]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69289,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [23:34:51]process_action_free close_receipt [23:34:51]json_value_free [23:34:51]json_value_free done [23:34:51]process_json_proto returns [23:34:51]Send response to host [23:34:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69289,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [23:34:51]free response buf [23:34:51]execute_script done [23:34:51]execute_script returns [23:34:51]free content buf [23:34:51]Sock 7.Close socket [23:34:51]Sock 7.Thread stoped [23:34:54]ConnectInit Can't take IP for lk.salyk.kg [23:34:54]CommunicateWithHost connect error [23:34:54]CommunicateWithHost err = -1 [23:34:54]OFD Sender: Server communicate error [23:34:59]OFD Sender: Processing packet 69289 [packets to send 19, broken 18] [23:34:59]ProducePacketName [23:34:59]name=ofd_packets/00069289 [23:34:59]OFD Sender: To server: pG, [23:34:59]CommunicateWithHost lk.salyk.kg:30040 [23:34:59]ConnectInit lk.salyk.kg [23:35:04]ConnectInit Can't take IP for lk.salyk.kg [23:35:04]CommunicateWithHost connect error [23:35:04]CommunicateWithHost err = -1 [23:35:04]OFD Sender: Server communicate error [23:35:09]OFD Sender: Processing packet 69289 [packets to send 19, broken 18] [23:35:09]ProducePacketName [23:35:09]name=ofd_packets/00069289 [23:35:09]OFD Sender: To server: pG, [23:35:09]CommunicateWithHost lk.salyk.kg:30040 [23:35:09]ConnectInit lk.salyk.kg [23:35:14]ConnectInit Can't take IP for lk.salyk.kg [23:35:14]CommunicateWithHost connect error [23:35:14]CommunicateWithHost err = -1 [23:35:14]OFD Sender: Server communicate error [23:35:19]OFD Sender: Processing packet 69289 [packets to send 19, broken 18] [23:35:19]ProducePacketName [23:35:19]name=ofd_packets/00069289 [23:35:19]OFD Sender: To server: pG, [23:35:19]CommunicateWithHost lk.salyk.kg:30040 [23:35:19]ConnectInit lk.salyk.kg [23:35:24]ConnectInit Can't take IP for lk.salyk.kg [23:35:24]CommunicateWithHost connect error [23:35:24]CommunicateWithHost err = -1 [23:35:24]OFD Sender: Server communicate error [23:35:29]OFD Sender: Processing packet 69289 [packets to send 19, broken 18] [23:35:29]ProducePacketName [23:35:29]name=ofd_packets/00069289 [23:35:29]OFD Sender: To server: pG, [23:35:29]CommunicateWithHost lk.salyk.kg:30040 [23:35:29]ConnectInit lk.salyk.kg [23:35:34]ConnectInit Can't take IP for lk.salyk.kg [23:35:34]CommunicateWithHost connect error [23:35:34]CommunicateWithHost err = -1 [23:35:34]OFD Sender: Server communicate error [23:35:39]OFD Sender: Processing packet 69289 [packets to send 19, broken 18] [23:35:39]ProducePacketName [23:35:39]name=ofd_packets/00069289 [23:35:39]OFD Sender: To server: pG, [23:35:39]CommunicateWithHost lk.salyk.kg:30040 [23:35:39]ConnectInit lk.salyk.kg [23:35:44]ConnectInit Can't take IP for lk.salyk.kg [23:35:44]CommunicateWithHost connect error [23:35:44]CommunicateWithHost err = -1 [23:35:44]OFD Sender: Server communicate error [23:35:49]OFD Sender: Processing packet 69289 [packets to send 19, broken 18] [23:35:49]ProducePacketName [23:35:49]name=ofd_packets/00069289 [23:35:49]OFD Sender: To server: pG, [23:35:49]CommunicateWithHost lk.salyk.kg:30040 [23:35:49]ConnectInit lk.salyk.kg [23:35:54]ConnectInit Can't take IP for lk.salyk.kg [23:35:54]CommunicateWithHost connect error [23:35:54]CommunicateWithHost err = -1 [23:35:54]OFD Sender: Server communicate error [23:35:59]OFD Sender: Processing packet 69289 [packets to send 19, broken 18] [23:35:59]ProducePacketName [23:35:59]name=ofd_packets/00069289 [23:35:59]OFD Sender: To server: pG, [23:35:59]CommunicateWithHost lk.salyk.kg:30040 [23:35:59]ConnectInit lk.salyk.kg [23:36:04]ConnectInit Can't take IP for lk.salyk.kg [23:36:04]CommunicateWithHost connect error [23:36:04]CommunicateWithHost err = -1 [23:36:04]OFD Sender: Server communicate error [23:36:09]OFD Sender: Processing packet 69289 [packets to send 19, broken 18] [23:36:09]ProducePacketName [23:36:09]name=ofd_packets/00069289 [23:36:09]OFD Sender: To server: pG, [23:36:09]CommunicateWithHost lk.salyk.kg:30040 [23:36:09]ConnectInit lk.salyk.kg [23:36:14]ConnectInit Can't take IP for lk.salyk.kg [23:36:14]CommunicateWithHost connect error [23:36:14]CommunicateWithHost err = -1 [23:36:14]OFD Sender: Server communicate error [23:36:19]OFD Sender: Processing packet 69289 [packets to send 19, broken 18] [23:36:19]ProducePacketName [23:36:19]name=ofd_packets/00069289 [23:36:19]OFD Sender: To server: pG, [23:36:19]CommunicateWithHost lk.salyk.kg:30040 [23:36:19]ConnectInit lk.salyk.kg [23:36:24]ConnectInit Can't take IP for lk.salyk.kg [23:36:24]CommunicateWithHost connect error [23:36:24]CommunicateWithHost err = -1 [23:36:24]OFD Sender: Server communicate error [23:36:29]OFD Sender: Processing packet 69289 [packets to send 19, broken 18] [23:36:29]ProducePacketName [23:36:29]name=ofd_packets/00069289 [23:36:29]OFD Sender: To server: pG, [23:36:29]CommunicateWithHost lk.salyk.kg:30040 [23:36:29]ConnectInit lk.salyk.kg [23:36:34]ConnectInit Can't take IP for lk.salyk.kg [23:36:34]CommunicateWithHost connect error [23:36:34]CommunicateWithHost err = -1 [23:36:34]OFD Sender: Server communicate error [23:36:39]OFD Sender: Processing packet 69289 [packets to send 19, broken 18] [23:36:39]ProducePacketName [23:36:39]name=ofd_packets/00069289 [23:36:39]OFD Sender: To server: pG, [23:36:39]CommunicateWithHost lk.salyk.kg:30040 [23:36:39]ConnectInit lk.salyk.kg [23:36:44]ConnectInit Can't take IP for lk.salyk.kg [23:36:44]CommunicateWithHost connect error [23:36:44]CommunicateWithHost err = -1 [23:36:44]OFD Sender: Server communicate error [23:36:49]OFD Sender: Processing packet 69289 [packets to send 19, broken 18] [23:36:49]ProducePacketName [23:36:49]name=ofd_packets/00069289 [23:36:49]OFD Sender: To server: pG, [23:36:49]CommunicateWithHost lk.salyk.kg:30040 [23:36:49]ConnectInit lk.salyk.kg [23:36:49]Connected sock=7 [23:36: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 39 34 39 CA 01 00 00 AB F8 C2 01 67 7A 5A 03 01 00 03 00 B6 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 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 A3 D5 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A9 0E 01 00 35 04 06 00 A1 48 FA 85 CF B0 AF 15 4A C3 E9 07 49 E5 [23:36:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 9A 96 47 00 FC A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 A9 0E 01 00 F4 03 04 00 89 7C A6 66 B6 04 01 00 00 90 A3 25 D7 CF E7 08 5D [23:36:49]CommunicateWithHost err = 0 [23:36:49]CheckOFDResponse [23:36:49]1017 (14) - 77093643461234 [23:36:49]1041 (16) - 0000000000874949 [23:36:49]1040 (4) - 69289 [23:36:49]1012 (4) - 28.07.2024 17:14 [23:36:49]1206 (1) - 0 [23:36:49]OFD Sender: Remove packet 69289 [23:36:49]ProducePacketName [23:36:49]name=ofd_packets/00069289 [23:36:49]NVStorageDeleteData [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:36:57]ConnectInit Can't connect to host [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:01]accept exits with 10 [23:38:01]New connection [23:38:01]New thread 3066785124 created [23:38:01]Thread 3066641764 joined [23:38:01]Waiting for new connection... [23:38:01] Sock 10.Parse request [23:38:01]Sock 10.Check first char [23:38:01]Sock 10.First char is OK [23:38:01]request: POST /json_proto HTTP/1.0 [23:38:01]Method: POST [23:38:01]URL: /json_proto [23:38:01]Method is POST - this is cgi request [23:38:01]url: /json_proto [23:38:01]query_string will be loaded in cgi processing [23:38:01]execute_cgi json_proto POST (null) [23:38:01]execute_cgi path=json_proto method=POST [23:38:01]POST find Content-Length [23:38:01]Host: 172.17.49.132:8080 [23:38:01]Content-Length: 646 [23:38:01]Content-Type: application/json [23:38:01] [23:38:01]POST finish read [23:38:01]Found Content-Length = 646 [23:38:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136625", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 2.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" ] } } [23:38:01]execute_script... [23:38: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)136625", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 2.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" ] } } [23:38:01]POST & json_proto [23:38:01]process_json_proto [23:38:01]json parsed OK: [23:38:01]protocol is kg_v1.0 [23:38:01]action value=close_receipt [23:38:01]process_action close_receipt [23:38:01]cmd_close_receipt [23:38:01]MH_GetDate [23:38:01]Write to MH i2c: F0 00 00 27 62 78 [23:38:01]Write i2c OK [23:38:01]MH_I2C_Read... [23:38:01]Read from MH i2c: F0 [23:38:01]MH_I2C_Read... [23:38:01]Read from MH i2c: F0 09 00 [23:38:01]MH_I2C_Read... [23:38:01]Read from MH i2c: F0 09 00 27 62 00 65 D6 A6 66 E7 4B C0 64 1E [23:38:01]GetLastDocTimeStamp 1722209699 [23:38:01]current date 1722209893 [23:38:01]FM_GetShiftState [23:38:01]SAM_PROTO_GetShiftState [23:38:01]wFMCommunicate request_size=4 [23:38:01]MH_SAM_APDU [23:38:01]CAPDU: 80 13 01 00 [23:38:01]Write to MH i2c: E2 08 00 28 62 80 13 01 00 00 00 00 00 07 [23:38:01]Write i2c OK [23:38:01]MH_I2C_Read... [23:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:01]Read from MH i2c: E2 [23:38:01]MH_I2C_Read... [23:38:01]Read from MH i2c: E2 0E 00 [23:38:01]MH_I2C_Read... [23:38:01]Read from MH i2c: E2 0E 00 28 62 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 44 [23:38:01]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:38:01]wFMCommunicate OK [23:38:01]SAM_PROTO_GetShiftState done [23:38:01]FM_GetShiftState done [23:38:01]opened in 1722127251 [23:38:01]opened+sec_in_day 1722213651 [23:38:01]quantity*price = 6000 [23:38:01]sum+1 = 6001 [23:38:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 173 28.07.2024 23:38 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69290 ФПД: 201060435557329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233813&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69290&fm=201060435557329&tin=02508201610067®Number=0000000000092638&sum=6000 0 [23:38:02]StoreToDocumentArchive [23:38:02]shift 429 fd 69290 [23:38:02]save to /storage/0429/doc_00069290 [23:38:02]save last doc name /storage/0429/doc_00069290 to /storage/kkm_last_doc_name [23:38:02]save OK [23:38:02]Clear old archive folders... [23:38:02]ProcessDocumentItem done err = 0, tmpTLVsize=277 [23:38:02]tlvbuf is 00BAB870 [23:38:02]SAM_PROTO_ClearQueue [23:38:02]wFMCommunicate request_size=4 [23:38:02]MH_SAM_APDU [23:38:02]CAPDU: 80 09 00 00 [23:38:02]Write to MH i2c: E2 08 00 35 62 80 09 00 00 00 00 00 00 09 [23:38:02]Write i2c OK [23:38:02]MH_I2C_Read... [23:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:02]Read from MH i2c: E2 [23:38:02]MH_I2C_Read... [23:38:02]Read from MH i2c: E2 03 00 [23:38:02]MH_I2C_Read... [23:38:02]Read from MH i2c: E2 03 00 35 62 00 90 00 0B [23:38:02]RAPDU: 90 00 [23:38:02]wFMCommunicate OK [23:38:02]SAM_PROTO_ClearQueue done [23:38:02]KKMCreateOFDPacket [23:38:02]OFDProtocolAddRootSTLVToBuf [23:38:02]FM_MakeSignedData [23:38:02]FM_MakeSignedData [23:38:02]SAM_PROTO_SignData [23:38:02]wFMCommunicate request_size=4 [23:38:02]MH_SAM_APDU [23:38:02]CAPDU: 80 0D 01 02 [23:38:02]Write to MH i2c: E2 08 00 36 62 80 0D 01 02 00 00 00 00 11 [23:38:02]Write i2c OK [23:38:02]MH_I2C_Read... [23:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:03]Read from MH i2c: E2 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 36 62 00 90 00 0C [23:38:03]RAPDU: 90 00 [23:38:03]wFMCommunicate OK [23:38:03]wFMCommunicate request_size=255 [23:38:03]MH_SAM_APDU [23:38:03]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 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 AD 00 00 00 F4 03 04 00 65 D6 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 [23:38:03]Write to MH i2c: E2 02 01 37 62 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 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 AD 00 00 00 F4 03 04 00 65 D6 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 00 00 24 [23:38:03]Write i2c OK [23:38:03]MH_I2C_Read... [23:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:03]Read from MH i2c: E2 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 37 62 00 90 00 0D [23:38:03]RAPDU: 90 00 [23:38:03]wFMCommunicate OK [23:38:03]wFMCommunicate request_size=36 [23:38:03]MH_SAM_APDU [23:38:03]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AA 0E 01 00 35 04 06 00 B6 DD 07 D6 FB D1 [23:38:03]Write to MH i2c: E2 27 00 38 62 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AA 0E 01 00 35 04 06 00 B6 DD 07 D6 FB D1 00 00 37 [23:38:03]Write i2c OK [23:38:03]MH_I2C_Read... [23:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:03]Read from MH i2c: E2 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 03 00 38 62 00 90 00 0E [23:38:03]RAPDU: 90 00 [23:38:03]wFMCommunicate OK [23:38:03]wFMCommunicate request_size=4 [23:38:03]MH_SAM_APDU [23:38:03]CAPDU: 80 0D 03 02 [23:38:03]Write to MH i2c: E2 08 00 39 62 80 0D 03 02 00 00 00 00 16 [23:38:03]Write i2c OK [23:38:03]MH_I2C_Read... [23:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:03]Read from MH i2c: E2 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 0B 00 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 0B 00 39 62 00 D6 EF FF B1 2E 04 DC 41 90 00 DB [23:38:03]RAPDU: D6 EF FF B1 2E 04 DC 41 90 00 [23:38:03]wFMCommunicate OK [23:38:03]SAM_PROTO_SignData done [23:38:03]FM_MakeSignedData done [23:38:03]CreateOFDProtocolMessage [23:38:03]wFMCommunicate request_size=4 [23:38:03]MH_SAM_APDU [23:38:03]CAPDU: 80 11 00 00 [23:38:03]Write to MH i2c: E2 08 00 3A 62 80 11 00 00 00 00 00 00 16 [23:38:03]Write i2c OK [23:38:03]MH_I2C_Read... [23:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:03]Read from MH i2c: E2 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 17 00 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: E2 17 00 3A 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 72 [23:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:38:03]wFMCommunicate OK [23:38:03]CreateOFDProtocolMessage done [23:38:03]OFDSenderStorePacket 69290 [23:38:03]StoreOFDPacket docnum=69290 [23:38:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 29 01 00 00 4D 32 21 01 CE 15 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 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 AD 00 00 00 F4 03 04 00 65 D6 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AA 0E 01 00 35 04 06 00 B6 DD 07 D6 FB D1 D6 EF FF B1 2E 04 DC 41 [23:38:03]CheckFolder [23:38:03]dirname=/storage/ofd_packets [23:38:03]CheckFolder done [23:38:03]ProducePacketName [23:38:03]name=ofd_packets/00069290 [23:38:03]NVStorageSaveData ofd_packets/00069290 [23:38:03]File name is /storage/ofd_packets/00069290 [23:38:03]Write 327 bytes [23:38:03]NVStorageSaveData done [23:38:03]OFDSenderStorePacket done [23:38:03]KKMCreateOFDPacket done [23:38:03]NVStorageSaveData kkm_last_timestamp [23:38:03]File name is /storage/kkm_last_timestamp [23:38:03]Write 4 bytes [23:38:03]NVStorageSaveData done [23:38:03]ExternCall_PrintAddStr [23:38:03]wPrintStart [23:38:03]Write to MH i2c: 01 00 00 3B 62 9D [23:38:03]Write i2c OK [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: 01 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: 01 07 00 [23:38:03]MH_I2C_Read... [23:38:03]Read from MH i2c: 01 07 00 3B 62 00 00 00 00 00 FF 0F B2 [23:38:03]RasterBufferAndPrint [23:38:03]line Счет N : (3)136625 [23:38:03]line ИНН: 02508201610067 [23:38:03]line Контрольно-Кассовый Чек [23:38:03]line ПРОДАЖА [23:38:03]line Товар: 4700000310173 [23:38:03]line Вода Адыгене 0,5л б/г [23:38:03]line 2.000 * 30.00 [23:38:03]line = 60.00 [23:38:03]line НДС 12% НСП 1% [23:38:03]line > о реализуемом товаре [23:38:03]line ИТОГО: 60.00 [23:38:03]line НСП 1% : 0.53 [23:38:03]line НДС 12% : 6.37 [23:38:03]line Наличными: 60.00 [23:38:03]line Безнал.: 0.00 [23:38:03]line Место: АЗС № 125 "Партнер Нефть" [23:38:03]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [23:38:03]line СНО: Общий режим [23:38:03]line Чек 173 28.07.2024 23:38 [23:38:03]line Смена: 429 ФФД: 1.0 [23:38:03]line ЗНМ: 0300000049 [23:38:03]line РНМ: 0000000000092638 [23:38:03]line Версия ККМ: 001 [23:38:03]line ФМ: 0000000000874949 [23:38:03]line ФД: 69290 [23:38:03]line ФПД: 201060435557329 [23:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T233813&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69290&fm=201060435557329&tin=02508201610067®Number=0000000000092638&sum=6000 [23:38:03]OFD Sender: Processing packet 69290 [packets to send 19, broken 18] [23:38:03]ProducePacketName [23:38:03]name=ofd_packets/00069290 [23:38:03]OFD Sender: To server: pG, [23:38:03]CommunicateWithHost lk.salyk.kg:30040 [23:38:03]ConnectInit lk.salyk.kg [23:38:03]line 0 [23:38:03]written 0, free lines is 4095 [23:38:03]Connected sock=9 [23:38: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 39 34 39 29 01 00 00 4D 32 21 01 CE 15 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 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 AD 00 00 00 F4 03 04 00 65 D6 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AA 0E 01 00 35 04 06 00 B6 DD 07 D6 FB D1 D6 EF FF B1 2E 04 DC 41 [23:38:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 85 FE 47 00 91 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AA 0E 01 00 F4 03 04 00 D3 7C A6 66 B6 04 01 00 00 52 7C 1E E5 46 31 70 88 [23:38:04]CommunicateWithHost err = 0 [23:38:04]CheckOFDResponse [23:38:04]1017 (14) - 77093643461234 [23:38:04]1041 (16) - 0000000000874949 [23:38:04]1040 (4) - 69290 [23:38:04]1012 (4) - 28.07.2024 17:16 [23:38:04]1206 (1) - 0 [23:38:04]OFD Sender: Remove packet 69290 [23:38:04]ProducePacketName [23:38:04]name=ofd_packets/00069290 [23:38:04]NVStorageDeleteData [23:38:04]Write to MH i2c: 01 00 00 63 62 C5 [23:38:04]Write i2c OK [23:38:04]MH_I2C_Read... [23:38:04]Read from MH i2c: 01 [23:38:04]MH_I2C_Read... [23:38:04]Read from MH i2c: 01 07 00 [23:38:04]MH_I2C_Read... [23:38:04]Read from MH i2c: 01 07 00 63 62 00 00 00 00 00 16 0D EF [23:38:04]RasterBufferAndPrint [23:38:04]line [23:38:04]line [23:38:04]line [23:38:04]line [23:38:04]line [23:38:04]written 0, free lines is 3359 [23:38:04]MH_Cut [23:38:04]Write to MH i2c: D1 01 00 6A 62 01 9E [23:38:04]Write i2c OK [23:38:04]MH_I2C_Read... [23:38:04]Read from MH i2c: D1 [23:38:04]MH_I2C_Read... [23:38:04]Read from MH i2c: D1 01 00 [23:38:04]MH_I2C_Read... [23:38:04]Read from MH i2c: D1 01 00 6A 62 00 9D [23:38:04]Write to MH i2c: 01 00 00 6B 62 CD [23:38:04]Write i2c OK [23:38:04]MH_I2C_Read... [23:38:04]OFD Sender: No OFD packet to send [23:38:04]*** Cut start [23:38:04]*** Partial cut [23:38:04]*** CUTSNS_PIN = 1 [23:38:04]*** CUTSNS_PIN = 0 [23:38:05]*** Brake cut motor [23:38:05]Read from MH i2c: 01 [23:38:05]MH_I2C_Read... [23:38:05]*** Stop cut motor [23:38:05]*** Cut end [23:38:05]Read from MH i2c: 01 07 00 [23:38:05]MH_I2C_Read... [23:38:05]Read from MH i2c: 01 07 00 6B 62 00 00 00 00 00 FF 0F E2 [23:38:05]process_action close_receipt done [23:38:05]requested_data is exist [23:38:05]produce_requested_data [23:38:05]requested_item fm.sn is exist - process it [23:38:05]wFMCommunicate request_size=4 [23:38:05]MH_SAM_APDU [23:38:05]CAPDU: 80 11 00 00 [23:38:05]Write to MH i2c: E2 08 00 6C 62 80 11 00 00 00 00 00 00 48 [23:38:05]Write i2c OK [23:38:05]MH_I2C_Read... [23:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:05]Read from MH i2c: E2 [23:38:05]MH_I2C_Read... [23:38:05]Read from MH i2c: E2 17 00 [23:38:05]MH_I2C_Read... [23:38:05]Read from MH i2c: E2 17 00 6C 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A4 [23:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:38:05]wFMCommunicate OK [23:38:05]requested_item fd.num is exist - process it [23:38:05]SAM_PROTO_GetFieldsCounters [23:38:05]wFMCommunicate request_size=4 [23:38:05]MH_SAM_APDU [23:38:05]CAPDU: 80 13 00 00 [23:38:05]Write to MH i2c: E2 08 00 6D 62 80 13 00 00 00 00 00 00 4B [23:38:05]Write i2c OK [23:38:05]MH_I2C_Read... [23:38:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:05]Read from MH i2c: E2 [23:38:05]MH_I2C_Read... [23:38:05]Read from MH i2c: E2 62 00 [23:38:05]MH_I2C_Read... [23:38:05]Read from MH i2c: E2 62 00 6D 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AA 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [23:38: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AA 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:05]wFMCommunicate OK [23:38:05]SAM_PROTO_GetFieldsCounters done [23:38:05]requested_item shift.num is exist - process it [23:38:05]requested_item shift.opened is exist - process it [23:38:05]req_shift_opened [23:38:05]FM_GetShiftState [23:38:05]SAM_PROTO_GetShiftState [23:38:05]wFMCommunicate request_size=4 [23:38:05]MH_SAM_APDU [23:38:05]CAPDU: 80 13 01 00 [23:38:05]Write to MH i2c: E2 08 00 6E 62 80 13 01 00 00 00 00 00 4D [23:38:05]Write i2c OK [23:38:05]MH_I2C_Read... [23:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:05]Read from MH i2c: E2 [23:38:05]MH_I2C_Read... [23:38:05]Read from MH i2c: E2 0E 00 [23:38:05]MH_I2C_Read... [23:38:05]Read from MH i2c: E2 0E 00 6E 62 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 8A [23:38:05]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:38:05]wFMCommunicate OK [23:38:05]SAM_PROTO_GetShiftState done [23:38:05]FM_GetShiftState done [23:38:05]req_shift_opened done [23:38:05]requested_item shift.open_date is exist - process it [23:38:05]req_shift_open_date [23:38:05]req_shift_open_date done [23:38:05]produce_requested_data done [23:38:05]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69290,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [23:38:05]process_action_free close_receipt [23:38:05]json_value_free [23:38:05]json_value_free done [23:38:05]process_json_proto returns [23:38:05]Send response to host [23:38:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69290,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [23:38:05]free response buf [23:38:05]execute_script done [23:38:05]execute_script returns [23:38:05]free content buf [23:38:05]Sock 10.Close socket [23:38:05]Sock 10.Thread stoped [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:50]accept exits with 7 [23:40:50]New connection [23:40:50]New thread 3066641764 created [23:40:50]Thread 3066785124 joined [23:40:50]Waiting for new connection... [23:40:50] Sock 7.Parse request [23:40:50]Sock 7.Check first char [23:40:50]Sock 7.First char is OK [23:40:50]request: POST /json_proto HTTP/1.0 [23:40:50]Method: POST [23:40:50]URL: /json_proto [23:40:50]Method is POST - this is cgi request [23:40:50]url: /json_proto [23:40:50]query_string will be loaded in cgi processing [23:40:50]execute_cgi json_proto POST (null) [23:40:50]execute_cgi path=json_proto method=POST [23:40:50]POST find Content-Length [23:40:50]Host: 172.17.49.132:8080 [23:40:50]Content-Length: 702 [23:40:50]Content-Type: application/json [23:40:50] [23:40:50]POST finish read [23:40:50]Found Content-Length = 702 [23:40:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136626", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:50]execute_script... [23:40:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136626", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:50]POST & json_proto [23:40:50]process_json_proto [23:40:50]json parsed OK: [23:40:50]protocol is kg_v1.0 [23:40:50]action value=close_receipt [23:40:50]process_action close_receipt [23:40:50]cmd_close_receipt [23:40:50]MH_GetDate [23:40:50]Write to MH i2c: F0 00 00 6F 62 C0 [23:40:50]Write i2c OK [23:40:50]MH_I2C_Read... [23:40:50]Read from MH i2c: F0 [23:40:50]MH_I2C_Read... [23:40:50]Read from MH i2c: F0 09 00 [23:40:50]MH_I2C_Read... [23:40:50]Read from MH i2c: F0 09 00 6F 62 00 0E D7 A6 66 E7 4B C0 64 10 [23:40:50]GetLastDocTimeStamp 1722209893 [23:40:50]current date 1722210062 [23:40:50]FM_GetShiftState [23:40:50]SAM_PROTO_GetShiftState [23:40:50]wFMCommunicate request_size=4 [23:40:50]MH_SAM_APDU [23:40:50]CAPDU: 80 13 01 00 [23:40:50]Write to MH i2c: E2 08 00 70 62 80 13 01 00 00 00 00 00 4F [23:40:50]Write i2c OK [23:40:50]MH_I2C_Read... [23:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:50]Read from MH i2c: E2 [23:40:50]MH_I2C_Read... [23:40:50]Read from MH i2c: E2 0E 00 [23:40:50]MH_I2C_Read... [23:40:50]Read from MH i2c: E2 0E 00 70 62 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 8C [23:40:50]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:40:50]wFMCommunicate OK [23:40:50]SAM_PROTO_GetShiftState done [23:40:50]FM_GetShiftState done [23:40:50]opened in 1722127251 [23:40:50]opened+sec_in_day 1722213651 [23:40:50]quantity*price = 11000 [23:40:50]sum+1 = 11001 [23:40:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 174 28.07.2024 23:41 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69291 ФПД: 35637952069419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T234102&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69291&fm=35637952069419&tin=02508201610067®Number=0000000000092638&sum=11000 0 [23:40:51]StoreToDocumentArchive [23:40:51]shift 429 fd 69291 [23:40:51]save to /storage/0429/doc_00069291 [23:40:51]save last doc name /storage/0429/doc_00069291 to /storage/kkm_last_doc_name [23:40:51]save OK [23:40:51]Clear old archive folders... [23:40:51]ProcessDocumentItem done err = 0, tmpTLVsize=298 [23:40:51]tlvbuf is 00AB9340 [23:40:51]SAM_PROTO_ClearQueue [23:40:51]wFMCommunicate request_size=4 [23:40:51]MH_SAM_APDU [23:40:51]CAPDU: 80 09 00 00 [23:40:51]Write to MH i2c: E2 08 00 7D 62 80 09 00 00 00 00 00 00 51 [23:40:51]Write i2c OK [23:40:51]MH_I2C_Read... [23:40:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:51]Read from MH i2c: E2 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 7D 62 00 90 00 53 [23:40:51]RAPDU: 90 00 [23:40:51]wFMCommunicate OK [23:40:51]SAM_PROTO_ClearQueue done [23:40:51]KKMCreateOFDPacket [23:40:51]OFDProtocolAddRootSTLVToBuf [23:40:51]FM_MakeSignedData [23:40:51]FM_MakeSignedData [23:40:51]SAM_PROTO_SignData [23:40:51]wFMCommunicate request_size=4 [23:40:51]MH_SAM_APDU [23:40:51]CAPDU: 80 0D 01 02 [23:40:51]Write to MH i2c: E2 08 00 7E 62 80 0D 01 02 00 00 00 00 59 [23:40:51]Write i2c OK [23:40:51]MH_I2C_Read... [23:40:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:51]Read from MH i2c: E2 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 [23:40:51]MH_I2C_Read... [23:40:51]Read from MH i2c: E2 03 00 7E 62 00 90 00 54 [23:40:51]RAPDU: 90 00 [23:40:51]wFMCommunicate OK [23:40:51]wFMCommunicate request_size=255 [23:40:51]MH_SAM_APDU [23:40:51]CAPDU: 80 0D 02 02 FA 03 00 2A 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 0E D7 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [23:40:52]Write to MH i2c: E2 02 01 7F 62 80 0D 02 02 FA 00 03 00 2A 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 0E D7 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 D4 [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:52]Read from MH i2c: E2 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 03 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 03 00 7F 62 00 90 00 55 [23:40:52]RAPDU: 90 00 [23:40:52]wFMCommunicate OK [23:40:52]wFMCommunicate request_size=57 [23:40:52]MH_SAM_APDU [23:40:52]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AB 0E 01 00 35 04 06 00 20 69 9B 79 3F 2B [23:40:52]Write to MH i2c: E2 3C 00 80 62 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AB 0E 01 00 35 04 06 00 20 69 9B 79 3F 2B 00 00 E6 [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:52]Read from MH i2c: E2 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 03 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 03 00 80 62 00 90 00 56 [23:40:52]RAPDU: 90 00 [23:40:52]wFMCommunicate OK [23:40:52]wFMCommunicate request_size=4 [23:40:52]MH_SAM_APDU [23:40:52]CAPDU: 80 0D 03 02 [23:40:52]Write to MH i2c: E2 08 00 81 62 80 0D 03 02 00 00 00 00 5E [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:52]Read from MH i2c: E2 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 0B 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 0B 00 81 62 00 B0 77 20 F3 14 D9 97 BF 90 00 DC [23:40:52]RAPDU: B0 77 20 F3 14 D9 97 BF 90 00 [23:40:52]wFMCommunicate OK [23:40:52]SAM_PROTO_SignData done [23:40:52]FM_MakeSignedData done [23:40:52]CreateOFDProtocolMessage [23:40:52]wFMCommunicate request_size=4 [23:40:52]MH_SAM_APDU [23:40:52]CAPDU: 80 11 00 00 [23:40:52]Write to MH i2c: E2 08 00 82 62 80 11 00 00 00 00 00 00 5E [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:52]Read from MH i2c: E2 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 17 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 17 00 82 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 BA [23:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:40:52]wFMCommunicate OK [23:40:52]CreateOFDProtocolMessage done [23:40:52]OFDSenderStorePacket 69291 [23:40:52]StoreOFDPacket docnum=69291 [23:40:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3E 01 00 00 90 7A 36 01 A9 9E 5A 03 01 00 03 00 2A 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 0E D7 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AB 0E 01 00 35 04 06 00 20 69 9B 79 3F 2B B0 77 20 F3 14 D9 97 BF [23:40:52]CheckFolder [23:40:52]dirname=/storage/ofd_packets [23:40:52]CheckFolder done [23:40:52]ProducePacketName [23:40:52]name=ofd_packets/00069291 [23:40:52]NVStorageSaveData ofd_packets/00069291 [23:40:52]File name is /storage/ofd_packets/00069291 [23:40:52]Write 348 bytes [23:40:52]NVStorageSaveData done [23:40:52]OFDSenderStorePacket done [23:40:52]KKMCreateOFDPacket done [23:40:52]NVStorageSaveData kkm_last_timestamp [23:40:52]File name is /storage/kkm_last_timestamp [23:40:52]Write 4 bytes [23:40:52]NVStorageSaveData done [23:40:52]ExternCall_PrintAddStr [23:40:52]wPrintStart [23:40:52]Write to MH i2c: 01 00 00 83 62 E5 [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: 01 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: 01 07 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: 01 07 00 83 62 00 00 00 00 00 FF 0F FA [23:40:52]RasterBufferAndPrint [23:40:52]line Счет N : (3)136626 [23:40:52]line ИНН: 02508201610067 [23:40:52]line Контрольно-Кассовый Чек [23:40:52]line ПРОДАЖА [23:40:52]line Товар: 4870202522701 [23:40:52]line Напиток Maxi Чай черный Малина 1,2 [23:40:52]line 1.000 * 110.00 [23:40:52]line = 110.00 [23:40:52]line НДС 12% НСП 1% [23:40:52]line > о реализуемом товаре [23:40:52]line ИТОГО: 110.00 [23:40:52]line НСП 1% : 0.97 [23:40:52]line НДС 12% : 11.68 [23:40:52]line Наличными: 110.00 [23:40:52]line Безнал.: 0.00 [23:40:52]line Место: АЗС № 125 "Партнер Нефть" [23:40:52]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [23:40:52]line СНО: Общий режим [23:40:52]line Чек 174 28.07.2024 23:41 [23:40:52]line Смена: 429 ФФД: 1.0 [23:40:52]line ЗНМ: 0300000049 [23:40:52]line РНМ: 0000000000092638 [23:40:52]line Версия ККМ: 001 [23:40:52]line ФМ: 0000000000874949 [23:40:52]line ФД: 69291 [23:40:52]line ФПД: 35637952069419 [23:40:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T234102&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69291&fm=35637952069419&tin=02508201610067®Number=0000000000092638&sum=11000 [23:40:52]line 0 [23:40:52]OFD Sender: Processing packet 69291 [packets to send 19, broken 18] [23:40:52]ProducePacketName [23:40:52]name=ofd_packets/00069291 [23:40:52]OFD Sender: To server: pG, [23:40:52]CommunicateWithHost lk.salyk.kg:30040 [23:40:52]ConnectInit lk.salyk.kg [23:40:52]written 0, free lines is 4095 [23:40:52]Connected sock=9 [23:40:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3E 01 00 00 90 7A 36 01 A9 9E 5A 03 01 00 03 00 2A 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 0E D7 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AB 0E 01 00 35 04 06 00 20 69 9B 79 3F 2B B0 77 20 F3 14 D9 97 BF [23:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 4C C1 47 00 37 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AB 0E 01 00 F4 03 04 00 7C 7D A6 66 B6 04 01 00 00 47 26 AD 69 3F 89 4E AA [23:40:53]CommunicateWithHost err = 0 [23:40:53]CheckOFDResponse [23:40:53]1017 (14) - 77093643461234 [23:40:53]1041 (16) - 0000000000874949 [23:40:53]1040 (4) - 69291 [23:40:53]1012 (4) - 28.07.2024 17:18 [23:40:53]1206 (1) - 0 [23:40:53]OFD Sender: Remove packet 69291 [23:40:53]ProducePacketName [23:40:53]name=ofd_packets/00069291 [23:40:53]NVStorageDeleteData [23:40:53]Write to MH i2c: 01 00 00 AC 62 0E [23:40:53]Write i2c OK [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: 01 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: 01 07 00 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: 01 07 00 AC 62 00 00 00 00 00 FA 0C 1B [23:40:53]RasterBufferAndPrint [23:40:53]line [23:40:53]line [23:40:53]line [23:40:53]line [23:40:53]line [23:40:53]written 0, free lines is 3332 [23:40:53]MH_Cut [23:40:53]Write to MH i2c: D1 01 00 B3 62 01 E7 [23:40:53]Write i2c OK [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: D1 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: D1 01 00 [23:40:53]MH_I2C_Read... [23:40:53]Read from MH i2c: D1 01 00 B3 62 00 E6 [23:40:53]Write to MH i2c: 01 00 00 B4 62 16 [23:40:53]Write i2c OK [23:40:53]MH_I2C_Read... [23:40:53]OFD Sender: No OFD packet to send [23:40:53]*** Cut start [23:40:53]*** Partial cut [23:40:53]*** CUTSNS_PIN = 1 [23:40:53]*** CUTSNS_PIN = 0 [23:40:54]*** Brake cut motor [23:40:54]Read from MH i2c: 01 [23:40:54]MH_I2C_Read... [23:40:54]*** Stop cut motor [23:40:54]*** Cut end [23:40:54]Read from MH i2c: 01 07 00 [23:40:54]MH_I2C_Read... [23:40:54]Read from MH i2c: 01 07 00 B4 62 00 00 00 00 00 FF 0F 2B [23:40:54]process_action close_receipt done [23:40:54]requested_data is exist [23:40:54]produce_requested_data [23:40:54]requested_item fm.sn is exist - process it [23:40:54]wFMCommunicate request_size=4 [23:40:54]MH_SAM_APDU [23:40:54]CAPDU: 80 11 00 00 [23:40:54]Write to MH i2c: E2 08 00 B5 62 80 11 00 00 00 00 00 00 91 [23:40:54]Write i2c OK [23:40:54]MH_I2C_Read... [23:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:54]Read from MH i2c: E2 [23:40:54]MH_I2C_Read... [23:40:54]Read from MH i2c: E2 17 00 [23:40:54]MH_I2C_Read... [23:40:54]Read from MH i2c: E2 17 00 B5 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 ED [23:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:40:54]wFMCommunicate OK [23:40:54]requested_item fd.num is exist - process it [23:40:54]SAM_PROTO_GetFieldsCounters [23:40:54]wFMCommunicate request_size=4 [23:40:54]MH_SAM_APDU [23:40:54]CAPDU: 80 13 00 00 [23:40:54]Write to MH i2c: E2 08 00 B6 62 80 13 00 00 00 00 00 00 94 [23:40:54]Write i2c OK [23:40:54]MH_I2C_Read... [23:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:54]Read from MH i2c: E2 [23:40:54]MH_I2C_Read... [23:40:54]Read from MH i2c: E2 62 00 [23:40:54]MH_I2C_Read... [23:40:54]Read from MH i2c: E2 62 00 B6 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AB 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [23:40:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AB 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:40:54]wFMCommunicate OK [23:40:54]SAM_PROTO_GetFieldsCounters done [23:40:54]requested_item shift.num is exist - process it [23:40:54]requested_item shift.opened is exist - process it [23:40:54]req_shift_opened [23:40:54]FM_GetShiftState [23:40:54]SAM_PROTO_GetShiftState [23:40:54]wFMCommunicate request_size=4 [23:40:54]MH_SAM_APDU [23:40:54]CAPDU: 80 13 01 00 [23:40:54]Write to MH i2c: E2 08 00 B7 62 80 13 01 00 00 00 00 00 96 [23:40:54]Write i2c OK [23:40:54]MH_I2C_Read... [23:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:54]Read from MH i2c: E2 [23:40:54]MH_I2C_Read... [23:40:54]Read from MH i2c: E2 0E 00 [23:40:54]MH_I2C_Read... [23:40:54]Read from MH i2c: E2 0E 00 B7 62 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 D3 [23:40:54]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:40:54]wFMCommunicate OK [23:40:54]SAM_PROTO_GetShiftState done [23:40:54]FM_GetShiftState done [23:40:54]req_shift_opened done [23:40:54]requested_item shift.open_date is exist - process it [23:40:54]req_shift_open_date [23:40:54]req_shift_open_date done [23:40:54]produce_requested_data done [23:40:54]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69291,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [23:40:54]process_action_free close_receipt [23:40:54]json_value_free [23:40:54]json_value_free done [23:40:54]process_json_proto returns [23:40:54]Send response to host [23:40:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69291,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [23:40:54]free response buf [23:40:54]execute_script done [23:40:54]execute_script returns [23:40:54]free content buf [23:40:54]Sock 7.Close socket [23:40:54]Sock 7.Thread stoped [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:26]accept exits with 10 [23:41:26]New connection [23:41:26]New thread 3066785124 created [23:41:26]Thread 3066641764 joined [23:41:26]Waiting for new connection... [23:41:26] Sock 10.Parse request [23:41:26]Sock 10.Check first char [23:41:26]Sock 10.First char is OK [23:41:26]request: POST /json_proto HTTP/1.0 [23:41:26]Method: POST [23:41:26]URL: /json_proto [23:41:26]Method is POST - this is cgi request [23:41:26]url: /json_proto [23:41:26]query_string will be loaded in cgi processing [23:41:26]execute_cgi json_proto POST (null) [23:41:26]execute_cgi path=json_proto method=POST [23:41:26]POST find Content-Length [23:41:26]Host: 172.17.49.132:8080 [23:41:26]Content-Length: 1476 [23:41:26]Content-Type: application/json [23:41:26] [23:41:26]POST finish read [23:41:26]Found Content-Length = 1476 [23:41:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136627", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 3.000, "sum" : 435.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.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" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 799.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:26]execute_script... [23:41:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136627", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 3.000, "sum" : 435.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.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" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 799.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:26]POST & json_proto [23:41:26]process_json_proto [23:41:26]json parsed OK: [23:41:26]protocol is kg_v1.0 [23:41:26]action value=close_receipt [23:41:26]process_action close_receipt [23:41:26]cmd_close_receipt [23:41:26]MH_GetDate [23:41:26]Write to MH i2c: F0 00 00 B8 62 09 [23:41:26]Write i2c OK [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: F0 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: F0 09 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: F0 09 00 B8 62 00 32 D7 A6 66 E7 4B C0 64 7D [23:41:26]GetLastDocTimeStamp 1722210062 [23:41:26]current date 1722210098 [23:41:26]FM_GetShiftState [23:41:26]SAM_PROTO_GetShiftState [23:41:26]wFMCommunicate request_size=4 [23:41:26]MH_SAM_APDU [23:41:26]CAPDU: 80 13 01 00 [23:41:26]Write to MH i2c: E2 08 00 B9 62 80 13 01 00 00 00 00 00 98 [23:41:26]Write i2c OK [23:41:26]MH_I2C_Read... [23:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:26]Read from MH i2c: E2 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 0E 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 0E 00 B9 62 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 D5 [23:41:26]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:41:26]wFMCommunicate OK [23:41:26]SAM_PROTO_GetShiftState done [23:41:26]FM_GetShiftState done [23:41:26]opened in 1722127251 [23:41:26]opened+sec_in_day 1722213651 [23:41:26]quantity*price = 43500 [23:41:26]sum+1 = 43501 [23:41:26]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600721021627 Пиво БАД 0,5л ст 2.000 * 150.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 799.00 НСП 1% : 7.06 НДС 12% : 84.84 Наличными: 799.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 175 28.07.2024 23:41 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69292 ФПД: 9846937102895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T234138&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69292&fm=9846937102895&tin=02508201610067®Number=0000000000092638&sum=79900 0 [23:41:27]StoreToDocumentArchive [23:41:27]shift 429 fd 69292 [23:41:27]save to /storage/0429/doc_00069292 [23:41:27]save last doc name /storage/0429/doc_00069292 to /storage/kkm_last_doc_name [23:41:27]save OK [23:41:27]Clear old archive folders... [23:41:27]ProcessDocumentItem done err = 0, tmpTLVsize=604 [23:41:27]tlvbuf is 00BAB8D0 [23:41:27]SAM_PROTO_ClearQueue [23:41:27]wFMCommunicate request_size=4 [23:41:27]MH_SAM_APDU [23:41:27]CAPDU: 80 09 00 00 [23:41:27]Write to MH i2c: E2 08 00 C6 62 80 09 00 00 00 00 00 00 9A [23:41:27]Write i2c OK [23:41:27]MH_I2C_Read... [23:41:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:27]Read from MH i2c: E2 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: E2 03 00 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: E2 03 00 C6 62 00 90 00 9C [23:41:27]RAPDU: 90 00 [23:41:27]wFMCommunicate OK [23:41:27]SAM_PROTO_ClearQueue done [23:41:27]KKMCreateOFDPacket [23:41:27]OFDProtocolAddRootSTLVToBuf [23:41:27]FM_MakeSignedData [23:41:27]FM_MakeSignedData [23:41:27]SAM_PROTO_SignData [23:41:27]wFMCommunicate request_size=4 [23:41:27]MH_SAM_APDU [23:41:27]CAPDU: 80 0D 01 02 [23:41:27]Write to MH i2c: E2 08 00 C7 62 80 0D 01 02 00 00 00 00 A2 [23:41:27]Write i2c OK [23:41:27]MH_I2C_Read... [23:41:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:28]Read from MH i2c: E2 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 03 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 03 00 C7 62 00 90 00 9D [23:41:28]RAPDU: 90 00 [23:41:28]wFMCommunicate OK [23:41:28]wFMCommunicate request_size=255 [23:41:28]MH_SAM_APDU [23:41:28]CAPDU: 80 0D 02 02 FA 03 00 5C 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 EC A9 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 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 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 [23:41:28]Write to MH i2c: E2 02 01 C8 62 80 0D 02 02 FA 00 03 00 5C 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 EC A9 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 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 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 00 00 67 [23:41:28]Write i2c OK [23:41:28]MH_I2C_Read... [23:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:28]Read from MH i2c: E2 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 03 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 03 00 C8 62 00 90 00 9E [23:41:28]RAPDU: 90 00 [23:41:28]wFMCommunicate OK [23:41:28]wFMCommunicate request_size=255 [23:41:28]MH_SAM_APDU [23:41:28]CAPDU: 80 0D 02 02 FA 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 21 00 00 00 00 07 04 06 00 1C [23:41:28]Write to MH i2c: E2 02 01 C9 62 80 0D 02 02 FA 00 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 21 00 00 00 00 07 04 06 00 1C 00 00 97 [23:41:28]Write i2c OK [23:41:28]MH_I2C_Read... [23:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:28]Read from MH i2c: E2 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 03 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 03 00 C9 62 00 90 00 9F [23:41:28]RAPDU: 90 00 [23:41:28]wFMCommunicate OK [23:41:28]wFMCommunicate request_size=113 [23:41:28]MH_SAM_APDU [23:41:28]CAPDU: 80 0D 02 02 6C 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 AF 00 00 00 F4 03 04 00 32 D7 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AC 0E 01 00 35 04 06 00 08 F4 AB 30 2A 2F [23:41:28]Write to MH i2c: E2 74 00 CA 62 80 0D 02 02 6C 00 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 AF 00 00 00 F4 03 04 00 32 D7 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AC 0E 01 00 35 04 06 00 08 F4 AB 30 2A 2F 00 00 49 [23:41:28]Write i2c OK [23:41:28]MH_I2C_Read... [23:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:28]OFD Sender: No OFD packet to send [23:41:28]Read from MH i2c: E2 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 03 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 03 00 CA 62 00 90 00 A0 [23:41:28]RAPDU: 90 00 [23:41:28]wFMCommunicate OK [23:41:28]wFMCommunicate request_size=4 [23:41:28]MH_SAM_APDU [23:41:28]CAPDU: 80 0D 03 02 [23:41:28]Write to MH i2c: E2 08 00 CB 62 80 0D 03 02 00 00 00 00 A8 [23:41:28]Write i2c OK [23:41:28]MH_I2C_Read... [23:41:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:28]Read from MH i2c: E2 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 0B 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 0B 00 CB 62 00 2A F4 05 FC 3B EE 8C 12 90 00 8F [23:41:28]RAPDU: 2A F4 05 FC 3B EE 8C 12 90 00 [23:41:28]wFMCommunicate OK [23:41:28]SAM_PROTO_SignData done [23:41:28]FM_MakeSignedData done [23:41:28]CreateOFDProtocolMessage [23:41:28]wFMCommunicate request_size=4 [23:41:28]MH_SAM_APDU [23:41:28]CAPDU: 80 11 00 00 [23:41:28]Write to MH i2c: E2 08 00 CC 62 80 11 00 00 00 00 00 00 A8 [23:41:28]Write i2c OK [23:41:28]MH_I2C_Read... [23:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:28]Read from MH i2c: E2 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 17 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 17 00 CC 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 04 [23:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:41:28]wFMCommunicate OK [23:41:28]CreateOFDProtocolMessage done [23:41:28]OFDSenderStorePacket 69292 [23:41:28]StoreOFDPacket docnum=69292 [23:41:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 70 02 00 00 65 B5 68 02 0B 7E 5A 03 01 00 03 00 5C 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 EC A9 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 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 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 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 21 00 00 00 00 07 04 06 00 1C 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 AF 00 00 00 F4 03 04 00 32 D7 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AC 0E 01 00 35 04 06 00 08 F4 AB 30 2A 2F 2A F4 05 FC 3B EE 8C 12 [23:41:28]CheckFolder [23:41:28]dirname=/storage/ofd_packets [23:41:28]CheckFolder done [23:41:28]ProducePacketName [23:41:28]name=ofd_packets/00069292 [23:41:28]NVStorageSaveData ofd_packets/00069292 [23:41:28]File name is /storage/ofd_packets/00069292 [23:41:28]Write 654 bytes [23:41:28]NVStorageSaveData done [23:41:28]OFDSenderStorePacket done [23:41:28]KKMCreateOFDPacket done [23:41:28]NVStorageSaveData kkm_last_timestamp [23:41:28]File name is /storage/kkm_last_timestamp [23:41:28]Write 4 bytes [23:41:28]NVStorageSaveData done [23:41:28]ExternCall_PrintAddStr [23:41:28]wPrintStart [23:41:28]Write to MH i2c: 01 00 00 CD 62 2F [23:41:28]Write i2c OK [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: 01 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: 01 07 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: 01 07 00 CD 62 00 00 00 00 00 FF 0F 44 [23:41:28]RasterBufferAndPrint [23:41:28]line Счет N : (3)136627 [23:41:28]line ИНН: 02508201610067 [23:41:28]line Контрольно-Кассовый Чек [23:41:28]line ПРОДАЖА [23:41:28]line Товар: 4700001610012 [23:41:28]line Пиво Арпа 0,5л [23:41:28]line 3.000 * 145.00 [23:41:28]line = 435.00 [23:41:28]line НДС 12% НСП 1% [23:41:28]line > о реализуемом товаре [23:41:28]line Товар: 4600721021627 [23:41:29]line Пиво БАД 0,5л ст [23:41:29]line 2.000 * 150.00 [23:41:29]line = 300.00 [23:41:29]line НДС 12% НСП 1% [23:41:29]line > о реализуемом товаре [23:41:29]line Товар: 4700000160792 [23:41:29]line Снек Курут классический (круглый) [23:41:29]line 1.000 * 60.00 [23:41:29]line = 60.00 [23:41:29]line НДС 12% НСП 1% [23:41:29]line > о реализуемом товаре [23:41:29]line Товар: 2000031750019 [23:41:29]line Пакет Партнер Нефть [23:41:29]line 1.000 * 4.00 [23:41:29]line = 4.00 [23:41:29]line НДС 12% НСП 1% [23:41:29]line > о реализуемом товаре [23:41:29]line ИТОГО: 799.00 [23:41:29]line НСП 1% : 7.06 [23:41:29]line НДС 12% : 84.84 [23:41:29]line Наличными: 799.00 [23:41:29]line Безнал.: 0.00 [23:41:29]line Место: АЗС № 125 "Партнер Нефть" [23:41:29]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [23:41:29]line СНО: Общий режим [23:41:29]line Чек 175 28.07.2024 23:41 [23:41:29]line Смена: 429 ФФД: 1.0 [23:41:29]line ЗНМ: 0300000049 [23:41:29]line РНМ: 0000000000092638 [23:41:29]line Версия ККМ: 001 [23:41:29]line ФМ: 0000000000874949 [23:41:29]line ФД: 69292 [23:41:29]line ФПД: 9846937102895 [23:41:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T234138&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69292&fm=9846937102895&tin=02508201610067®Number=0000000000092638&sum=79900 [23:41:29]line 0 [23:41:29]OFD Sender: Processing packet 69292 [packets to send 19, broken 18] [23:41:29]ProducePacketName [23:41:29]name=ofd_packets/00069292 [23:41:29]OFD Sender: To server: pG, [23:41:29]CommunicateWithHost lk.salyk.kg:30040 [23:41:29]ConnectInit lk.salyk.kg [23:41:29]written 0, free lines is 4095 [23:41:29]Connected sock=9 [23:41: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 39 34 39 70 02 00 00 65 B5 68 02 0B 7E 5A 03 01 00 03 00 5C 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 EC A9 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 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 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 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 21 00 00 00 00 07 04 06 00 1C 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 AF 00 00 00 F4 03 04 00 32 D7 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AC 0E 01 00 35 04 06 00 08 F4 AB 30 2A 2F 2A F4 05 FC 3B EE 8C 12 [23:41:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 58 45 47 00 20 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AC 0E 01 00 F4 03 04 00 A0 7D A6 66 B6 04 01 00 00 6A 0B 29 9F 16 90 E2 D8 [23:41:29]CommunicateWithHost err = 0 [23:41:29]CheckOFDResponse [23:41:29]1017 (14) - 77093643461234 [23:41:29]1041 (16) - 0000000000874949 [23:41:29]1040 (4) - 69292 [23:41:29]1012 (4) - 28.07.2024 17:19 [23:41:29]1206 (1) - 0 [23:41:29]OFD Sender: Remove packet 69292 [23:41:29]ProducePacketName [23:41:29]name=ofd_packets/00069292 [23:41:29]NVStorageDeleteData [23:41:29]Write to MH i2c: 01 00 00 08 63 6B [23:41:29]Write i2c OK [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: 01 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: 01 07 00 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: 01 07 00 08 63 00 00 00 00 00 23 0C A1 [23:41:29]RasterBufferAndPrint [23:41:29]line [23:41:29]line [23:41:29]line [23:41:29]line [23:41:29]line [23:41:29]written 0, free lines is 3121 [23:41:29]MH_Cut [23:41:29]Write to MH i2c: D1 01 00 0F 63 01 44 [23:41:29]Write i2c OK [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: D1 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: D1 01 00 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: D1 01 00 0F 63 00 43 [23:41:29]Write to MH i2c: 01 00 00 10 63 73 [23:41:29]Write i2c OK [23:41:29]MH_I2C_Read... [23:41:29]OFD Sender: No OFD packet to send [23:41:30]*** Cut start [23:41:30]*** Partial cut [23:41:30]*** CUTSNS_PIN = 1 [23:41:30]*** CUTSNS_PIN = 0 [23:41:30]*** Brake cut motor [23:41:31]Read from MH i2c: 01 [23:41:31]MH_I2C_Read... [23:41:31]*** Stop cut motor [23:41:31]*** Cut end [23:41:31]Read from MH i2c: 01 07 00 [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: 01 07 00 10 63 00 00 00 00 00 FF 0F 88 [23:41:31]process_action close_receipt done [23:41:31]requested_data is exist [23:41:31]produce_requested_data [23:41:31]requested_item fm.sn is exist - process it [23:41:31]wFMCommunicate request_size=4 [23:41:31]MH_SAM_APDU [23:41:31]CAPDU: 80 11 00 00 [23:41:31]Write to MH i2c: E2 08 00 11 63 80 11 00 00 00 00 00 00 EE [23:41:31]Write i2c OK [23:41:31]MH_I2C_Read... [23:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:31]Read from MH i2c: E2 [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: E2 17 00 [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: E2 17 00 11 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 4A [23:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:41:31]wFMCommunicate OK [23:41:31]requested_item fd.num is exist - process it [23:41:31]SAM_PROTO_GetFieldsCounters [23:41:31]wFMCommunicate request_size=4 [23:41:31]MH_SAM_APDU [23:41:31]CAPDU: 80 13 00 00 [23:41:31]Write to MH i2c: E2 08 00 12 63 80 13 00 00 00 00 00 00 F1 [23:41:31]Write i2c OK [23:41:31]MH_I2C_Read... [23:41:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:31]Read from MH i2c: E2 [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: E2 62 00 [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: E2 62 00 12 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AC 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [23:41: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AC 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:41:31]wFMCommunicate OK [23:41:31]SAM_PROTO_GetFieldsCounters done [23:41:31]requested_item shift.num is exist - process it [23:41:31]requested_item shift.opened is exist - process it [23:41:31]req_shift_opened [23:41:31]FM_GetShiftState [23:41:31]SAM_PROTO_GetShiftState [23:41:31]wFMCommunicate request_size=4 [23:41:31]MH_SAM_APDU [23:41:31]CAPDU: 80 13 01 00 [23:41:31]Write to MH i2c: E2 08 00 13 63 80 13 01 00 00 00 00 00 F3 [23:41:31]Write i2c OK [23:41:31]MH_I2C_Read... [23:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:31]Read from MH i2c: E2 [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: E2 0E 00 [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: E2 0E 00 13 63 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 30 [23:41:31]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:41:31]wFMCommunicate OK [23:41:31]SAM_PROTO_GetShiftState done [23:41:31]FM_GetShiftState done [23:41:31]req_shift_opened done [23:41:31]requested_item shift.open_date is exist - process it [23:41:31]req_shift_open_date [23:41:31]req_shift_open_date done [23:41:31]produce_requested_data done [23:41:31]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69292,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [23:41:31]process_action_free close_receipt [23:41:31]json_value_free [23:41:31]json_value_free done [23:41:31]process_json_proto returns [23:41:31]Send response to host [23:41:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69292,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [23:41:31]free response buf [23:41:31]execute_script done [23:41:31]execute_script returns [23:41:31]free content buf [23:41:31]Sock 10.Close socket [23:41:31]Sock 10.Thread stoped [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:40]accept exits with 7 [23:50:40]New connection [23:50:40]New thread 3066641764 created [23:50:40]Thread 3066785124 joined [23:50:40]Waiting for new connection... [23:50:40] Sock 7.Parse request [23:50:40]Sock 7.Check first char [23:50:40]Sock 7.First char is OK [23:50:40]request: POST /json_proto HTTP/1.0 [23:50:40]Method: POST [23:50:40]URL: /json_proto [23:50:40]Method is POST - this is cgi request [23:50:40]url: /json_proto [23:50:40]query_string will be loaded in cgi processing [23:50:40]execute_cgi json_proto POST (null) [23:50:40]execute_cgi path=json_proto method=POST [23:50:40]POST find Content-Length [23:50:40]Host: 172.17.49.132:8080 [23:50:40]Content-Length: 677 [23:50:40]Content-Type: application/json [23:50:40] [23:50:40]POST finish read [23:50:40]Found Content-Length = 677 [23:50:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:40]execute_script... [23:50: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)872246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:40]POST & json_proto [23:50:40]process_json_proto [23:50:40]json parsed OK: [23:50:40]protocol is kg_v1.0 [23:50:40]action value=close_receipt [23:50:40]process_action close_receipt [23:50:40]cmd_close_receipt [23:50:40]MH_GetDate [23:50:40]Write to MH i2c: F0 00 00 14 63 66 [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: F0 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: F0 09 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: F0 09 00 14 63 00 5C D9 A6 66 E7 4B C0 64 06 [23:50:40]GetLastDocTimeStamp 1722210098 [23:50:40]current date 1722210652 [23:50:40]FM_GetShiftState [23:50:40]SAM_PROTO_GetShiftState [23:50:40]wFMCommunicate request_size=4 [23:50:40]MH_SAM_APDU [23:50:40]CAPDU: 80 13 01 00 [23:50:40]Write to MH i2c: E2 08 00 15 63 80 13 01 00 00 00 00 00 F5 [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:40]Read from MH i2c: E2 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 0E 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 0E 00 15 63 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 32 [23:50:40]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:50:41]wFMCommunicate OK [23:50:41]SAM_PROTO_GetShiftState done [23:50:41]FM_GetShiftState done [23:50:41]opened in 1722127251 [23:50:41]opened+sec_in_day 1722213651 [23:50:41]quantity*price = 35052 [23:50:41]sum+1 = 35054 [23:50:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 176 28.07.2024 23:50 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69293 ФПД: 243302039518516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T235052&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69293&fm=243302039518516&tin=02508201610067®Number=0000000000092638&sum=35000 [23:50:42]StoreToDocumentArchive [23:50:42]shift 429 fd 69293 [23:50:42]save to /storage/0429/doc_00069293 [23:50:42]save last doc name /storage/0429/doc_00069293 to /storage/kkm_last_doc_name [23:50:42]save OK [23:50:42]Clear old archive folders... [23:50:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:50:42]tlvbuf is 00B85D80 [23:50:42]SAM_PROTO_ClearQueue [23:50:42]wFMCommunicate request_size=4 [23:50:42]MH_SAM_APDU [23:50:42]CAPDU: 80 09 00 00 [23:50:42]Write to MH i2c: E2 08 00 22 63 80 09 00 00 00 00 00 00 F7 [23:50:42]Write i2c OK [23:50:42]MH_I2C_Read... [23:50:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:42]Read from MH i2c: E2 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 03 00 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 03 00 22 63 00 90 00 F9 [23:50:42]RAPDU: 90 00 [23:50:42]wFMCommunicate OK [23:50:42]SAM_PROTO_ClearQueue done [23:50:42]KKMCreateOFDPacket [23:50:42]OFDProtocolAddRootSTLVToBuf [23:50:42]FM_MakeSignedData [23:50:42]FM_MakeSignedData [23:50:42]SAM_PROTO_SignData [23:50:42]wFMCommunicate request_size=4 [23:50:42]MH_SAM_APDU [23:50:42]CAPDU: 80 0D 01 02 [23:50:42]Write to MH i2c: E2 08 00 23 63 80 0D 01 02 00 00 00 00 FF [23:50:42]Write i2c OK [23:50:42]MH_I2C_Read... [23:50:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:42]Read from MH i2c: E2 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 03 00 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 03 00 23 63 00 90 00 FA [23:50:42]RAPDU: 90 00 [23:50:42]wFMCommunicate OK [23:50:42]wFMCommunicate request_size=255 [23:50:42]MH_SAM_APDU [23:50:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5C D9 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AD 0E 01 00 35 04 06 00 DD [23:50:42]Write to MH i2c: E2 02 01 24 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5C D9 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AD 0E 01 00 35 04 06 00 DD 00 00 ED [23:50:42]Write i2c OK [23:50:42]MH_I2C_Read... [23:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:42]Read from MH i2c: E2 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 03 00 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 03 00 24 63 00 90 00 FB [23:50:42]RAPDU: 90 00 [23:50:42]wFMCommunicate OK [23:50:42]wFMCommunicate request_size=10 [23:50:42]MH_SAM_APDU [23:50:42]CAPDU: 80 0D 02 02 05 48 2B A3 7D 34 [23:50:42]Write to MH i2c: E2 0D 00 25 63 80 0D 02 02 05 00 48 2B A3 7D 34 00 00 D3 [23:50:42]Write i2c OK [23:50:42]MH_I2C_Read... [23:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:42]Read from MH i2c: E2 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 03 00 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 03 00 25 63 00 90 00 FC [23:50:42]RAPDU: 90 00 [23:50:42]wFMCommunicate OK [23:50:42]wFMCommunicate request_size=4 [23:50:42]MH_SAM_APDU [23:50:42]CAPDU: 80 0D 03 02 [23:50:42]Write to MH i2c: E2 08 00 26 63 80 0D 03 02 00 00 00 00 04 [23:50:42]Write i2c OK [23:50:42]MH_I2C_Read... [23:50:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:42]Read from MH i2c: E2 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 0B 00 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 0B 00 26 63 00 EF 68 EA 31 B2 A1 02 A8 90 00 74 [23:50:42]RAPDU: EF 68 EA 31 B2 A1 02 A8 90 00 [23:50:42]wFMCommunicate OK [23:50:42]SAM_PROTO_SignData done [23:50:42]FM_MakeSignedData done [23:50:42]CreateOFDProtocolMessage [23:50:42]wFMCommunicate request_size=4 [23:50:42]MH_SAM_APDU [23:50:42]CAPDU: 80 11 00 00 [23:50:42]Write to MH i2c: E2 08 00 27 63 80 11 00 00 00 00 00 00 04 [23:50:42]Write i2c OK [23:50:42]MH_I2C_Read... [23:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:42]Read from MH i2c: E2 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 17 00 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 17 00 27 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 60 [23:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:50:42]wFMCommunicate OK [23:50:42]CreateOFDProtocolMessage done [23:50:42]OFDSenderStorePacket 69293 [23:50:42]StoreOFDPacket docnum=69293 [23:50:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 5E A7 07 01 5D 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5C D9 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AD 0E 01 00 35 04 06 00 DD 48 2B A3 7D 34 EF 68 EA 31 B2 A1 02 A8 [23:50:42]CheckFolder [23:50:42]dirname=/storage/ofd_packets [23:50:42]CheckFolder done [23:50:42]ProducePacketName [23:50:42]name=ofd_packets/00069293 [23:50:42]NVStorageSaveData ofd_packets/00069293 [23:50:42]File name is /storage/ofd_packets/00069293 [23:50:42]Write 301 bytes [23:50:42]NVStorageSaveData done [23:50:42]OFDSenderStorePacket done [23:50:42]KKMCreateOFDPacket done [23:50:42]NVStorageSaveData kkm_last_timestamp [23:50:42]File name is /storage/kkm_last_timestamp [23:50:42]Write 4 bytes [23:50:42]NVStorageSaveData done [23:50:42]ExternCall_PrintAddStr [23:50:42]wPrintStart [23:50:42]Write to MH i2c: 01 00 00 28 63 8B [23:50:42]OFD Sender: Processing packet 69293 [packets to send 19, broken 18] [23:50:42]ProducePacketName [23:50:42]name=ofd_packets/00069293 [23:50:42]OFD Sender: To server: pG, [23:50:42]CommunicateWithHost lk.salyk.kg:30040 [23:50:42]ConnectInit lk.salyk.kg [23:50:42]Write i2c OK [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: 01 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: 01 07 00 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: 01 07 00 28 63 00 00 00 00 00 FF 0F A0 [23:50:42]RasterBufferAndPrint [23:50:42]line Счет N : (1)872246 [23:50:42]line ИНН: 02508201610067 [23:50:42]line Контрольно-Кассовый Чек [23:50:42]line ПРОДАЖА [23:50:42]line ТРК (МРК, ГНК) : 62 [23:50:42]line Товар: 2710124130 [23:50:42]line Аи-92-К-5 [23:50:42]line 5.170 * 67.80 [23:50:42]line = 350.53 [23:50:42]line НДС 12% НСП 1% [23:50:42]line > о реализуемом товаре [23:50:42]line ОКРУГЛЕНИЕ: -0.53 [23:50:42]line ИТОГО: 350.00 [23:50:42]line Внесено: 350.00 [23:50:42]line СДАЧА: 0.00 [23:50:42]line НСП 1% : 3.10 [23:50:42]line НДС 12% : 37.22 [23:50:42]line Наличными: 350.00 [23:50:42]line Безнал.: 0.00 [23:50:42]line Место: АЗС № 125 "Партнер Нефть" [23:50:42]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [23:50:42]line СНО: Общий режим [23:50:42]line Чек 176 28.07.2024 23:50 [23:50:42]line Смена: 429 ФФД: 1.0 [23:50:42]line ЗНМ: 0300000049 [23:50:42]line РНМ: 0000000000092638 [23:50:42]line Версия ККМ: 001 [23:50:42]line ФМ: 0000000000874949 [23:50:42]line ФД: 69293 [23:50:42]line ФПД: 243302039518516 [23:50:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T235052&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69293&fm=243302039518516&tin=02508201610067®Number=0000000000092638&sum=35000 [23:50:43]Connected sock=11 [23:50: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 39 34 39 0F 01 00 00 5E A7 07 01 5D 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5C D9 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AD 0E 01 00 35 04 06 00 DD 48 2B A3 7D 34 EF 68 EA 31 B2 A1 02 A8 [23:50:43]written 0, free lines is 4095 [23:50:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 E6 3D 47 00 CC 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AD 0E 01 00 F4 03 04 00 CA 7F A6 66 B6 04 01 00 00 6E 05 38 95 95 5F B4 8A [23:50:43]CommunicateWithHost err = 0 [23:50:43]CheckOFDResponse [23:50:43]1017 (14) - 77093643461234 [23:50:43]1041 (16) - 0000000000874949 [23:50:43]1040 (4) - 69293 [23:50:43]1012 (4) - 28.07.2024 17:28 [23:50:43]1206 (1) - 0 [23:50:43]OFD Sender: Remove packet 69293 [23:50:43]ProducePacketName [23:50:43]name=ofd_packets/00069293 [23:50:43]NVStorageDeleteData [23:50:43]Write to MH i2c: 01 00 00 53 63 B6 [23:50:43]Write i2c OK [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: 01 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: 01 07 00 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: 01 07 00 53 63 00 00 00 00 00 F6 0C BF [23:50:43]RasterBufferAndPrint [23:50:43]line [23:50:43]line [23:50:43]line [23:50:43]line [23:50:43]line [23:50:43]written 0, free lines is 3324 [23:50:43]MH_Cut [23:50:43]Write to MH i2c: D1 01 00 5A 63 01 8F [23:50:43]Write i2c OK [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: D1 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: D1 01 00 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: D1 01 00 5A 63 00 8E [23:50:43]Write to MH i2c: 01 00 00 5B 63 BE [23:50:43]Write i2c OK [23:50:43]MH_I2C_Read... [23:50:43]OFD Sender: No OFD packet to send [23:50:44]*** Cut start [23:50:44]*** Partial cut [23:50:44]*** CUTSNS_PIN = 1 [23:50:44]*** CUTSNS_PIN = 0 [23:50:44]*** Brake cut motor [23:50:44]Read from MH i2c: 01 [23:50:44]MH_I2C_Read... [23:50:44]*** Stop cut motor [23:50:44]*** Cut end [23:50:44]Read from MH i2c: 01 07 00 [23:50:44]MH_I2C_Read... [23:50:44]Read from MH i2c: 01 07 00 5B 63 00 00 00 00 00 FF 0F D3 [23:50:44]process_action close_receipt done [23:50:44]requested_data is exist [23:50:44]produce_requested_data [23:50:44]requested_item fm.sn is exist - process it [23:50:44]wFMCommunicate request_size=4 [23:50:44]MH_SAM_APDU [23:50:44]CAPDU: 80 11 00 00 [23:50:44]Write to MH i2c: E2 08 00 5C 63 80 11 00 00 00 00 00 00 39 [23:50:44]Write i2c OK [23:50:44]MH_I2C_Read... [23:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:44]Read from MH i2c: E2 [23:50:44]MH_I2C_Read... [23:50:44]Read from MH i2c: E2 17 00 [23:50:44]MH_I2C_Read... [23:50:44]Read from MH i2c: E2 17 00 5C 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 95 [23:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:50:44]wFMCommunicate OK [23:50:44]requested_item fd.num is exist - process it [23:50:44]SAM_PROTO_GetFieldsCounters [23:50:44]wFMCommunicate request_size=4 [23:50:44]MH_SAM_APDU [23:50:44]CAPDU: 80 13 00 00 [23:50:44]Write to MH i2c: E2 08 00 5D 63 80 13 00 00 00 00 00 00 3C [23:50:44]Write i2c OK [23:50:44]MH_I2C_Read... [23:50:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:44]Read from MH i2c: E2 [23:50:44]MH_I2C_Read... [23:50:44]Read from MH i2c: E2 62 00 [23:50:44]MH_I2C_Read... [23:50:44]Read from MH i2c: E2 62 00 5D 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AD 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [23:50: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AD 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:44]wFMCommunicate OK [23:50:44]SAM_PROTO_GetFieldsCounters done [23:50:44]requested_item shift.num is exist - process it [23:50:44]requested_item shift.opened is exist - process it [23:50:44]req_shift_opened [23:50:44]FM_GetShiftState [23:50:44]SAM_PROTO_GetShiftState [23:50:44]wFMCommunicate request_size=4 [23:50:44]MH_SAM_APDU [23:50:44]CAPDU: 80 13 01 00 [23:50:44]Write to MH i2c: E2 08 00 5E 63 80 13 01 00 00 00 00 00 3E [23:50:44]Write i2c OK [23:50:44]MH_I2C_Read... [23:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:45]Read from MH i2c: E2 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 0E 00 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 0E 00 5E 63 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 7B [23:50:45]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:50:45]wFMCommunicate OK [23:50:45]SAM_PROTO_GetShiftState done [23:50:45]FM_GetShiftState done [23:50:45]req_shift_opened done [23:50:45]requested_item shift.open_date is exist - process it [23:50:45]req_shift_open_date [23:50:45]req_shift_open_date done [23:50:45]produce_requested_data done [23:50:45]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69293,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [23:50:45]process_action_free close_receipt [23:50:45]json_value_free [23:50:45]json_value_free done [23:50:45]process_json_proto returns [23:50:45]Send response to host [23:50:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69293,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [23:50:45]free response buf [23:50:45]execute_script done [23:50:45]execute_script returns [23:50:45]free content buf [23:50:45]Sock 7.Close socket [23:50:45]Sock 7.Thread stoped [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:49]accept exits with 9 [23:52:49]New connection [23:52:49]New thread 3066785124 created [23:52:49]Thread 3066641764 joined [23:52:49]Waiting for new connection... [23:52:49] Sock 9.Parse request [23:52:49]Sock 9.Check first char [23:52:49]Sock 9.First char is OK [23:52:49]request: POST /json_proto HTTP/1.0 [23:52:49]Method: POST [23:52:49]URL: /json_proto [23:52:49]Method is POST - this is cgi request [23:52:49]url: /json_proto [23:52:49]query_string will be loaded in cgi processing [23:52:49]execute_cgi json_proto POST (null) [23:52:49]execute_cgi path=json_proto method=POST [23:52:49]POST find Content-Length [23:52:49]Host: 172.17.49.132:8080 [23:52:49]Content-Length: 904 [23:52:49]Content-Type: application/json [23:52:49] [23:52:49]POST finish read [23:52:49]Found Content-Length = 904 [23:52:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136628", "tax_sys" : 0, "items" : [ { "code": "4700003150400", "name": "\u0412\u043E\u0434\u043A\u0430 \u0424\u0440\u0443\u043D\u0437\u0435 0,75", "price" : 655.00, "quantity" : 1.000, "sum" : 655.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 659.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:49]execute_script... [23:52:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136628", "tax_sys" : 0, "items" : [ { "code": "4700003150400", "name": "\u0412\u043E\u0434\u043A\u0430 \u0424\u0440\u0443\u043D\u0437\u0435 0,75", "price" : 655.00, "quantity" : 1.000, "sum" : 655.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 659.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:49]POST & json_proto [23:52:49]process_json_proto [23:52:49]json parsed OK: [23:52:49]protocol is kg_v1.0 [23:52:49]action value=close_receipt [23:52:49]process_action close_receipt [23:52:49]cmd_close_receipt [23:52:49]MH_GetDate [23:52:49]Write to MH i2c: F0 00 00 5F 63 B1 [23:52:49]Write i2c OK [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: F0 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: F0 09 00 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: F0 09 00 5F 63 00 DC D9 A6 66 E7 4B C0 64 D1 [23:52:49]GetLastDocTimeStamp 1722210652 [23:52:49]current date 1722210780 [23:52:49]FM_GetShiftState [23:52:49]SAM_PROTO_GetShiftState [23:52:49]wFMCommunicate request_size=4 [23:52:49]MH_SAM_APDU [23:52:49]CAPDU: 80 13 01 00 [23:52:49]Write to MH i2c: E2 08 00 60 63 80 13 01 00 00 00 00 00 40 [23:52:49]Write i2c OK [23:52:49]MH_I2C_Read... [23:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:49]Read from MH i2c: E2 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 0E 00 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 0E 00 60 63 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 7D [23:52:49]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:52:49]wFMCommunicate OK [23:52:49]SAM_PROTO_GetShiftState done [23:52:49]FM_GetShiftState done [23:52:49]opened in 1722127251 [23:52:49]opened+sec_in_day 1722213651 [23:52:49]quantity*price = 65500 [23:52:49]sum+1 = 65501 [23:52:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 659.00 НСП 1% : 5.83 НДС 12% : 69.98 Наличными: 659.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 177 28.07.2024 23:53 Смена: 429 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69294 ФПД: 87238590462033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T235300&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69294&fm=87238590462033&tin=02508201610067®Number=0000000000092638&sum=65900 0 [23:52:50]StoreToDocumentArchive [23:52:50]shift 429 fd 69294 [23:52:50]save to /storage/0429/doc_00069294 [23:52:50]save last doc name /storage/0429/doc_00069294 to /storage/kkm_last_doc_name [23:52:50]save OK [23:52:50]Clear old archive folders... [23:52:50]ProcessDocumentItem done err = 0, tmpTLVsize=378 [23:52:50]tlvbuf is 00B54940 [23:52:50]SAM_PROTO_ClearQueue [23:52:50]wFMCommunicate request_size=4 [23:52:50]MH_SAM_APDU [23:52:50]CAPDU: 80 09 00 00 [23:52:50]Write to MH i2c: E2 08 00 6D 63 80 09 00 00 00 00 00 00 42 [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:50]Read from MH i2c: E2 03 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 03 00 6D 63 00 90 00 44 [23:52:50]RAPDU: 90 00 [23:52:50]wFMCommunicate OK [23:52:50]SAM_PROTO_ClearQueue done [23:52:50]KKMCreateOFDPacket [23:52:50]OFDProtocolAddRootSTLVToBuf [23:52:50]FM_MakeSignedData [23:52:50]FM_MakeSignedData [23:52:50]SAM_PROTO_SignData [23:52:50]wFMCommunicate request_size=4 [23:52:50]MH_SAM_APDU [23:52:50]CAPDU: 80 0D 01 02 [23:52:50]Write to MH i2c: E2 08 00 6E 63 80 0D 01 02 00 00 00 00 4A [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 03 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 03 00 6E 63 00 90 00 45 [23:52:50]RAPDU: 90 00 [23:52:50]wFMCommunicate OK [23:52:50]wFMCommunicate request_size=255 [23:52:50]MH_SAM_APDU [23:52:50]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC FF 00 00 00 00 13 04 06 00 DC FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 [23:52:50]Write to MH i2c: E2 02 01 6F 63 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC FF 00 00 00 00 13 04 06 00 DC FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 00 00 05 [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 03 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 03 00 6F 63 00 90 00 46 [23:52:50]RAPDU: 90 00 [23:52:50]wFMCommunicate OK [23:52:50]wFMCommunicate request_size=137 [23:52:50]MH_SAM_APDU [23:52:50]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 DC D9 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AE 0E 01 00 35 04 06 00 4F 57 D1 31 F8 51 [23:52:50]Write to MH i2c: E2 8C 00 70 63 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 DC D9 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AE 0E 01 00 35 04 06 00 4F 57 D1 31 F8 51 00 00 3B [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 03 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 03 00 70 63 00 90 00 47 [23:52:50]RAPDU: 90 00 [23:52:50]wFMCommunicate OK [23:52:50]wFMCommunicate request_size=4 [23:52:50]MH_SAM_APDU [23:52:50]CAPDU: 80 0D 03 02 [23:52:50]Write to MH i2c: E2 08 00 71 63 80 0D 03 02 00 00 00 00 4F [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 0B 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 0B 00 71 63 00 21 27 70 8A ED 8E 14 9D 90 00 BE [23:52:50]RAPDU: 21 27 70 8A ED 8E 14 9D 90 00 [23:52:50]wFMCommunicate OK [23:52:50]SAM_PROTO_SignData done [23:52:50]FM_MakeSignedData done [23:52:50]CreateOFDProtocolMessage [23:52:50]wFMCommunicate request_size=4 [23:52:50]MH_SAM_APDU [23:52:50]CAPDU: 80 11 00 00 [23:52:50]Write to MH i2c: E2 08 00 72 63 80 11 00 00 00 00 00 00 4F [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 17 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 17 00 72 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AB [23:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:52:50]wFMCommunicate OK [23:52:50]CreateOFDProtocolMessage done [23:52:50]OFDSenderStorePacket 69294 [23:52:50]StoreOFDPacket docnum=69294 [23:52:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 8E 01 00 00 FA 88 86 01 EB 62 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC FF 00 00 00 00 13 04 06 00 DC FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 DC D9 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AE 0E 01 00 35 04 06 00 4F 57 D1 31 F8 51 21 27 70 8A ED 8E 14 9D [23:52:50]CheckFolder [23:52:50]dirname=/storage/ofd_packets [23:52:50]CheckFolder done [23:52:50]ProducePacketName [23:52:50]name=ofd_packets/00069294 [23:52:50]NVStorageSaveData ofd_packets/00069294 [23:52:50]File name is /storage/ofd_packets/00069294 [23:52:50]Write 428 bytes [23:52:50]NVStorageSaveData done [23:52:50]OFDSenderStorePacket done [23:52:50]KKMCreateOFDPacket done [23:52:50]NVStorageSaveData kkm_last_timestamp [23:52:50]File name is /storage/kkm_last_timestamp [23:52:50]Write 4 bytes [23:52:50]NVStorageSaveData done [23:52:50]ExternCall_PrintAddStr [23:52:50]wPrintStart [23:52:50]Write to MH i2c: 01 00 00 73 63 D6 [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: 01 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: 01 07 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: 01 07 00 73 63 00 00 00 00 00 FF 0F EB [23:52:50]RasterBufferAndPrint [23:52:50]line Счет N : (3)136628 [23:52:50]line ИНН: 02508201610067 [23:52:51]line Контрольно-Кассовый Чек [23:52:51]line ПРОДАЖА [23:52:51]line Товар: 4700003150400 [23:52:51]line Водка Фрунзе 0,75 [23:52:51]line 1.000 * 655.00 [23:52:51]line = 655.00 [23:52:51]line НДС 12% НСП 1% [23:52:51]line > о реализуемом товаре [23:52:51]line Товар: 2000031750019 [23:52:51]line Пакет Партнер Нефть [23:52:51]line 1.000 * 4.00 [23:52:51]line = 4.00 [23:52:51]line НДС 12% НСП 1% [23:52:51]line > о реализуемом товаре [23:52:51]line ИТОГО: 659.00 [23:52:51]line НСП 1% : 5.83 [23:52:51]line НДС 12% : 69.98 [23:52:51]line Наличными: 659.00 [23:52:51]line Безнал.: 0.00 [23:52:51]line Место: АЗС № 125 "Партнер Нефть" [23:52:51]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [23:52:51]line СНО: Общий режим [23:52:51]line Чек 177 28.07.2024 23:53 [23:52:51]line Смена: 429 ФФД: 1.0 [23:52:51]line ЗНМ: 0300000049 [23:52:51]line РНМ: 0000000000092638 [23:52:51]line Версия ККМ: 001 [23:52:51]line ФМ: 0000000000874949 [23:52:51]line ФД: 69294 [23:52:51]line ФПД: 87238590462033 [23:52:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240728T235300&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69294&fm=87238590462033&tin=02508201610067®Number=0000000000092638&sum=65900 [23:52:51]line 0 [23:52:51]OFD Sender: Processing packet 69294 [packets to send 19, broken 18] [23:52:51]ProducePacketName [23:52:51]name=ofd_packets/00069294 [23:52:51]OFD Sender: To server: pG, [23:52:51]CommunicateWithHost lk.salyk.kg:30040 [23:52:51]ConnectInit lk.salyk.kg [23:52:51]written 0, free lines is 4095 [23:52:51]Connected sock=10 [23:52:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 8E 01 00 00 FA 88 86 01 EB 62 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC FF 00 00 00 00 13 04 06 00 DC FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 DC D9 A6 66 0E 04 04 00 AD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AE 0E 01 00 35 04 06 00 4F 57 D1 31 F8 51 21 27 70 8A ED 8E 14 9D [23:52:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 3B D5 47 00 3D 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AE 0E 01 00 F4 03 04 00 4B 80 A6 66 B6 04 01 00 00 44 CF 9A 5E 98 7E 4A 42 [23:52:51]CommunicateWithHost err = 0 [23:52:51]CheckOFDResponse [23:52:51]1017 (14) - 77093643461234 [23:52:51]1041 (16) - 0000000000874949 [23:52:51]1040 (4) - 69294 [23:52:51]1012 (4) - 28.07.2024 17:30 [23:52:51]1206 (1) - 0 [23:52:51]OFD Sender: Remove packet 69294 [23:52:51]ProducePacketName [23:52:51]name=ofd_packets/00069294 [23:52:51]NVStorageDeleteData [23:52:51]Write to MH i2c: 01 00 00 A1 63 04 [23:52:51]Write i2c OK [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: 01 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: 01 07 00 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: 01 07 00 A1 63 00 00 00 00 00 D1 0C E8 [23:52:51]RasterBufferAndPrint [23:52:51]line [23:52:51]line [23:52:51]line [23:52:51]line [23:52:51]line [23:52:51]written 0, free lines is 3288 [23:52:51]MH_Cut [23:52:51]Write to MH i2c: D1 01 00 A8 63 01 DD [23:52:51]Write i2c OK [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: D1 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: D1 01 00 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: D1 01 00 A8 63 00 DC [23:52:51]Write to MH i2c: 01 00 00 A9 63 0C [23:52:51]Write i2c OK [23:52:51]MH_I2C_Read... [23:52:52]OFD Sender: No OFD packet to send [23:52:52]*** Cut start [23:52:52]*** Partial cut [23:52:52]*** CUTSNS_PIN = 1 [23:52:52]*** CUTSNS_PIN = 0 [23:52:52]*** Brake cut motor [23:52:52]Read from MH i2c: 01 [23:52:52]MH_I2C_Read... [23:52:52]*** Stop cut motor [23:52:52]*** Cut end [23:52:52]Read from MH i2c: 01 07 00 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: 01 07 00 A9 63 00 00 00 00 00 FF 0F 21 [23:52:52]process_action close_receipt done [23:52:52]requested_data is exist [23:52:52]produce_requested_data [23:52:52]requested_item fm.sn is exist - process it [23:52:52]wFMCommunicate request_size=4 [23:52:52]MH_SAM_APDU [23:52:52]CAPDU: 80 11 00 00 [23:52:52]Write to MH i2c: E2 08 00 AA 63 80 11 00 00 00 00 00 00 87 [23:52:52]Write i2c OK [23:52:52]MH_I2C_Read... [23:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:53]Read from MH i2c: E2 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 17 00 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 17 00 AA 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E3 [23:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [23:52:53]wFMCommunicate OK [23:52:53]requested_item fd.num is exist - process it [23:52:53]SAM_PROTO_GetFieldsCounters [23:52:53]wFMCommunicate request_size=4 [23:52:53]MH_SAM_APDU [23:52:53]CAPDU: 80 13 00 00 [23:52:53]Write to MH i2c: E2 08 00 AB 63 80 13 00 00 00 00 00 00 8A [23:52:53]Write i2c OK [23:52:53]MH_I2C_Read... [23:52:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:53]Read from MH i2c: E2 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 62 00 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 62 00 AB 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AE 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [23:52:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AE 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:53]wFMCommunicate OK [23:52:53]SAM_PROTO_GetFieldsCounters done [23:52:53]requested_item shift.num is exist - process it [23:52:53]requested_item shift.opened is exist - process it [23:52:53]req_shift_opened [23:52:53]FM_GetShiftState [23:52:53]SAM_PROTO_GetShiftState [23:52:53]wFMCommunicate request_size=4 [23:52:53]MH_SAM_APDU [23:52:53]CAPDU: 80 13 01 00 [23:52:53]Write to MH i2c: E2 08 00 AC 63 80 13 01 00 00 00 00 00 8C [23:52:53]Write i2c OK [23:52:53]MH_I2C_Read... [23:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:53]Read from MH i2c: E2 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 0E 00 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 0E 00 AC 63 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 C9 [23:52:53]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [23:52:53]wFMCommunicate OK [23:52:53]SAM_PROTO_GetShiftState done [23:52:53]FM_GetShiftState done [23:52:53]req_shift_opened done [23:52:53]requested_item shift.open_date is exist - process it [23:52:53]req_shift_open_date [23:52:53]req_shift_open_date done [23:52:53]produce_requested_data done [23:52:53]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69294,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [23:52:53]process_action_free close_receipt [23:52:53]json_value_free [23:52:53]json_value_free done [23:52:53]process_json_proto returns [23:52:53]Send response to host [23:52:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69294,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [23:52:53]free response buf [23:52:53]execute_script done [23:52:53]execute_script returns [23:52:53]free content buf [23:52:53]Sock 9.Close socket [23:52:53]Sock 9.Thread stoped [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:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:51]accept exits with 7 [00:30:51]New connection [00:30:51]New thread 3066641764 created [00:30:51]Thread 3066785124 joined [00:30:51]Waiting for new connection... [00:30:51] Sock 7.Parse request [00:30:51]Sock 7.Check first char [00:30:51]Sock 7.First char is OK [00:30:51]request: POST /json_proto HTTP/1.0 [00:30:51]Method: POST [00:30:51]URL: /json_proto [00:30:51]Method is POST - this is cgi request [00:30:51]url: /json_proto [00:30:51]query_string will be loaded in cgi processing [00:30:51]execute_cgi json_proto POST (null) [00:30:51]execute_cgi path=json_proto method=POST [00:30:51]POST find Content-Length [00:30:51]Host: 172.17.49.132:8080 [00:30:51]Content-Length: 215 [00:30:51]Content-Type: application/json [00:30:51] [00:30:51]POST finish read [00:30:51]Found Content-Length = 215 [00:30:51]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:30:51]execute_script... [00:30:51]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:30:51]POST & json_proto [00:30:51]process_json_proto [00:30:51]json parsed OK: [00:30:51]protocol is kg_v1.0 [00:30:51]action value=get_value [00:30:51]process_action get_value [00:30:51]cmd_get_value [00:30:51]process_action get_value done [00:30:51]requested_data is exist [00:30:51]produce_requested_data [00:30:51]requested_item kkm.sn is exist - process it [00:30:51]requested_item kkm.ver is exist - process it [00:30:51]requested_item fm.sn is exist - process it [00:30:51]wFMCommunicate request_size=4 [00:30:51]MH_SAM_APDU [00:30:51]CAPDU: 80 11 00 00 [00:30:51]Write to MH i2c: E2 08 00 AD 63 80 11 00 00 00 00 00 00 8A [00:30:51]Write i2c OK [00:30:51]MH_I2C_Read... [00:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:51]Read from MH i2c: E2 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 17 00 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 17 00 AD 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E6 [00:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:30:51]wFMCommunicate OK [00:30:51]requested_item fd.num is exist - process it [00:30:51]SAM_PROTO_GetFieldsCounters [00:30:51]wFMCommunicate request_size=4 [00:30:51]MH_SAM_APDU [00:30:51]CAPDU: 80 13 00 00 [00:30:51]Write to MH i2c: E2 08 00 AE 63 80 13 00 00 00 00 00 00 8D [00:30:51]Write i2c OK [00:30:51]MH_I2C_Read... [00:30:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:51]Read from MH i2c: E2 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 62 00 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 62 00 AE 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AE 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [00:30:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AE 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:51]wFMCommunicate OK [00:30:51]SAM_PROTO_GetFieldsCounters done [00:30:51]requested_item shift.num is exist - process it [00:30:51]requested_item shift.opened is exist - process it [00:30:51]req_shift_opened [00:30:51]FM_GetShiftState [00:30:51]SAM_PROTO_GetShiftState [00:30:51]wFMCommunicate request_size=4 [00:30:51]MH_SAM_APDU [00:30:51]CAPDU: 80 13 01 00 [00:30:51]Write to MH i2c: E2 08 00 AF 63 80 13 01 00 00 00 00 00 8F [00:30:51]Write i2c OK [00:30:51]MH_I2C_Read... [00:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:51]Read from MH i2c: E2 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 0E 00 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 0E 00 AF 63 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 CC [00:30:51]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [00:30:51]wFMCommunicate OK [00:30:51]SAM_PROTO_GetShiftState done [00:30:51]FM_GetShiftState done [00:30:51]req_shift_opened done [00:30:51]requested_item shift.open_date is exist - process it [00:30:51]req_shift_open_date [00:30:51]req_shift_open_date done [00:30:51]produce_requested_data done [00:30:51]produce_requested_data return {"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69294,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [00:30:51]process_action_free get_value [00:30:51]json_value_free [00:30:51]json_value_free done [00:30:51]process_json_proto returns [00:30:51]Send response to host [00:30:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69294,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [00:30:51]free response buf [00:30:51]execute_script done [00:30:51]execute_script returns [00:30:51]free content buf [00:30:51]Sock 7.Close socket [00:30:51]Sock 7.Thread stoped [00:30:51]accept exits with 9 [00:30:51]New connection [00:30:51]New thread 3066785124 created [00:30:51]Thread 3066641764 joined [00:30:51]Waiting for new connection... [00:30:51] Sock 9.Parse request [00:30:51]Sock 9.Check first char [00:30:51]Sock 9.First char is OK [00:30:51]request: POST /json_proto HTTP/1.0 [00:30:51]Method: POST [00:30:51]URL: /json_proto [00:30:51]Method is POST - this is cgi request [00:30:51]url: /json_proto [00:30:51]query_string will be loaded in cgi processing [00:30:51]execute_cgi json_proto POST (null) [00:30:51]execute_cgi path=json_proto method=POST [00:30:51]POST find Content-Length [00:30:51]Host: 172.17.49.132:8080 [00:30:51]Content-Length: 331 [00:30:51]Content-Type: application/json [00:30:51] [00:30:51]POST finish read [00:30:51]Found Content-Length = 331 [00:30: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:30:51]execute_script... [00:30: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:30:51]POST & json_proto [00:30:51]process_json_proto [00:30:51]json parsed OK: [00:30:51]protocol is kg_v1.0 [00:30:51]action value=get_value [00:30:51]process_action get_value [00:30:51]cmd_get_value [00:30:51]process_action get_value done [00:30:51]requested_data is exist [00:30:51]produce_requested_data [00:30:51]requested_item fm.sale.total is exist - process it [00:30:51]SAM_PROTO_GetFMData [00:30:51]wFMCommunicate request_size=4 [00:30:51]MH_SAM_APDU [00:30:51]CAPDU: 80 13 03 00 [00:30:51]Write to MH i2c: E2 08 00 B0 63 80 13 03 00 00 00 00 00 92 [00:30:51]Write i2c OK [00:30:51]MH_I2C_Read... [00:30:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:52]Read from MH i2c: E2 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 FD 00 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 FD 00 B0 63 00 C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 32 [00:30:52]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 [00:30:52]wFMCommunicate OK [00:30:52]wFMCommunicate request_size=4 [00:30:52]MH_SAM_APDU [00:30:52]CAPDU: 80 17 00 00 [00:30:52]Write to MH i2c: E2 08 00 B1 63 80 17 00 00 00 00 00 00 94 [00:30:52]Write i2c OK [00:30:52]MH_I2C_Read... [00:30:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:52]Read from MH i2c: E2 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 FD 00 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 FD 00 B1 63 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 D5 [00:30:52]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:30:52]wFMCommunicate OK [00:30:52]wFMCommunicate request_size=4 [00:30:52]MH_SAM_APDU [00:30:52]CAPDU: 80 17 00 00 [00:30:52]Write to MH i2c: E2 08 00 B2 63 80 17 00 00 00 00 00 00 95 [00:30:52]Write i2c OK [00:30:52]MH_I2C_Read... [00:30:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:52]Read from MH i2c: E2 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 FD 00 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 FD 00 B2 63 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [00:30:52]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:30:52]wFMCommunicate OK [00:30:52]wFMCommunicate request_size=4 [00:30:52]MH_SAM_APDU [00:30:52]CAPDU: 80 17 00 00 [00:30:52]Write to MH i2c: E2 08 00 B3 63 80 17 00 00 00 00 00 00 96 [00:30:52]Write i2c OK [00:30:52]MH_I2C_Read... [00:30:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:53]Read from MH i2c: E2 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 FD 00 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 FD 00 B3 63 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [00:30:53]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:30:53]wFMCommunicate OK [00:30:53]wFMCommunicate request_size=4 [00:30:53]MH_SAM_APDU [00:30:53]CAPDU: 80 17 00 00 [00:30:53]Write to MH i2c: E2 08 00 B4 63 80 17 00 00 00 00 00 00 97 [00:30:53]Write i2c OK [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 [00:30:53]MH_I2C_Read... [00:30:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:30:53]Read from MH i2c: E2 E2 00 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 E2 00 B4 63 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [00:30:53]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:53]wFMCommunicate OK [00:30:53]SAM_PROTO_GetFMData done [00:30:53]requested_item fm.sale_refund.total is exist - process it [00:30:53]requested_item fm.buy.total is exist - process it [00:30:53]requested_item shift.sale.total is exist - process it [00:30:53]SAM_PROTO_GetShiftData [00:30:53]wFMCommunicate request_size=4 [00:30:53]MH_SAM_APDU [00:30:53]CAPDU: 80 13 02 00 [00:30:53]Write to MH i2c: E2 08 00 B5 63 80 13 02 00 00 00 00 00 96 [00:30:53]Write i2c OK [00:30:53]MH_I2C_Read... [00:30:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:53]Read from MH i2c: E2 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 FD 00 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 FD 00 B5 63 00 B9 04 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 36 [00:30:53]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:30:53]wFMCommunicate OK [00:30:53]wFMCommunicate request_size=4 [00:30:53]MH_SAM_APDU [00:30:53]CAPDU: 80 17 00 00 [00:30:53]Write to MH i2c: E2 08 00 B6 63 80 17 00 00 00 00 00 00 99 [00:30:53]Write i2c OK [00:30:53]MH_I2C_Read... [00:30:53]OFD Sender: No OFD packet to send [00:30:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:54]Read from MH i2c: E2 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 FD 00 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 FD 00 B6 63 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 2C [00:30:54]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:30:54]wFMCommunicate OK [00:30:54]wFMCommunicate request_size=4 [00:30:54]MH_SAM_APDU [00:30:54]CAPDU: 80 17 00 00 [00:30:54]Write to MH i2c: E2 08 00 B7 63 80 17 00 00 00 00 00 00 9A [00:30:54]Write i2c OK [00:30:54]MH_I2C_Read... [00:30:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:54]Read from MH i2c: E2 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 FD 00 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 FD 00 B7 63 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [00:30:54]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:30:54]wFMCommunicate OK [00:30:54]wFMCommunicate request_size=4 [00:30:54]MH_SAM_APDU [00:30:54]CAPDU: 80 17 00 00 [00:30:54]Write to MH i2c: E2 08 00 B8 63 80 17 00 00 00 00 00 00 9B [00:30:54]Write i2c OK [00:30:54]MH_I2C_Read... [00:30:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:54]Read from MH i2c: E2 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 FD 00 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 FD 00 B8 63 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 13 [00:30:54]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:30:54]wFMCommunicate OK [00:30:54]wFMCommunicate request_size=4 [00:30:54]MH_SAM_APDU [00:30:54]CAPDU: 80 17 00 00 [00:30:54]Write to MH i2c: E2 08 00 B9 63 80 17 00 00 00 00 00 00 9C [00:30:54]Write i2c OK [00:30:54]MH_I2C_Read... [00:30:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:30:55]Read from MH i2c: E2 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 D6 00 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 D6 00 B9 63 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [00:30:55]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:55]wFMCommunicate OK [00:30:55]SAM_PROTO_GetShiftData done [00:30:55]requested_item shift.sale.total_cash is exist - process it [00:30:55]requested_item shift.sale_refund.total is exist - process it [00:30:55]requested_item shift.sale_refund.total_cash is exist - process it [00:30:55]requested_item shift.buy.total is exist - process it [00:30:55]requested_item shift.buy.total_cash is exist - process it [00:30:55]produce_requested_data done [00:30:55]produce_requested_data return {"fm.sale.total":31395816.66,"fm.sale_refund.total":562030.00,"fm.buy.total":0.00,"shift.sale.total":115071.97,"shift.sale.total_cash":101213.00,"shift.sale_refund.total":3408.00,"shift.sale_refund.total_cash":3408.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:30:55]process_action_free get_value [00:30:55]json_value_free [00:30:55]json_value_free done [00:30:55]process_json_proto returns [00:30:55]Send response to host [00:30:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31395816.66,"fm.sale_refund.total":562030.00,"fm.buy.total":0.00,"shift.sale.total":115071.97,"shift.sale.total_cash":101213.00,"shift.sale_refund.total":3408.00,"shift.sale_refund.total_cash":3408.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:30:55]free response buf [00:30:55]execute_script done [00:30:55]execute_script returns [00:30:55]free content buf [00:30:55]Sock 9.Close socket [00:30:55]Sock 9.Thread stoped [00:30:55]accept exits with 7 [00:30:55]New connection [00:30:55]New thread 3066641764 created [00:30:55]Thread 3066785124 joined [00:30:55]Waiting for new connection... [00:30:55] Sock 7.Parse request [00:30:55]Sock 7.Check first char [00:30:55]Sock 7.First char is OK [00:30:55]request: POST /json_proto HTTP/1.0 [00:30:55]Method: POST [00:30:55]URL: /json_proto [00:30:55]Method is POST - this is cgi request [00:30:55]url: /json_proto [00:30:55]query_string will be loaded in cgi processing [00:30:55]execute_cgi json_proto POST (null) [00:30:55]execute_cgi path=json_proto method=POST [00:30:55]POST find Content-Length [00:30:55]Host: 172.17.49.132:8080 [00:30:55]Content-Length: 331 [00:30:55]Content-Type: application/json [00:30:55] [00:30:55]POST finish read [00:30:55]Found Content-Length = 331 [00:30:55]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:30:55]execute_script... [00:30:55]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:30:55]POST & json_proto [00:30:55]process_json_proto [00:30:55]json parsed OK: [00:30:55]protocol is kg_v1.0 [00:30:55]action value=get_value [00:30:55]process_action get_value [00:30:55]cmd_get_value [00:30:55]process_action get_value done [00:30:55]requested_data is exist [00:30:55]produce_requested_data [00:30:55]requested_item fm.sale.total is exist - process it [00:30:55]SAM_PROTO_GetFMData [00:30:55]wFMCommunicate request_size=4 [00:30:55]MH_SAM_APDU [00:30:55]CAPDU: 80 13 03 00 [00:30:55]Write to MH i2c: E2 08 00 BA 63 80 13 03 00 00 00 00 00 9C [00:30:55]Write i2c OK [00:30:55]MH_I2C_Read... [00:30:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:55]Read from MH i2c: E2 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 FD 00 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 FD 00 BA 63 00 C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 3C [00:30:55]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 [00:30:55]wFMCommunicate OK [00:30:55]wFMCommunicate request_size=4 [00:30:55]MH_SAM_APDU [00:30:55]CAPDU: 80 17 00 00 [00:30:55]Write to MH i2c: E2 08 00 BB 63 80 17 00 00 00 00 00 00 9E [00:30:55]Write i2c OK [00:30:55]MH_I2C_Read... [00:30:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:55]Read from MH i2c: E2 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 FD 00 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 FD 00 BB 63 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 DF [00:30:56]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:30:56]wFMCommunicate OK [00:30:56]wFMCommunicate request_size=4 [00:30:56]MH_SAM_APDU [00:30:56]CAPDU: 80 17 00 00 [00:30:56]Write to MH i2c: E2 08 00 BC 63 80 17 00 00 00 00 00 00 9F [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:56]Read from MH i2c: E2 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 FD 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 FD 00 BC 63 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 B1 [00:30:56]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:30:56]wFMCommunicate OK [00:30:56]wFMCommunicate request_size=4 [00:30:56]MH_SAM_APDU [00:30:56]CAPDU: 80 17 00 00 [00:30:56]Write to MH i2c: E2 08 00 BD 63 80 17 00 00 00 00 00 00 A0 [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:56]Read from MH i2c: E2 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 FD 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 FD 00 BD 63 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 2C [00:30:56]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:30:56]wFMCommunicate OK [00:30:56]wFMCommunicate request_size=4 [00:30:56]MH_SAM_APDU [00:30:56]CAPDU: 80 17 00 00 [00:30:56]Write to MH i2c: E2 08 00 BE 63 80 17 00 00 00 00 00 00 A1 [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:30:57]Read from MH i2c: E2 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 E2 00 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 E2 00 BE 63 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F [00:30:57]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:57]wFMCommunicate OK [00:30:57]SAM_PROTO_GetFMData done [00:30:57]requested_item fm.sale_refund.total is exist - process it [00:30:57]requested_item fm.buy.total is exist - process it [00:30:57]requested_item shift.sale.total is exist - process it [00:30:57]SAM_PROTO_GetShiftData [00:30:57]wFMCommunicate request_size=4 [00:30:57]MH_SAM_APDU [00:30:57]CAPDU: 80 13 02 00 [00:30:57]Write to MH i2c: E2 08 00 BF 63 80 13 02 00 00 00 00 00 A0 [00:30:57]Write i2c OK [00:30:57]MH_I2C_Read... [00:30:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:57]Read from MH i2c: E2 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 FD 00 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 FD 00 BF 63 00 B9 04 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 40 [00:30:57]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:30:57]wFMCommunicate OK [00:30:57]wFMCommunicate request_size=4 [00:30:57]MH_SAM_APDU [00:30:57]CAPDU: 80 17 00 00 [00:30:57]Write to MH i2c: E2 08 00 C0 63 80 17 00 00 00 00 00 00 A3 [00:30:57]Write i2c OK [00:30:57]MH_I2C_Read... [00:30:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:58]Read from MH i2c: E2 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 FD 00 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 FD 00 C0 63 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 36 [00:30:58]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:30:58]wFMCommunicate OK [00:30:58]wFMCommunicate request_size=4 [00:30:58]MH_SAM_APDU [00:30:58]CAPDU: 80 17 00 00 [00:30:58]Write to MH i2c: E2 08 00 C1 63 80 17 00 00 00 00 00 00 A4 [00:30:58]Write i2c OK [00:30:58]MH_I2C_Read... [00:30:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:58]Read from MH i2c: E2 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 FD 00 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 FD 00 C1 63 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 CC [00:30:58]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:30:58]wFMCommunicate OK [00:30:58]wFMCommunicate request_size=4 [00:30:58]MH_SAM_APDU [00:30:58]CAPDU: 80 17 00 00 [00:30:58]Write to MH i2c: E2 08 00 C2 63 80 17 00 00 00 00 00 00 A5 [00:30:58]Write i2c OK [00:30:58]MH_I2C_Read... [00:30:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:58]Read from MH i2c: E2 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 FD 00 [00:30:58]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 FD 00 C2 63 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 1D [00:30:59]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:30:59]wFMCommunicate OK [00:30:59]wFMCommunicate request_size=4 [00:30:59]MH_SAM_APDU [00:30:59]CAPDU: 80 17 00 00 [00:30:59]Write to MH i2c: E2 08 00 C3 63 80 17 00 00 00 00 00 00 A6 [00:30:59]OFD Sender: No OFD packet to send [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:30:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:30:59]Read from MH i2c: E2 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 D6 00 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 D6 00 C3 63 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 88 [00:30:59]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:59]wFMCommunicate OK [00:30:59]SAM_PROTO_GetShiftData done [00:30:59]requested_item shift.sale.total_cash is exist - process it [00:30:59]requested_item shift.sale_refund.total is exist - process it [00:30:59]requested_item shift.sale_refund.total_cash is exist - process it [00:30:59]requested_item shift.buy.total is exist - process it [00:30:59]requested_item shift.buy.total_cash is exist - process it [00:30:59]produce_requested_data done [00:30:59]produce_requested_data return {"fm.sale.total":31395816.66,"fm.sale_refund.total":562030.00,"fm.buy.total":0.00,"shift.sale.total":115071.97,"shift.sale.total_cash":101213.00,"shift.sale_refund.total":3408.00,"shift.sale_refund.total_cash":3408.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:30:59]process_action_free get_value [00:30:59]json_value_free [00:30:59]json_value_free done [00:30:59]process_json_proto returns [00:30:59]Send response to host [00:30:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31395816.66,"fm.sale_refund.total":562030.00,"fm.buy.total":0.00,"shift.sale.total":115071.97,"shift.sale.total_cash":101213.00,"shift.sale_refund.total":3408.00,"shift.sale_refund.total_cash":3408.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:30:59]free response buf [00:30:59]execute_script done [00:30:59]execute_script returns [00:30:59]free content buf [00:30:59]Sock 7.Close socket [00:30:59]Sock 7.Thread stoped [00:30:59]accept exits with 9 [00:30:59]New connection [00:30:59]New thread 3066785124 created [00:30:59]Thread 3066641764 joined [00:30:59]Waiting for new connection... [00:30:59] Sock 9.Parse request [00:30:59]Sock 9.Check first char [00:30:59]Sock 9.First char is OK [00:30:59]request: POST /json_proto HTTP/1.0 [00:30:59]Method: POST [00:30:59]URL: /json_proto [00:30:59]Method is POST - this is cgi request [00:30:59]url: /json_proto [00:30:59]query_string will be loaded in cgi processing [00:30:59]execute_cgi json_proto POST (null) [00:30:59]execute_cgi path=json_proto method=POST [00:30:59]POST find Content-Length [00:30:59]Host: 172.17.49.132:8080 [00:30:59]Content-Length: 256 [00:30:59]Content-Type: application/json [00:30:59] [00:30:59]POST finish read [00:30:59]Found Content-Length = 256 [00:30:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0435\u043A\u0436\u0430\u043D\u043E\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:59]execute_script... [00:30:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0435\u043A\u0436\u0430\u043D\u043E\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:59]POST & json_proto [00:30:59]process_json_proto [00:30:59]json parsed OK: [00:30:59]protocol is kg_v1.0 [00:30:59]action value=x_report [00:30:59]process_action x_report [00:30:59]cmd_x_report [00:30:59]MH_GetDate [00:30:59]Write to MH i2c: F0 00 00 C4 63 16 [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: F0 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: F0 09 00 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: F0 09 00 C4 63 00 CF E2 A6 66 E7 4B C0 64 32 [00:30:59]GetLastDocTimeStamp 1722210780 [00:30:59]current date 1722213071 [00:30:59]FM_GetShiftState [00:30:59]SAM_PROTO_GetShiftState [00:30:59]wFMCommunicate request_size=4 [00:30:59]MH_SAM_APDU [00:30:59]CAPDU: 80 13 01 00 [00:30:59]Write to MH i2c: E2 08 00 C5 63 80 13 01 00 00 00 00 00 A5 [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:59]Read from MH i2c: E2 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 0E 00 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 0E 00 C5 63 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 E2 [00:30:59]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [00:30:59]wFMCommunicate OK [00:30:59]SAM_PROTO_GetShiftState done [00:30:59]FM_GetShiftState done [00:30:59]KKMCreateXReportDocument [00:30:59]Load OK [00:30:59]Malloc new data [00:30:59]MH_GetDate [00:30:59]Write to MH i2c: F0 00 00 C6 63 18 [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: F0 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: F0 09 00 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: F0 09 00 C6 63 00 CF E2 A6 66 E7 4B C0 64 34 [00:30:59]Malloc new data [00:30:59]Malloc new data [00:30:59]wFMCommunicate request_size=4 [00:30:59]MH_SAM_APDU [00:30:59]CAPDU: 80 11 00 00 [00:30:59]Write to MH i2c: E2 08 00 C7 63 80 11 00 00 00 00 00 00 A4 [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:59]Read from MH i2c: E2 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 17 00 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 17 00 C7 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 00 [00:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:30:59]wFMCommunicate OK [00:30:59]SAM_PROTO_GetFieldsCounters [00:30:59]wFMCommunicate request_size=4 [00:30:59]MH_SAM_APDU [00:30:59]CAPDU: 80 13 00 00 [00:30:59]Write to MH i2c: E2 08 00 C8 63 80 13 00 00 00 00 00 00 A7 [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:30:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:59]Read from MH i2c: E2 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 62 00 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 62 00 C8 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AE 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [00:30: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AE 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:59]wFMCommunicate OK [00:30:59]SAM_PROTO_GetFieldsCounters done [00:30:59]Malloc new data [00:30:59]Malloc new data [00:30:59]Malloc new data [00:30:59]KKMCreateXReportDocument OK [00:30:59]KKMSetXReportData OK [00:30:59]KKMPrepareXReportFMData [00:30:59]SAM_PROTO_GetShiftData [00:30:59]wFMCommunicate request_size=4 [00:30:59]MH_SAM_APDU [00:30:59]CAPDU: 80 13 02 00 [00:30:59]Write to MH i2c: E2 08 00 C9 63 80 13 02 00 00 00 00 00 AA [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 FD 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 FD 00 C9 63 00 B9 04 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 4A [00:31:00]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:31:00]wFMCommunicate OK [00:31:00]wFMCommunicate request_size=4 [00:31:00]MH_SAM_APDU [00:31:00]CAPDU: 80 17 00 00 [00:31:00]Write to MH i2c: E2 08 00 CA 63 80 17 00 00 00 00 00 00 AD [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 FD 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 FD 00 CA 63 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 40 [00:31:00]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:31:01]wFMCommunicate OK [00:31:01]wFMCommunicate request_size=4 [00:31:01]MH_SAM_APDU [00:31:01]CAPDU: 80 17 00 00 [00:31:01]Write to MH i2c: E2 08 00 CB 63 80 17 00 00 00 00 00 00 AE [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:01]Read from MH i2c: E2 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 FD 00 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 FD 00 CB 63 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 D6 [00:31:01]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:31:01]wFMCommunicate OK [00:31:01]wFMCommunicate request_size=4 [00:31:01]MH_SAM_APDU [00:31:01]CAPDU: 80 17 00 00 [00:31:01]Write to MH i2c: E2 08 00 CC 63 80 17 00 00 00 00 00 00 AF [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:01]Read from MH i2c: E2 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 FD 00 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 FD 00 CC 63 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 27 [00:31:01]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:31:01]wFMCommunicate OK [00:31:01]wFMCommunicate request_size=4 [00:31:01]MH_SAM_APDU [00:31:01]CAPDU: 80 17 00 00 [00:31:01]Write to MH i2c: E2 08 00 CD 63 80 17 00 00 00 00 00 00 B0 [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:31:02]Read from MH i2c: E2 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 D6 00 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 D6 00 CD 63 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 92 [00:31:02]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:02]wFMCommunicate OK [00:31:02]SAM_PROTO_GetShiftData done [00:31:02]1194 (1205) - счетчики итогов смены [00:31:02] 1134 (4) - 177 - количество чеков со всеми признаками расчетов [00:31:02] 1129 (156) - счетчики операций «приход» [00:31:02] 1135 (4) - 174 - количество чеков по признаку расчетов [00:31:02] 1201 (3) - 115071.97 - общая итоговая сумма в чеках [00:31:02] 1136 (3) - 101213.00 - итоговая сумма в чеках наличными [00:31:02] 1138 (3) - 13858.97 - итоговая сумма в чеках безналичными [00:31:02] 1024 (123) - суммы налогов [00:31:02] 1006 (9) - суммы НДС [00:31:02] 1010 (1) - 0% - код ставки НДС [00:31:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:02] 1006 (12) - суммы НДС [00:31:02] 1010 (1) - 12% - код ставки НДС [00:31:02] 1011 (3) - 12221.08 - сумма НДС по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 0% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (12) - суммы НСП [00:31:02] 1014 (1) - 1% - код ставки НСП [00:31:02] 1015 (3) - 1018.27 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 2% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 3% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 5% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 0,50% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 1,50% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1130 (151) - счетчики операций «возврат прихода» [00:31:02] 1135 (4) - 3 - количество чеков по признаку расчетов [00:31:02] 1201 (3) - 3408.00 - общая итоговая сумма в чеках [00:31:02] 1136 (3) - 3408.00 - итоговая сумма в чеках наличными [00:31:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:02] 1024 (121) - суммы налогов [00:31:02] 1006 (9) - суммы НДС [00:31:02] 1010 (1) - 0% - код ставки НДС [00:31:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:02] 1006 (11) - суммы НДС [00:31:02] 1010 (1) - 12% - код ставки НДС [00:31:02] 1011 (2) - 361.98 - сумма НДС по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 0% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (11) - суммы НСП [00:31:02] 1014 (1) - 1% - код ставки НСП [00:31:02] 1015 (2) - 30.17 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 2% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 3% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 5% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 0,50% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 1,50% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1131 (141) - счетчики операций «расход» [00:31:02] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:02] 1024 (117) - суммы налогов [00:31:02] 1006 (9) - суммы НДС [00:31:02] 1010 (1) - 0% - код ставки НДС [00:31:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:02] 1006 (9) - суммы НДС [00:31:02] 1010 (1) - 12% - код ставки НДС [00:31:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 0% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 1% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 2% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 3% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 5% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 0,50% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 1,50% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1132 (141) - счетчики операций «возврат расхода» [00:31:02] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:02] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:02] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:02] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:02] 1024 (117) - суммы налогов [00:31:02] 1006 (9) - суммы НДС [00:31:02] 1010 (1) - 0% - код ставки НДС [00:31:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:02] 1006 (9) - суммы НДС [00:31:02] 1010 (1) - 12% - код ставки НДС [00:31:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 0% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 1% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 2% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 3% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 5% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 0,50% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1007 (9) - суммы НСП [00:31:02] 1014 (1) - 1,50% - код ставки НСП [00:31:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:02] 1133 (588) - - счетчики коррекции - не используются [00:31:02]SetTLVBufToDocument [00:31:02]Processing tag 1194 (04AA) [00:31:02]Load OK [00:31:02]SetTLVBufToDocument [00:31:02]Processing tag 1134 (046E) [00:31:02]Malloc new data [00:31:02]Processing tag 1129 (0469) [00:31:02]Load OK [00:31:02]SetTLVBufToDocument [00:31:02]Processing tag 1135 (046F) [00:31:02]Malloc new data [00:31:02]Processing tag 1201 (04B1) [00:31:02]Malloc new data [00:31:02]Processing tag 1136 (0470) [00:31:02]Malloc new data [00:31:02]Processing tag 1138 (0472) [00:31:02]Malloc new data [00:31:02]Processing tag 1024 (0400) [00:31:02]Load OK [00:31:02]SetTLVBufToDocument [00:31:02]Processing tag 1006 (03EE) [00:31:02]Load OK [00:31:02]SetTLVBufToDocument [00:31:02]Processing tag 1010 (03F2) [00:31:02]Malloc new data [00:31:02]Processing tag 1011 (03F3) [00:31:02]Malloc new data [00:31:02]SetTLVBufToDocument err=0 [00:31:02]Processing tag 1006 (03EE) [00:31:02]Load OK [00:31:02]SetTLVBufToDocument [00:31:02]Processing tag 1010 (03F2) [00:31:02]Malloc new data [00:31:02]Processing tag 1011 (03F3) [00:31:02]Malloc new data [00:31:02]SetTLVBufToDocument err=0 [00:31:02]Processing tag 1007 (03EF) [00:31:02]Load OK [00:31:02]SetTLVBufToDocument [00:31:02]Processing tag 1014 (03F6) [00:31:02]Malloc new data [00:31:02]Processing tag 1015 (03F7) [00:31:02]Malloc new data [00:31:02]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]SetTLVBufToDocument err=0 [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1130 (046A) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1135 (046F) [00:31:03]Malloc new data [00:31:03]Processing tag 1201 (04B1) [00:31:03]Malloc new data [00:31:03]Processing tag 1136 (0470) [00:31:03]Malloc new data [00:31:03]Processing tag 1138 (0472) [00:31:03]Malloc new data [00:31:03]Processing tag 1024 (0400) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1006 (03EE) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1010 (03F2) [00:31:03]Malloc new data [00:31:03]Processing tag 1011 (03F3) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1006 (03EE) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1010 (03F2) [00:31:03]Malloc new data [00:31:03]Processing tag 1011 (03F3) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]SetTLVBufToDocument err=0 [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1131 (046B) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1135 (046F) [00:31:03]Malloc new data [00:31:03]Processing tag 1201 (04B1) [00:31:03]Malloc new data [00:31:03]Processing tag 1136 (0470) [00:31:03]Malloc new data [00:31:03]Processing tag 1138 (0472) [00:31:03]Malloc new data [00:31:03]Processing tag 1024 (0400) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1006 (03EE) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1010 (03F2) [00:31:03]Malloc new data [00:31:03]Processing tag 1011 (03F3) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1006 (03EE) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1010 (03F2) [00:31:03]Malloc new data [00:31:03]Processing tag 1011 (03F3) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]SetTLVBufToDocument err=0 [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1132 (046C) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1135 (046F) [00:31:03]Malloc new data [00:31:03]Processing tag 1201 (04B1) [00:31:03]Malloc new data [00:31:03]Processing tag 1136 (0470) [00:31:03]Malloc new data [00:31:03]Processing tag 1138 (0472) [00:31:03]Malloc new data [00:31:03]Processing tag 1024 (0400) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1006 (03EE) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1010 (03F2) [00:31:03]Malloc new data [00:31:03]Processing tag 1011 (03F3) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1006 (03EE) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1010 (03F2) [00:31:03]Malloc new data [00:31:03]Processing tag 1011 (03F3) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1007 (03EF) [00:31:03]Load OK [00:31:03]SetTLVBufToDocument [00:31:03]Processing tag 1014 (03F6) [00:31:03]Malloc new data [00:31:03]Processing tag 1015 (03F7) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]SetTLVBufToDocument err=0 [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Processing tag 1133 (046D) [00:31:03]Malloc new data [00:31:03]SetTLVBufToDocument err=0 [00:31:03]SetTLVBufToDocument err=0 [00:31:03]Malloc new data [00:31:03]SAM_PROTO_GetFMData [00:31:03]wFMCommunicate request_size=4 [00:31:03]MH_SAM_APDU [00:31:03]CAPDU: 80 13 03 00 [00:31:03]Write to MH i2c: E2 08 00 CE 63 80 13 03 00 00 00 00 00 B0 [00:31:03]Write i2c OK [00:31:03]MH_I2C_Read... [00:31:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:04]Read from MH i2c: E2 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 FD 00 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 FD 00 CE 63 00 C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 50 [00:31:04]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 [00:31:04]wFMCommunicate OK [00:31:04]wFMCommunicate request_size=4 [00:31:04]MH_SAM_APDU [00:31:04]CAPDU: 80 17 00 00 [00:31:04]Write to MH i2c: E2 08 00 CF 63 80 17 00 00 00 00 00 00 B2 [00:31:04]OFD Sender: No OFD packet to send [00:31:04]Write i2c OK [00:31:04]MH_I2C_Read... [00:31:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:04]Read from MH i2c: E2 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 FD 00 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 FD 00 CF 63 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 F3 [00:31:04]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:31:04]wFMCommunicate OK [00:31:04]wFMCommunicate request_size=4 [00:31:04]MH_SAM_APDU [00:31:04]CAPDU: 80 17 00 00 [00:31:04]Write to MH i2c: E2 08 00 D0 63 80 17 00 00 00 00 00 00 B3 [00:31:04]Write i2c OK [00:31:04]MH_I2C_Read... [00:31:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:05]Read from MH i2c: E2 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 FD 00 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 FD 00 D0 63 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 C5 [00:31:05]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:31:05]wFMCommunicate OK [00:31:05]wFMCommunicate request_size=4 [00:31:05]MH_SAM_APDU [00:31:05]CAPDU: 80 17 00 00 [00:31:05]Write to MH i2c: E2 08 00 D1 63 80 17 00 00 00 00 00 00 B4 [00:31:05]Write i2c OK [00:31:05]MH_I2C_Read... [00:31:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:05]Read from MH i2c: E2 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 FD 00 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 FD 00 D1 63 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 40 [00:31:05]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:31:05]wFMCommunicate OK [00:31:05]wFMCommunicate request_size=4 [00:31:05]MH_SAM_APDU [00:31:05]CAPDU: 80 17 00 00 [00:31:05]Write to MH i2c: E2 08 00 D2 63 80 17 00 00 00 00 00 00 B5 [00:31:05]Write i2c OK [00:31:05]MH_I2C_Read... [00:31:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:31:06]Read from MH i2c: E2 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 E2 00 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 E2 00 D2 63 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 93 [00:31:06]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:06]wFMCommunicate OK [00:31:06]SAM_PROTO_GetFMData done [00:31:06]FM_GetFMData:85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B 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 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:31:07]oper:6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:31:07]total:E2 36 22 BB [00:31:07]Malloc new data [00:31:07]oper:6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B 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 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:31:07]total:F8 96 59 03 [00:31:07]Malloc new data [00:31:07]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:31:07]total: [00:31:07]Malloc new data [00:31:07]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:31:07]total: [00:31:07]Malloc new data [00:31:07]KKMPrepareXReportFMData err=0 [00:31:07]Х отчет ИНН: 02508201610067 Кассир: Бекжанов А. 29.07.2024 00:31 Смена: 266 РНМ: 0000000000092638 ЗНМ: 0300000049 СНО: Общий режим Всего чеков: 177 ИТОГИ ПРИХОД Чеков: 174 Общий итог: 115071.97 Итого наличными: 101213.00 Итого безнал.: 13858.97 НДС 0% : 0.00 НДС 12% : 12221.08 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1018.27 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 3408.00 Итого наличными: 3408.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 361.98 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 30.17 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 97805.00 НС Приход: 31395816.66 НС Возвр.Прихода: 562030.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874949 [00:31:07]StoreToDocumentArchive [00:31:07]MH_GetDate [00:31:07]Write to MH i2c: F0 00 00 D3 63 25 [00:31:07]Write i2c OK [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: F0 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: F0 09 00 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: F0 09 00 D3 63 00 D7 E2 A6 66 E7 4B C0 64 49 [00:31:07]shift 266 fd 1722213079 [00:31:07]Create dir for shift 0266 [00:31:07]save to /storage/0266/doc_1722213079 [00:31:07]save last doc name /storage/0266/doc_1722213079 to /storage/kkm_last_doc_name [00:31:07]save OK [00:31:07]Clear old archive folders... [00:31:07]NVStorageSaveData kkm_last_timestamp [00:31:07]File name is /storage/kkm_last_timestamp [00:31:07]Write 4 bytes [00:31:07]NVStorageSaveData done [00:31:07]ExternCall_PrintAddStr [00:31:07]wPrintStart [00:31:07]Write to MH i2c: 01 00 00 D4 63 37 [00:31:07]Write i2c OK [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: 01 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: 01 07 00 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: 01 07 00 D4 63 00 00 00 00 00 FF 0F 4C [00:31:07]RasterBufferAndPrint [00:31:07]line Х отчет [00:31:07]line ИНН: 02508201610067 [00:31:07]line Кассир: Бекжанов А. [00:31:07]line 29.07.2024 00:31 [00:31:07]line Смена: 266 [00:31:07]line РНМ: 0000000000092638 [00:31:07]line ЗНМ: 0300000049 [00:31:07]line СНО: Общий режим [00:31:07]line Всего чеков: 177 [00:31:07]line ИТОГИ ПРИХОД [00:31:07]line Чеков: 174 [00:31:07]line Общий итог: 115071.97 [00:31:07]line Итого наличными: 101213.00 [00:31:07]line Итого безнал.: 13858.97 [00:31:07]line НДС 0% : 0.00 [00:31:07]line НДС 12% : 12221.08 [00:31:07]line НСП 0% : 0.00 [00:31:07]line НСП 1,50% : 0.00 [00:31:07]line НСП 0,50% : 0.00 [00:31:07]line НСП 5% : 0.00 [00:31:07]line НСП 3% : 0.00 [00:31:07]line НСП 2% : 0.00 [00:31:07]line НСП 1% : 1018.27 [00:31:07]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:31:07]line Чеков: 3 [00:31:07]line Общий итог: 3408.00 [00:31:07]line Итого наличными: 3408.00 [00:31:07]line Итого безнал.: 0.00 [00:31:07]line НДС 0% : 0.00 [00:31:07]line НДС 12% : 361.98 [00:31:07]line НСП 0% : 0.00 [00:31:07]line НСП 1,50% : 0.00 [00:31:07]line НСП 0,50% : 0.00 [00:31:07]line НСП 5% : 0.00 [00:31:07]line НСП 3% : 0.00 [00:31:07]line НСП 2% : 0.00 [00:31:07]line НСП 1% : 30.17 [00:31:07]line ИТОГИ РАСХОД [00:31:07]line Чеков: 0 [00:31:07]line Общий итог: 0.00 [00:31:07]line Итого наличными: 0.00 [00:31:07]line Итого безнал.: 0.00 [00:31:07]line НДС 0% : 0.00 [00:31:07]line НДС 12% : 0.00 [00:31:07]line НСП 0% : 0.00 [00:31:07]line НСП 1,50% : 0.00 [00:31:07]line НСП 0,50% : 0.00 [00:31:07]line НСП 5% : 0.00 [00:31:07]line НСП 3% : 0.00 [00:31:07]line НСП 2% : 0.00 [00:31:07]line НСП 1% : 0.00 [00:31:07]line ИТОГИ ВОЗВРАТ РАСХОДА [00:31:07]line Чеков: 0 [00:31:07]line Общий итог: 0.00 [00:31:07]line Итого наличными: 0.00 [00:31:07]line Итого безнал.: 0.00 [00:31:07]line НДС 0% : 0.00 [00:31:07]line НДС 12% : 0.00 [00:31:07]line НСП 0% : 0.00 [00:31:07]line НСП 1,50% : 0.00 [00:31:07]line НСП 0,50% : 0.00 [00:31:07]line НСП 5% : 0.00 [00:31:07]line НСП 3% : 0.00 [00:31:07]line НСП 2% : 0.00 [00:31:07]line НСП 1% : 0.00 [00:31:07]line Сумма внесений: 0.00 [00:31:07]line Сумма выплат: 0.00 [00:31:07]line Нал. в кассе: 97805.00 [00:31:07]line НС Приход: 31395816.66 [00:31:07]line НС Возвр.Прихода: 562030.00 [00:31:07]line НС Расход: 0.00 [00:31:07]line НС Возвр.Расхода: 0.00 [00:31:07]line ФМ: 0000000000874949 [00:31:07]written 0, free lines is 4095 [00:31:08]Write to MH i2c: 01 00 00 1F 64 83 [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: 01 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: 01 07 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: 01 07 00 1F 64 00 00 00 00 00 0F 0B A4 [00:31:08]RasterBufferAndPrint [00:31:08]line [00:31:08]line [00:31:08]line [00:31:08]line [00:31:08]line [00:31:08]written 0, free lines is 2870 [00:31:08]MH_Cut [00:31:08]Write to MH i2c: D1 01 00 26 64 01 5C [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: D1 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: D1 01 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: D1 01 00 26 64 00 5B [00:31:08]Write to MH i2c: 01 00 00 27 64 8B [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:09]*** Cut start [00:31:09]*** Partial cut [00:31:09]*** CUTSNS_PIN = 1 [00:31:09]OFD Sender: No OFD packet to send [00:31:09]*** CUTSNS_PIN = 0 [00:31:09]*** Brake cut motor [00:31:09]Read from MH i2c: 01 [00:31:09]MH_I2C_Read... [00:31:09]*** Stop cut motor [00:31:09]*** Cut end [00:31:09]Read from MH i2c: 01 07 00 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: 01 07 00 27 64 00 00 00 00 00 FF 0F A0 [00:31:09]process_action x_report done [00:31:09]requested_data is exist [00:31:09]produce_requested_data [00:31:09]requested_item fd.num is exist - process it [00:31:09]SAM_PROTO_GetFieldsCounters [00:31:09]wFMCommunicate request_size=4 [00:31:09]MH_SAM_APDU [00:31:09]CAPDU: 80 13 00 00 [00:31:09]Write to MH i2c: E2 08 00 28 64 80 13 00 00 00 00 00 00 08 [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 62 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 62 00 28 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AE 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [00:31: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AE 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:10]wFMCommunicate OK [00:31:10]SAM_PROTO_GetFieldsCounters done [00:31:10]requested_item shift.num is exist - process it [00:31:10]requested_item shift.opened is exist - process it [00:31:10]req_shift_opened [00:31:10]FM_GetShiftState [00:31:10]SAM_PROTO_GetShiftState [00:31:10]wFMCommunicate request_size=4 [00:31:10]MH_SAM_APDU [00:31:10]CAPDU: 80 13 01 00 [00:31:10]Write to MH i2c: E2 08 00 29 64 80 13 01 00 00 00 00 00 0A [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 0E 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 0E 00 29 64 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 47 [00:31:10]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [00:31:10]wFMCommunicate OK [00:31:10]SAM_PROTO_GetShiftState done [00:31:10]FM_GetShiftState done [00:31:10]req_shift_opened done [00:31:10]requested_item shift.open_date is exist - process it [00:31:10]req_shift_open_date [00:31:10]req_shift_open_date done [00:31:10]produce_requested_data done [00:31:10]produce_requested_data return {"fd.num":69294,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [00:31:10]process_action_free x_report [00:31:10]json_value_free [00:31:10]json_value_free done [00:31:10]process_json_proto returns [00:31:10]Send response to host [00:31:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":69294,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [00:31:10]free response buf [00:31:10]execute_script done [00:31:10]execute_script returns [00:31:10]free content buf [00:31:10]Sock 9.Close socket [00:31:10]Sock 9.Thread stoped [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:46]accept exits with 7 [00:31:46]New connection [00:31:46]New thread 3066641764 created [00:31:46]Thread 3066785124 joined [00:31:46]Waiting for new connection... [00:31:46] Sock 7.Parse request [00:31:46]Sock 7.Check first char [00:31:46]Sock 7.First char is OK [00:31:46]request: POST /json_proto HTTP/1.0 [00:31:46]Method: POST [00:31:46]URL: /json_proto [00:31:46]Method is POST - this is cgi request [00:31:46]url: /json_proto [00:31:46]query_string will be loaded in cgi processing [00:31:46]execute_cgi json_proto POST (null) [00:31:46]execute_cgi path=json_proto method=POST [00:31:46]POST find Content-Length [00:31:46]Host: 172.17.49.132:8080 [00:31:46]Content-Length: 215 [00:31:46]Content-Type: application/json [00:31:46] [00:31:46]POST finish read [00:31:46]Found Content-Length = 215 [00:31:46]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:31:46]execute_script... [00:31:46]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:31:46]POST & json_proto [00:31:46]process_json_proto [00:31:46]json parsed OK: [00:31:46]protocol is kg_v1.0 [00:31:46]action value=get_value [00:31:46]process_action get_value [00:31:46]cmd_get_value [00:31:46]process_action get_value done [00:31:46]requested_data is exist [00:31:46]produce_requested_data [00:31:46]requested_item kkm.sn is exist - process it [00:31:46]requested_item kkm.ver is exist - process it [00:31:46]requested_item fm.sn is exist - process it [00:31:46]wFMCommunicate request_size=4 [00:31:46]MH_SAM_APDU [00:31:46]CAPDU: 80 11 00 00 [00:31:46]Write to MH i2c: E2 08 00 2A 64 80 11 00 00 00 00 00 00 08 [00:31:46]Write i2c OK [00:31:46]MH_I2C_Read... [00:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:46]Read from MH i2c: E2 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 17 00 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 17 00 2A 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 64 [00:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:31:46]wFMCommunicate OK [00:31:46]requested_item fd.num is exist - process it [00:31:46]SAM_PROTO_GetFieldsCounters [00:31:46]wFMCommunicate request_size=4 [00:31:46]MH_SAM_APDU [00:31:46]CAPDU: 80 13 00 00 [00:31:46]Write to MH i2c: E2 08 00 2B 64 80 13 00 00 00 00 00 00 0B [00:31:46]Write i2c OK [00:31:46]MH_I2C_Read... [00:31:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:46]Read from MH i2c: E2 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 62 00 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 62 00 2B 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AE 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [00:31:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AE 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:46]wFMCommunicate OK [00:31:46]SAM_PROTO_GetFieldsCounters done [00:31:46]requested_item shift.num is exist - process it [00:31:46]requested_item shift.opened is exist - process it [00:31:46]req_shift_opened [00:31:46]FM_GetShiftState [00:31:46]SAM_PROTO_GetShiftState [00:31:46]wFMCommunicate request_size=4 [00:31:46]MH_SAM_APDU [00:31:46]CAPDU: 80 13 01 00 [00:31:46]Write to MH i2c: E2 08 00 2C 64 80 13 01 00 00 00 00 00 0D [00:31:46]Write i2c OK [00:31:46]MH_I2C_Read... [00:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:46]Read from MH i2c: E2 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 0E 00 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 0E 00 2C 64 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 4A [00:31:46]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [00:31:46]wFMCommunicate OK [00:31:46]SAM_PROTO_GetShiftState done [00:31:46]FM_GetShiftState done [00:31:46]req_shift_opened done [00:31:46]requested_item shift.open_date is exist - process it [00:31:46]req_shift_open_date [00:31:46]req_shift_open_date done [00:31:46]produce_requested_data done [00:31:46]produce_requested_data return {"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69294,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251} [00:31:46]process_action_free get_value [00:31:46]json_value_free [00:31:46]json_value_free done [00:31:46]process_json_proto returns [00:31:46]Send response to host [00:31:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69294,"shift.num":429,"shift.opened":1,"shift.open_date":1722127251}}} [00:31:46]free response buf [00:31:46]execute_script done [00:31:46]execute_script returns [00:31:46]free content buf [00:31:46]Sock 7.Close socket [00:31:46]Sock 7.Thread stoped [00:31:46]accept exits with 10 [00:31:46]New connection [00:31:46]New thread 3066785124 created [00:31:46]Thread 3066641764 joined [00:31:46]Waiting for new connection... [00:31:46] Sock 10.Parse request [00:31:46]Sock 10.Check first char [00:31:46]Sock 10.First char is OK [00:31:46]request: POST /json_proto HTTP/1.0 [00:31:46]Method: POST [00:31:46]URL: /json_proto [00:31:46]Method is POST - this is cgi request [00:31:46]url: /json_proto [00:31:46]query_string will be loaded in cgi processing [00:31:46]execute_cgi json_proto POST (null) [00:31:46]execute_cgi path=json_proto method=POST [00:31:46]POST find Content-Length [00:31:46]Host: 172.17.49.132:8080 [00:31:46]Content-Length: 331 [00:31:46]Content-Type: application/json [00:31:46] [00:31:46]POST finish read [00:31:46]Found Content-Length = 331 [00:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:31:46]execute_script... [00:31:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:31:46]POST & json_proto [00:31:46]process_json_proto [00:31:46]json parsed OK: [00:31:46]protocol is kg_v1.0 [00:31:46]action value=get_value [00:31:46]process_action get_value [00:31:46]cmd_get_value [00:31:46]process_action get_value done [00:31:46]requested_data is exist [00:31:46]produce_requested_data [00:31:46]requested_item fm.sale.total is exist - process it [00:31:46]SAM_PROTO_GetFMData [00:31:46]wFMCommunicate request_size=4 [00:31:46]MH_SAM_APDU [00:31:46]CAPDU: 80 13 03 00 [00:31:46]Write to MH i2c: E2 08 00 2D 64 80 13 03 00 00 00 00 00 10 [00:31:46]Write i2c OK [00:31:46]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 FD 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 FD 00 2D 64 00 C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 B0 [00:31:47]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 [00:31:47]wFMCommunicate OK [00:31:47]wFMCommunicate request_size=4 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 17 00 00 [00:31:47]Write to MH i2c: E2 08 00 2E 64 80 17 00 00 00 00 00 00 12 [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 FD 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 FD 00 2E 64 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 53 [00:31:47]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:31:47]wFMCommunicate OK [00:31:47]wFMCommunicate request_size=4 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 17 00 00 [00:31:47]Write to MH i2c: E2 08 00 2F 64 80 17 00 00 00 00 00 00 13 [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 FD 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 FD 00 2F 64 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 25 [00:31:47]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:31:47]wFMCommunicate OK [00:31:47]wFMCommunicate request_size=4 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 17 00 00 [00:31:47]Write to MH i2c: E2 08 00 30 64 80 17 00 00 00 00 00 00 14 [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:48]Read from MH i2c: E2 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 FD 00 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 FD 00 30 64 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 A0 [00:31:48]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:31:48]wFMCommunicate OK [00:31:48]wFMCommunicate request_size=4 [00:31:48]MH_SAM_APDU [00:31:48]CAPDU: 80 17 00 00 [00:31:48]Write to MH i2c: E2 08 00 31 64 80 17 00 00 00 00 00 00 15 [00:31:48]Write i2c OK [00:31:48]MH_I2C_Read... [00:31:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:31:48]Read from MH i2c: E2 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 E2 00 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 E2 00 31 64 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F3 [00:31:48]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:48]wFMCommunicate OK [00:31:48]SAM_PROTO_GetFMData done [00:31:48]requested_item fm.sale_refund.total is exist - process it [00:31:48]requested_item fm.buy.total is exist - process it [00:31:48]requested_item shift.sale.total is exist - process it [00:31:48]SAM_PROTO_GetShiftData [00:31:48]wFMCommunicate request_size=4 [00:31:48]MH_SAM_APDU [00:31:48]CAPDU: 80 13 02 00 [00:31:48]Write to MH i2c: E2 08 00 32 64 80 13 02 00 00 00 00 00 14 [00:31:48]Write i2c OK [00:31:48]MH_I2C_Read... [00:31:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:31:48]Read from MH i2c: E2 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 FD 00 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 FD 00 32 64 00 B9 04 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 B4 [00:31:48]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:31:48]wFMCommunicate OK [00:31:48]wFMCommunicate request_size=4 [00:31:48]MH_SAM_APDU [00:31:48]CAPDU: 80 17 00 00 [00:31:48]Write to MH i2c: E2 08 00 33 64 80 17 00 00 00 00 00 00 17 [00:31:48]Write i2c OK [00:31:48]MH_I2C_Read... [00:31:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:49]Read from MH i2c: E2 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 FD 00 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 FD 00 33 64 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 AA [00:31:49]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:31:49]wFMCommunicate OK [00:31:49]wFMCommunicate request_size=4 [00:31:49]MH_SAM_APDU [00:31:49]CAPDU: 80 17 00 00 [00:31:49]Write to MH i2c: E2 08 00 34 64 80 17 00 00 00 00 00 00 18 [00:31:49]Write i2c OK [00:31:49]MH_I2C_Read... [00:31:49]OFD Sender: No OFD packet to send [00:31:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:49]Read from MH i2c: E2 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 FD 00 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 FD 00 34 64 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 40 [00:31:49]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:31:49]wFMCommunicate OK [00:31:49]wFMCommunicate request_size=4 [00:31:49]MH_SAM_APDU [00:31:49]CAPDU: 80 17 00 00 [00:31:49]Write to MH i2c: E2 08 00 35 64 80 17 00 00 00 00 00 00 19 [00:31:49]Write i2c OK [00:31:49]MH_I2C_Read... [00:31:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:49]Read from MH i2c: E2 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 FD 00 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 FD 00 35 64 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 91 [00:31:49]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:31:49]wFMCommunicate OK [00:31:49]wFMCommunicate request_size=4 [00:31:49]MH_SAM_APDU [00:31:49]CAPDU: 80 17 00 00 [00:31:49]Write to MH i2c: E2 08 00 36 64 80 17 00 00 00 00 00 00 1A [00:31:49]Write i2c OK [00:31:49]MH_I2C_Read... [00:31:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:31:50]Read from MH i2c: E2 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 D6 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 D6 00 36 64 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:31:50]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:50]wFMCommunicate OK [00:31:50]SAM_PROTO_GetShiftData done [00:31:50]requested_item shift.sale.total_cash is exist - process it [00:31:50]requested_item shift.sale_refund.total is exist - process it [00:31:50]requested_item shift.sale_refund.total_cash is exist - process it [00:31:50]requested_item shift.buy.total is exist - process it [00:31:50]requested_item shift.buy.total_cash is exist - process it [00:31:50]produce_requested_data done [00:31:50]produce_requested_data return {"fm.sale.total":31395816.66,"fm.sale_refund.total":562030.00,"fm.buy.total":0.00,"shift.sale.total":115071.97,"shift.sale.total_cash":101213.00,"shift.sale_refund.total":3408.00,"shift.sale_refund.total_cash":3408.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:31:50]process_action_free get_value [00:31:50]json_value_free [00:31:50]json_value_free done [00:31:50]process_json_proto returns [00:31:50]Send response to host [00:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31395816.66,"fm.sale_refund.total":562030.00,"fm.buy.total":0.00,"shift.sale.total":115071.97,"shift.sale.total_cash":101213.00,"shift.sale_refund.total":3408.00,"shift.sale_refund.total_cash":3408.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:31:50]free response buf [00:31:50]execute_script done [00:31:50]execute_script returns [00:31:50]free content buf [00:31:50]Sock 10.Close socket [00:31:50]Sock 10.Thread stoped [00:31:50]accept exits with 7 [00:31:50]New connection [00:31:50]New thread 3066641764 created [00:31:50]Thread 3066785124 joined [00:31:50]Waiting for new connection... [00:31:50] Sock 7.Parse request [00:31:50]Sock 7.Check first char [00:31:50]Sock 7.First char is OK [00:31:50]request: POST /json_proto HTTP/1.0 [00:31:50]Method: POST [00:31:50]URL: /json_proto [00:31:50]Method is POST - this is cgi request [00:31:50]url: /json_proto [00:31:50]query_string will be loaded in cgi processing [00:31:50]execute_cgi json_proto POST (null) [00:31:50]execute_cgi path=json_proto method=POST [00:31:50]POST find Content-Length [00:31:50]Host: 172.17.49.132:8080 [00:31:50]Content-Length: 331 [00:31:50]Content-Type: application/json [00:31:50] [00:31:50]POST finish read [00:31:50]Found Content-Length = 331 [00:31: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:31:50]execute_script... [00:31: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:31:50]POST & json_proto [00:31:50]process_json_proto [00:31:50]json parsed OK: [00:31:50]protocol is kg_v1.0 [00:31:50]action value=get_value [00:31:50]process_action get_value [00:31:50]cmd_get_value [00:31:50]process_action get_value done [00:31:50]requested_data is exist [00:31:50]produce_requested_data [00:31:50]requested_item fm.sale.total is exist - process it [00:31:50]SAM_PROTO_GetFMData [00:31:50]wFMCommunicate request_size=4 [00:31:50]MH_SAM_APDU [00:31:50]CAPDU: 80 13 03 00 [00:31:50]Write to MH i2c: E2 08 00 37 64 80 13 03 00 00 00 00 00 1A [00:31:50]Write i2c OK [00:31:50]MH_I2C_Read... [00:31:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:50]Read from MH i2c: E2 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 FD 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 FD 00 37 64 00 C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 BA [00:31:50]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 [00:31:51]wFMCommunicate OK [00:31:51]wFMCommunicate request_size=4 [00:31:51]MH_SAM_APDU [00:31:51]CAPDU: 80 17 00 00 [00:31:51]Write to MH i2c: E2 08 00 38 64 80 17 00 00 00 00 00 00 1C [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:51]Read from MH i2c: E2 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 FD 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 FD 00 38 64 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 5D [00:31:51]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:31:51]wFMCommunicate OK [00:31:51]wFMCommunicate request_size=4 [00:31:51]MH_SAM_APDU [00:31:51]CAPDU: 80 17 00 00 [00:31:51]Write to MH i2c: E2 08 00 39 64 80 17 00 00 00 00 00 00 1D [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:51]Read from MH i2c: E2 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 FD 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 FD 00 39 64 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 2F [00:31:51]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:31:51]wFMCommunicate OK [00:31:51]wFMCommunicate request_size=4 [00:31:51]MH_SAM_APDU [00:31:51]CAPDU: 80 17 00 00 [00:31:51]Write to MH i2c: E2 08 00 3A 64 80 17 00 00 00 00 00 00 1E [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:52]Read from MH i2c: E2 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 FD 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 FD 00 3A 64 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 AA [00:31:52]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:31:52]wFMCommunicate OK [00:31:52]wFMCommunicate request_size=4 [00:31:52]MH_SAM_APDU [00:31:52]CAPDU: 80 17 00 00 [00:31:52]Write to MH i2c: E2 08 00 3B 64 80 17 00 00 00 00 00 00 1F [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:31:52]Read from MH i2c: E2 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 E2 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 E2 00 3B 64 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FD [00:31:52]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:52]wFMCommunicate OK [00:31:52]SAM_PROTO_GetFMData done [00:31:52]requested_item fm.sale_refund.total is exist - process it [00:31:52]requested_item fm.buy.total is exist - process it [00:31:52]requested_item shift.sale.total is exist - process it [00:31:52]SAM_PROTO_GetShiftData [00:31:52]wFMCommunicate request_size=4 [00:31:52]MH_SAM_APDU [00:31:52]CAPDU: 80 13 02 00 [00:31:52]Write to MH i2c: E2 08 00 3C 64 80 13 02 00 00 00 00 00 1E [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:31:53]Read from MH i2c: E2 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 FD 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 FD 00 3C 64 00 B9 04 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 BE [00:31:53]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:31:53]wFMCommunicate OK [00:31:53]wFMCommunicate request_size=4 [00:31:53]MH_SAM_APDU [00:31:53]CAPDU: 80 17 00 00 [00:31:53]Write to MH i2c: E2 08 00 3D 64 80 17 00 00 00 00 00 00 21 [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:53]Read from MH i2c: E2 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 FD 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 FD 00 3D 64 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 B4 [00:31:53]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:31:53]wFMCommunicate OK [00:31:53]wFMCommunicate request_size=4 [00:31:53]MH_SAM_APDU [00:31:53]CAPDU: 80 17 00 00 [00:31:53]Write to MH i2c: E2 08 00 3E 64 80 17 00 00 00 00 00 00 22 [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:54]Read from MH i2c: E2 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 FD 00 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 FD 00 3E 64 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 4A [00:31:54]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:31:54]wFMCommunicate OK [00:31:54]wFMCommunicate request_size=4 [00:31:54]MH_SAM_APDU [00:31:54]CAPDU: 80 17 00 00 [00:31:54]Write to MH i2c: E2 08 00 3F 64 80 17 00 00 00 00 00 00 23 [00:31:54]Write i2c OK [00:31:54]MH_I2C_Read... [00:31:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:54]Read from MH i2c: E2 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 FD 00 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 FD 00 3F 64 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 9B [00:31:54]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 OFD Sender: No OFD packet to send [00:31:54]03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:31:54]wFMCommunicate OK [00:31:54]wFMCommunicate request_size=4 [00:31:54]MH_SAM_APDU [00:31:54]CAPDU: 80 17 00 00 [00:31:54]Write to MH i2c: E2 08 00 40 64 80 17 00 00 00 00 00 00 24 [00:31:54]Write i2c OK [00:31:54]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 D6 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 D6 00 40 64 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 06 [00:31:55]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:55]wFMCommunicate OK [00:31:55]SAM_PROTO_GetShiftData done [00:31:55]requested_item shift.sale.total_cash is exist - process it [00:31:55]requested_item shift.sale_refund.total is exist - process it [00:31:55]requested_item shift.sale_refund.total_cash is exist - process it [00:31:55]requested_item shift.buy.total is exist - process it [00:31:55]requested_item shift.buy.total_cash is exist - process it [00:31:55]produce_requested_data done [00:31:55]produce_requested_data return {"fm.sale.total":31395816.66,"fm.sale_refund.total":562030.00,"fm.buy.total":0.00,"shift.sale.total":115071.97,"shift.sale.total_cash":101213.00,"shift.sale_refund.total":3408.00,"shift.sale_refund.total_cash":3408.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:31:55]process_action_free get_value [00:31:55]json_value_free [00:31:55]json_value_free done [00:31:55]process_json_proto returns [00:31:55]Send response to host [00:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31395816.66,"fm.sale_refund.total":562030.00,"fm.buy.total":0.00,"shift.sale.total":115071.97,"shift.sale.total_cash":101213.00,"shift.sale_refund.total":3408.00,"shift.sale_refund.total_cash":3408.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:31:55]free response buf [00:31:55]execute_script done [00:31:55]execute_script returns [00:31:55]free content buf [00:31:55]Sock 7.Close socket [00:31:55]Sock 7.Thread stoped [00:31:55]accept exits with 9 [00:31:55]New connection [00:31:55]New thread 3066785124 created [00:31:55]Thread 3066641764 joined [00:31:55]Waiting for new connection... [00:31:55] Sock 9.Parse request [00:31:55]Sock 9.Check first char [00:31:55]Sock 9.First char is OK [00:31:55]request: POST /json_proto HTTP/1.0 [00:31:55]Method: POST [00:31:55]URL: /json_proto [00:31:55]Method is POST - this is cgi request [00:31:55]url: /json_proto [00:31:55]query_string will be loaded in cgi processing [00:31:55]execute_cgi json_proto POST (null) [00:31:55]execute_cgi path=json_proto method=POST [00:31:55]POST find Content-Length [00:31:55]Host: 172.17.49.132:8080 [00:31:55]Content-Length: 259 [00:31:55]Content-Type: application/json [00:31:55] [00:31:55]POST finish read [00:31:55]Found Content-Length = 259 [00:31:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0435\u043A\u0436\u0430\u043D\u043E\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:55]execute_script... [00:31:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0435\u043A\u0436\u0430\u043D\u043E\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:55]POST & json_proto [00:31:55]process_json_proto [00:31:55]json parsed OK: [00:31:55]protocol is kg_v1.0 [00:31:55]action value=close_shift [00:31:55]process_action close_shift [00:31:55]cmd_close_shift [00:31:55]MH_GetDate [00:31:55]Write to MH i2c: F0 00 00 41 64 94 [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: F0 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: F0 09 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: F0 09 00 41 64 00 07 E3 A6 66 E7 4B C0 64 E9 [00:31:55]GetLastDocTimeStamp 1722213071 [00:31:55]current date 1722213127 [00:31:55]FM_GetShiftState [00:31:55]SAM_PROTO_GetShiftState [00:31:55]wFMCommunicate request_size=4 [00:31:55]MH_SAM_APDU [00:31:55]CAPDU: 80 13 01 00 [00:31:55]Write to MH i2c: E2 08 00 42 64 80 13 01 00 00 00 00 00 23 [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 0E 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 0E 00 42 64 00 09 00 01 93 93 A5 66 00 00 00 00 90 00 60 [00:31:55]RAPDU: 09 00 01 93 93 A5 66 00 00 00 00 90 00 [00:31:55]wFMCommunicate OK [00:31:55]SAM_PROTO_GetShiftState done [00:31:55]FM_GetShiftState done [00:31:55]KKMCreateCloseShiftDocument [00:31:55]Load OK [00:31:55]Malloc new data [00:31:55]MH_GetDate [00:31:55]Write to MH i2c: F0 00 00 43 64 96 [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: F0 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: F0 09 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: F0 09 00 43 64 00 07 E3 A6 66 E7 4B C0 64 EB [00:31:55]Malloc new data [00:31:55]Malloc new data [00:31:55]Malloc new data [00:31:55]Malloc new data [00:31:55]KKMCreateCloseShiftDocument OK [00:31:55]KKMSetCloseShiftData OK [00:31:55]ProcessDocumentItem done err = 0, tmpTLVsize=70 [00:31:55]tlvbuf is 00C85670 [00:31:55]KKMLoadAndSignCloseShiftData [00:31:55]SAM_PROTO_ProcessDocument [00:31:55]wFMCommunicate request_size=9 [00:31:55]MH_SAM_APDU [00:31:55]CAPDU: 80 15 01 00 04 05 00 46 00 [00:31:55]Write to MH i2c: E2 0C 00 44 64 80 15 01 00 04 00 05 00 46 00 00 00 7A [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 44 64 00 90 00 1C [00:31:55]RAPDU: 90 00 [00:31:55]wFMCommunicate OK [00:31:55]wFMCommunicate request_size=23 [00:31:55]MH_SAM_APDU [00:31:55]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:31:55]Write to MH i2c: E2 1A 00 45 64 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 1E [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 45 64 00 90 00 1D [00:31:55]RAPDU: 90 00 [00:31:55]wFMCommunicate OK [00:31:55]wFMCommunicate request_size=29 [00:31:55]MH_SAM_APDU [00:31:55]CAPDU: 80 15 02 00 18 FD 03 14 00 D0 91 D0 B5 D0 BA D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E [00:31:55]Write to MH i2c: E2 20 00 46 64 80 15 02 00 18 00 FD 03 14 00 D0 91 D0 B5 D0 BA D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 00 00 2F [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 46 64 00 90 00 1E [00:31:55]RAPDU: 90 00 [00:31:55]wFMCommunicate OK [00:31:55]wFMCommunicate request_size=13 [00:31:55]MH_SAM_APDU [00:31:55]CAPDU: 80 15 02 00 08 F4 03 04 00 07 E3 A6 66 [00:31:55]Write to MH i2c: E2 10 00 47 64 80 15 02 00 08 00 F4 03 04 00 07 E3 A6 66 00 00 2C [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 47 64 00 90 00 1F [00:31:55]RAPDU: 90 00 [00:31:55]wFMCommunicate OK [00:31:55]wFMCommunicate request_size=25 [00:31:55]MH_SAM_APDU [00:31:55]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 [00:31:55]Write to MH i2c: E2 1C 00 48 64 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 00 00 91 [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 03 00 48 64 00 90 00 20 [00:31:55]RAPDU: 90 00 [00:31:55]wFMCommunicate OK [00:31:55]wFMCommunicate request_size=4 [00:31:55]MH_SAM_APDU [00:31:55]CAPDU: 80 15 03 00 [00:31:55]Write to MH i2c: E2 08 00 49 64 80 15 03 00 00 00 00 00 2E [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:56]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:31:56]Read from MH i2c: E2 [00:31:56]MH_I2C_Read... [00:31:56]Read from MH i2c: E2 FD 00 [00:31:56]MH_I2C_Read... [00:31:56]Read from MH i2c: E2 FD 00 49 64 00 FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AF 0E 01 00 0E 04 04 00 AD 01 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 90 00 5A [00:31:56]RAPDU: FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AF 0E 01 00 0E 04 04 00 AD 01 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 90 00 [00:31:56]wFMCommunicate OK [00:31:56]SAM_PROTO_ProcessDocument answer len = 1276 [00:31:56]SAM_PROTO_ProcessDocument remain to read = 1028 [00:31:56]wFMCommunicate request_size=4 [00:31:56]MH_SAM_APDU [00:31:56]CAPDU: 80 17 00 00 [00:31:56]Write to MH i2c: E2 08 00 4A 64 80 17 00 00 00 00 00 00 2E [00:31:56]Write i2c OK [00:31:56]MH_I2C_Read... [00:31:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:56]Read from MH i2c: E2 [00:31:56]MH_I2C_Read... [00:31:56]Read from MH i2c: E2 FD 00 [00:31:56]MH_I2C_Read... [00:31:57]Read from MH i2c: E2 FD 00 4A 64 00 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D 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 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 47 [00:31:57]RAPDU: 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D 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 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:57]wFMCommunicate OK [00:31:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:31:57]SAM_PROTO_ProcessDocument remain to read = 778 [00:31:57]wFMCommunicate request_size=4 [00:31:57]MH_SAM_APDU [00:31:57]CAPDU: 80 17 00 00 [00:31:57]Write to MH i2c: E2 08 00 4B 64 80 17 00 00 00 00 00 00 2F [00:31:57]Write i2c OK [00:31:57]MH_I2C_Read... [00:31:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:57]Read from MH i2c: E2 [00:31:57]MH_I2C_Read... [00:31:57]Read from MH i2c: E2 FD 00 [00:31:57]MH_I2C_Read... [00:31:57]Read from MH i2c: E2 FD 00 4B 64 00 04 F7 03 00 00 EF 03 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 90 00 95 [00:31:57]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:31:57]wFMCommunicate OK [00:31:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:31:57]SAM_PROTO_ProcessDocument remain to read = 528 [00:31:57]wFMCommunicate request_size=4 [00:31:57]MH_SAM_APDU [00:31:57]CAPDU: 80 17 00 00 [00:31:57]Write to MH i2c: E2 08 00 4C 64 80 17 00 00 00 00 00 00 30 [00:31:57]Write i2c OK [00:31:57]MH_I2C_Read... [00:31:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:57]Read from MH i2c: E2 [00:31:57]MH_I2C_Read... [00:31:57]Read from MH i2c: E2 FD 00 [00:31:57]MH_I2C_Read... [00:31:57]Read from MH i2c: E2 FD 00 4C 64 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [00:31:58]RAPDU: 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:58]wFMCommunicate OK [00:31:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:31:58]SAM_PROTO_ProcessDocument remain to read = 278 [00:31:58]wFMCommunicate request_size=4 [00:31:58]MH_SAM_APDU [00:31:58]CAPDU: 80 17 00 00 [00:31:58]Write to MH i2c: E2 08 00 4D 64 80 17 00 00 00 00 00 00 31 [00:31:58]Write i2c OK [00:31:58]MH_I2C_Read... [00:31:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:58]Read from MH i2c: E2 [00:31:58]MH_I2C_Read... [00:31:58]Read from MH i2c: E2 FD 00 [00:31:58]MH_I2C_Read... [00:31:58]Read from MH i2c: E2 FD 00 4D 64 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 6B [00:31:58]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:31:58]wFMCommunicate OK [00:31:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:31:58]SAM_PROTO_ProcessDocument remain to read = 28 [00:31:58]wFMCommunicate request_size=4 [00:31:58]MH_SAM_APDU [00:31:58]CAPDU: 80 17 00 00 [00:31:58]Write to MH i2c: E2 08 00 4E 64 80 17 00 00 00 00 00 00 32 [00:31:58]Write i2c OK [00:31:58]MH_I2C_Read... [00:31:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 28! [00:31:58]Read from MH i2c: E2 [00:31:58]MH_I2C_Read... [00:31:58]Read from MH i2c: E2 1F 00 [00:31:58]MH_I2C_Read... [00:31:58]Read from MH i2c: E2 1F 00 4E 64 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 E7 8E CD 9A 45 88 90 00 1E [00:31:58]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 E7 8E CD 9A 45 88 90 00 [00:31:58]wFMCommunicate OK [00:31:58]SAM_PROTO_ProcessDocument received (without SW) 28 bytes [00:31:58]SAM_PROTO_ProcessDocument done [00:31:58]1209 (1) - 1.0 - номер версии ФФД [00:31:58]1041 (16) - 0000000000874949 - номер ФМ [00:31:58]1040 (4) - 69295 - номер ФД [00:31:58]1038 (4) - 429 - номер смены [00:31:58]1118 (4) - 177 - количество кассовых чеков за смену [00:31:58]1111 (4) - 179 - общее количество ФД за смену [00:31:58]1194 (1205) - счетчики итогов смены [00:31:58] 1134 (4) - 177 - количество чеков со всеми признаками расчетов [00:31:58] 1129 (156) - счетчики операций «приход» [00:31:58] 1135 (4) - 174 - количество чеков по признаку расчетов [00:31:58] 1201 (3) - 115071.97 - общая итоговая сумма в чеках [00:31:58] 1136 (3) - 101213.00 - итоговая сумма в чеках наличными [00:31:58] 1138 (3) - 13858.97 - итоговая сумма в чеках безналичными [00:31:58] 1024 (123) - суммы налогов [00:31:58] 1006 (9) - суммы НДС [00:31:58] 1010 (1) - 0% - код ставки НДС [00:31:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:58] 1006 (12) - суммы НДС [00:31:58] 1010 (1) - 12% - код ставки НДС [00:31:58] 1011 (3) - 12221.08 - сумма НДС по ставке [00:31:58] 1007 (9) - суммы НСП [00:31:58] 1014 (1) - 0% - код ставки НСП [00:31:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:58] 1007 (12) - суммы НСП [00:31:58] 1014 (1) - 1% - код ставки НСП [00:31:58] 1015 (3) - 1018.27 - сумма НСП по ставке [00:31:58] 1007 (9) - суммы НСП [00:31:58] 1014 (1) - 2% - код ставки НСП [00:31:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:58] 1007 (9) - суммы НСП [00:31:58] 1014 (1) - 3% - код ставки НСП [00:31:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:58] 1007 (9) - суммы НСП [00:31:58] 1014 (1) - 5% - код ставки НСП [00:31:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:58] 1007 (9) - суммы НСП [00:31:58] 1014 (1) - 0,50% - код ставки НСП [00:31:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:58] 1007 (9) - суммы НСП [00:31:58] 1014 (1) - 1,50% - код ставки НСП [00:31:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:58] 1130 (151) - счетчики операций «возврат прихода» [00:31:58] 1135 (4) - 3 - количество чеков по признаку расчетов [00:31:58] 1201 (3) - 3408.00 - общая итоговая сумма в чеках [00:31:58] 1136 (3) - 3408.00 - итоговая сумма в чеках наличными [00:31:58] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:58] 1024 (121) - суммы налогов [00:31:58] 1006 (9) - суммы НДС [00:31:58] 1010 (1) - 0% - код ставки НДС [00:31:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:58] 1006 (11) - суммы НДС [00:31:58] 1010 (1) - 12% - код ставки НДС [00:31:58] 1011 (2) - 361.98 - сумма НДС по ставке [00:31:58] 1007 (9) - суммы НСП [00:31:58] 1014 (1) - 0% - код ставки НСП [00:31:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:58] 1007 (11) - суммы НСП [00:31:58] 1014 (1) - 1% - код ставки НСП [00:31:58] 1015 (2) - 30.17 - сумма НСП по ставке [00:31:58] 1007 (9) - суммы НСП [00:31:58] 1014 (1) - 2% - код ставки НСП [00:31:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:58] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 3% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 5% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 0,50% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 1,50% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1131 (141) - счетчики операций «расход» [00:31:59] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:59] 1024 (117) - суммы налогов [00:31:59] 1006 (9) - суммы НДС [00:31:59] 1010 (1) - 0% - код ставки НДС [00:31:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:59] 1006 (9) - суммы НДС [00:31:59] 1010 (1) - 12% - код ставки НДС [00:31:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 0% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 1% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 2% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 3% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 5% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 0,50% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 1,50% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1132 (141) - счетчики операций «возврат расхода» [00:31:59] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:59] 1024 (117) - суммы налогов [00:31:59] 1006 (9) - суммы НДС [00:31:59] 1010 (1) - 0% - код ставки НДС [00:31:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:59] 1006 (9) - суммы НДС [00:31:59] 1010 (1) - 12% - код ставки НДС [00:31:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 0% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 1% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 2% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 3% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 5% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 0,50% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1007 (9) - суммы НСП [00:31:59] 1014 (1) - 1,50% - код ставки НСП [00:31:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:59] 1133 (588) - - счетчики коррекции - не используются [00:31:59]1077 (6) - 254600520811912 - ФПД [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1209 (04B9) [00:31:59]Malloc new data [00:31:59]Processing tag 1041 (0411) [00:31:59]Processing tag 1040 (0410) [00:31:59]Malloc new data [00:31:59]Processing tag 1038 (040E) [00:31:59]Malloc new data [00:31:59]Processing tag 1118 (045E) [00:31:59]Malloc new data [00:31:59]Processing tag 1111 (0457) [00:31:59]Malloc new data [00:31:59]Processing tag 1194 (04AA) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1134 (046E) [00:31:59]Malloc new data [00:31:59]Processing tag 1129 (0469) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1135 (046F) [00:31:59]Malloc new data [00:31:59]Processing tag 1201 (04B1) [00:31:59]Malloc new data [00:31:59]Processing tag 1136 (0470) [00:31:59]Malloc new data [00:31:59]Processing tag 1138 (0472) [00:31:59]Malloc new data [00:31:59]Processing tag 1024 (0400) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1006 (03EE) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1010 (03F2) [00:31:59]Malloc new data [00:31:59]Processing tag 1011 (03F3) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1006 (03EE) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1010 (03F2) [00:31:59]Malloc new data [00:31:59]Processing tag 1011 (03F3) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]SetTLVBufToDocument err=0 [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1130 (046A) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1135 (046F) [00:31:59]Malloc new data [00:31:59]Processing tag 1201 (04B1) [00:31:59]Malloc new data [00:31:59]Processing tag 1136 (0470) [00:31:59]Malloc new data [00:31:59]Processing tag 1138 (0472) [00:31:59]Malloc new data [00:31:59]Processing tag 1024 (0400) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1006 (03EE) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1010 (03F2) [00:31:59]Malloc new data [00:31:59]Processing tag 1011 (03F3) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1006 (03EE) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1010 (03F2) [00:31:59]Malloc new data [00:31:59]Processing tag 1011 (03F3) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]SetTLVBufToDocument err=0 [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1131 (046B) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1135 (046F) [00:31:59]Malloc new data [00:31:59]Processing tag 1201 (04B1) [00:31:59]Malloc new data [00:31:59]Processing tag 1136 (0470) [00:31:59]Malloc new data [00:31:59]Processing tag 1138 (0472) [00:31:59]Malloc new data [00:31:59]Processing tag 1024 (0400) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1006 (03EE) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1010 (03F2) [00:31:59]Malloc new data [00:31:59]Processing tag 1011 (03F3) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1006 (03EE) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1010 (03F2) [00:31:59]Malloc new data [00:31:59]Processing tag 1011 (03F3) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]SetTLVBufToDocument err=0 [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1132 (046C) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1135 (046F) [00:31:59]Malloc new data [00:31:59]Processing tag 1201 (04B1) [00:31:59]Malloc new data [00:31:59]Processing tag 1136 (0470) [00:31:59]Malloc new data [00:31:59]Processing tag 1138 (0472) [00:31:59]Malloc new data [00:31:59]Processing tag 1024 (0400) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1006 (03EE) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1010 (03F2) [00:31:59]Malloc new data [00:31:59]Processing tag 1011 (03F3) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1006 (03EE) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1010 (03F2) [00:31:59]Malloc new data [00:31:59]Processing tag 1011 (03F3) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:31:59]SetTLVBufToDocument err=0 [00:31:59]Processing tag 1007 (03EF) [00:31:59]Load OK [00:31:59]SetTLVBufToDocument [00:31:59]Processing tag 1014 (03F6) [00:31:59]Malloc new data [00:31:59]Processing tag 1015 (03F7) [00:31:59]Malloc new data [00:32:00]SetTLVBufToDocument err=0 [00:32:00]Processing tag 1007 (03EF) [00:32:00]Load OK [00:32:00]SetTLVBufToDocument [00:32:00]Processing tag 1014 (03F6) [00:32:00]Malloc new data [00:32:00]Processing tag 1015 (03F7) [00:32:00]Malloc new data [00:32:00]SetTLVBufToDocument err=0 [00:32:00]Processing tag 1007 (03EF) [00:32:00]Load OK [00:32:00]SetTLVBufToDocument [00:32:00]Processing tag 1014 (03F6) [00:32:00]Malloc new data [00:32:00]Processing tag 1015 (03F7) [00:32:00]Malloc new data [00:32:00]SetTLVBufToDocument err=0 [00:32:00]Processing tag 1007 (03EF) [00:32:00]Load OK [00:32:00]SetTLVBufToDocument [00:32:00]Processing tag 1014 (03F6) [00:32:00]Malloc new data [00:32:00]Processing tag 1015 (03F7) [00:32:00]Malloc new data [00:32:00]SetTLVBufToDocument err=0 [00:32:00]Processing tag 1007 (03EF) [00:32:00]Load OK [00:32:00]SetTLVBufToDocument [00:32:00]Processing tag 1014 (03F6) [00:32:00]Malloc new data [00:32:00]Processing tag 1015 (03F7) [00:32:00]Malloc new data [00:32:00]SetTLVBufToDocument err=0 [00:32:00]SetTLVBufToDocument err=0 [00:32:00]SetTLVBufToDocument err=0 [00:32:00]Processing tag 1133 (046D) [00:32:00]Malloc new data [00:32:00]SetTLVBufToDocument err=0 [00:32:00]Processing tag 1077 (0435) [00:32:00]Malloc new data [00:32:00]SetTLVBufToDocument err=0 [00:32:00]Malloc new data [00:32:00]SAM_PROTO_GetFMData [00:32:00]wFMCommunicate request_size=4 [00:32:00]MH_SAM_APDU [00:32:00]CAPDU: 80 13 03 00 [00:32:00]Write to MH i2c: E2 08 00 4F 64 80 13 03 00 OFD Sender: No OFD packet to send [00:32:00]00 00 00 00 32 [00:32:00]Write i2c OK [00:32:00]MH_I2C_Read... [00:32:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:32:00]Read from MH i2c: E2 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: E2 FD 00 [00:32:00]MH_I2C_Read... [00:32:00]Read from MH i2c: E2 FD 00 4F 64 00 C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 D2 [00:32:00]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 [00:32:00]wFMCommunicate OK [00:32:00]wFMCommunicate request_size=4 [00:32:00]MH_SAM_APDU [00:32:00]CAPDU: 80 17 00 00 [00:32:00]Write to MH i2c: E2 08 00 50 64 80 17 00 00 00 00 00 00 34 [00:32:00]Write i2c OK [00:32:00]MH_I2C_Read... [00:32:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:01]Read from MH i2c: E2 [00:32:01]MH_I2C_Read... [00:32:01]Read from MH i2c: E2 FD 00 [00:32:01]MH_I2C_Read... [00:32:01]Read from MH i2c: E2 FD 00 50 64 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 75 [00:32:01]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:32:01]wFMCommunicate OK [00:32:01]wFMCommunicate request_size=4 [00:32:01]MH_SAM_APDU [00:32:01]CAPDU: 80 17 00 00 [00:32:01]Write to MH i2c: E2 08 00 51 64 80 17 00 00 00 00 00 00 35 [00:32:01]Write i2c OK [00:32:01]MH_I2C_Read... [00:32:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:01]Read from MH i2c: E2 [00:32:01]MH_I2C_Read... [00:32:01]Read from MH i2c: E2 FD 00 [00:32:01]MH_I2C_Read... [00:32:01]Read from MH i2c: E2 FD 00 51 64 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 47 [00:32:01]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:32:02]wFMCommunicate OK [00:32:02]wFMCommunicate request_size=4 [00:32:02]MH_SAM_APDU [00:32:02]CAPDU: 80 17 00 00 [00:32:02]Write to MH i2c: E2 08 00 52 64 80 17 00 00 00 00 00 00 36 [00:32:02]Write i2c OK [00:32:02]MH_I2C_Read... [00:32:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:02]Read from MH i2c: E2 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 FD 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 FD 00 52 64 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C2 [00:32:02]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:32:02]wFMCommunicate OK [00:32:02]wFMCommunicate request_size=4 [00:32:02]MH_SAM_APDU [00:32:02]CAPDU: 80 17 00 00 [00:32:02]Write to MH i2c: E2 08 00 53 64 80 17 00 00 00 00 00 00 37 [00:32:02]Write i2c OK [00:32:02]MH_I2C_Read... [00:32:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:32:02]Read from MH i2c: E2 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 E2 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 E2 00 53 64 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 15 [00:32:03]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:03]wFMCommunicate OK [00:32:03]SAM_PROTO_GetFMData done [00:32:03]Malloc new data [00:32:03]Malloc new data [00:32:03]Malloc new data [00:32:03]Malloc new data [00:32:03]KKMLoadAndSignCloseShiftData err=0 [00:32:03]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Бекжанов А. 29.07.2024 00:32 Смена: 429 РНМ: 0000000000092638 ЗНМ: 0300000049 СНО: Общий режим Чеков за смену: 177 ФД за смену: 179 Всего чеков: 177 ИТОГИ ПРИХОД Чеков: 174 Общий итог: 115071.97 Итого наличными: 101213.00 Итого безнал.: 13858.97 НДС 0% : 0.00 НДС 12% : 12221.08 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1018.27 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 3408.00 Итого наличными: 3408.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 361.98 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 30.17 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 97805.00 НС Приход: 31395816.66 НС Возвр.Прихода: 562030.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 69295 ФМ: 0000000000874949 ФПД: 254600520811912 [00:32:03]StoreToDocumentArchive [00:32:03]shift 429 fd 69295 [00:32:03]save to /storage/0429/doc_00069295 [00:32:03]save last doc name /storage/0429/doc_00069295 to /storage/kkm_last_doc_name [00:32:03]save OK [00:32:03]Clear old archive folders... [00:32:03]Remove dir /storage/0266 [00:32:03]opendir ok [00:32:03]file . [00:32:03]file .. [00:32:03]file doc_1722213079 [00:32:03]remove file /storage/0266/doc_1722213079 [00:32:03]remove dir /storage/0266 [00:32:03]NVStorageSaveData kkm_registers [00:32:03]File name is /storage/kkm_registers [00:32:03]Write 24 bytes [00:32:03]NVStorageSaveData done [00:32:03]NVStorageSaveData kkm_registers [00:32:03]File name is /storage/kkm_registers [00:32:03]Write 24 bytes [00:32:03]NVStorageSaveData done [00:32:03]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [00:32:03]tlvbuf is 00A5ABD0 [00:32:03]SAM_PROTO_ClearQueue [00:32:03]wFMCommunicate request_size=4 [00:32:03]MH_SAM_APDU [00:32:03]CAPDU: 80 09 00 00 [00:32:03]Write to MH i2c: E2 08 00 54 64 80 09 00 00 00 00 00 00 2A [00:32:03]Write i2c OK [00:32:03]MH_I2C_Read... [00:32:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:32:03]Read from MH i2c: E2 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 03 00 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 03 00 54 64 00 90 00 2C [00:32:03]RAPDU: 90 00 [00:32:03]wFMCommunicate OK [00:32:03]SAM_PROTO_ClearQueue done [00:32:03]KKMCreateOFDPacket [00:32:03]OFDProtocolAddRootSTLVToBuf [00:32:03]FM_MakeSignedData [00:32:03]FM_MakeSignedData [00:32:03]SAM_PROTO_SignData [00:32:03]wFMCommunicate request_size=4 [00:32:03]MH_SAM_APDU [00:32:03]CAPDU: 80 0D 01 02 [00:32:03]Write to MH i2c: E2 08 00 55 64 80 0D 01 02 00 00 00 00 32 [00:32:03]Write i2c OK [00:32:03]MH_I2C_Read... [00:32:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:32:03]Read from MH i2c: E2 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 03 00 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 03 00 55 64 00 90 00 2D [00:32:03]RAPDU: 90 00 [00:32:03]wFMCommunicate OK [00:32:03]wFMCommunicate request_size=255 [00:32:03]MH_SAM_APDU [00:32:03]CAPDU: 80 0D 02 02 FA 05 00 69 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 14 00 D0 91 D0 B5 D0 BA D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E F4 03 04 00 07 E3 A6 66 0E 04 04 00 AD 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 AA 04 DC 04 6E 04 04 00 B1 00 00 00 69 04 A3 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 DC A5 12 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:32:03]Write to MH i2c: E2 02 01 56 64 80 0D 02 02 FA 00 05 00 69 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 14 00 D0 91 D0 B5 D0 BA D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E F4 03 04 00 07 E3 A6 66 0E 04 04 00 AD 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 AA 04 DC 04 6E 04 04 00 B1 00 00 00 69 04 A3 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 DC A5 12 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 E5 [00:32:03]Write i2c OK [00:32:03]MH_I2C_Read... [00:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:03]Read from MH i2c: E2 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 03 00 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 03 00 56 64 00 90 00 2E [00:32:03]RAPDU: 90 00 [00:32:03]wFMCommunicate OK [00:32:03]wFMCommunicate request_size=255 [00:32:03]MH_SAM_APDU [00:32:03]CAPDU: 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C3 8D 01 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D 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 C9 0B 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 [00:32:04]Write to MH i2c: E2 02 01 57 64 80 0D 02 02 FA 00 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C3 8D 01 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D 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 C9 0B 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 00 00 BD [00:32:04]Write i2c OK [00:32:04]MH_I2C_Read... [00:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:04]Read from MH i2c: E2 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 03 00 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 03 00 57 64 00 90 00 2F [00:32:04]RAPDU: 90 00 [00:32:04]wFMCommunicate OK [00:32:04]wFMCommunicate request_size=255 [00:32:04]MH_SAM_APDU [00:32:04]CAPDU: 80 0D 02 02 FA 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 [00:32:04]Write to MH i2c: E2 02 01 58 64 80 0D 02 02 FA 00 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 00 00 FC [00:32:04]Write i2c OK [00:32:04]MH_I2C_Read... [00:32:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:05]Read from MH i2c: E2 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: E2 03 00 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: E2 03 00 58 64 00 90 00 30 [00:32:05]RAPDU: 90 00 [00:32:05]wFMCommunicate OK [00:32:05]wFMCommunicate request_size=255 [00:32:05]MH_SAM_APDU [00:32:05]CAPDU: 80 0D 02 02 FA 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 [00:32:05]Write to MH i2c: E2 02 01 59 64 80 0D 02 02 FA 00 03 01 00 01 F7 03 01 00 00 6D 04 4C OFD Sender: No OFD packet to send [00:32:05]02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 06 [00:32:05]Write i2c OK [00:32:05]MH_I2C_Read... [00:32:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:05]Read from MH i2c: E2 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: E2 03 00 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: E2 03 00 59 64 00 90 00 31 [00:32:05]RAPDU: 90 00 [00:32:05]wFMCommunicate OK [00:32:05]wFMCommunicate request_size=255 [00:32:05]MH_SAM_APDU [00:32:05]CAPDU: 80 0D 02 02 FA F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 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:32:06]Write to MH i2c: E2 02 01 5A 64 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 C7 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 5A 64 00 90 00 32 [00:32:06]RAPDU: 90 00 [00:32:06]wFMCommunicate OK [00:32:06]wFMCommunicate request_size=144 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 0D 02 02 8B 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AF 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 35 04 06 00 E7 8E CD 9A 45 88 [00:32:06]Write to MH i2c: E2 93 00 5B 64 80 0D 02 02 8B 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AF 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 35 04 06 00 E7 8E CD 9A 45 88 00 00 E6 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 5B 64 00 90 00 33 [00:32:06]RAPDU: 90 00 [00:32:06]wFMCommunicate OK [00:32:06]wFMCommunicate request_size=4 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 0D 03 02 [00:32:06]Write to MH i2c: E2 08 00 5C 64 80 0D 03 02 00 00 00 00 3B [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 0B 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 0B 00 5C 64 00 7A 6B 00 3C 97 06 89 91 90 00 14 [00:32:06]RAPDU: 7A 6B 00 3C 97 06 89 91 90 00 [00:32:07]wFMCommunicate OK [00:32:07]SAM_PROTO_SignData done [00:32:07]FM_MakeSignedData done [00:32:07]CreateOFDProtocolMessage [00:32:07]wFMCommunicate request_size=4 [00:32:07]MH_SAM_APDU [00:32:07]CAPDU: 80 11 00 00 [00:32:07]Write to MH i2c: E2 08 00 5D 64 80 11 00 00 00 00 00 00 3B [00:32:07]Write i2c OK [00:32:07]MH_I2C_Read... [00:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:07]Read from MH i2c: E2 [00:32:07]MH_I2C_Read... [00:32:07]Read from MH i2c: E2 17 00 [00:32:07]MH_I2C_Read... [00:32:07]Read from MH i2c: E2 17 00 5D 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 97 [00:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:32:07]wFMCommunicate OK [00:32:07]CreateOFDProtocolMessage done [00:32:07]OFDSenderStorePacket 69295 [00:32:07]StoreOFDPacket docnum=69295 [00:32:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 7D 05 00 00 8D EA 75 05 BD 3C 5A 05 01 00 05 00 69 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 14 00 D0 91 D0 B5 D0 BA D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E F4 03 04 00 07 E3 A6 66 0E 04 04 00 AD 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 AA 04 DC 04 6E 04 04 00 B1 00 00 00 69 04 A3 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 DC A5 12 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C3 8D 01 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D 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 C9 0B 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 AF 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 35 04 06 00 E7 8E CD 9A 45 88 7A 6B 00 3C 97 06 89 91 [00:32:07]CheckFolder [00:32:07]dirname=/storage/ofd_packets [00:32:07]CheckFolder done [00:32:07]ProducePacketName [00:32:07]name=ofd_packets/00069295 [00:32:07]NVStorageSaveData ofd_packets/00069295 [00:32:07]File name is /storage/ofd_packets/00069295 [00:32:07]Write 1435 bytes [00:32:07]NVStorageSaveData done [00:32:07]OFDSenderStorePacket done [00:32:07]KKMCreateOFDPacket done [00:32:07]NVStorageSaveData kkm_last_timestamp [00:32:07]File name is /storage/kkm_last_timestamp [00:32:07]Write 4 bytes [00:32:07]NVStorageSaveData done [00:32:07]ExternCall_PrintAddStr [00:32:07]wPrintStart [00:32:07]Write to MH i2c: 01 00 00 5E 64 C2 [00:32:07]OFD Sender: Processing packet 69295 [packets to send 19, broken 18] [00:32:07]ProducePacketName [00:32:07]name=ofd_packets/00069295 [00:32:07]OFD Sender: To server: pG, [00:32:07]CommunicateWithHost lk.salyk.kg:30040 [00:32:07]ConnectInit lk.salyk.kg [00:32:07]Write i2c OK [00:32:07]MH_I2C_Read... [00:32:07]Read from MH i2c: 01 [00:32:07]MH_I2C_Read... [00:32:07]Read from MH i2c: 01 07 00 [00:32:07]MH_I2C_Read... [00:32:07]Read from MH i2c: 01 07 00 5E 64 00 00 00 00 00 FF 0F D7 [00:32:07]RasterBufferAndPrint [00:32:07]line Отчет о закрытии смены [00:32:07]line ФФД: 1.0 [00:32:07]line ИНН: 02508201610067 [00:32:07]line Кассир: Бекжанов А. [00:32:07]line 29.07.2024 00:32 [00:32:07]line Смена: 429 [00:32:07]line РНМ: 0000000000092638 [00:32:07]line ЗНМ: 0300000049 [00:32:07]line СНО: Общий режим [00:32:07]line Чеков за смену: 177 [00:32:07]line ФД за смену: 179 [00:32:07]line Всего чеков: 177 [00:32:07]line ИТОГИ ПРИХОД [00:32:07]line Чеков: 174 [00:32:07]line Общий итог: 115071.97 [00:32:07]line Итого наличными: 101213.00 [00:32:07]line Итого безнал.: 13858.97 [00:32:07]line НДС 0% : 0.00 [00:32:07]line НДС 12% : 12221.08 [00:32:07]line НСП 0% : 0.00 [00:32:07]line НСП 1,50% : 0.00 [00:32:07]line НСП 0,50% : 0.00 [00:32:07]line НСП 5% : 0.00 [00:32:07]line НСП 3% : 0.00 [00:32:07]line НСП 2% : 0.00 [00:32:07]line НСП 1% : 1018.27 [00:32:07]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:32:07]line Чеков: 3 [00:32:07]line Общий итог: 3408.00 [00:32:07]line Итого наличными: 3408.00 [00:32:07]line Итого безнал.: 0.00 [00:32:07]line НДС 0% : 0.00 [00:32:07]line НДС 12% : 361.98 [00:32:07]line НСП 0% : 0.00 [00:32:07]line НСП 1,50% : 0.00 [00:32:07]line НСП 0,50% : 0.00 [00:32:07]line НСП 5% : 0.00 [00:32:07]line НСП 3% : 0.00 [00:32:07]line НСП 2% : 0.00 [00:32:07]line НСП 1% : 30.17 [00:32:07]line ИТОГИ РАСХОД [00:32:07]line Чеков: 0 [00:32:07]line Общий итог: 0.00 [00:32:07]line Итого наличными: 0.00 [00:32:07]line Итого безнал.: 0.00 [00:32:07]line НДС 0% : 0.00 [00:32:07]line НДС 12% : 0.00 [00:32:07]line НСП 0% : 0.00 [00:32:07]line НСП 1,50% : 0.00 [00:32:07]line НСП 0,50% : 0.00 [00:32:07]line НСП 5% : 0.00 [00:32:07]line НСП 3% : 0.00 [00:32:07]line НСП 2% : 0.00 [00:32:07]line НСП 1% : 0.00 [00:32:07]line ИТОГИ ВОЗВРАТ РАСХОДА [00:32:07]line Чеков: 0 [00:32:07]line Общий итог: 0.00 [00:32:07]line Итого наличными: 0.00 [00:32:07]line Итого безнал.: 0.00 [00:32:07]line НДС 0% : 0.00 [00:32:07]line НДС 12% : 0.00 [00:32:07]line НСП 0% : 0.00 [00:32:07]line НСП 1,50% : 0.00 [00:32:07]line НСП 0,50% : 0.00 [00:32:07]line НСП 5% : 0.00 [00:32:07]line НСП 3% : 0.00 [00:32:07]line НСП 2% : 0.00 [00:32:07]line НСП 1% : 0.00 [00:32:07]line Сумма внесений: 0.00 [00:32:07]line Сумма выплат: 0.00 [00:32:07]line Нал. в кассе: 97805.00 [00:32:07]line НС Приход: 31395816.66 [00:32:07]line НС Возвр.Прихода: 562030.00 [00:32:07]line НС Расход: 0.00 [00:32:07]line НС Возвр.Расхода: 0.00 [00:32:07]line ФД: 69295 [00:32:07]line ФМ: 0000000000874949 [00:32:07]line ФПД: 254600520811912 [00:32:07]written 0, free lines is 4095 [00:32:07]Connected sock=11 [00:32: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 39 34 39 7D 05 00 00 8D EA 75 05 BD 3C 5A 05 01 00 05 00 69 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 14 00 D0 91 D0 B5 D0 BA D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E F4 03 04 00 07 E3 A6 66 0E 04 04 00 AD 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 AA 04 DC 04 6E 04 04 00 B1 00 00 00 69 04 A3 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 DC A5 12 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C3 8D 01 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D 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 C9 0B 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 Write to MH i2c: 00 01 F6 00 03 00 01 AE 00 64 02 12 F7 [00:32:08]03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 Write i2c OK [00:32:08]03 MH_I2C_Read... [00:32:08]01 Read from MH i2c: 00 01 [00:32:08]00 MH_I2C_Read... [00:32:08]F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 Read from MH i2c: 09 01 00 07 F6 00 03 [00:32:08]01 MH_I2C_Read... [00:32:08]00 Read from MH i2c: 02 01 F7 07 03 00 00 AE 00 64 EF 00 03 00 09 00 00 00 F6 00 03 15 01 0B 00 39 03 [00:32:08]F7 RasterBufferAndPrint [00:32:08]03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 line [00:32:08]00 line [00:32:08]EF line [00:32:08]03 line [00:32:08]09 line [00:32:08]00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 written 0, free lines is 3200 [00:32:08]00 00 10 04 04 00 AF 0E 01 00 11 04 10 00 30 30 30 30 MH_Cut [00:32:08]30 Write to MH i2c: 30 D1 30 01 00 30 B5 30 64 30 01 38 EB 37 [00:32:08]34 39 34 39 35 04 06 00 E7 8E CD 9A 45 88 7A 6B 00 3C 97 Write i2c OK [00:32:08]06 MH_I2C_Read... [00:32:08]89 Read from MH i2c: 91 D1 [00:32:08] [00:32:08]MH_I2C_Read... [00:32:08]Read from MH i2c: D1 01 00 [00:32:08]MH_I2C_Read... [00:32:08]Read from MH i2c: D1 01 00 B5 64 00 EA [00:32:08]Write to MH i2c: 01 00 00 B6 64 1A [00:32:08]Write i2c OK [00:32:08]MH_I2C_Read... [00:32:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 A8 F2 47 00 F2 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 AF 0E 01 00 F4 03 04 00 80 89 A6 66 B6 04 01 00 00 8B 30 A9 5C D0 76 7C 60 [00:32:08]CommunicateWithHost err = 0 [00:32:08]CheckOFDResponse [00:32:08]1017 (14) - 77093643461234 [00:32:08]1041 (16) - 0000000000874949 [00:32:08]1040 (4) - 69295 [00:32:08]1012 (4) - 28.07.2024 18:10 [00:32:08]1206 (1) - 0 [00:32:08]OFD Sender: Remove packet 69295 [00:32:08]ProducePacketName [00:32:08]name=ofd_packets/00069295 [00:32:08]NVStorageDeleteData [00:32:09]*** Cut start [00:32:09]*** Partial cut [00:32:09]*** CUTSNS_PIN = 1 [00:32:09]*** CUTSNS_PIN = 0 [00:32:09]OFD Sender: No OFD packet to send [00:32:09]*** Brake cut motor [00:32:09]Read from MH i2c: 01 [00:32:09]MH_I2C_Read... [00:32:09]*** Stop cut motor [00:32:09]*** Cut end [00:32:09]Read from MH i2c: 01 07 00 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: 01 07 00 B6 64 00 00 00 00 00 FF 0F 2F [00:32:09]process_action close_shift done [00:32:09]requested_data is exist [00:32:09]produce_requested_data [00:32:09]requested_item fd.num is exist - process it [00:32:09]SAM_PROTO_GetFieldsCounters [00:32:09]wFMCommunicate request_size=4 [00:32:09]MH_SAM_APDU [00:32:09]CAPDU: 80 13 00 00 [00:32:10]Write to MH i2c: E2 08 00 B7 64 80 13 00 00 00 00 00 00 97 [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:10]Read from MH i2c: E2 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 62 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 62 00 B7 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AF 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [00:32: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AF 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:10]wFMCommunicate OK [00:32:10]SAM_PROTO_GetFieldsCounters done [00:32:10]requested_item shift.num is exist - process it [00:32:10]requested_item shift.opened is exist - process it [00:32:10]req_shift_opened [00:32:10]FM_GetShiftState [00:32:10]SAM_PROTO_GetShiftState [00:32:10]wFMCommunicate request_size=4 [00:32:10]MH_SAM_APDU [00:32:10]CAPDU: 80 13 01 00 [00:32:10]Write to MH i2c: E2 08 00 B8 64 80 13 01 00 00 00 00 00 99 [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:10]Read from MH i2c: E2 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 0E 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 0E 00 B8 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A4 [00:32:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:10]wFMCommunicate OK [00:32:10]SAM_PROTO_GetShiftState done [00:32:10]FM_GetShiftState done [00:32:10]req_shift_opened done [00:32:10]requested_item shift.open_date is exist - process it [00:32:10]req_shift_open_date [00:32:10]FM_GetShiftState [00:32:10]SAM_PROTO_GetShiftState [00:32:10]wFMCommunicate request_size=4 [00:32:10]MH_SAM_APDU [00:32:10]CAPDU: 80 13 01 00 [00:32:10]Write to MH i2c: E2 08 00 B9 64 80 13 01 00 00 00 00 00 9A [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:10]Read from MH i2c: E2 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 0E 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 0E 00 B9 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A5 [00:32:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:10]wFMCommunicate OK [00:32:10]SAM_PROTO_GetShiftState done [00:32:10]FM_GetShiftState done [00:32:10]req_shift_open_date done [00:32:10]produce_requested_data done [00:32:10]produce_requested_data return {"fd.num":69295,"shift.num":429,"shift.opened":0,"shift.open_date":0} [00:32:10]process_action_free close_shift [00:32:10]json_value_free [00:32:10]json_value_free done [00:32:10]process_json_proto returns [00:32:10]Send response to host [00:32:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":69295,"shift.num":429,"shift.opened":0,"shift.open_date":0}}} [00:32:10]free response buf [00:32:10]execute_script done [00:32:10]execute_script returns [00:32:10]free content buf [00:32:10]Sock 9.Close socket [00:32:10]Sock 9.Thread stoped [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:07]accept exits with 7 [00:39:07]New connection [00:39:07]New thread 3066641764 created [00:39:07]Thread 3066785124 joined [00:39:07]Waiting for new connection... [00:39:07] Sock 7.Parse request [00:39:07]Sock 7.Check first char [00:39:07]Sock 7.First char is OK [00:39:07]request: POST /json_proto HTTP/1.0 [00:39:07]Method: POST [00:39:07]URL: /json_proto [00:39:07]Method is POST - this is cgi request [00:39:07]url: /json_proto [00:39:07]query_string will be loaded in cgi processing [00:39:07]execute_cgi json_proto POST (null) [00:39:07]execute_cgi path=json_proto method=POST [00:39:07]POST find Content-Length [00:39:07]Host: 172.17.49.132:8080 [00:39:07]Content-Length: 215 [00:39:07]Content-Type: application/json [00:39:07] [00:39:07]POST finish read [00:39:07]Found Content-Length = 215 [00:39:07]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:07]execute_script... [00:39:07]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:07]POST & json_proto [00:39:07]process_json_proto [00:39:07]json parsed OK: [00:39:07]protocol is kg_v1.0 [00:39:07]action value=get_value [00:39:07]process_action get_value [00:39:07]cmd_get_value [00:39:07]process_action get_value done [00:39:07]requested_data is exist [00:39:07]produce_requested_data [00:39:07]requested_item kkm.sn is exist - process it [00:39:07]requested_item kkm.ver is exist - process it [00:39:07]requested_item fm.sn is exist - process it [00:39:07]wFMCommunicate request_size=4 [00:39:07]MH_SAM_APDU [00:39:07]CAPDU: 80 11 00 00 [00:39:07]Write to MH i2c: E2 08 00 BA 64 80 11 00 00 00 00 00 00 98 [00:39:07]Write i2c OK [00:39:07]MH_I2C_Read... [00:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:07]Read from MH i2c: E2 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 17 00 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 17 00 BA 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F4 [00:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:39:07]wFMCommunicate OK [00:39:07]requested_item fd.num is exist - process it [00:39:07]SAM_PROTO_GetFieldsCounters [00:39:07]wFMCommunicate request_size=4 [00:39:07]MH_SAM_APDU [00:39:07]CAPDU: 80 13 00 00 [00:39:07]Write to MH i2c: E2 08 00 BB 64 80 13 00 00 00 00 00 00 9B [00:39:07]Write i2c OK [00:39:07]MH_I2C_Read... [00:39:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:07]Read from MH i2c: E2 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 62 00 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 62 00 BB 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AF 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [00:39: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 AF 0E 01 00 0E 04 04 00 AD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:39:07]wFMCommunicate OK [00:39:07]SAM_PROTO_GetFieldsCounters done [00:39:07]requested_item shift.num is exist - process it [00:39:07]requested_item shift.opened is exist - process it [00:39:07]req_shift_opened [00:39:07]FM_GetShiftState [00:39:07]SAM_PROTO_GetShiftState [00:39:07]wFMCommunicate request_size=4 [00:39:07]MH_SAM_APDU [00:39:07]CAPDU: 80 13 01 00 [00:39:07]Write to MH i2c: E2 08 00 BC 64 80 13 01 00 00 00 00 00 9D [00:39:07]Write i2c OK [00:39:07]MH_I2C_Read... [00:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:07]Read from MH i2c: E2 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 0E 00 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 0E 00 BC 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A8 [00:39:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:39:07]wFMCommunicate OK [00:39:07]SAM_PROTO_GetShiftState done [00:39:07]FM_GetShiftState done [00:39:07]req_shift_opened done [00:39:07]requested_item shift.open_date is exist - process it [00:39:07]req_shift_open_date [00:39:07]FM_GetShiftState [00:39:07]SAM_PROTO_GetShiftState [00:39:07]wFMCommunicate request_size=4 [00:39:07]MH_SAM_APDU [00:39:07]CAPDU: 80 13 01 00 [00:39:07]Write to MH i2c: E2 08 00 BD 64 80 13 01 00 00 00 00 00 9E [00:39:07]Write i2c OK [00:39:07]MH_I2C_Read... [00:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:07]Read from MH i2c: E2 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 0E 00 [00:39:07]MH_I2C_Read... [00:39:07]Read from MH i2c: E2 0E 00 BD 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A9 [00:39:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:39:07]wFMCommunicate OK [00:39:07]SAM_PROTO_GetShiftState done [00:39:07]FM_GetShiftState done [00:39:07]req_shift_open_date done [00:39:07]produce_requested_data done [00:39:07]produce_requested_data return {"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69295,"shift.num":429,"shift.opened":0,"shift.open_date":0} [00:39:07]process_action_free get_value [00:39:07]json_value_free [00:39:07]json_value_free done [00:39:07]process_json_proto returns [00:39:07]Send response to host [00:39:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69295,"shift.num":429,"shift.opened":0,"shift.open_date":0}}} [00:39:07]free response buf [00:39:07]execute_script done [00:39:07]execute_script returns [00:39:07]free content buf [00:39:07]Sock 7.Close socket [00:39:07]Sock 7.Thread stoped [00:39:07]accept exits with 9 [00:39:07]New connection [00:39:07]New thread 3066785124 created [00:39:07]Thread 3066641764 joined [00:39:07]Waiting for new connection... [00:39:07] Sock 9.Parse request [00:39:07]Sock 9.Check first char [00:39:07]Sock 9.First char is OK [00:39:07]request: POST /json_proto HTTP/1.0 [00:39:07]Method: POST [00:39:07]URL: /json_proto [00:39:07]Method is POST - this is cgi request [00:39:07]url: /json_proto [00:39:07]query_string will be loaded in cgi processing [00:39:07]execute_cgi json_proto POST (null) [00:39:07]execute_cgi path=json_proto method=POST [00:39:07]POST find Content-Length [00:39:07]Host: 172.17.49.132:8080 [00:39:07]Content-Length: 331 [00:39:07]Content-Type: application/json [00:39:07] [00:39:07]POST finish read [00:39:07]Found Content-Length = 331 [00:39:07]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:07]execute_script... [00:39:08]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:08]POST & json_proto [00:39:08]process_json_proto [00:39:08]json parsed OK: [00:39:08]protocol is kg_v1.0 [00:39:08]action value=get_value [00:39:08]process_action get_value [00:39:08]cmd_get_value [00:39:08]process_action get_value done [00:39:08]requested_data is exist [00:39:08]produce_requested_data [00:39:08]requested_item fm.sale.total is exist - process it [00:39:08]SAM_PROTO_GetFMData [00:39:08]wFMCommunicate request_size=4 [00:39:08]MH_SAM_APDU [00:39:08]CAPDU: 80 13 03 00 [00:39:08]Write to MH i2c: E2 08 00 BE 64 80 13 03 00 00 00 00 00 A1 [00:39:08]Write i2c OK [00:39:08]MH_I2C_Read... [00:39:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:39:08]Read from MH i2c: E2 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 FD 00 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 FD 00 BE 64 00 C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 41 [00:39:08]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 [00:39:08]wFMCommunicate OK [00:39:08]wFMCommunicate request_size=4 [00:39:08]MH_SAM_APDU [00:39:08]CAPDU: 80 17 00 00 [00:39:08]Write to MH i2c: E2 08 00 BF 64 80 17 00 00 00 00 00 00 A3 [00:39:08]Write i2c OK [00:39:08]MH_I2C_Read... [00:39:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:08]Read from MH i2c: E2 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 FD 00 [00:39:08]MH_I2C_Read... [00:39:08]Read from MH i2c: E2 FD 00 BF 64 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 E4 [00:39:08]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:39:08]wFMCommunicate OK [00:39:08]wFMCommunicate request_size=4 [00:39:08]MH_SAM_APDU [00:39:08]CAPDU: 80 17 00 00 [00:39:08]Write to MH i2c: E2 08 00 C0 64 80 17 00 00 00 00 00 00 A4 [00:39:08]Write i2c OK [00:39:08]MH_I2C_Read... [00:39:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:09]Read from MH i2c: E2 [00:39:09]MH_I2C_Read... [00:39:09]Read from MH i2c: E2 FD 00 [00:39:09]MH_I2C_Read... [00:39:09]Read from MH i2c: E2 FD 00 C0 64 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 B6 [00:39:09]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:39:09]wFMCommunicate OK [00:39:09]wFMCommunicate request_size=4 [00:39:09]MH_SAM_APDU [00:39:09]CAPDU: 80 17 00 00 [00:39:09]Write to MH i2c: E2 08 00 C1 64 80 17 00 00 00 00 00 00 A5 [00:39:09]Write i2c OK [00:39:09]MH_I2C_Read... [00:39:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:09]Read from MH i2c: E2 [00:39:09]MH_I2C_Read... [00:39:09]Read from MH i2c: E2 FD 00 [00:39:09]MH_I2C_Read... [00:39:09]Read from MH i2c: E2 FD 00 C1 64 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 31 [00:39:09]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:39:09]wFMCommunicate OK [00:39:09]wFMCommunicate request_size=4 [00:39:09]MH_SAM_APDU [00:39:09]CAPDU: 80 17 00 00 [00:39:09]Write to MH i2c: E2 08 00 C2 64 80 17 00 00 00 00 00 00 A6 [00:39:09]Write i2c OK [00:39:09]MH_I2C_Read... [00:39:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:39:09]Read from MH i2c: E2 [00:39:09]MH_I2C_Read... [00:39:09]Read from MH i2c: E2 E2 00 [00:39:09]MH_I2C_Read... [00:39:09]Read from MH i2c: E2 E2 00 C2 64 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 84 [00:39:09]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:39:09]wFMCommunicate OK [00:39:09]SAM_PROTO_GetFMData done [00:39:09]requested_item fm.sale_refund.total is exist - process it [00:39:09]requested_item fm.buy.total is exist - process it [00:39:09]requested_item shift.sale.total is exist - process it [00:39:09]SAM_PROTO_GetShiftData [00:39:09]wFMCommunicate request_size=4 [00:39:09]MH_SAM_APDU [00:39:09]CAPDU: 80 13 02 00 [00:39:09]Write to MH i2c: E2 08 00 C3 64 80 13 02 00 00 00 00 00 A5 [00:39:09]Write i2c OK [00:39:09]MH_I2C_Read... [00:39:09]OFD Sender: No OFD packet to send [00:39:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:39:10]Read from MH i2c: E2 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 FD 00 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 FD 00 C3 64 00 B9 04 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 45 [00:39:10]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 B1 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 FD 95 AF 70 04 03 00 54 70 9A 72 04 03 00 A9 25 15 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 DC A5 12 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 C3 8D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 40 33 05 70 04 03 00 40 33 05 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 66 8D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:39:10]wFMCommunicate OK [00:39:10]wFMCommunicate request_size=4 [00:39:10]MH_SAM_APDU [00:39:10]CAPDU: 80 17 00 00 [00:39:10]Write to MH i2c: E2 08 00 C4 64 80 17 00 00 00 00 00 00 A8 [00:39:10]Write i2c OK [00:39:10]MH_I2C_Read... [00:39:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:10]Read from MH i2c: E2 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 FD 00 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 FD 00 C4 64 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 3B [00:39:10]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:39:10]wFMCommunicate OK [00:39:10]wFMCommunicate request_size=4 [00:39:10]MH_SAM_APDU [00:39:10]CAPDU: 80 17 00 00 [00:39:10]Write to MH i2c: E2 08 00 C5 64 80 17 00 00 00 00 00 00 A9 [00:39:10]Write i2c OK [00:39:10]MH_I2C_Read... [00:39:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:10]Read from MH i2c: E2 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 FD 00 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 FD 00 C5 64 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 D1 [00:39:10]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:39:10]wFMCommunicate OK [00:39:10]wFMCommunicate request_size=4 [00:39:10]MH_SAM_APDU [00:39:10]CAPDU: 80 17 00 00 [00:39:10]Write to MH i2c: E2 08 00 C6 64 80 17 00 00 00 00 00 00 AA [00:39:10]Write i2c OK [00:39:10]MH_I2C_Read... [00:39:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:10]Read from MH i2c: E2 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 FD 00 [00:39:10]MH_I2C_Read... [00:39:10]Read from MH i2c: E2 FD 00 C6 64 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 22 [00:39:10]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:39:10]wFMCommunicate OK [00:39:10]wFMCommunicate request_size=4 [00:39:10]MH_SAM_APDU [00:39:10]CAPDU: 80 17 00 00 [00:39:10]Write to MH i2c: E2 08 00 C7 64 80 17 00 00 00 00 00 00 AB [00:39:10]Write i2c OK [00:39:10]MH_I2C_Read... [00:39:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:39:11]Read from MH i2c: E2 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 D6 00 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 D6 00 C7 64 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [00:39:11]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:39:11]wFMCommunicate OK [00:39:11]SAM_PROTO_GetShiftData done [00:39:11]requested_item shift.sale.total_cash is exist - process it [00:39:11]requested_item shift.sale_refund.total is exist - process it [00:39:11]requested_item shift.sale_refund.total_cash is exist - process it [00:39:11]requested_item shift.buy.total is exist - process it [00:39:11]requested_item shift.buy.total_cash is exist - process it [00:39:11]produce_requested_data done [00:39:11]produce_requested_data return {"fm.sale.total":31395816.66,"fm.sale_refund.total":562030.00,"fm.buy.total":0.00,"shift.sale.total":115071.97,"shift.sale.total_cash":101213.00,"shift.sale_refund.total":3408.00,"shift.sale_refund.total_cash":3408.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:39:11]process_action_free get_value [00:39:11]json_value_free [00:39:11]json_value_free done [00:39:11]process_json_proto returns [00:39:11]Send response to host [00:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31395816.66,"fm.sale_refund.total":562030.00,"fm.buy.total":0.00,"shift.sale.total":115071.97,"shift.sale.total_cash":101213.00,"shift.sale_refund.total":3408.00,"shift.sale_refund.total_cash":3408.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:39:11]free response buf [00:39:11]execute_script done [00:39:11]execute_script returns [00:39:11]free content buf [00:39:11]Sock 9.Close socket [00:39:11]Sock 9.Thread stoped [00:39:11]accept exits with 7 [00:39:11]New connection [00:39:11]New thread 3066641764 created [00:39:11]Thread 3066785124 joined [00:39:11]Waiting for new connection... [00:39:11] Sock 7.Parse request [00:39:11]Sock 7.Check first char [00:39:11]Sock 7.First char is OK [00:39:11]request: POST /json_proto HTTP/1.0 [00:39:11]Method: POST [00:39:11]URL: /json_proto [00:39:11]Method is POST - this is cgi request [00:39:11]url: /json_proto [00:39:11]query_string will be loaded in cgi processing [00:39:11]execute_cgi json_proto POST (null) [00:39:11]execute_cgi path=json_proto method=POST [00:39:11]POST find Content-Length [00:39:11]Host: 172.17.49.132:8080 [00:39:11]Content-Length: 270 [00:39:11]Content-Type: application/json [00:39:11] [00:39:11]POST finish read [00:39:11]Found Content-Length = 270 [00:39:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:11]execute_script... [00:39:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:11]POST & json_proto [00:39:11]process_json_proto [00:39:11]json parsed OK: [00:39:11]protocol is kg_v1.0 [00:39:11]action value=open_shift [00:39:11]process_action open_shift [00:39:11]cmd_open_shift [00:39:11]MH_GetDate [00:39:11]Write to MH i2c: F0 00 00 C8 64 1B [00:39:11]Write i2c OK [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: F0 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: F0 09 00 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: F0 09 00 C8 64 00 BB E4 A6 66 E7 4B C0 64 25 [00:39:11]GetLastDocTimeStamp 1722213127 [00:39:11]current date 1722213563 [00:39:11]FM_GetShiftState [00:39:11]SAM_PROTO_GetShiftState [00:39:11]wFMCommunicate request_size=4 [00:39:11]MH_SAM_APDU [00:39:11]CAPDU: 80 13 01 00 [00:39:11]Write to MH i2c: E2 08 00 C9 64 80 13 01 00 00 00 00 00 AA [00:39:11]Write i2c OK [00:39:11]MH_I2C_Read... [00:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:11]Read from MH i2c: E2 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 0E 00 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 0E 00 C9 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B5 [00:39:11]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:39:11]wFMCommunicate OK [00:39:11]SAM_PROTO_GetShiftState done [00:39:11]FM_GetShiftState done [00:39:11]KKMCreateOpenShiftDocument [00:39:11]Load OK [00:39:11]Malloc new data [00:39:11]MH_GetDate [00:39:11]Write to MH i2c: F0 00 00 CA 64 1D [00:39:11]Write i2c OK [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: F0 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: F0 09 00 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: F0 09 00 CA 64 00 BB E4 A6 66 E7 4B C0 64 27 [00:39:11]Malloc new data [00:39:11]KKMCreateOpenShiftDocument OK [00:39:11]KKMSetOpenShiftData OK [00:39:11]ProcessDocumentItem done err = 0, tmpTLVsize=204 [00:39:11]tlvbuf is 00BB4F50 [00:39:11]KKMLoadAndSignOpenShiftData [00:39:11]SAM_PROTO_ProcessDocument [00:39:11]wFMCommunicate request_size=9 [00:39:11]MH_SAM_APDU [00:39:11]CAPDU: 80 15 01 00 04 02 00 CC 00 [00:39:11]Write to MH i2c: E2 0C 00 CB 64 80 15 01 00 04 00 02 00 CC 00 00 00 84 [00:39:11]Write i2c OK [00:39:11]MH_I2C_Read... [00:39:11]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:39:11]Read from MH i2c: E2 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 CB 64 00 90 00 A3 [00:39:11]RAPDU: 90 00 [00:39:11]wFMCommunicate OK [00:39:11]wFMCommunicate request_size=23 [00:39:11]MH_SAM_APDU [00:39:11]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:11]Write to MH i2c: E2 1A 00 CC 64 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 A5 [00:39:11]Write i2c OK [00:39:11]MH_I2C_Read... [00:39:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:39:11]Read from MH i2c: E2 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 CC 64 00 90 00 A4 [00:39:11]RAPDU: 90 00 [00:39:11]wFMCommunicate OK [00:39:11]wFMCommunicate request_size=33 [00:39:11]MH_SAM_APDU [00:39:11]CAPDU: 80 15 02 00 1C FD 03 18 00 D0 9C D0 B0 D0 B4 D0 B0 D0 BC D0 B8 D0 BD D0 BE D0 B2 D0 B0 20 D0 91 2E [00:39:11]Write to MH i2c: E2 24 00 CD 64 80 15 02 00 1C 00 FD 03 18 00 D0 9C D0 B0 D0 B4 D0 B0 D0 BC D0 B8 D0 BD D0 BE D0 B2 D0 B0 20 D0 91 2E 00 00 D1 [00:39:11]Write i2c OK [00:39:11]MH_I2C_Read... [00:39:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:39:11]Read from MH i2c: E2 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 CD 64 00 90 00 A5 [00:39:11]RAPDU: 90 00 [00:39:11]wFMCommunicate OK [00:39:11]wFMCommunicate request_size=89 [00:39:11]MH_SAM_APDU [00:39:11]CAPDU: 80 15 02 00 54 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 2C 20 D1 83 D0 BB 2E 20 D0 92 D0 BE D1 81 D1 82 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 31 36 33 2C 20 33 39 2E 38 33 36 31 35 30 2C 20 36 39 2E 35 35 33 30 38 36 [00:39:11]Write to MH i2c: E2 5C 00 CE 64 80 15 02 00 54 00 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 2C 20 D1 83 D0 BB 2E 20 D0 92 D0 BE D1 81 D1 82 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 31 36 33 2C 20 33 39 2E 38 33 36 31 35 30 2C 20 36 39 2E 35 35 33 30 38 36 00 00 59 [00:39:11]Write i2c OK [00:39:11]MH_I2C_Read... [00:39:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:39:11]Read from MH i2c: E2 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 CE 64 00 90 00 A6 [00:39:11]RAPDU: 90 00 [00:39:11]wFMCommunicate OK [00:39:11]wFMCommunicate request_size=51 [00:39:11]MH_SAM_APDU [00:39:11]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 35 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:11]Write to MH i2c: E2 36 00 CF 64 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 35 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 5D [00:39:11]Write i2c OK [00:39:11]MH_I2C_Read... [00:39:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:39:11]Read from MH i2c: E2 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 CF 64 00 90 00 A7 [00:39:11]RAPDU: 90 00 [00:39:11]wFMCommunicate OK [00:39:11]wFMCommunicate request_size=13 [00:39:11]MH_SAM_APDU [00:39:11]CAPDU: 80 15 02 00 08 F4 03 04 00 BB E4 A6 66 [00:39:11]Write to MH i2c: E2 10 00 D0 64 80 15 02 00 08 00 F4 03 04 00 BB E4 A6 66 00 00 6A [00:39:11]Write i2c OK [00:39:11]MH_I2C_Read... [00:39:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:39:11]Read from MH i2c: E2 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 D0 64 00 90 00 A8 [00:39:11]RAPDU: 90 00 [00:39:11]wFMCommunicate OK [00:39:11]wFMCommunicate request_size=25 [00:39:11]MH_SAM_APDU [00:39:11]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 [00:39:11]Write to MH i2c: E2 1C 00 D1 64 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 00 00 1A [00:39:11]Write i2c OK [00:39:11]MH_I2C_Read... [00:39:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:39:11]Read from MH i2c: E2 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 [00:39:11]MH_I2C_Read... [00:39:11]Read from MH i2c: E2 03 00 D1 64 00 90 00 A9 [00:39:11]RAPDU: 90 00 [00:39:11]wFMCommunicate OK [00:39:11]wFMCommunicate request_size=4 [00:39:11]MH_SAM_APDU [00:39:11]CAPDU: 80 15 03 00 [00:39:11]Write to MH i2c: E2 08 00 D2 64 80 15 03 00 00 00 00 00 B7 [00:39:11]Write i2c OK [00:39:11]MH_I2C_Read... [00:39:12]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:39:12]Read from MH i2c: E2 [00:39:12]MH_I2C_Read... [00:39:12]Read from MH i2c: E2 38 00 [00:39:12]MH_I2C_Read... [00:39:12]Read from MH i2c: E2 38 00 D2 64 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 39 34 39 10 04 04 00 B0 0E 01 00 0E 04 04 00 AE 01 00 00 35 04 06 00 7E 10 6F 33 EF 0C 90 00 25 [00:39:12]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 39 34 39 10 04 04 00 B0 0E 01 00 0E 04 04 00 AE 01 00 00 35 04 06 00 7E 10 6F 33 EF 0C 90 00 [00:39:12]wFMCommunicate OK [00:39:12]SAM_PROTO_ProcessDocument answer len = 51 [00:39:12]SAM_PROTO_ProcessDocument done [00:39:12]SetTLVBufToDocument [00:39:12]Processing tag 1209 (04B9) [00:39:12]Malloc new data [00:39:12]Processing tag 1041 (0411) [00:39:12]Processing tag 1040 (0410) [00:39:12]Malloc new data [00:39:12]Processing tag 1038 (040E) [00:39:12]Malloc new data [00:39:12]Processing tag 1077 (0435) [00:39:12]Malloc new data [00:39:12]SetTLVBufToDocument err=0 [00:39:12]KKMLoadAndSignOpenShiftData store KKM data [00:39:12]KKMLoadAndSignOpenShiftData err=0 [00:39:12]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мадаминова Б. Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 Место: АЗС № 125 "Партнер Нефть" 29.07.2024 00:39 Смена: 430 РНМ: 0000000000092638 ЗНМ: 0300000049 ФД: 69296 ФМ: 0000000000874949 ФПД: 138609050251020 [00:39:12]StoreToDocumentArchive [00:39:12]shift 430 fd 69296 [00:39:12]Create dir for shift 0430 [00:39:12]save to /storage/0430/doc_00069296 [00:39:12]save last doc name /storage/0430/doc_00069296 to /storage/kkm_last_doc_name [00:39:12]save OK [00:39:12]Clear old archive folders... [00:39:12]Remove dir /storage/0429 [00:39:12]opendir ok [00:39:12]file . [00:39:12]file .. [00:39:12]file doc_00069117 [00:39:12]remove file /storage/0429/doc_00069117 [00:39:12]file doc_00069118 [00:39:12]remove file /storage/0429/doc_00069118 [00:39:12]file doc_00069119 [00:39:12]remove file /storage/0429/doc_00069119 [00:39:12]file doc_00069120 [00:39:12]remove file /storage/0429/doc_00069120 [00:39:12]file doc_00069121 [00:39:12]remove file /storage/0429/doc_00069121 [00:39:12]file doc_00069122 [00:39:12]remove file /storage/0429/doc_00069122 [00:39:12]file doc_00069123 [00:39:12]remove file /storage/0429/doc_00069123 [00:39:12]file doc_00069124 [00:39:12]remove file /storage/0429/doc_00069124 [00:39:12]file doc_00069125 [00:39:12]remove file /storage/0429/doc_00069125 [00:39:12]file doc_00069126 [00:39:12]remove file /storage/0429/doc_00069126 [00:39:12]file doc_00069127 [00:39:12]remove file /storage/0429/doc_00069127 [00:39:12]file doc_00069128 [00:39:12]remove file /storage/0429/doc_00069128 [00:39:12]file doc_00069129 [00:39:12]remove file /storage/0429/doc_00069129 [00:39:12]file doc_00069130 [00:39:12]remove file /storage/0429/doc_00069130 [00:39:12]file doc_00069131 [00:39:12]remove file /storage/0429/doc_00069131 [00:39:12]file doc_00069132 [00:39:12]remove file /storage/0429/doc_00069132 [00:39:12]file doc_00069133 [00:39:12]remove file /storage/0429/doc_00069133 [00:39:12]file doc_00069134 [00:39:12]remove file /storage/0429/doc_00069134 [00:39:12]file doc_00069135 [00:39:12]remove file /storage/0429/doc_00069135 [00:39:12]file doc_00069136 [00:39:12]remove file /storage/0429/doc_00069136 [00:39:12]file doc_00069137 [00:39:12]remove file /storage/0429/doc_00069137 [00:39:12]file doc_00069138 [00:39:12]remove file /storage/0429/doc_00069138 [00:39:12]file doc_00069139 [00:39:12]remove file /storage/0429/doc_00069139 [00:39:12]file doc_00069140 [00:39:12]remove file /storage/0429/doc_00069140 [00:39:12]file doc_00069141 [00:39:12]remove file /storage/0429/doc_00069141 [00:39:12]file doc_00069142 [00:39:12]remove file /storage/0429/doc_00069142 [00:39:12]file doc_00069143 [00:39:12]remove file /storage/0429/doc_00069143 [00:39:12]file doc_00069144 [00:39:12]remove file /storage/0429/doc_00069144 [00:39:12]file doc_00069145 [00:39:12]remove file /storage/0429/doc_00069145 [00:39:12]file doc_00069146 [00:39:12]remove file /storage/0429/doc_00069146 [00:39:12]file doc_00069147 [00:39:12]remove file /storage/0429/doc_00069147 [00:39:12]file doc_00069148 [00:39:12]remove file /storage/0429/doc_00069148 [00:39:12]file doc_00069149 [00:39:12]remove file /storage/0429/doc_00069149 [00:39:12]file doc_00069150 [00:39:12]remove file /storage/0429/doc_00069150 [00:39:12]file doc_00069151 [00:39:12]remove file /storage/0429/doc_00069151 [00:39:12]file doc_00069152 [00:39:12]remove file /storage/0429/doc_00069152 [00:39:12]file doc_00069153 [00:39:12]remove file /storage/0429/doc_00069153 [00:39:12]file doc_00069154 [00:39:12]remove file /storage/0429/doc_00069154 [00:39:12]file doc_00069155 [00:39:12]remove file /storage/0429/doc_00069155 [00:39:12]file doc_00069156 [00:39:12]remove file /storage/0429/doc_00069156 [00:39:12]file doc_00069157 [00:39:12]remove file /storage/0429/doc_00069157 [00:39:12]file doc_00069158 [00:39:12]remove file /storage/0429/doc_00069158 [00:39:12]file doc_00069159 [00:39:12]remove file /storage/0429/doc_00069159 [00:39:12]file doc_00069160 [00:39:12]remove file /storage/0429/doc_00069160 [00:39:12]file doc_00069161 [00:39:12]remove file /storage/0429/doc_00069161 [00:39:12]file doc_00069162 [00:39:12]remove file /storage/0429/doc_00069162 [00:39:12]file doc_00069163 [00:39:12]remove file /storage/0429/doc_00069163 [00:39:12]file doc_00069164 [00:39:12]remove file /storage/0429/doc_00069164 [00:39:12]file doc_00069165 [00:39:12]remove file /storage/0429/doc_00069165 [00:39:12]file doc_00069166 [00:39:12]remove file /storage/0429/doc_00069166 [00:39:12]file doc_00069167 [00:39:12]remove file /storage/0429/doc_00069167 [00:39:12]file doc_00069168 [00:39:12]remove file /storage/0429/doc_00069168 [00:39:12]file doc_00069169 [00:39:12]remove file /storage/0429/doc_00069169 [00:39:12]file doc_00069170 [00:39:12]remove file /storage/0429/doc_00069170 [00:39:12]file doc_00069171 [00:39:12]remove file /storage/0429/doc_00069171 [00:39:12]file doc_00069172 [00:39:12]remove file /storage/0429/doc_00069172 [00:39:12]file doc_00069173 [00:39:12]remove file /storage/0429/doc_00069173 [00:39:12]file doc_00069174 [00:39:12]remove file /storage/0429/doc_00069174 [00:39:12]file doc_00069175 [00:39:12]remove file /storage/0429/doc_00069175 [00:39:12]file doc_00069176 [00:39:12]remove file /storage/0429/doc_00069176 [00:39:12]file doc_00069177 [00:39:12]remove file /storage/0429/doc_00069177 [00:39:12]file doc_00069178 [00:39:12]remove file /storage/0429/doc_00069178 [00:39:12]file doc_00069179 [00:39:12]remove file /storage/0429/doc_00069179 [00:39:12]file doc_00069180 [00:39:12]remove file /storage/0429/doc_00069180 [00:39:12]file doc_00069181 [00:39:12]remove file /storage/0429/doc_00069181 [00:39:12]file doc_00069182 [00:39:12]remove file /storage/0429/doc_00069182 [00:39:12]file doc_00069183 [00:39:12]remove file /storage/0429/doc_00069183 [00:39:12]file doc_00069184 [00:39:12]remove file /storage/0429/doc_00069184 [00:39:12]file doc_00069185 [00:39:12]remove file /storage/0429/doc_00069185 [00:39:12]file doc_00069186 [00:39:12]remove file /storage/0429/doc_00069186 [00:39:12]file doc_00069187 [00:39:12]remove file /storage/0429/doc_00069187 [00:39:12]file doc_00069188 [00:39:12]remove file /storage/0429/doc_00069188 [00:39:12]file doc_00069189 [00:39:12]remove file /storage/0429/doc_00069189 [00:39:12]file doc_00069190 [00:39:12]remove file /storage/0429/doc_00069190 [00:39:12]file doc_00069191 [00:39:12]remove file /storage/0429/doc_00069191 [00:39:12]file doc_00069192 [00:39:12]remove file /storage/0429/doc_00069192 [00:39:12]file doc_00069193 [00:39:12]remove file /storage/0429/doc_00069193 [00:39:12]file doc_00069194 [00:39:12]remove file /storage/0429/doc_00069194 [00:39:12]file doc_00069195 [00:39:12]remove file /storage/0429/doc_00069195 [00:39:12]file doc_00069196 [00:39:12]remove file /storage/0429/doc_00069196 [00:39:12]file doc_00069197 [00:39:12]remove file /storage/0429/doc_00069197 [00:39:12]file doc_00069198 [00:39:12]remove file /storage/0429/doc_00069198 [00:39:12]file doc_00069199 [00:39:12]remove file /storage/0429/doc_00069199 [00:39:12]file doc_00069200 [00:39:12]remove file /storage/0429/doc_00069200 [00:39:12]file doc_00069201 [00:39:12]remove file /storage/0429/doc_00069201 [00:39:12]file doc_00069202 [00:39:12]remove file /storage/0429/doc_00069202 [00:39:12]file doc_00069203 [00:39:12]remove file /storage/0429/doc_00069203 [00:39:12]file doc_00069204 [00:39:12]remove file /storage/0429/doc_00069204 [00:39:12]file doc_00069205 [00:39:12]remove file /storage/0429/doc_00069205 [00:39:12]file doc_00069206 [00:39:12]remove file /storage/0429/doc_00069206 [00:39:12]file doc_00069207 [00:39:12]remove file /storage/0429/doc_00069207 [00:39:12]file doc_00069208 [00:39:12]remove file /storage/0429/doc_00069208 [00:39:12]file doc_00069209 [00:39:12]remove file /storage/0429/doc_00069209 [00:39:12]file doc_00069210 [00:39:12]remove file /storage/0429/doc_00069210 [00:39:12]file doc_00069211 [00:39:12]remove file /storage/0429/doc_00069211 [00:39:12]file doc_00069212 [00:39:12]remove file /storage/0429/doc_00069212 [00:39:12]file doc_00069213 [00:39:12]remove file /storage/0429/doc_00069213 [00:39:12]file doc_00069214 [00:39:12]remove file /storage/0429/doc_00069214 [00:39:12]file doc_00069215 [00:39:12]remove file /storage/0429/doc_00069215 [00:39:12]file doc_00069216 [00:39:12]remove file /storage/0429/doc_00069216 [00:39:12]file doc_00069217 [00:39:12]remove file /storage/0429/doc_00069217 [00:39:12]file doc_00069218 [00:39:12]remove file /storage/0429/doc_00069218 [00:39:12]file doc_00069219 [00:39:12]remove file /storage/0429/doc_00069219 [00:39:12]file doc_00069220 [00:39:12]remove file /storage/0429/doc_00069220 [00:39:12]file doc_00069221 [00:39:12]remove file /storage/0429/doc_00069221 [00:39:12]file doc_00069222 [00:39:12]remove file /storage/0429/doc_00069222 [00:39:12]file doc_00069223 [00:39:12]remove file /storage/0429/doc_00069223 [00:39:12]file doc_00069224 [00:39:12]remove file /storage/0429/doc_00069224 [00:39:12]file doc_00069225 [00:39:12]remove file /storage/0429/doc_00069225 [00:39:12]file doc_00069226 [00:39:12]remove file /storage/0429/doc_00069226 [00:39:12]file doc_00069227 [00:39:12]remove file /storage/0429/doc_00069227 [00:39:12]file doc_00069228 [00:39:12]remove file /storage/0429/doc_00069228 [00:39:12]file doc_00069229 [00:39:12]remove file /storage/0429/doc_00069229 [00:39:12]file doc_00069230 [00:39:12]remove file /storage/0429/doc_00069230 [00:39:12]file doc_00069231 [00:39:12]remove file /storage/0429/doc_00069231 [00:39:12]file doc_00069232 [00:39:12]remove file /storage/0429/doc_00069232 [00:39:12]file doc_00069233 [00:39:12]remove file /storage/0429/doc_00069233 [00:39:12]file doc_00069234 [00:39:12]remove file /storage/0429/doc_00069234 [00:39:12]file doc_00069235 [00:39:12]remove file /storage/0429/doc_00069235 [00:39:12]file doc_00069236 [00:39:12]remove file /storage/0429/doc_00069236 [00:39:12]file doc_00069237 [00:39:12]remove file /storage/0429/doc_00069237 [00:39:12]file doc_00069238 [00:39:12]remove file /storage/0429/doc_00069238 [00:39:12]file doc_00069239 [00:39:12]remove file /storage/0429/doc_00069239 [00:39:12]file doc_00069240 [00:39:12]remove file /storage/0429/doc_00069240 [00:39:12]file doc_00069241 [00:39:12]remove file /storage/0429/doc_00069241 [00:39:12]file doc_00069242 [00:39:12]remove file /storage/0429/doc_00069242 [00:39:12]file doc_00069243 [00:39:12]remove file /storage/0429/doc_00069243 [00:39:12]file doc_00069244 [00:39:12]remove file /storage/0429/doc_00069244 [00:39:12]file doc_00069245 [00:39:12]remove file /storage/0429/doc_00069245 [00:39:12]file doc_00069246 [00:39:12]remove file /storage/0429/doc_00069246 [00:39:12]file doc_00069247 [00:39:12]remove file /storage/0429/doc_00069247 [00:39:12]file doc_00069248 [00:39:12]remove file /storage/0429/doc_00069248 [00:39:12]file doc_00069249 [00:39:12]remove file /storage/0429/doc_00069249 [00:39:12]file doc_00069250 [00:39:12]remove file /storage/0429/doc_00069250 [00:39:12]file doc_00069251 [00:39:12]remove file /storage/0429/doc_00069251 [00:39:12]file doc_00069252 [00:39:12]remove file /storage/0429/doc_00069252 [00:39:12]file doc_00069253 [00:39:12]remove file /storage/0429/doc_00069253 [00:39:12]file doc_00069254 [00:39:12]remove file /storage/0429/doc_00069254 [00:39:12]file doc_00069255 [00:39:12]remove file /storage/0429/doc_00069255 [00:39:12]file doc_00069256 [00:39:12]remove file /storage/0429/doc_00069256 [00:39:12]file doc_00069257 [00:39:12]remove file /storage/0429/doc_00069257 [00:39:12]file doc_00069258 [00:39:12]remove file /storage/0429/doc_00069258 [00:39:12]file doc_00069259 [00:39:12]remove file /storage/0429/doc_00069259 [00:39:12]file doc_00069260 [00:39:12]remove file /storage/0429/doc_00069260 [00:39:13]file doc_00069261 [00:39:13]remove file /storage/0429/doc_00069261 [00:39:13]file doc_00069262 [00:39:13]remove file /storage/0429/doc_00069262 [00:39:13]file doc_00069263 [00:39:13]remove file /storage/0429/doc_00069263 [00:39:13]file doc_00069264 [00:39:13]remove file /storage/0429/doc_00069264 [00:39:13]file doc_00069265 [00:39:13]remove file /storage/0429/doc_00069265 [00:39:13]file doc_00069266 [00:39:13]remove file /storage/0429/doc_00069266 [00:39:13]file doc_00069267 [00:39:13]remove file /storage/0429/doc_00069267 [00:39:13]file doc_00069268 [00:39:13]remove file /storage/0429/doc_00069268 [00:39:13]file doc_00069269 [00:39:13]remove file /storage/0429/doc_00069269 [00:39:13]file doc_00069270 [00:39:13]remove file /storage/0429/doc_00069270 [00:39:13]file doc_00069271 [00:39:13]remove file /storage/0429/doc_00069271 [00:39:13]file doc_00069272 [00:39:13]remove file /storage/0429/doc_00069272 [00:39:13]file doc_00069273 [00:39:13]remove file /storage/0429/doc_00069273 [00:39:13]file doc_00069274 [00:39:13]remove file /storage/0429/doc_00069274 [00:39:13]file doc_00069275 [00:39:13]remove file /storage/0429/doc_00069275 [00:39:13]file doc_00069276 [00:39:13]remove file /storage/0429/doc_00069276 [00:39:13]file doc_00069277 [00:39:13]remove file /storage/0429/doc_00069277 [00:39:13]file doc_00069278 [00:39:13]remove file /storage/0429/doc_00069278 [00:39:13]file doc_00069279 [00:39:13]remove file /storage/0429/doc_00069279 [00:39:13]file doc_00069280 [00:39:13]remove file /storage/0429/doc_00069280 [00:39:13]file doc_00069281 [00:39:13]remove file /storage/0429/doc_00069281 [00:39:13]file doc_00069282 [00:39:13]remove file /storage/0429/doc_00069282 [00:39:13]file doc_00069283 [00:39:13]remove file /storage/0429/doc_00069283 [00:39:13]file doc_00069284 [00:39:13]remove file /storage/0429/doc_00069284 [00:39:13]file doc_00069285 [00:39:13]remove file /storage/0429/doc_00069285 [00:39:13]file doc_00069286 [00:39:13]remove file /storage/0429/doc_00069286 [00:39:13]file doc_00069287 [00:39:13]remove file /storage/0429/doc_00069287 [00:39:13]file doc_00069288 [00:39:13]remove file /storage/0429/doc_00069288 [00:39:13]file doc_00069289 [00:39:13]remove file /storage/0429/doc_00069289 [00:39:13]file doc_00069290 [00:39:13]remove file /storage/0429/doc_00069290 [00:39:13]file doc_00069291 [00:39:13]remove file /storage/0429/doc_00069291 [00:39:13]file doc_00069292 [00:39:13]remove file /storage/0429/doc_00069292 [00:39:13]file doc_00069293 [00:39:13]remove file /storage/0429/doc_00069293 [00:39:13]file doc_00069294 [00:39:13]remove file /storage/0429/doc_00069294 [00:39:13]file doc_00069295 [00:39:13]remove file /storage/0429/doc_00069295 [00:39:13]remove dir /storage/0429 [00:39:13]ProcessDocumentItem done err = 0, tmpTLVsize=255 [00:39:13]tlvbuf is 00A46BC0 [00:39:13]SAM_PROTO_ClearQueue [00:39:13]wFMCommunicate request_size=4 [00:39:13]MH_SAM_APDU [00:39:13]CAPDU: 80 09 00 00 [00:39:13]Write to MH i2c: E2 08 00 D3 64 80 09 00 00 00 00 00 00 A9 [00:39:13]Write i2c OK [00:39:13]MH_I2C_Read... [00:39:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:39:13]Read from MH i2c: E2 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 03 00 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 03 00 D3 64 00 90 00 AB [00:39:13]RAPDU: 90 00 [00:39:13]wFMCommunicate OK [00:39:13]SAM_PROTO_ClearQueue done [00:39:13]KKMCreateOFDPacket [00:39:13]OFDProtocolAddRootSTLVToBuf [00:39:13]FM_MakeSignedData [00:39:13]FM_MakeSignedData [00:39:13]SAM_PROTO_SignData [00:39:13]wFMCommunicate request_size=4 [00:39:13]MH_SAM_APDU [00:39:13]CAPDU: 80 0D 01 02 [00:39:13]Write to MH i2c: E2 08 00 D4 64 80 0D 01 02 00 00 00 00 B1 [00:39:13]Write i2c OK [00:39:13]MH_I2C_Read... [00:39:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:39:13]Read from MH i2c: E2 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 03 00 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 03 00 D4 64 00 90 00 AC [00:39:13]RAPDU: 90 00 [00:39:13]wFMCommunicate OK [00:39:13]wFMCommunicate request_size=255 [00:39:13]MH_SAM_APDU [00:39:13]CAPDU: 80 0D 02 02 FA 02 00 FF 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 18 00 D0 9C D0 B0 D0 B4 D0 B0 D0 BC D0 B8 D0 BD D0 BE D0 B2 D0 B0 20 D0 91 2E F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 2C 20 D1 83 D0 BB 2E 20 D0 92 D0 BE D1 81 D1 82 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 31 36 33 2C 20 33 39 2E 38 33 36 31 35 30 2C 20 36 39 2E 35 35 33 30 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 35 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 BB E4 A6 66 0E 04 04 00 AE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B0 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 35 [00:39:13]Write to MH i2c: E2 02 01 D5 64 80 0D 02 02 FA 00 02 00 FF 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 18 00 D0 9C D0 B0 D0 B4 D0 B0 D0 BC D0 B8 D0 BD D0 BE D0 B2 D0 B0 20 D0 91 2E F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 2C 20 D1 83 D0 BB 2E 20 D0 92 D0 BE D1 81 D1 82 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 31 36 33 2C 20 33 39 2E 38 33 36 31 35 30 2C 20 36 39 2E 35 35 33 30 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 35 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 BB E4 A6 66 0E 04 04 00 AE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B0 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 35 00 00 70 [00:39:13]Write i2c OK [00:39:13]MH_I2C_Read... [00:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:13]Read from MH i2c: E2 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 03 00 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 03 00 D5 64 00 90 00 AD [00:39:13]RAPDU: 90 00 [00:39:13]wFMCommunicate OK [00:39:13]wFMCommunicate request_size=14 [00:39:13]MH_SAM_APDU [00:39:13]CAPDU: 80 0D 02 02 09 04 06 00 7E 10 6F 33 EF 0C [00:39:13]Write to MH i2c: E2 11 00 D6 64 80 0D 02 02 09 00 04 06 00 7E 10 6F 33 EF 0C 00 00 FB [00:39:13]Write i2c OK [00:39:13]MH_I2C_Read... [00:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:13]Read from MH i2c: E2 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 03 00 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 03 00 D6 64 00 90 00 AE [00:39:13]RAPDU: 90 00 [00:39:13]wFMCommunicate OK [00:39:13]wFMCommunicate request_size=4 [00:39:13]MH_SAM_APDU [00:39:13]CAPDU: 80 0D 03 02 [00:39:13]Write to MH i2c: E2 08 00 D7 64 80 0D 03 02 00 00 00 00 B6 [00:39:13]Write i2c OK [00:39:13]MH_I2C_Read... [00:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:39:13]Read from MH i2c: E2 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 0B 00 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 0B 00 D7 64 00 49 31 83 F7 4B 4D D5 0B 90 00 23 [00:39:13]RAPDU: 49 31 83 F7 4B 4D D5 0B 90 00 [00:39:13]wFMCommunicate OK [00:39:13]SAM_PROTO_SignData done [00:39:13]FM_MakeSignedData done [00:39:13]CreateOFDProtocolMessage [00:39:13]wFMCommunicate request_size=4 [00:39:13]MH_SAM_APDU [00:39:13]CAPDU: 80 11 00 00 [00:39:13]Write to MH i2c: E2 08 00 D8 64 80 11 00 00 00 00 00 00 B6 [00:39:13]Write i2c OK [00:39:13]MH_I2C_Read... [00:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:13]Read from MH i2c: E2 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 17 00 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: E2 17 00 D8 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 12 [00:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:39:13]wFMCommunicate OK [00:39:13]CreateOFDProtocolMessage done [00:39:13]OFDSenderStorePacket 69296 [00:39:13]StoreOFDPacket docnum=69296 [00:39:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 13 01 00 00 C2 B2 0B 01 CF EC 5A 02 01 00 02 00 FF 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 18 00 D0 9C D0 B0 D0 B4 D0 B0 D0 BC D0 B8 D0 BD D0 BE D0 B2 D0 B0 20 D0 91 2E F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 2C 20 D1 83 D0 BB 2E 20 D0 92 D0 BE D1 81 D1 82 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 31 36 33 2C 20 33 39 2E 38 33 36 31 35 30 2C 20 36 39 2E 35 35 33 30 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 35 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 BB E4 A6 66 0E 04 04 00 AE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B0 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 35 04 06 00 7E 10 6F 33 EF 0C 49 31 83 F7 4B 4D D5 0B [00:39:13]CheckFolder [00:39:13]dirname=/storage/ofd_packets [00:39:13]CheckFolder done [00:39:13]ProducePacketName [00:39:13]name=ofd_packets/00069296 [00:39:13]NVStorageSaveData ofd_packets/00069296 [00:39:13]File name is /storage/ofd_packets/00069296 [00:39:13]Write 305 bytes [00:39:13]NVStorageSaveData done [00:39:13]OFDSenderStorePacket done [00:39:13]KKMCreateOFDPacket done [00:39:13]NVStorageSaveData kkm_last_timestamp [00:39:13]File name is /storage/kkm_last_timestamp [00:39:13]Write 4 bytes [00:39:13]NVStorageSaveData done [00:39:13]ExternCall_PrintAddStr [00:39:13]wPrintStart [00:39:13]Write to MH i2c: 01 00 00 D9 64 3D [00:39:13]Write i2c OK [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: 01 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: 01 07 00 [00:39:13]MH_I2C_Read... [00:39:13]Read from MH i2c: 01 07 00 D9 64 00 00 00 00 00 FF 0F 52 [00:39:13]RasterBufferAndPrint [00:39:13]line Отчет об открытии смены [00:39:13]line ФФД: 1.0 [00:39:13]line ИНН: 02508201610067 [00:39:13]line Кассир: Мадаминова Б. [00:39:13]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [00:39:13]line Место: АЗС № 125 "Партнер Нефть" [00:39:13]line 29.07.2024 00:39 [00:39:13]line Смена: 430 [00:39:13]line РНМ: 0000000000092638 [00:39:13]line ЗНМ: 0300000049 [00:39:13]line ФД: 69296 [00:39:13]line ФМ: 0000000000874949 [00:39:13]line ФПД: 138609050251020 [00:39:13]written 0, free lines is 4095 [00:39:14]OFD Sender: Processing packet 69296 [packets to send 19, broken 18] [00:39:14]ProducePacketName [00:39:14]name=ofd_packets/00069296 [00:39:14]OFD Sender: To server: pG, [00:39:14]CommunicateWithHost lk.salyk.kg:30040 [00:39:14]ConnectInit lk.salyk.kg [00:39:14]Connected sock=10 [00:39:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 13 01 00 00 C2 B2 0B 01 CF EC 5A 02 01 00 02 00 FF 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 18 00 D0 9C D0 B0 D0 B4 D0 B0 D0 BC D0 B8 D0 BD D0 BE D0 B2 D0 B0 20 D0 91 2E F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 2C 20 D1 83 D0 BB 2E 20 D0 92 D0 BE D1 81 D1 82 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 31 36 33 2C 20 33 39 2E 38 33 36 31 35 30 2C 20 36 39 2E 35 35 33 30 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 35 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 BB E4 A6 66 0E 04 04 00 AE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B0 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 35 04 06 00 7E 10 6F 33 EF 0C 49 31 83 F7 4B 4D D5 0B [00:39:14]Write to MH i2c: 01 00 00 EB 64 4F [00:39:14]Write i2c OK [00:39:14]MH_I2C_Read... [00:39:14]Read from MH i2c: 01 [00:39:14]MH_I2C_Read... [00:39:14]Read from MH i2c: 01 07 00 [00:39:14]MH_I2C_Read... [00:39:14]Read from MH i2c: 01 07 00 EB 64 00 00 00 00 00 BC 0E 20 [00:39:14]RasterBufferAndPrint [00:39:14]line [00:39:14]line [00:39:14]line [00:39:14]line [00:39:14]line [00:39:14]written 0, free lines is 3792 [00:39:14]MH_Cut [00:39:14]Write to MH i2c: D1 01 00 F2 64 01 28 [00:39:14]Write i2c OK [00:39:14]MH_I2C_Read... [00:39:14]Read from MH i2c: D1 [00:39:14]MH_I2C_Read... [00:39:14]Read from MH i2c: D1 01 00 [00:39:14]MH_I2C_Read... [00:39:14]Read from MH i2c: D1 01 00 F2 64 00 27 [00:39:14]Write to MH i2c: 01 00 00 F3 64 57 [00:39:14]Write i2c OK [00:39:14]MH_I2C_Read... [00:39:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 E1 3A 47 00 5C 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B0 0E 01 00 F4 03 04 00 2A 8B A6 66 B6 04 01 00 00 6B 59 6C 41 34 2B 0A 10 [00:39:14]CommunicateWithHost err = 0 [00:39:14]CheckOFDResponse [00:39:14]1017 (14) - 77093643461234 [00:39:14]1041 (16) - 0000000000874949 [00:39:14]1040 (4) - 69296 [00:39:14]1012 (4) - 28.07.2024 18:17 [00:39:14]1206 (1) - 0 [00:39:14]OFD Sender: Remove packet 69296 [00:39:14]ProducePacketName [00:39:14]name=ofd_packets/00069296 [00:39:14]NVStorageDeleteData [00:39:14]*** Cut start [00:39:14]*** Partial cut [00:39:14]*** CUTSNS_PIN = 1 [00:39:14]*** CUTSNS_PIN = 0 [00:39:14]*** Brake cut motor [00:39:14]OFD Sender: No OFD packet to send [00:39:15]Read from MH i2c: 01 [00:39:15]MH_I2C_Read... [00:39:15]*** Stop cut motor [00:39:15]*** Cut end [00:39:15]Read from MH i2c: 01 07 00 [00:39:15]MH_I2C_Read... [00:39:15]Read from MH i2c: 01 07 00 F3 64 00 00 00 00 00 FF 0F 6C [00:39:15]process_action open_shift done [00:39:15]requested_data is exist [00:39:15]produce_requested_data [00:39:15]requested_item fd.num is exist - process it [00:39:15]SAM_PROTO_GetFieldsCounters [00:39:15]wFMCommunicate request_size=4 [00:39:15]MH_SAM_APDU [00:39:15]CAPDU: 80 13 00 00 [00:39:15]Write to MH i2c: E2 08 00 F4 64 80 13 00 00 00 00 00 00 D4 [00:39:15]Write i2c OK [00:39:15]MH_I2C_Read... [00:39:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:15]Read from MH i2c: E2 [00:39:15]MH_I2C_Read... [00:39:15]Read from MH i2c: E2 62 00 [00:39:15]MH_I2C_Read... [00:39:15]Read from MH i2c: E2 62 00 F4 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B0 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [00:39: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B0 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:39:15]wFMCommunicate OK [00:39:15]SAM_PROTO_GetFieldsCounters done [00:39:15]requested_item shift.num is exist - process it [00:39:15]requested_item shift.opened is exist - process it [00:39:15]req_shift_opened [00:39:15]FM_GetShiftState [00:39:15]SAM_PROTO_GetShiftState [00:39:15]wFMCommunicate request_size=4 [00:39:15]MH_SAM_APDU [00:39:15]CAPDU: 80 13 01 00 [00:39:15]Write to MH i2c: E2 08 00 F5 64 80 13 01 00 00 00 00 00 D6 [00:39:15]Write i2c OK [00:39:15]MH_I2C_Read... [00:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:15]Read from MH i2c: E2 [00:39:15]MH_I2C_Read... [00:39:15]Read from MH i2c: E2 0E 00 [00:39:15]MH_I2C_Read... [00:39:15]Read from MH i2c: E2 0E 00 F5 64 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 8D [00:39:15]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:39:15]wFMCommunicate OK [00:39:15]SAM_PROTO_GetShiftState done [00:39:15]FM_GetShiftState done [00:39:15]req_shift_opened done [00:39:15]requested_item shift.open_date is exist - process it [00:39:15]req_shift_open_date [00:39:15]req_shift_open_date done [00:39:15]produce_requested_data done [00:39:15]produce_requested_data return {"fd.num":69296,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [00:39:15]process_action_free open_shift [00:39:15]json_value_free [00:39:15]json_value_free done [00:39:15]process_json_proto returns [00:39:15]Send response to host [00:39:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":69296,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [00:39:15]free response buf [00:39:15]execute_script done [00:39:15]execute_script returns [00:39:15]free content buf [00:39:15]Sock 7.Close socket [00:39:15]Sock 7.Thread stoped [00:39:15]accept exits with 9 [00:39:15]New connection [00:39:15]New thread 3066785124 created [00:39:15]Thread 3066641764 joined [00:39:15]Waiting for new connection... [00:39:15] Sock 9.Parse request [00:39:15]Sock 9.Check first char [00:39:15]Sock 9.First char is OK [00:39:15]request: POST /json_proto HTTP/1.0 [00:39:15]Method: POST [00:39:15]URL: /json_proto [00:39:15]Method is POST - this is cgi request [00:39:15]url: /json_proto [00:39:15]query_string will be loaded in cgi processing [00:39:15]execute_cgi json_proto POST (null) [00:39:15]execute_cgi path=json_proto method=POST [00:39:15]POST find Content-Length [00:39:15]Host: 172.17.49.132:8080 [00:39:15]Content-Length: 331 [00:39:15]Content-Type: application/json [00:39:15] [00:39:15]POST finish read [00:39:15]Found Content-Length = 331 [00:39:15]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:15]execute_script... [00:39:15]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:15]POST & json_proto [00:39:15]process_json_proto [00:39:15]json parsed OK: [00:39:15]protocol is kg_v1.0 [00:39:15]action value=get_value [00:39:15]process_action get_value [00:39:15]cmd_get_value [00:39:15]process_action get_value done [00:39:15]requested_data is exist [00:39:15]produce_requested_data [00:39:15]requested_item fm.sale.total is exist - process it [00:39:15]SAM_PROTO_GetFMData [00:39:15]wFMCommunicate request_size=4 [00:39:15]MH_SAM_APDU [00:39:15]CAPDU: 80 13 03 00 [00:39:15]Write to MH i2c: E2 08 00 F6 64 80 13 03 00 00 00 00 00 D9 [00:39:15]Write i2c OK [00:39:15]MH_I2C_Read... [00:39:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:39:16]Read from MH i2c: E2 [00:39:16]MH_I2C_Read... [00:39:16]Read from MH i2c: E2 FD 00 [00:39:16]MH_I2C_Read... [00:39:16]Read from MH i2c: E2 FD 00 F6 64 00 C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 79 [00:39:16]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 54 0B 01 00 69 04 A1 00 6F 04 04 00 15 0A 01 00 B1 04 04 00 E2 36 22 BB 70 04 04 00 40 6E A0 97 72 04 04 00 A2 C8 81 23 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 DC DF 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6E D9 A7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 3F 01 00 00 B1 04 04 00 F8 96 59 03 70 04 04 00 AC 29 45 03 72 04 03 00 4C 6D 14 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 83 14 5B EF 03 09 90 00 [00:39:16]wFMCommunicate OK [00:39:16]wFMCommunicate request_size=4 [00:39:16]MH_SAM_APDU [00:39:16]CAPDU: 80 17 00 00 [00:39:16]Write to MH i2c: E2 08 00 F7 64 80 17 00 00 00 00 00 00 DB [00:39:16]Write i2c OK [00:39:16]MH_I2C_Read... [00:39:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:16]Read from MH i2c: E2 [00:39:16]MH_I2C_Read... [00:39:16]Read from MH i2c: E2 FD 00 [00:39:16]MH_I2C_Read... [00:39:16]Read from MH i2c: E2 FD 00 F7 64 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 1C [00:39:16]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EE 96 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:39:16]wFMCommunicate OK [00:39:16]wFMCommunicate request_size=4 [00:39:16]MH_SAM_APDU [00:39:16]CAPDU: 80 17 00 00 [00:39:16]Write to MH i2c: E2 08 00 F8 64 80 17 00 00 00 00 00 00 DC [00:39:16]Write i2c OK [00:39:16]MH_I2C_Read... [00:39:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:16]Read from MH i2c: E2 [00:39:16]MH_I2C_Read... [00:39:16]Read from MH i2c: E2 FD 00 [00:39:16]MH_I2C_Read... [00:39:16]Read from MH i2c: E2 FD 00 F8 64 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 EE [00:39:16]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:39:16]wFMCommunicate OK [00:39:16]wFMCommunicate request_size=4 [00:39:16]MH_SAM_APDU [00:39:16]CAPDU: 80 17 00 00 [00:39:16]Write to MH i2c: E2 08 00 F9 64 80 17 00 00 00 00 00 00 DD [00:39:16]Write i2c OK [00:39:16]MH_I2C_Read... [00:39:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:17]Read from MH i2c: E2 [00:39:17]MH_I2C_Read... [00:39:17]Read from MH i2c: E2 FD 00 [00:39:17]MH_I2C_Read... [00:39:17]Read from MH i2c: E2 FD 00 F9 64 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 69 [00:39:17]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:39:17]wFMCommunicate OK [00:39:17]wFMCommunicate request_size=4 [00:39:17]MH_SAM_APDU [00:39:17]CAPDU: 80 17 00 00 [00:39:17]Write to MH i2c: E2 08 00 FA 64 80 17 00 00 00 00 00 00 DE [00:39:17]Write i2c OK [00:39:17]MH_I2C_Read... [00:39:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:39:17]Read from MH i2c: E2 [00:39:17]MH_I2C_Read... [00:39:17]Read from MH i2c: E2 E2 00 [00:39:17]MH_I2C_Read... [00:39:17]Read from MH i2c: E2 E2 00 FA 64 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BC [00:39:17]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:39:17]wFMCommunicate OK [00:39:17]SAM_PROTO_GetFMData done [00:39:17]requested_item fm.sale_refund.total is exist - process it [00:39:17]requested_item fm.buy.total is exist - process it [00:39:17]requested_item shift.sale.total is exist - process it [00:39:17]SAM_PROTO_GetShiftData [00:39:17]wFMCommunicate request_size=4 [00:39:17]MH_SAM_APDU [00:39:17]CAPDU: 80 13 02 00 [00:39:17]Write to MH i2c: E2 08 00 FB 64 80 13 02 00 00 00 00 00 DD [00:39:17]Write i2c OK [00:39:17]MH_I2C_Read... [00:39:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:39:18]Read from MH i2c: E2 [00:39:18]MH_I2C_Read... [00:39:18]Read from MH i2c: E2 FD 00 [00:39:18]MH_I2C_Read... [00:39:18]Read from MH i2c: E2 FD 00 FB 64 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 50 [00:39:18]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:18]wFMCommunicate OK [00:39:18]wFMCommunicate request_size=4 [00:39:18]MH_SAM_APDU [00:39:18]CAPDU: 80 17 00 00 [00:39:18]Write to MH i2c: E2 08 00 FC 64 80 17 00 00 00 00 00 00 E0 [00:39:18]Write i2c OK [00:39:18]MH_I2C_Read... [00:39:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:18]Read from MH i2c: E2 [00:39:18]MH_I2C_Read... [00:39:18]Read from MH i2c: E2 FD 00 [00:39:18]MH_I2C_Read... [00:39:18]Read from MH i2c: E2 FD 00 FC 64 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 E8 [00:39:18]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:18]wFMCommunicate OK [00:39:18]wFMCommunicate request_size=4 [00:39:18]MH_SAM_APDU [00:39:18]CAPDU: 80 17 00 00 [00:39:18]Write to MH i2c: E2 08 00 FD 64 80 17 00 00 00 00 00 00 E1 [00:39:18]Write i2c OK [00:39:18]MH_I2C_Read... [00:39:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:19]Read from MH i2c: E2 [00:39:19]MH_I2C_Read... [00:39:19]Read from MH i2c: E2 FD 00 [00:39:19]MH_I2C_Read... [00:39:19]Read from MH i2c: E2 FD 00 FD 64 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 B3 [00:39:19]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:19]wFMCommunicate OK [00:39:19]wFMCommunicate request_size=4 [00:39:19]MH_SAM_APDU [00:39:19]CAPDU: 80 17 00 00 [00:39:19]Write to MH i2c: E2 08 00 FE 64 80 17 00 00 00 00 00 00 E2 [00:39:19]Write i2c OK [00:39:19]MH_I2C_Read... [00:39:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:39:19]Read from MH i2c: E2 [00:39:19]MH_I2C_Read... [00:39:19]Read from MH i2c: E2 FD 00 [00:39:19]MH_I2C_Read... [00:39:19]Read from MH i2c: E2 FD 00 FE 64 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 54 [00:39:19]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:19]wFMCommunicate OK [00:39:19]wFMCommunicate request_size=4 [00:39:19]MH_SAM_APDU [00:39:19]CAPDU: 80 17 00 00 [00:39:19]Write to MH i2c: E2 08 00 FF 64 80 17 00 00 00 00 00 00 E3 [00:39:19]Write i2c OK [00:39:19]MH_I2C_Read... [00:39:20]OFD Sender: No OFD packet to send [00:39:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:39:20]Read from MH i2c: E2 [00:39:20]MH_I2C_Read... [00:39:20]Read from MH i2c: E2 BD 00 [00:39:20]MH_I2C_Read... [00:39:20]Read from MH i2c: E2 BD 00 FF 64 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 C9 [00:39:20]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:20]wFMCommunicate OK [00:39:20]SAM_PROTO_GetShiftData done [00:39:20]requested_item shift.sale.total_cash is exist - process it [00:39:20]requested_item shift.sale_refund.total is exist - process it [00:39:20]requested_item shift.sale_refund.total_cash is exist - process it [00:39:20]requested_item shift.buy.total is exist - process it [00:39:20]requested_item shift.buy.total_cash is exist - process it [00:39:20]produce_requested_data done [00:39:20]produce_requested_data return {"fm.sale.total":31395816.66,"fm.sale_refund.total":562030.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:20]process_action_free get_value [00:39:20]json_value_free [00:39:20]json_value_free done [00:39:20]process_json_proto returns [00:39:20]Send response to host [00:39:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31395816.66,"fm.sale_refund.total":562030.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:20]free response buf [00:39:20]execute_script done [00:39:20]execute_script returns [00:39:20]free content buf [00:39:20]Sock 9.Close socket [00:39:20]Sock 9.Thread stoped [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 3066641764 created [00:39:42]Thread 3066785124 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.49.132:8080 [00:39:42]Content-Length: 860 [00:39:42]Content-Type: application/json [00:39:42] [00:39:42]POST finish read [00:39:42]Found Content-Length = 860 [00:39:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136630", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "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" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136630", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "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=close_receipt [00:39:42]process_action close_receipt [00:39:42]cmd_close_receipt [00:39:42]MH_GetDate [00:39:42]Write to MH i2c: F0 00 00 00 65 54 [00:39:42]Write i2c OK [00:39:42]MH_I2C_Read... [00:39:42]Read from MH i2c: F0 [00:39:42]MH_I2C_Read... [00:39:42]Read from MH i2c: F0 09 00 [00:39:42]MH_I2C_Read... [00:39:42]Read from MH i2c: F0 09 00 00 65 00 DA E4 A6 66 E7 4B C0 64 7D [00:39:42]GetLastDocTimeStamp 1722213563 [00:39:42]current date 1722213594 [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 01 65 80 13 01 00 00 00 00 00 E3 [00:39:42]Write i2c OK [00:39:42]MH_I2C_Read... [00:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:43]Read from MH i2c: E2 [00:39:43]MH_I2C_Read... [00:39:43]Read from MH i2c: E2 0E 00 [00:39:43]MH_I2C_Read... [00:39:43]Read from MH i2c: E2 0E 00 01 65 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 9A [00:39:43]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:39:43]wFMCommunicate OK [00:39:43]SAM_PROTO_GetShiftState done [00:39:43]FM_GetShiftState done [00:39:43]opened in 1722213563 [00:39:43]opened+sec_in_day 1722299963 [00:39:43]quantity*price = 14000 [00:39:43]sum+1 = 14001 [00:39:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.74 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 1 29.07.2024 00:39 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69297 ФПД: 65409376782485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T003955&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69297&fm=65409376782485&tin=02508201610067®Number=0000000000092638&sum=28000 0 [00:39:44]StoreToDocumentArchive [00:39:44]shift 430 fd 69297 [00:39:44]save to /storage/0430/doc_00069297 [00:39:44]save last doc name /storage/0430/doc_00069297 to /storage/kkm_last_doc_name [00:39:44]save OK [00:39:44]Clear old archive folders... [00:39:44]ProcessDocumentItem done err = 0, tmpTLVsize=378 [00:39:44]tlvbuf is 00ADB6D0 [00:39:44]SAM_PROTO_ClearQueue [00:39:44]wFMCommunicate request_size=4 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 09 00 00 [00:39:44]Write to MH i2c: E2 08 00 0E 65 80 09 00 00 00 00 00 00 E5 [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:39:44]Read from MH i2c: E2 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 0E 65 00 90 00 E7 [00:39:44]RAPDU: 90 00 [00:39:44]wFMCommunicate OK [00:39:44]SAM_PROTO_ClearQueue done [00:39:44]KKMCreateOFDPacket [00:39:44]OFDProtocolAddRootSTLVToBuf [00:39:44]FM_MakeSignedData [00:39:44]FM_MakeSignedData [00:39:44]SAM_PROTO_SignData [00:39:44]wFMCommunicate request_size=4 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 0D 01 02 [00:39:44]Write to MH i2c: E2 08 00 0F 65 80 0D 01 02 00 00 00 00 ED [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:39:44]Read from MH i2c: E2 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 0F 65 00 90 00 E8 [00:39:44]RAPDU: 90 00 [00:39:44]wFMCommunicate OK [00:39:44]wFMCommunicate request_size=255 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 0D 02 02 FA 03 00 7A 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 [00:39:44]Write to MH i2c: E2 02 01 10 65 80 0D 02 02 FA 00 03 00 7A 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 00 00 75 [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:44]Read from MH i2c: E2 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 03 00 10 65 00 90 00 E9 [00:39:44]RAPDU: 90 00 [00:39:44]wFMCommunicate OK [00:39:44]wFMCommunicate request_size=137 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 DB E4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B1 0E 01 00 35 04 06 00 3B 7D 4E AB 08 95 [00:39:44]Write to MH i2c: E2 8C 00 11 65 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 DB E4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B1 0E 01 00 35 04 06 00 3B 7D 4E AB 08 95 00 00 30 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]OFD Sender: No OFD packet to send [00:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 11 65 00 90 00 EA [00:39:45]RAPDU: 90 00 [00:39:45]wFMCommunicate OK [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 0D 03 02 [00:39:45]Write to MH i2c: E2 08 00 12 65 80 0D 03 02 00 00 00 00 F2 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 0B 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 0B 00 12 65 00 64 ED 49 C4 DB 21 05 5D 90 00 AF [00:39:45]RAPDU: 64 ED 49 C4 DB 21 05 5D 90 00 [00:39:45]wFMCommunicate OK [00:39:45]SAM_PROTO_SignData done [00:39:45]FM_MakeSignedData done [00:39:45]CreateOFDProtocolMessage [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 11 00 00 [00:39:45]Write to MH i2c: E2 08 00 13 65 80 11 00 00 00 00 00 00 F2 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 17 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 17 00 13 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 4E [00:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:39:45]wFMCommunicate OK [00:39:45]CreateOFDProtocolMessage done [00:39:45]OFDSenderStorePacket 69297 [00:39:45]StoreOFDPacket docnum=69297 [00:39:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 8E 01 00 00 B5 E9 86 01 F0 F0 5A 03 01 00 03 00 7A 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 DB E4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B1 0E 01 00 35 04 06 00 3B 7D 4E AB 08 95 64 ED 49 C4 DB 21 05 5D [00:39:45]CheckFolder [00:39:45]dirname=/storage/ofd_packets [00:39:45]CheckFolder done [00:39:45]ProducePacketName [00:39:45]name=ofd_packets/00069297 [00:39:45]NVStorageSaveData ofd_packets/00069297 [00:39:45]File name is /storage/ofd_packets/00069297 [00:39:45]Write 428 bytes [00:39:45]NVStorageSaveData done [00:39:45]OFDSenderStorePacket done [00:39:45]KKMCreateOFDPacket done [00:39:45]NVStorageSaveData kkm_last_timestamp [00:39:45]File name is /storage/kkm_last_timestamp [00:39:45]Write 4 bytes [00:39:45]NVStorageSaveData done [00:39:45]ExternCall_PrintAddStr [00:39:45]wPrintStart [00:39:45]Write to MH i2c: 01 00 00 14 65 79 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 07 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 07 00 14 65 00 00 00 00 00 FF 0F 8E [00:39:45]RasterBufferAndPrint [00:39:45]line Счет N : (3)136630 [00:39:45]line ИНН: 02508201610067 [00:39:45]line Контрольно-Кассовый Чек [00:39:45]line ПРОДАЖА [00:39:45]line Товар: 48743570 [00:39:45]line Сигареты Winston XStyle Blue [00:39:45]line 1.000 * 140.00 [00:39:45]line = 140.00 [00:39:45]line НДС 12% НСП 1% [00:39:45]line > о реализуемом товаре [00:39:45]line Товар: 48743587 [00:39:45]line Сигареты Winston XStyle Silver [00:39:45]line 1.000 * 140.00 [00:39:45]line = 140.00 [00:39:45]line НДС 12% НСП 1% [00:39:45]line > о реализуемом товаре [00:39:45]line ИТОГО: 280.00 [00:39:45]line НСП 1% : 2.48 [00:39:45]line НДС 12% : 29.74 [00:39:45]line Наличными: 280.00 [00:39:45]line Безнал.: 0.00 [00:39:45]line Место: АЗС № 125 "Партнер Нефть" [00:39:45]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [00:39:45]line СНО: Общий режим [00:39:45]line Чек 1 29.07.2024 00:39 [00:39:45]line Смена: 430 ФФД: 1.0 [00:39:45]line ЗНМ: 0300000049 [00:39:45]line РНМ: 0000000000092638 [00:39:45]line Версия ККМ: 001 [00:39:45]line ФМ: 0000000000874949 [00:39:45]line ФД: 69297 [00:39:45]line ФПД: 65409376782485 [00:39:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T003955&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69297&fm=65409376782485&tin=02508201610067®Number=0000000000092638&sum=28000 [00:39:45]line 0 [00:39:45]written 0, free lines is 4095 [00:39:45]OFD Sender: Processing packet 69297 [packets to send 19, broken 18] [00:39:45]ProducePacketName [00:39:45]name=ofd_packets/00069297 [00:39:45]OFD Sender: To server: pG, [00:39:45]CommunicateWithHost lk.salyk.kg:30040 [00:39:45]ConnectInit lk.salyk.kg [00:39:45]Connected sock=10 [00:39:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 8E 01 00 00 B5 E9 86 01 F0 F0 5A 03 01 00 03 00 7A 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 DB E4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B1 0E 01 00 35 04 06 00 3B 7D 4E AB 08 95 64 ED 49 C4 DB 21 05 5D [00:39:45]Write to MH i2c: 01 00 00 43 65 A8 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 07 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 07 00 43 65 00 00 00 00 00 AF 0C 6A [00:39:45]RasterBufferAndPrint [00:39:45]line [00:39:45]line [00:39:45]line [00:39:45]line [00:39:45]line [00:39:45]written 0, free lines is 3272 [00:39:45]MH_Cut [00:39:45]Write to MH i2c: D1 01 00 4A 65 01 81 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: D1 [00:39:45]MH_I2C_Read... [00:39:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 6E EC 47 00 1F AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B1 0E 01 00 F4 03 04 00 49 8B A6 66 B6 04 01 00 00 2E 54 30 73 2A A2 77 C7 [00:39:45]CommunicateWithHost err = 0 [00:39:45]CheckOFDResponse [00:39:45]1017 (14) - 77093643461234 [00:39:45]1041 (16) - 0000000000874949 [00:39:45]1040 (4) - 69297 [00:39:45]1012 (4) - 28.07.2024 18:17 [00:39:45]1206 (1) - 0 [00:39:45]OFD Sender: Remove packet 69297 [00:39:45]ProducePacketName [00:39:45]name=ofd_packets/00069297 [00:39:46]NVStorageDeleteData [00:39:46]Read from MH i2c: D1 01 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: D1 01 00 4A 65 00 80 [00:39:46]Write to MH i2c: 01 00 00 4B 65 B0 [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]OFD Sender: No OFD packet to send [00:39:46]*** Cut start [00:39:46]*** Partial cut [00:39:46]*** CUTSNS_PIN = 1 [00:39:46]*** CUTSNS_PIN = 0 [00:39:46]*** Brake cut motor [00:39:47]Read from MH i2c: 01 [00:39:47]MH_I2C_Read... [00:39:47]*** Stop cut motor [00:39:47]*** Cut end [00:39:47]Read from MH i2c: 01 07 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: 01 07 00 4B 65 00 00 00 00 00 FF 0F C5 [00:39:47]process_action close_receipt done [00:39:47]requested_data is exist [00:39:47]produce_requested_data [00:39:47]requested_item fm.sn is exist - process it [00:39:47]wFMCommunicate request_size=4 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 11 00 00 [00:39:47]Write to MH i2c: E2 08 00 4C 65 80 11 00 00 00 00 00 00 2B [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 17 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 17 00 4C 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 87 [00:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:39:47]wFMCommunicate OK [00:39:47]requested_item fd.num is exist - process it [00:39:47]SAM_PROTO_GetFieldsCounters [00:39:47]wFMCommunicate request_size=4 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 13 00 00 [00:39:47]Write to MH i2c: E2 08 00 4D 65 80 13 00 00 00 00 00 00 2E [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 62 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 62 00 4D 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B1 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [00:39:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B1 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:39:47]wFMCommunicate OK [00:39:47]SAM_PROTO_GetFieldsCounters done [00:39:47]requested_item shift.num is exist - process it [00:39:47]requested_item shift.opened is exist - process it [00:39:47]req_shift_opened [00:39:47]FM_GetShiftState [00:39:47]SAM_PROTO_GetShiftState [00:39:47]wFMCommunicate request_size=4 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 13 01 00 [00:39:47]Write to MH i2c: E2 08 00 4E 65 80 13 01 00 00 00 00 00 30 [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 0E 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 0E 00 4E 65 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 E7 [00:39:47]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:39:47]wFMCommunicate OK [00:39:47]SAM_PROTO_GetShiftState done [00:39:47]FM_GetShiftState done [00:39:47]req_shift_opened done [00:39:47]requested_item shift.open_date is exist - process it [00:39:47]req_shift_open_date [00:39:47]req_shift_open_date done [00:39:47]produce_requested_data done [00:39:47]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69297,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [00:39:47]process_action_free close_receipt [00:39:47]json_value_free [00:39:47]json_value_free done [00:39:47]process_json_proto returns [00:39:47]Send response to host [00:39:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69297,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [00:39:47]free response buf [00:39:47]execute_script done [00:39:47]execute_script returns [00:39:47]free content buf [00:39:47]Sock 7.Close socket [00:39:47]Sock 7.Thread stoped [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:18]accept exits with 9 [00:40:18]New connection [00:40:18]New thread 3066785124 created [00:40:18]Thread 3066641764 joined [00:40:18]Waiting for new connection... [00:40:18] Sock 9.Parse request [00:40:18]Sock 9.Check first char [00:40:18]Sock 9.First char is OK [00:40:18]request: POST /json_proto HTTP/1.0 [00:40:18]Method: POST [00:40:18]URL: /json_proto [00:40:18]Method is POST - this is cgi request [00:40:18]url: /json_proto [00:40:18]query_string will be loaded in cgi processing [00:40:18]execute_cgi json_proto POST (null) [00:40:18]execute_cgi path=json_proto method=POST [00:40:18]POST find Content-Length [00:40:18]Host: 172.17.49.132:8080 [00:40:18]Content-Length: 1299 [00:40:18]Content-Type: application/json [00:40:18] [00:40:18]POST finish read [00:40:18]Found Content-Length = 1299 [00:40:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136631", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 3.000, "sum" : 435.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400266", "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 90 \u0433\u0440", "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 }]} ], "payments": [ { "type": 0, "sum" : 595.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:18]execute_script... [00: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)136631", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 3.000, "sum" : 435.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400266", "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 90 \u0433\u0440", "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 }]} ], "payments": [ { "type": 0, "sum" : 595.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:18]POST & json_proto [00:40:18]process_json_proto [00:40:18]json parsed OK: [00:40:18]protocol is kg_v1.0 [00:40:18]action value=close_receipt [00:40:18]process_action close_receipt [00:40:18]cmd_close_receipt [00:40:18]MH_GetDate [00:40:18]Write to MH i2c: F0 00 00 4F 65 A3 [00:40:18]Write i2c OK [00:40:18]MH_I2C_Read... [00:40:18]Read from MH i2c: F0 [00:40:18]MH_I2C_Read... [00:40:18]Read from MH i2c: F0 09 00 [00:40:18]MH_I2C_Read... [00:40:18]Read from MH i2c: F0 09 00 4F 65 00 FE E4 A6 66 E7 4B C0 64 F0 [00:40:18]GetLastDocTimeStamp 1722213595 [00:40:18]current date 1722213630 [00:40:18]FM_GetShiftState [00:40:18]SAM_PROTO_GetShiftState [00:40:18]wFMCommunicate request_size=4 [00:40:18]MH_SAM_APDU [00:40:18]CAPDU: 80 13 01 00 [00:40:18]Write to MH i2c: E2 08 00 50 65 80 13 01 00 00 00 00 00 32 [00:40:18]Write i2c OK [00:40:18]MH_I2C_Read... [00:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:18]Read from MH i2c: E2 [00:40:18]MH_I2C_Read... [00:40:18]Read from MH i2c: E2 0E 00 [00:40:18]MH_I2C_Read... [00:40:18]Read from MH i2c: E2 0E 00 50 65 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 E9 [00:40:18]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:40:18]wFMCommunicate OK [00:40:18]SAM_PROTO_GetShiftState done [00:40:18]FM_GetShiftState done [00:40:18]opened in 1722213563 [00:40:18]opened+sec_in_day 1722299963 [00:40:18]quantity*price = 43500 [00:40:18]sum+1 = 43501 [00:40:18]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400266 Арахис жарен Караван орехов 90 гр 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 595.00 НСП 1% : 5.26 НДС 12% : 63.18 Наличными: 595.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 2 29.07.2024 00:40 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69298 ФПД: 147914137825060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004030&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69298&fm=147914137825060&tin=02508201610067®Number=0000000000092638&sum=59500 0 [00:40:19]StoreToDocumentArchive [00:40:19]shift 430 fd 69298 [00:40:19]save to /storage/0430/doc_00069298 [00:40:19]save last doc name /storage/0430/doc_00069298 to /storage/kkm_last_doc_name [00:40:19]save OK [00:40:19]Clear old archive folders... [00:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=529 [00:40:19]tlvbuf is 00AECC00 [00:40:19]SAM_PROTO_ClearQueue [00:40:19]wFMCommunicate request_size=4 [00:40:19]MH_SAM_APDU [00:40:19]CAPDU: 80 09 00 00 [00:40:19]Write to MH i2c: E2 08 00 5D 65 80 09 00 00 00 00 00 00 34 [00:40:19]Write i2c OK [00:40:19]MH_I2C_Read... [00:40:19]Read from MH i2c: E2 [00:40:19]MH_I2C_Read... [00:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:40:19]Read from MH i2c: E2 03 00 [00:40:19]MH_I2C_Read... [00:40:19]Read from MH i2c: E2 03 00 5D 65 00 90 00 36 [00:40:19]RAPDU: 90 00 [00:40:19]wFMCommunicate OK [00:40:19]SAM_PROTO_ClearQueue done [00:40:19]KKMCreateOFDPacket [00:40:19]OFDProtocolAddRootSTLVToBuf [00:40:19]FM_MakeSignedData [00:40:19]FM_MakeSignedData [00:40:19]SAM_PROTO_SignData [00:40:19]wFMCommunicate request_size=4 [00:40:19]MH_SAM_APDU [00:40:19]CAPDU: 80 0D 01 02 [00:40:19]Write to MH i2c: E2 08 00 5E 65 80 0D 01 02 00 00 00 00 3C [00:40:19]Write i2c OK [00:40:19]MH_I2C_Read... [00:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:40:19]Read from MH i2c: E2 [00:40:19]MH_I2C_Read... [00:40:19]Read from MH i2c: E2 03 00 [00:40:19]MH_I2C_Read... [00:40:19]Read from MH i2c: E2 03 00 5E 65 00 90 00 37 [00:40:19]RAPDU: 90 00 [00:40:19]wFMCommunicate OK [00:40:19]wFMCommunicate request_size=255 [00:40:19]MH_SAM_APDU [00:40:19]CAPDU: 80 0D 02 02 FA 03 00 11 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 EC A9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 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 39 30 20 D0 B3 D1 80 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 [00:40:19]Write to MH i2c: E2 02 01 5F 65 80 0D 02 02 FA 00 03 00 11 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 EC A9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 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 39 30 20 D0 B3 D1 80 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 00 00 94 [00:40:19]Write i2c OK [00:40:19]MH_I2C_Read... [00:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:20]Read from MH i2c: E2 [00:40:20]MH_I2C_Read... [00:40:20]Read from MH i2c: E2 03 00 [00:40:20]MH_I2C_Read... [00:40:20]Read from MH i2c: E2 03 00 5F 65 00 90 00 38 [00:40:20]RAPDU: 90 00 [00:40:20]wFMCommunicate OK [00:40:20]wFMCommunicate request_size=255 [00:40:20]MH_SAM_APDU [00:40:20]CAPDU: 80 0D 02 02 FA 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 FC 03 06 00 6C E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 18 00 00 00 00 07 04 06 00 6C E8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FE E4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 [00:40:20]Write to MH i2c: E2 02 01 60 65 80 0D 02 02 FA 00 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 FC 03 06 00 6C E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 18 00 00 00 00 07 04 06 00 6C E8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FE E4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 00 00 08 [00:40:20]Write i2c OK [00:40:20]MH_I2C_Read... [00:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:20]Read from MH i2c: E2 [00:40:20]MH_I2C_Read... [00:40:20]Read from MH i2c: E2 03 00 [00:40:20]MH_I2C_Read... [00:40:20]Read from MH i2c: E2 03 00 60 65 00 90 00 39 [00:40:20]RAPDU: 90 00 [00:40:20]wFMCommunicate OK [00:40:20]wFMCommunicate request_size=38 [00:40:20]MH_SAM_APDU [00:40:20]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B2 0E 01 00 35 04 06 00 86 86 F1 A4 6F 24 [00:40:20]Write to MH i2c: E2 29 00 61 65 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B2 0E 01 00 35 04 06 00 86 86 F1 A4 6F 24 00 00 C7 [00:40:20]Write i2c OK [00:40:20]MH_I2C_Read... [00:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:20]Read from MH i2c: E2 [00:40:20]MH_I2C_Read... [00:40:20]Read from MH i2c: E2 03 00 [00:40:20]MH_I2C_Read... [00:40:20]Read from MH i2c: E2 03 00 61 65 00 90 00 3A [00:40:20]RAPDU: 90 00 [00:40:20]wFMCommunicate OK [00:40:20]wFMCommunicate request_size=4 [00:40:20]MH_SAM_APDU [00:40:20]CAPDU: 80 0D 03 02 [00:40:20]Write to MH i2c: E2 08 00 62 65 80 0D 03 02 00 00 00 00 42 [00:40:20]Write i2c OK [00:40:20]MH_I2C_Read... [00:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:40:20]Read from MH i2c: E2 [00:40:20]MH_I2C_Read... [00:40:20]Read from MH i2c: E2 0B 00 [00:40:20]MH_I2C_Read... [00:40:20]Read from MH i2c: E2 0B 00 62 65 00 2F 54 1D 2D 6E D0 99 B1 90 00 98 [00:40:20]RAPDU: 2F 54 1D 2D 6E D0 99 B1 90 00 [00:40:20]wFMCommunicate OK [00:40:20]SAM_PROTO_SignData done [00:40:20]FM_MakeSignedData done [00:40:20]CreateOFDProtocolMessage [00:40:20]wFMCommunicate request_size=4 [00:40:20]MH_SAM_APDU [00:40:20]CAPDU: 80 11 00 00 [00:40:20]Write to MH i2c: E2 08 00 63 65 80 11 00 00 00 00 00 00 42 [00:40:20]Write i2c OK [00:40:20]MH_I2C_Read... [00:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:20]Read from MH i2c: E2 [00:40:20]MH_I2C_Read... [00:40:20]Read from MH i2c: E2 17 00 [00:40:20]MH_I2C_Read... [00:40:20]Read from MH i2c: E2 17 00 63 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9E [00:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:40:20]wFMCommunicate OK [00:40:20]CreateOFDProtocolMessage done [00:40:20]OFDSenderStorePacket 69298 [00:40:20]StoreOFDPacket docnum=69298 [00:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 02 00 00 48 EA 1D 02 B1 70 5A 03 01 00 03 00 11 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 EC A9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 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 39 30 20 D0 B3 D1 80 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 FC 03 06 00 6C E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 18 00 00 00 00 07 04 06 00 6C E8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FE E4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B2 0E 01 00 35 04 06 00 86 86 F1 A4 6F 24 2F 54 1D 2D 6E D0 99 B1 [00:40:20]CheckFolder [00:40:20]dirname=/storage/ofd_packets [00:40:20]CheckFolder done [00:40:20]ProducePacketName [00:40:20]name=ofd_packets/00069298 [00:40:20]NVStorageSaveData ofd_packets/00069298 [00:40:20]File name is /storage/ofd_packets/00069298 [00:40:20]Write 579 bytes [00:40:20]NVStorageSaveData done [00:40:20]OFDSenderStorePacket done [00:40:20]KKMCreateOFDPacket done [00:40:20]NVStorageSaveData kkm_last_timestamp [00:40:20]File name is /storage/kkm_last_timestamp [00:40:20]Write 4 bytes [00:40:20]NVStorageSaveData done [00:40:20]ExternCall_PrintAddStr [00:40:20]wPrintStart [00:40:20]Write to MH i2c: 01 00 00 64 65 C9 [00:40:20]Write i2c OK [00:40:20]MH_I2C_Read... [00:40:20]Read from MH i2c: 01 [00:40:20]MH_I2C_Read... [00:40:20]Read from MH i2c: 01 07 00 [00:40:20]MH_I2C_Read... [00:40:20]Read from MH i2c: 01 07 00 64 65 00 00 00 00 00 FF 0F DE [00:40:20]RasterBufferAndPrint [00:40:20]line Счет N : (3)136631 [00:40:20]line ИНН: 02508201610067 [00:40:20]line Контрольно-Кассовый Чек [00:40:20]line ПРОДАЖА [00:40:20]line Товар: 4700001610012 [00:40:20]line Пиво Арпа 0,5л [00:40:20]line 3.000 * 145.00 [00:40:20]line = 435.00 [00:40:20]line НДС 12% НСП 1% [00:40:20]line > о реализуемом товаре [00:40:20]line Товар: 4630007400266 [00:40:20]line Арахис жарен Караван орехов 90 гр [00:40:20]line 1.000 * 100.00 [00:40:20]line = 100.00 [00:40:20]line НДС 12% НСП 1% [00:40:20]line > о реализуемом товаре [00:40:20]line Товар: 4700000160792 [00:40:20]line Снек Курут классический (круглый) [00:40:20]line 1.000 * 60.00 [00:40:20]line = 60.00 [00:40:20]line НДС 12% НСП 1% [00:40:20]line > о реализуемом товаре [00:40:20]line ИТОГО: 595.00 [00:40:20]line НСП 1% : 5.26 [00:40:20]line НДС 12% : 63.18 [00:40:20]line Наличными: 595.00 [00:40:20]line Безнал.: 0.00 [00:40:20]line Место: АЗС № 125 "Партнер Нефть" [00:40:20]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [00:40:20]line СНО: Общий режим [00:40:20]line Чек 2 29.07.2024 00:40 [00:40:20]line Смена: 430 ФФД: 1.0 [00:40:20]line ЗНМ: 0300000049 [00:40:20]line РНМ: 0000000000092638 [00:40:20]line Версия ККМ: 001 [00:40:20]line ФМ: 0000000000874949 [00:40:20]line ФД: 69298 [00:40:20]line ФПД: 147914137825060 [00:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004030&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69298&fm=147914137825060&tin=02508201610067®Number=0000000000092638&sum=59500 [00:40:20]line 0 [00:40:20]OFD Sender: Processing packet 69298 [packets to send 19, broken 18] [00:40:20]ProducePacketName [00:40:20]name=ofd_packets/00069298 [00:40:20]OFD Sender: To server: pG, [00:40:20]CommunicateWithHost lk.salyk.kg:30040 [00:40:20]ConnectInit lk.salyk.kg [00:40:20]written 0, free lines is 4095 [00:40:20]Connected sock=10 [00: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 39 34 39 25 02 00 00 48 EA 1D 02 B1 70 5A 03 01 00 03 00 11 02 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 EC A9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 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 39 30 20 D0 B3 D1 80 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 FC 03 06 00 6C E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 18 00 00 00 00 07 04 06 00 6C E8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FE E4 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B2 0E 01 00 35 04 06 00 86 86 F1 A4 6F 24 2F 54 1D 2D 6E D0 99 B1 [00:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CA 74 47 00 25 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B2 0E 01 00 F4 03 04 00 6C 8B A6 66 B6 04 01 00 00 31 62 74 AF D6 47 32 8C [00:40:21]CommunicateWithHost err = 0 [00:40:21]CheckOFDResponse [00:40:21]1017 (14) - 77093643461234 [00:40:21]1041 (16) - 0000000000874949 [00:40:21]1040 (4) - 69298 [00:40:21]1012 (4) - 28.07.2024 18:18 [00:40:21]1206 (1) - 0 [00:40:21]OFD Sender: Remove packet 69298 [00:40:21]ProducePacketName [00:40:21]name=ofd_packets/00069298 [00:40:21]NVStorageDeleteData [00:40:21]Write to MH i2c: 01 00 00 9A 65 FF [00:40:21]Write i2c OK [00:40:21]MH_I2C_Read... [00:40:21]Read from MH i2c: 01 [00:40:21]MH_I2C_Read... [00:40:21]Read from MH i2c: 01 07 00 [00:40:21]MH_I2C_Read... [00:40:21]Read from MH i2c: 01 07 00 9A 65 00 00 00 00 00 53 0C 65 [00:40:21]RasterBufferAndPrint [00:40:21]line [00:40:21]line [00:40:21]line [00:40:21]line [00:40:21]line [00:40:21]written 0, free lines is 3164 [00:40:21]MH_Cut [00:40:21]Write to MH i2c: D1 01 00 A1 65 01 D8 [00:40:21]Write i2c OK [00:40:21]MH_I2C_Read... [00:40:21]Read from MH i2c: D1 [00:40:21]MH_I2C_Read... [00:40:21]Read from MH i2c: D1 01 00 [00:40:21]MH_I2C_Read... [00:40:21]Read from MH i2c: D1 01 00 A1 65 00 D7 [00:40:21]Write to MH i2c: 01 00 00 A2 65 07 [00:40:21]Write i2c OK [00:40:21]MH_I2C_Read... [00:40:21]OFD Sender: No OFD packet to send [00:40:22]*** Cut start [00:40:22]*** Partial cut [00:40:22]*** CUTSNS_PIN = 1 [00:40:22]*** CUTSNS_PIN = 0 [00:40:22]*** Brake cut motor [00:40:22]Read from MH i2c: 01 [00:40:22]MH_I2C_Read... [00:40:22]*** Stop cut motor [00:40:22]*** Cut end [00:40:22]Read from MH i2c: 01 07 00 [00:40:22]MH_I2C_Read... [00:40:22]Read from MH i2c: 01 07 00 A2 65 00 00 00 00 00 FF 0F 1C [00:40:22]process_action close_receipt done [00:40:22]requested_data is exist [00:40:22]produce_requested_data [00:40:22]requested_item fm.sn is exist - process it [00:40:22]wFMCommunicate request_size=4 [00:40:22]MH_SAM_APDU [00:40:22]CAPDU: 80 11 00 00 [00:40:22]Write to MH i2c: E2 08 00 A3 65 80 11 00 00 00 00 00 00 82 [00:40:22]Write i2c OK [00:40:22]MH_I2C_Read... [00:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:22]Read from MH i2c: E2 [00:40:22]MH_I2C_Read... [00:40:22]Read from MH i2c: E2 17 00 [00:40:22]MH_I2C_Read... [00:40:22]Read from MH i2c: E2 17 00 A3 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 DE [00:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:40:22]wFMCommunicate OK [00:40:22]requested_item fd.num is exist - process it [00:40:22]SAM_PROTO_GetFieldsCounters [00:40:22]wFMCommunicate request_size=4 [00:40:22]MH_SAM_APDU [00:40:22]CAPDU: 80 13 00 00 [00:40:22]Write to MH i2c: E2 08 00 A4 65 80 13 00 00 00 00 00 00 85 [00:40:22]Write i2c OK [00:40:22]MH_I2C_Read... [00:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:40:23]Read from MH i2c: E2 [00:40:23]MH_I2C_Read... [00:40:23]Read from MH i2c: E2 62 00 [00:40:23]MH_I2C_Read... [00:40:23]Read from MH i2c: E2 62 00 A4 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B2 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [00:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B2 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:40:23]wFMCommunicate OK [00:40:23]SAM_PROTO_GetFieldsCounters done [00:40:23]requested_item shift.num is exist - process it [00:40:23]requested_item shift.opened is exist - process it [00:40:23]req_shift_opened [00:40:23]FM_GetShiftState [00:40:23]SAM_PROTO_GetShiftState [00:40:23]wFMCommunicate request_size=4 [00:40:23]MH_SAM_APDU [00:40:23]CAPDU: 80 13 01 00 [00:40:23]Write to MH i2c: E2 08 00 A5 65 80 13 01 00 00 00 00 00 87 [00:40:23]Write i2c OK [00:40:23]MH_I2C_Read... [00:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:23]Read from MH i2c: E2 [00:40:23]MH_I2C_Read... [00:40:23]Read from MH i2c: E2 0E 00 [00:40:23]MH_I2C_Read... [00:40:23]Read from MH i2c: E2 0E 00 A5 65 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 3E [00:40:23]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:40:23]wFMCommunicate OK [00:40:23]SAM_PROTO_GetShiftState done [00:40:23]FM_GetShiftState done [00:40:23]req_shift_opened done [00:40:23]requested_item shift.open_date is exist - process it [00:40:23]req_shift_open_date [00:40:23]req_shift_open_date done [00:40:23]produce_requested_data done [00:40:23]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69298,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [00:40:23]process_action_free close_receipt [00:40:23]json_value_free [00:40:23]json_value_free done [00:40:23]process_json_proto returns [00:40:23]Send response to host [00:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69298,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [00:40:23]free response buf [00:40:23]execute_script done [00:40:23]execute_script returns [00:40:23]free content buf [00:40:23]Sock 9.Close socket [00:40:23]Sock 9.Thread stoped [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:51]accept exits with 7 [00:40:51]New connection [00:40:51]New thread 3066641764 created [00:40:51]Thread 3066785124 joined [00:40:51]Waiting for new connection... [00:40:51] Sock 7.Parse request [00:40:51]Sock 7.Check first char [00:40:51]Sock 7.First char is OK [00:40:51]request: POST /json_proto HTTP/1.0 [00:40:51]Method: POST [00:40:51]URL: /json_proto [00:40:51]Method is POST - this is cgi request [00:40:51]url: /json_proto [00:40:51]query_string will be loaded in cgi processing [00:40:51]execute_cgi json_proto POST (null) [00:40:51]execute_cgi path=json_proto method=POST [00:40:51]POST find Content-Length [00:40:51]Host: 172.17.49.132:8080 [00:40:51]Content-Length: 619 [00:40:51]Content-Type: application/json [00:40:51] [00:40:51]POST finish read [00:40:51]Found Content-Length = 619 [00:40:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136633", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:51]execute_script... [00:40:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136633", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:51]POST & json_proto [00:40:51]process_json_proto [00:40:51]json parsed OK: [00:40:51]protocol is kg_v1.0 [00:40:51]action value=close_receipt [00:40:51]process_action close_receipt [00:40:51]cmd_close_receipt [00:40:51]MH_GetDate [00:40:51]Write to MH i2c: F0 00 00 A6 65 FA [00:40:51]Write i2c OK [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: F0 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: F0 09 00 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: F0 09 00 A6 65 00 1F E5 A6 66 E7 4B C0 64 69 [00:40:51]GetLastDocTimeStamp 1722213630 [00:40:51]current date 1722213663 [00:40:51]FM_GetShiftState [00:40:51]SAM_PROTO_GetShiftState [00:40:51]wFMCommunicate request_size=4 [00:40:51]MH_SAM_APDU [00:40:51]CAPDU: 80 13 01 00 [00:40:51]Write to MH i2c: E2 08 00 A7 65 80 13 01 00 00 00 00 00 89 [00:40:51]Write i2c OK [00:40:51]MH_I2C_Read... [00:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:51]Read from MH i2c: E2 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 0E 00 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 0E 00 A7 65 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 40 [00:40:51]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:40:51]wFMCommunicate OK [00:40:51]SAM_PROTO_GetShiftState done [00:40:51]FM_GetShiftState done [00:40:51]opened in 1722213563 [00:40:51]opened+sec_in_day 1722299963 [00:40:51]quantity*price = 14000 [00:40:51]sum+1 = 14001 [00:40:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 3 29.07.2024 00:41 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69299 ФПД: 178054964192800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004103&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69299&fm=178054964192800&tin=02508201610067®Number=0000000000092638&sum=14000 0 [00:40:53]StoreToDocumentArchive [00:40:53]shift 430 fd 69299 [00:40:53]save to /storage/0430/doc_00069299 [00:40:53]save last doc name /storage/0430/doc_00069299 to /storage/kkm_last_doc_name [00:40:53]save OK [00:40:53]Clear old archive folders... [00:40:53]ProcessDocumentItem done err = 0, tmpTLVsize=271 [00:40:53]tlvbuf is 00AB90C0 [00:40:53]SAM_PROTO_ClearQueue [00:40:53]wFMCommunicate request_size=4 [00:40:53]MH_SAM_APDU [00:40:53]CAPDU: 80 09 00 00 [00:40:53]Write to MH i2c: E2 08 00 B4 65 80 09 00 00 00 00 00 00 8B [00:40:53]Write i2c OK [00:40:53]MH_I2C_Read... [00:40:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:40:53]Read from MH i2c: E2 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 03 00 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 03 00 B4 65 00 90 00 8D [00:40:53]RAPDU: 90 00 [00:40:53]wFMCommunicate OK [00:40:53]SAM_PROTO_ClearQueue done [00:40:53]KKMCreateOFDPacket [00:40:53]OFDProtocolAddRootSTLVToBuf [00:40:53]FM_MakeSignedData [00:40:53]FM_MakeSignedData [00:40:53]SAM_PROTO_SignData [00:40:53]wFMCommunicate request_size=4 [00:40:53]MH_SAM_APDU [00:40:53]CAPDU: 80 0D 01 02 [00:40:53]Write to MH i2c: E2 08 00 B5 65 80 0D 01 02 00 00 00 00 93 [00:40:53]Write i2c OK [00:40:53]MH_I2C_Read... [00:40:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:40:53]Read from MH i2c: E2 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 03 00 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 03 00 B5 65 00 90 00 8E [00:40:53]RAPDU: 90 00 [00:40:53]wFMCommunicate OK [00:40:53]wFMCommunicate request_size=255 [00:40:53]MH_SAM_APDU [00:40: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 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 1F E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 [00:40:53]Write to MH i2c: E2 02 01 B6 65 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 1F E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 DC [00:40:53]Write i2c OK [00:40:53]MH_I2C_Read... [00:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:53]Read from MH i2c: E2 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 03 00 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 03 00 B6 65 00 90 00 8F [00:40:53]RAPDU: 90 00 [00:40:53]wFMCommunicate OK [00:40:53]wFMCommunicate request_size=30 [00:40:53]MH_SAM_APDU [00:40:53]CAPDU: 80 0D 02 02 19 30 38 37 34 39 34 39 10 04 04 00 B3 0E 01 00 35 04 06 00 A1 F0 A6 E4 26 20 [00:40:53]Write to MH i2c: E2 21 00 B7 65 80 0D 02 02 19 00 30 38 37 34 39 34 39 10 04 04 00 B3 0E 01 00 35 04 06 00 A1 F0 A6 E4 26 20 00 00 BB [00:40:53]Write i2c OK [00:40:53]MH_I2C_Read... [00:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:53]Read from MH i2c: E2 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 03 00 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 03 00 B7 65 00 90 00 90 [00:40:53]RAPDU: 90 00 [00:40:53]wFMCommunicate OK [00:40:53]wFMCommunicate request_size=4 [00:40:53]MH_SAM_APDU [00:40:53]CAPDU: 80 0D 03 02 [00:40:53]Write to MH i2c: E2 08 00 B8 65 80 0D 03 02 00 00 00 00 98 [00:40:53]Write i2c OK [00:40:53]MH_I2C_Read... [00:40:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:40:53]Read from MH i2c: E2 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 0B 00 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 0B 00 B8 65 00 CF E4 D0 90 A2 65 04 B0 90 00 67 [00:40:53]RAPDU: CF E4 D0 90 A2 65 04 B0 90 00 [00:40:53]wFMCommunicate OK [00:40:53]SAM_PROTO_SignData done [00:40:53]FM_MakeSignedData done [00:40:53]CreateOFDProtocolMessage [00:40:53]wFMCommunicate request_size=4 [00:40:53]MH_SAM_APDU [00:40:53]CAPDU: 80 11 00 00 [00:40:53]Write to MH i2c: E2 08 00 B9 65 80 11 00 00 00 00 00 00 98 [00:40:53]Write i2c OK [00:40:53]MH_I2C_Read... [00:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:53]Read from MH i2c: E2 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 17 00 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: E2 17 00 B9 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F4 [00:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:40:53]wFMCommunicate OK [00:40:53]CreateOFDProtocolMessage done [00:40:53]OFDSenderStorePacket 69299 [00:40:53]StoreOFDPacket docnum=69299 [00:40:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 23 01 00 00 D5 28 1B 01 04 73 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 1F E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B3 0E 01 00 35 04 06 00 A1 F0 A6 E4 26 20 CF E4 D0 90 A2 65 04 B0 [00:40:53]CheckFolder [00:40:53]dirname=/storage/ofd_packets [00:40:53]CheckFolder done [00:40:53]ProducePacketName [00:40:53]name=ofd_packets/00069299 [00:40:53]NVStorageSaveData ofd_packets/00069299 [00:40:53]File name is /storage/ofd_packets/00069299 [00:40:53]Write 321 bytes [00:40:53]NVStorageSaveData done [00:40:53]OFDSenderStorePacket done [00:40:53]KKMCreateOFDPacket done [00:40:53]NVStorageSaveData kkm_last_timestamp [00:40:53]File name is /storage/kkm_last_timestamp [00:40:53]OFD Sender: Processing packet 69299 [packets to send 19, broken 18] [00:40:53]ProducePacketName [00:40:53]name=ofd_packets/00069299 [00:40:53]OFD Sender: To server: pG, [00:40:53]CommunicateWithHost lk.salyk.kg:30040 [00:40:53]ConnectInit lk.salyk.kg [00:40:53]Write 4 bytes [00:40:53]NVStorageSaveData done [00:40:53]ExternCall_PrintAddStr [00:40:53]wPrintStart [00:40:53]Write to MH i2c: 01 00 00 BA 65 1F [00:40:53]Write i2c OK [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: 01 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: 01 07 00 [00:40:53]MH_I2C_Read... [00:40:53]Read from MH i2c: 01 07 00 BA 65 00 00 00 00 00 FF 0F 34 [00:40:53]RasterBufferAndPrint [00:40:53]line Счет N : (3)136633 [00:40:53]line ИНН: 02508201610067 [00:40:53]line Контрольно-Кассовый Чек [00:40:53]line ПРОДАЖА [00:40:53]line Товар: 47802995 [00:40:53]line Сигареты Winston XS Silver [00:40:53]line 1.000 * 140.00 [00:40:53]line = 140.00 [00:40:53]line НДС 12% НСП 1% [00:40:53]line > о реализуемом товаре [00:40:53]line ИТОГО: 140.00 [00:40:53]line НСП 1% : 1.24 [00:40:53]line НДС 12% : 14.87 [00:40:53]line Наличными: 140.00 [00:40:53]line Безнал.: 0.00 [00:40:53]line Место: АЗС № 125 "Партнер Нефть" [00:40:53]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [00:40:53]line СНО: Общий режим [00:40:53]line Чек 3 29.07.2024 00:41 [00:40:53]line Смена: 430 ФФД: 1.0 [00:40:53]line ЗНМ: 0300000049 [00:40:53]line РНМ: 0000000000092638 [00:40:53]line Версия ККМ: 001 [00:40:53]line ФМ: 0000000000874949 [00:40:53]line ФД: 69299 [00:40:53]line ФПД: 178054964192800 [00:40:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004103&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69299&fm=178054964192800&tin=02508201610067®Number=0000000000092638&sum=14000 [00:40:53]line 0 [00:40:53]Connected sock=11 [00:40:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 23 01 00 00 D5 28 1B 01 04 73 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 1F E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B3 0E 01 00 35 04 06 00 A1 F0 A6 E4 26 20 CF E4 D0 90 A2 65 04 B0 [00:40:53]written 0, free lines is 4095 [00:40:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 6F 48 47 00 1D 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 39 34 39 10 04 04 00 B3 0E 01 00 F4 03 04 00 8D 8B A6 66 B6 04 01 00 00 05 E9 C1 5A 7E 5D 5A 5E [00:40:54]CommunicateWithHost err = 0 [00:40:54]CheckOFDResponse [00:40:54]1017 (14) - 77093643461234 [00:40:54]1041 (16) - 0000000000874949 [00:40:54]1040 (4) - 69299 [00:40:54]1012 (4) - 28.07.2024 18:18 [00:40:54]1206 (1) - 0 [00:40:54]OFD Sender: Remove packet 69299 [00:40:54]ProducePacketName [00:40:54]name=ofd_packets/00069299 [00:40:54]NVStorageDeleteData [00:40:54]Write to MH i2c: 01 00 00 E2 65 47 [00:40:54]Write i2c OK [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: 01 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: 01 07 00 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: 01 07 00 E2 65 00 00 00 00 00 1F 0D 7A [00:40:54]RasterBufferAndPrint [00:40:54]line [00:40:54]line [00:40:54]line [00:40:54]line [00:40:54]line [00:40:54]written 0, free lines is 3368 [00:40:54]MH_Cut [00:40:54]Write to MH i2c: D1 01 00 E9 65 01 20 [00:40:54]Write i2c OK [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: D1 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: D1 01 00 [00:40:54]MH_I2C_Read... [00:40:54]Read from MH i2c: D1 01 00 E9 65 00 1F [00:40:54]Write to MH i2c: 01 00 00 EA 65 4F [00:40:54]Write i2c OK [00:40:54]MH_I2C_Read... [00:40:54]OFD Sender: No OFD packet to send [00:40:55]*** Cut start [00:40:55]*** Partial cut [00:40:55]*** CUTSNS_PIN = 1 [00:40:55]*** CUTSNS_PIN = 0 [00:40:55]*** Brake cut motor [00:40:55]Read from MH i2c: 01 [00:40:55]MH_I2C_Read... [00:40:55]*** Stop cut motor [00:40:55]*** Cut end [00:40:55]Read from MH i2c: 01 07 00 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: 01 07 00 EA 65 00 00 00 00 00 FF 0F 64 [00:40:55]process_action close_receipt done [00:40:55]requested_data is exist [00:40:55]produce_requested_data [00:40:55]requested_item fm.sn is exist - process it [00:40:55]wFMCommunicate request_size=4 [00:40:55]MH_SAM_APDU [00:40:55]CAPDU: 80 11 00 00 [00:40:55]Write to MH i2c: E2 08 00 EB 65 80 11 00 00 00 00 00 00 CA [00:40:55]Write i2c OK [00:40:55]MH_I2C_Read... [00:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:55]Read from MH i2c: E2 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: E2 17 00 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: E2 17 00 EB 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 26 [00:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:40:55]wFMCommunicate OK [00:40:55]requested_item fd.num is exist - process it [00:40:55]SAM_PROTO_GetFieldsCounters [00:40:55]wFMCommunicate request_size=4 [00:40:55]MH_SAM_APDU [00:40:55]CAPDU: 80 13 00 00 [00:40:55]Write to MH i2c: E2 08 00 EC 65 80 13 00 00 00 00 00 00 CD [00:40:55]Write i2c OK [00:40:55]MH_I2C_Read... [00:40:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:40:55]Read from MH i2c: E2 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: E2 62 00 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: E2 62 00 EC 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B3 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [00:40:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B3 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:40:55]wFMCommunicate OK [00:40:55]SAM_PROTO_GetFieldsCounters done [00:40:55]requested_item shift.num is exist - process it [00:40:55]requested_item shift.opened is exist - process it [00:40:55]req_shift_opened [00:40:55]FM_GetShiftState [00:40:55]SAM_PROTO_GetShiftState [00:40:55]wFMCommunicate request_size=4 [00:40:55]MH_SAM_APDU [00:40:55]CAPDU: 80 13 01 00 [00:40:55]Write to MH i2c: E2 08 00 ED 65 80 13 01 00 00 00 00 00 CF [00:40:55]Write i2c OK [00:40:55]MH_I2C_Read... [00:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:55]Read from MH i2c: E2 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: E2 0E 00 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: E2 0E 00 ED 65 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 86 [00:40:55]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:40:55]wFMCommunicate OK [00:40:55]SAM_PROTO_GetShiftState done [00:40:55]FM_GetShiftState done [00:40:55]req_shift_opened done [00:40:55]requested_item shift.open_date is exist - process it [00:40:55]req_shift_open_date [00:40:55]req_shift_open_date done [00:40:55]produce_requested_data done [00:40:55]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69299,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [00:40:55]process_action_free close_receipt [00:40:55]json_value_free [00:40:55]json_value_free done [00:40:55]process_json_proto returns [00:40:55]Send response to host [00:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69299,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [00:40:55]free response buf [00:40:55]execute_script done [00:40:55]execute_script returns [00:40:55]free content buf [00:40:55]Sock 7.Close socket [00:40:55]Sock 7.Thread stoped [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:12]accept exits with 9 [00:41:12]New connection [00:41:12]New thread 3066785124 created [00:41:12]Thread 3066641764 joined [00:41:12]Waiting for new connection... [00:41:12] Sock 9.Parse request [00:41:12]Sock 9.Check first char [00:41:12]Sock 9.First char is OK [00:41:12]request: POST /json_proto HTTP/1.0 [00:41:12]Method: POST [00:41:12]URL: /json_proto [00:41:12]Method is POST - this is cgi request [00:41:12]url: /json_proto [00:41:12]query_string will be loaded in cgi processing [00:41:12]execute_cgi json_proto POST (null) [00:41:12]execute_cgi path=json_proto method=POST [00:41:12]POST find Content-Length [00:41:12]Host: 172.17.49.132:8080 [00:41:12]Content-Length: 843 [00:41:12]Content-Type: application/json [00:41:12] [00:41:12]POST finish read [00:41:12]Found Content-Length = 843 [00:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 28.030, "sum" : 1900.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1900.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:12]execute_script... [00:41:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 28.030, "sum" : 1900.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1900.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:12]POST & json_proto [00:41:12]process_json_proto [00:41:12]json parsed OK: [00:41:12]protocol is kg_v1.0 [00:41:12]action value=close_receipt [00:41:12]process_action close_receipt [00:41:12]cmd_close_receipt [00:41:12]MH_GetDate [00:41:12]Write to MH i2c: F0 00 00 EE 65 42 [00:41:12]Write i2c OK [00:41:12]MH_I2C_Read... [00:41:12]Read from MH i2c: F0 [00:41:12]MH_I2C_Read... [00:41:12]Read from MH i2c: F0 09 00 [00:41:12]MH_I2C_Read... [00:41:12]Read from MH i2c: F0 09 00 EE 65 00 34 E5 A6 66 E7 4B C0 64 C6 [00:41:12]GetLastDocTimeStamp 1722213663 [00:41:12]current date 1722213684 [00:41:12]FM_GetShiftState [00:41:12]SAM_PROTO_GetShiftState [00:41:12]wFMCommunicate request_size=4 [00:41:12]MH_SAM_APDU [00:41:12]CAPDU: 80 13 01 00 [00:41:12]Write to MH i2c: E2 08 00 EF 65 80 13 01 00 00 00 00 00 D1 [00:41:12]Write i2c OK [00:41:12]MH_I2C_Read... [00:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:12]Read from MH i2c: E2 [00:41:12]MH_I2C_Read... [00:41:12]Read from MH i2c: E2 0E 00 [00:41:12]MH_I2C_Read... [00:41:12]Read from MH i2c: E2 0E 00 EF 65 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 88 [00:41:12]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:41:12]wFMCommunicate OK [00:41:12]SAM_PROTO_GetShiftState done [00:41:12]FM_GetShiftState done [00:41:12]opened in 1722213563 [00:41:12]opened+sec_in_day 1722299963 [00:41:12]quantity*price = 190043 [00:41:12]sum+1 = 190044 [00:41:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1900.43 НСП 1% : 16.82 НДС 12% : 201.82 Наличными: 0.00 Безнал.: 1900.43 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 4 29.07.2024 00:41 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69300 ФПД: 247682894662733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004124&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69300&fm=247682894662733&tin=02508201610067®Number=0000000000092638&sum=190043 [00:41:13]StoreToDocumentArchive [00:41:13]shift 430 fd 69300 [00:41:13]save to /storage/0430/doc_00069300 [00:41:13]save last doc name /storage/0430/doc_00069300 to /storage/kkm_last_doc_name [00:41:14]save OK [00:41:14]Clear old archive folders... [00:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:41:14]tlvbuf is 00C448A0 [00:41:14]SAM_PROTO_ClearQueue [00:41:14]wFMCommunicate request_size=4 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 09 00 00 [00:41:14]Write to MH i2c: E2 08 00 FC 65 80 09 00 00 00 00 00 00 D3 [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 FC 65 00 90 00 D5 [00:41:14]RAPDU: 90 00 [00:41:14]wFMCommunicate OK [00:41:14]SAM_PROTO_ClearQueue done [00:41:14]KKMCreateOFDPacket [00:41:14]OFDProtocolAddRootSTLVToBuf [00:41:14]FM_MakeSignedData [00:41:14]FM_MakeSignedData [00:41:14]SAM_PROTO_SignData [00:41:14]wFMCommunicate request_size=4 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 0D 01 02 [00:41:14]Write to MH i2c: E2 08 00 FD 65 80 0D 01 02 00 00 00 00 DB [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 FD 65 00 90 00 D6 [00:41:14]RAPDU: 90 00 [00:41:14]wFMCommunicate OK [00:41:14]wFMCommunicate request_size=255 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 6D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5B E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B E6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 34 E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B4 0E 01 00 35 04 06 00 E1 [00:41:14]Write to MH i2c: E2 02 01 FE 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 6D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5B E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B E6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 34 E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B4 0E 01 00 35 04 06 00 E1 00 00 73 [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 FE 65 00 90 00 D7 [00:41:14]RAPDU: 90 00 [00:41:14]wFMCommunicate OK [00:41:14]wFMCommunicate request_size=10 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 0D 02 02 05 44 2A F4 0C 4D [00:41:14]Write to MH i2c: E2 0D 00 FF 65 80 0D 02 02 05 00 44 2A F4 0C 4D 00 00 A3 [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 FF 65 00 90 00 D8 [00:41:14]RAPDU: 90 00 [00:41:14]wFMCommunicate OK [00:41:14]wFMCommunicate request_size=4 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 0D 03 02 [00:41:14]Write to MH i2c: E2 08 00 00 66 80 0D 03 02 00 00 00 00 E1 [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 0B 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 0B 00 00 66 00 FE F3 37 38 FC 56 1B FD 90 00 AC [00:41:14]RAPDU: FE F3 37 38 FC 56 1B FD 90 00 [00:41:14]wFMCommunicate OK [00:41:14]SAM_PROTO_SignData done [00:41:14]FM_MakeSignedData done [00:41:14]CreateOFDProtocolMessage [00:41:14]wFMCommunicate request_size=4 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 11 00 00 [00:41:14]Write to MH i2c: E2 08 00 01 66 80 11 00 00 00 00 00 00 E1 [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 17 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 17 00 01 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3D [00:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:41:14]wFMCommunicate OK [00:41:14]CreateOFDProtocolMessage done [00:41:14]OFDSenderStorePacket 69300 [00:41:14]StoreOFDPacket docnum=69300 [00:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 EA 13 07 01 AC DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 6D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5B E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B E6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 34 E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B4 0E 01 00 35 04 06 00 E1 44 2A F4 0C 4D FE F3 37 38 FC 56 1B FD [00:41:14]CheckFolder [00:41:14]dirname=/storage/ofd_packets [00:41:14]CheckFolder done [00:41:14]ProducePacketName [00:41:14]name=ofd_packets/00069300 [00:41:14]NVStorageSaveData ofd_packets/00069300 [00:41:14]File name is /storage/ofd_packets/00069300 [00:41:14]Write 301 bytes [00:41:14]NVStorageSaveData done [00:41:14]OFDSenderStorePacket done [00:41:14]KKMCreateOFDPacket done [00:41:14]NVStorageSaveData kkm_last_timestamp [00:41:14]File name is /storage/kkm_last_timestamp [00:41:14]Write 4 bytes [00:41:14]NVStorageSaveData done [00:41:14]ExternCall_PrintAddStr [00:41:14]wPrintStart [00:41:14]Write to MH i2c: 01 00 00 02 66 68 [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: 01 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: 01 07 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: 01 07 00 02 66 00 00 00 00 00 FF 0F 7D [00:41:14]RasterBufferAndPrint [00:41:14]line Счет N : (1)872267 [00:41:14]line ИНН: 02508201610067 [00:41:14]line Контрольно-Кассовый Чек [00:41:14]line ПРОДАЖА [00:41:14]line ТРК (МРК, ГНК) : 62 [00:41:14]line Товар: 2710124130 [00:41:14]line Аи-92-К-5 [00:41:14]line 28.030 * 67.80 [00:41:14]line = 1900.43 [00:41:14]line НДС 12% НСП 1% [00:41:14]line > о реализуемом товаре [00:41:14]line ИТОГО: 1900.43 [00:41:14]line НСП 1% : 16.82 [00:41:14]line НДС 12% : 201.82 [00:41:14]line Наличными: 0.00 [00:41:14]line Безнал.: 1900.43 [00:41:14]line Место: АЗС № 125 "Партнер Нефть" [00:41:14]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [00:41:14]line СНО: Общий режим [00:41:14]line Чек 4 29.07.2024 00:41 [00:41:14]line Смена: 430 ФФД: 1.0 [00:41:14]line ЗНМ: 0300000049 [00:41:14]line РНМ: 0000000000092638 [00:41:14]line Версия ККМ: 001 [00:41:14]line Платежная система: АКБ Кыргызстан [00:41:14]line ФМ: 0000000000874949 [00:41:14]line ФД: 69300 [00:41:14]line ФПД: 247682894662733 [00:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004124&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69300&fm=247682894662733&tin=02508201610067®Number=0000000000092638&sum=190043 [00:41:14]written 0, free lines is 4095 [00:41:14]OFD Sender: Processing packet 69300 [packets to send 19, broken 18] [00:41:14]ProducePacketName [00:41:14]name=ofd_packets/00069300 [00:41:14]OFD Sender: To server: pG, [00:41:14]CommunicateWithHost lk.salyk.kg:30040 [00:41:14]ConnectInit lk.salyk.kg [00:41:14]Connected sock=10 [00:41:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 EA 13 07 01 AC DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 6D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5B E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B E6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 34 E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B4 0E 01 00 35 04 06 00 E1 44 2A F4 0C 4D FE F3 37 38 FC 56 1B FD [00:41:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 63 DB 47 00 7C 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B4 0E 01 00 F4 03 04 00 A2 8B A6 66 B6 04 01 00 00 F8 B7 BE E9 0E 18 D9 0D [00:41:15]CommunicateWithHost err = 0 [00:41:15]CheckOFDResponse [00:41:15]1017 (14) - 77093643461234 [00:41:15]1041 (16) - 0000000000874949 [00:41:15]1040 (4) - 69300 [00:41:15]1012 (4) - 28.07.2024 18:19 [00:41:15]1206 (1) - 0 [00:41:15]OFD Sender: Remove packet 69300 [00:41:15]ProducePacketName [00:41:15]name=ofd_packets/00069300 [00:41:15]NVStorageDeleteData [00:41:15]Write to MH i2c: 01 00 00 2C 66 92 [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: 01 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: 01 07 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: 01 07 00 2C 66 00 00 00 00 00 1E 0D C4 [00:41:15]RasterBufferAndPrint [00:41:15]line [00:41:15]line [00:41:15]line [00:41:15]line [00:41:15]line [00:41:15]written 0, free lines is 3367 [00:41:15]MH_Cut [00:41:15]Write to MH i2c: D1 01 00 33 66 01 6B [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: D1 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: D1 01 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: D1 01 00 33 66 00 6A [00:41:15]Write to MH i2c: 01 00 00 34 66 9A [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]OFD Sender: No OFD packet to send [00:41:15]*** Cut start [00:41:15]*** Partial cut [00:41:15]*** CUTSNS_PIN = 1 [00:41:16]*** CUTSNS_PIN = 0 [00:41:16]*** Brake cut motor [00:41:16]Read from MH i2c: 01 [00:41:16]MH_I2C_Read... [00:41:16]*** Stop cut motor [00:41:16]*** Cut end [00:41:16]Read from MH i2c: 01 07 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: 01 07 00 34 66 00 00 00 00 00 FF 0F AF [00:41:16]process_action close_receipt done [00:41:16]requested_data is exist [00:41:16]produce_requested_data [00:41:16]requested_item fm.sn is exist - process it [00:41:16]wFMCommunicate request_size=4 [00:41:16]MH_SAM_APDU [00:41:16]CAPDU: 80 11 00 00 [00:41:16]Write to MH i2c: E2 08 00 35 66 80 11 00 00 00 00 00 00 15 [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:16]Read from MH i2c: E2 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 17 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 17 00 35 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 71 [00:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:41:16]wFMCommunicate OK [00:41:16]requested_item fd.num is exist - process it [00:41:16]SAM_PROTO_GetFieldsCounters [00:41:16]wFMCommunicate request_size=4 [00:41:16]MH_SAM_APDU [00:41:16]CAPDU: 80 13 00 00 [00:41:16]Write to MH i2c: E2 08 00 36 66 80 13 00 00 00 00 00 00 18 [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:16]Read from MH i2c: E2 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 62 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 62 00 36 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B4 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [00:41:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B4 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:16]wFMCommunicate OK [00:41:16]SAM_PROTO_GetFieldsCounters done [00:41:16]requested_item shift.num is exist - process it [00:41:16]requested_item shift.opened is exist - process it [00:41:16]req_shift_opened [00:41:16]FM_GetShiftState [00:41:16]SAM_PROTO_GetShiftState [00:41:16]wFMCommunicate request_size=4 [00:41:16]MH_SAM_APDU [00:41:16]CAPDU: 80 13 01 00 [00:41:16]Write to MH i2c: E2 08 00 37 66 80 13 01 00 00 00 00 00 1A [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:16]Read from MH i2c: E2 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 0E 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 0E 00 37 66 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 D1 [00:41:16]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:41:16]wFMCommunicate OK [00:41:16]SAM_PROTO_GetShiftState done [00:41:16]FM_GetShiftState done [00:41:16]req_shift_opened done [00:41:16]requested_item shift.open_date is exist - process it [00:41:16]req_shift_open_date [00:41:16]req_shift_open_date done [00:41:16]produce_requested_data done [00:41:16]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69300,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [00:41:16]process_action_free close_receipt [00:41:16]json_value_free [00:41:16]json_value_free done [00:41:16]process_json_proto returns [00:41:16]Send response to host [00:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69300,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [00:41:16]free response buf [00:41:16]execute_script done [00:41:16]execute_script returns [00:41:16]free content buf [00:41:16]Sock 9.Close socket [00:41:16]Sock 9.Thread stoped [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:25]accept exits with 7 [00:41:25]New connection [00:41:25]New thread 3066641764 created [00:41:25]Thread 3066785124 joined [00:41:25]Waiting for new connection... [00:41:25] Sock 7.Parse request [00:41:25]Sock 7.Check first char [00:41:25]Sock 7.First char is OK [00:41:25]request: POST /json_proto HTTP/1.0 [00:41:25]Method: POST [00:41:25]URL: /json_proto [00:41:25]Method is POST - this is cgi request [00:41:25]url: /json_proto [00:41:25]query_string will be loaded in cgi processing [00:41:25]execute_cgi json_proto POST (null) [00:41:25]execute_cgi path=json_proto method=POST [00:41:25]POST find Content-Length [00:41:25]Host: 172.17.49.132:8080 [00:41:25]Content-Length: 621 [00:41:25]Content-Type: application/json [00:41:25] [00:41:25]POST finish read [00:41:25]Found Content-Length = 621 [00:41:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136634", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:25]execute_script... [00:41: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)136634", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:25]POST & json_proto [00:41:25]process_json_proto [00:41:25]json parsed OK: [00:41:25]protocol is kg_v1.0 [00:41:25]action value=close_receipt [00:41:25]process_action close_receipt [00:41:25]cmd_close_receipt [00:41:25]MH_GetDate [00:41:25]Write to MH i2c: F0 00 00 38 66 8D [00:41:25]Write i2c OK [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: F0 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: F0 09 00 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: F0 09 00 38 66 00 41 E5 A6 66 E7 4B C0 64 1E [00:41:25]GetLastDocTimeStamp 1722213684 [00:41:25]current date 1722213697 [00:41:25]FM_GetShiftState [00:41:25]SAM_PROTO_GetShiftState [00:41:25]wFMCommunicate request_size=4 [00:41:25]MH_SAM_APDU [00:41:25]CAPDU: 80 13 01 00 [00:41:25]Write to MH i2c: E2 08 00 39 66 80 13 01 00 00 00 00 00 1C [00:41:25]Write i2c OK [00:41:25]MH_I2C_Read... [00:41:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:25]Read from MH i2c: E2 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 0E 00 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 0E 00 39 66 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 D3 [00:41:25]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:41:25]wFMCommunicate OK [00:41:25]SAM_PROTO_GetShiftState done [00:41:25]FM_GetShiftState done [00:41:25]opened in 1722213563 [00:41:25]opened+sec_in_day 1722299963 [00:41:25]quantity*price = 14000 [00:41:25]sum+1 = 14001 [00:41:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 5 29.07.2024 00:41 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69301 ФПД: 246362854564687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004137&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69301&fm=246362854564687&tin=02508201610067®Number=0000000000092638&sum=14000 0 [00:41:27]StoreToDocumentArchive [00:41:27]shift 430 fd 69301 [00:41:27]save to /storage/0430/doc_00069301 [00:41:27]save last doc name /storage/0430/doc_00069301 to /storage/kkm_last_doc_name [00:41:27]save OK [00:41:27]Clear old archive folders... [00:41:27]ProcessDocumentItem done err = 0, tmpTLVsize=273 [00:41:27]tlvbuf is 00B62A80 [00:41:27]SAM_PROTO_ClearQueue [00:41:27]wFMCommunicate request_size=4 [00:41:27]MH_SAM_APDU [00:41:27]CAPDU: 80 09 00 00 [00:41:27]Write to MH i2c: E2 08 00 46 66 80 09 00 00 00 00 00 00 1E [00:41:27]Write i2c OK [00:41:27]MH_I2C_Read... [00:41:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:27]Read from MH i2c: E2 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: E2 03 00 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: E2 03 00 46 66 00 90 00 20 [00:41:27]RAPDU: 90 00 [00:41:27]wFMCommunicate OK [00:41:27]SAM_PROTO_ClearQueue done [00:41:27]KKMCreateOFDPacket [00:41:27]OFDProtocolAddRootSTLVToBuf [00:41:27]FM_MakeSignedData [00:41:27]FM_MakeSignedData [00:41:27]SAM_PROTO_SignData [00:41:27]wFMCommunicate request_size=4 [00:41:27]MH_SAM_APDU [00:41:27]CAPDU: 80 0D 01 02 [00:41:27]Write to MH i2c: E2 08 00 47 66 80 0D 01 02 00 00 00 00 26 [00:41:27]Write i2c OK [00:41:27]MH_I2C_Read... [00:41:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:27]Read from MH i2c: E2 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: E2 03 00 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: E2 03 00 47 66 00 90 00 21 [00:41:27]RAPDU: 90 00 [00:41:27]wFMCommunicate OK [00:41:27]wFMCommunicate request_size=255 [00:41:27]MH_SAM_APDU [00:41:27]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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 41 E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 [00:41:27]Write to MH i2c: E2 02 01 48 66 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 41 E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 00 00 F0 [00:41:27]Write i2c OK [00:41:27]MH_I2C_Read... [00:41:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:27]Read from MH i2c: E2 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: E2 03 00 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: E2 03 00 48 66 00 90 00 22 [00:41:27]RAPDU: 90 00 [00:41:27]wFMCommunicate OK [00:41:27]wFMCommunicate request_size=32 [00:41:27]MH_SAM_APDU [00:41:27]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 39 10 04 04 00 B5 0E 01 00 35 04 06 00 E0 10 D2 6E A3 4F [00:41:27]Write to MH i2c: E2 23 00 49 66 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 39 10 04 04 00 B5 0E 01 00 35 04 06 00 E0 10 D2 6E A3 4F 00 00 75 [00:41:27]Write i2c OK [00:41:27]MH_I2C_Read... [00:41:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:27]Read from MH i2c: E2 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: E2 03 00 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: E2 03 00 49 66 00 90 00 23 [00:41:27]RAPDU: 90 00 [00:41:27]wFMCommunicate OK [00:41:27]wFMCommunicate request_size=4 [00:41:27]MH_SAM_APDU [00:41:27]CAPDU: 80 0D 03 02 [00:41:27]Write to MH i2c: E2 08 00 4A 66 80 0D 03 02 00 00 00 00 2B [00:41:27]Write i2c OK [00:41:27]MH_I2C_Read... [00:41:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:27]Read from MH i2c: E2 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: E2 0B 00 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: E2 0B 00 4A 66 00 EA 89 42 16 F6 B8 2A 96 90 00 65 [00:41:27]RAPDU: EA 89 42 16 F6 B8 2A 96 90 00 [00:41:27]wFMCommunicate OK [00:41:27]SAM_PROTO_SignData done [00:41:27]FM_MakeSignedData done [00:41:27]CreateOFDProtocolMessage [00:41:27]wFMCommunicate request_size=4 [00:41:27]MH_SAM_APDU [00:41:27]CAPDU: 80 11 00 00 [00:41:27]Write to MH i2c: E2 08 00 4B 66 80 11 00 00 00 00 00 00 2B [00:41:27]Write i2c OK [00:41:27]MH_I2C_Read... [00:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:27]Read from MH i2c: E2 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: E2 17 00 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: E2 17 00 4B 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 87 [00:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:41:27]wFMCommunicate OK [00:41:27]CreateOFDProtocolMessage done [00:41:27]OFDSenderStorePacket 69301 [00:41:27]StoreOFDPacket docnum=69301 [00:41:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 AD 2E 1D 01 7F 0C 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 41 E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B5 0E 01 00 35 04 06 00 E0 10 D2 6E A3 4F EA 89 42 16 F6 B8 2A 96 [00:41:27]CheckFolder [00:41:27]dirname=/storage/ofd_packets [00:41:27]CheckFolder done [00:41:27]ProducePacketName [00:41:27]name=ofd_packets/00069301 [00:41:27]NVStorageSaveData ofd_packets/00069301 [00:41:27]File name is /storage/ofd_packets/00069301 [00:41:27]Write 323 bytes [00:41:27]NVStorageSaveData done [00:41:27]OFDSenderStorePacket done [00:41:27]KKMCreateOFDPacket done [00:41:27]NVStorageSaveData kkm_last_timestamp [00:41:27]File name is /storage/kkm_last_timestamp [00:41:27]Write 4 bytes [00:41:27]NVStorageSaveData done [00:41:27]ExternCall_PrintAddStr [00:41:27]wPrintStart [00:41:27]Write to MH i2c: 01 00 00 4C 66 B2 [00:41:27]Write i2c OK [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: 01 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: 01 07 00 [00:41:27]MH_I2C_Read... [00:41:27]Read from MH i2c: 01 07 00 4C 66 00 00 00 00 00 FF 0F C7 [00:41:27]RasterBufferAndPrint [00:41:27]line Счет N : (3)136634 [00:41:27]line ИНН: 02508201610067 [00:41:27]line Контрольно-Кассовый Чек [00:41:27]line ПРОДАЖА [00:41:27]line Товар: 48747059 [00:41:27]line Сигареты Winston Legend Blue [00:41:27]line 1.000 * 140.00 [00:41:27]line = 140.00 [00:41:27]line НДС 12% НСП 1% [00:41:27]line > о реализуемом товаре [00:41:27]line ИТОГО: 140.00 [00:41:27]line НСП 1% : 1.24 [00:41:27]line НДС 12% : 14.87 [00:41:27]line Наличными: 140.00 [00:41:27]line Безнал.: 0.00 [00:41:27]line Место: АЗС № 125 "Партнер Нефть" [00:41:27]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [00:41:27]line СНО: Общий режим [00:41:27]line Чек 5 29.07.2024 00:41 [00:41:27]line Смена: 430 ФФД: 1.0 [00:41:27]line ЗНМ: 0300000049 [00:41:27]line РНМ: 0000000000092638 [00:41:27]line Версия ККМ: 001 [00:41:27]line ФМ: 0000000000874949 [00:41:27]line ФД: 69301 [00:41:27]line ФПД: 246362854564687 [00:41:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004137&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69301&fm=246362854564687&tin=02508201610067®Number=0000000000092638&sum=14000 [00:41:27]line 0 [00:41:27]written 0, free lines is 4095 [00:41:27]OFD Sender: Processing packet 69301 [packets to send 19, broken 18] [00:41:27]ProducePacketName [00:41:27]name=ofd_packets/00069301 [00:41:27]OFD Sender: To server: pG, [00:41:27]CommunicateWithHost lk.salyk.kg:30040 [00:41:27]ConnectInit lk.salyk.kg [00:41:27]Connected sock=11 [00:41: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 39 34 39 25 01 00 00 AD 2E 1D 01 7F 0C 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 41 E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B5 0E 01 00 35 04 06 00 E0 10 D2 6E A3 4F EA 89 42 16 F6 B8 2A 96 [00:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 88 63 47 00 69 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 39 34 39 10 04 04 00 B5 0E 01 00 F4 03 04 00 AF 8B A6 66 B6 04 01 00 00 58 60 8B 6F D5 C0 52 E8 [00:41:27]CommunicateWithHost err = 0 [00:41:27]CheckOFDResponse [00:41:27]1017 (14) - 77093643461234 [00:41:27]1041 (16) - 0000000000874949 [00:41:27]1040 (4) - 69301 [00:41:27]1012 (4) - 28.07.2024 18:19 [00:41:27]1206 (1) - 0 [00:41:27]OFD Sender: Remove packet 69301 [00:41:27]ProducePacketName [00:41:27]name=ofd_packets/00069301 [00:41:27]NVStorageDeleteData [00:41:28]Write to MH i2c: 01 00 00 75 66 DB [00:41:28]Write i2c OK [00:41:28]MH_I2C_Read... [00:41:28]Read from MH i2c: 01 [00:41:28]MH_I2C_Read... [00:41:28]Read from MH i2c: 01 07 00 [00:41:28]MH_I2C_Read... [00:41:28]Read from MH i2c: 01 07 00 75 66 00 00 00 00 00 F4 0C E2 [00:41:28]RasterBufferAndPrint [00:41:28]line [00:41:28]line [00:41:28]line [00:41:28]line [00:41:28]line [00:41:28]written 0, free lines is 3327 [00:41:28]MH_Cut [00:41:28]Write to MH i2c: D1 01 00 7C 66 01 B4 [00:41:28]Write i2c OK [00:41:28]MH_I2C_Read... [00:41:28]Read from MH i2c: D1 [00:41:28]MH_I2C_Read... [00:41:28]Read from MH i2c: D1 01 00 [00:41:28]MH_I2C_Read... [00:41:28]Read from MH i2c: D1 01 00 7C 66 00 B3 [00:41:28]Write to MH i2c: 01 00 00 7D 66 E3 [00:41:28]Write i2c OK [00:41:28]MH_I2C_Read... [00:41:28]OFD Sender: No OFD packet to send [00:41:28]*** Cut start [00:41:28]*** Partial cut [00:41:28]*** CUTSNS_PIN = 1 [00:41:28]*** CUTSNS_PIN = 0 [00:41:28]*** Brake cut motor [00:41:29]Read from MH i2c: 01 [00:41:29]MH_I2C_Read... [00:41:29]*** Stop cut motor [00:41:29]*** Cut end [00:41:29]Read from MH i2c: 01 07 00 [00:41:29]MH_I2C_Read... [00:41:29]Read from MH i2c: 01 07 00 7D 66 00 00 00 00 00 FF 0F F8 [00:41:29]process_action close_receipt done [00:41:29]requested_data is exist [00:41:29]produce_requested_data [00:41:29]requested_item fm.sn is exist - process it [00:41:29]wFMCommunicate request_size=4 [00:41:29]MH_SAM_APDU [00:41:29]CAPDU: 80 11 00 00 [00:41:29]Write to MH i2c: E2 08 00 7E 66 80 11 00 00 00 00 00 00 5E [00:41:29]Write i2c OK [00:41:29]MH_I2C_Read... [00:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:29]Read from MH i2c: E2 [00:41:29]MH_I2C_Read... [00:41:29]Read from MH i2c: E2 17 00 [00:41:29]MH_I2C_Read... [00:41:29]Read from MH i2c: E2 17 00 7E 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 BA [00:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:41:29]wFMCommunicate OK [00:41:29]requested_item fd.num is exist - process it [00:41:29]SAM_PROTO_GetFieldsCounters [00:41:29]wFMCommunicate request_size=4 [00:41:29]MH_SAM_APDU [00:41:29]CAPDU: 80 13 00 00 [00:41:29]Write to MH i2c: E2 08 00 7F 66 80 13 00 00 00 00 00 00 61 [00:41:29]Write i2c OK [00:41:29]MH_I2C_Read... [00:41:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:29]Read from MH i2c: E2 [00:41:29]MH_I2C_Read... [00:41:29]Read from MH i2c: E2 62 00 [00:41:29]MH_I2C_Read... [00:41:29]Read from MH i2c: E2 62 00 7F 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B5 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [00:41: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B5 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:29]wFMCommunicate OK [00:41:29]SAM_PROTO_GetFieldsCounters done [00:41:29]requested_item shift.num is exist - process it [00:41:29]requested_item shift.opened is exist - process it [00:41:29]req_shift_opened [00:41:29]FM_GetShiftState [00:41:29]SAM_PROTO_GetShiftState [00:41:29]wFMCommunicate request_size=4 [00:41:29]MH_SAM_APDU [00:41:29]CAPDU: 80 13 01 00 [00:41:29]Write to MH i2c: E2 08 00 80 66 80 13 01 00 00 00 00 00 63 [00:41:29]Write i2c OK [00:41:29]MH_I2C_Read... [00:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:29]Read from MH i2c: E2 [00:41:29]MH_I2C_Read... [00:41:29]Read from MH i2c: E2 0E 00 [00:41:29]MH_I2C_Read... [00:41:29]Read from MH i2c: E2 0E 00 80 66 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 1A [00:41:29]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:41:29]wFMCommunicate OK [00:41:29]SAM_PROTO_GetShiftState done [00:41:29]FM_GetShiftState done [00:41:29]req_shift_opened done [00:41:29]requested_item shift.open_date is exist - process it [00:41:29]req_shift_open_date [00:41:29]req_shift_open_date done [00:41:29]produce_requested_data done [00:41:29]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69301,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [00:41:29]process_action_free close_receipt [00:41:29]json_value_free [00:41:29]json_value_free done [00:41:29]process_json_proto returns [00:41:29]Send response to host [00:41:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69301,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [00:41:29]free response buf [00:41:29]execute_script done [00:41:29]execute_script returns [00:41:29]free content buf [00:41:29]Sock 7.Close socket [00:41:29]Sock 7.Thread stoped [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:28]accept exits with 9 [00:44:28]New connection [00:44:28]New thread 3066785124 created [00:44:28]Thread 3066641764 joined [00:44:28]Waiting for new connection... [00:44:28] Sock 9.Parse request [00:44:28]Sock 9.Check first char [00:44:28]Sock 9.First char is OK [00:44:28]request: POST /json_proto HTTP/1.0 [00:44:28]Method: POST [00:44:28]URL: /json_proto [00:44:28]Method is POST - this is cgi request [00:44:28]url: /json_proto [00:44:28]query_string will be loaded in cgi processing [00:44:28]execute_cgi json_proto POST (null) [00:44:28]execute_cgi path=json_proto method=POST [00:44:28]POST find Content-Length [00:44:28]Host: 172.17.49.132:8080 [00:44:28]Content-Length: 816 [00:44:28]Content-Type: application/json [00:44:28] [00:44:28]POST finish read [00:44:28]Found Content-Length = 816 [00:44:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:28]execute_script... [00:44:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:28]POST & json_proto [00:44:28]process_json_proto [00:44:28]json parsed OK: [00:44:28]protocol is kg_v1.0 [00:44:28]action value=close_receipt [00:44:28]process_action close_receipt [00:44:28]cmd_close_receipt [00:44:28]MH_GetDate [00:44:28]Write to MH i2c: F0 00 00 81 66 D6 [00:44:28]Write i2c OK [00:44:28]MH_I2C_Read... [00:44:28]Read from MH i2c: F0 [00:44:28]MH_I2C_Read... [00:44:28]Read from MH i2c: F0 09 00 [00:44:28]MH_I2C_Read... [00:44:28]Read from MH i2c: F0 09 00 81 66 00 F8 E5 A6 66 E7 4B C0 64 1E [00:44:28]GetLastDocTimeStamp 1722213697 [00:44:28]current date 1722213880 [00:44:28]FM_GetShiftState [00:44:28]SAM_PROTO_GetShiftState [00:44:28]wFMCommunicate request_size=4 [00:44:28]MH_SAM_APDU [00:44:28]CAPDU: 80 13 01 00 [00:44:28]Write to MH i2c: E2 08 00 82 66 80 13 01 00 00 00 00 00 65 [00:44:28]Write i2c OK [00:44:28]MH_I2C_Read... [00:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:28]Read from MH i2c: E2 [00:44:28]MH_I2C_Read... [00:44:28]Read from MH i2c: E2 0E 00 [00:44:28]MH_I2C_Read... [00:44:28]Read from MH i2c: E2 0E 00 82 66 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 1C [00:44:28]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:44:28]wFMCommunicate OK [00:44:28]SAM_PROTO_GetShiftState done [00:44:28]FM_GetShiftState done [00:44:28]opened in 1722213563 [00:44:28]opened+sec_in_day 1722299963 [00:44:28]quantity*price = 50036 [00:44:28]sum+1 = 50037 [00:44:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 6 29.07.2024 00:44 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874949 ФД: 69302 ФПД: 276133309887417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004440&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69302&fm=276133309887417&tin=02508201610067®Number=0000000000092638&sum=50036 [00:44:30]StoreToDocumentArchive [00:44:30]shift 430 fd 69302 [00:44:30]save to /storage/0430/doc_00069302 [00:44:30]save last doc name /storage/0430/doc_00069302 to /storage/kkm_last_doc_name [00:44:30]save OK [00:44:30]Clear old archive folders... [00:44:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:44:30]tlvbuf is 00C53650 [00:44:30]SAM_PROTO_ClearQueue [00:44:30]wFMCommunicate request_size=4 [00:44:30]MH_SAM_APDU [00:44:30]CAPDU: 80 09 00 00 [00:44:30]Write to MH i2c: E2 08 00 8F 66 80 09 00 00 00 00 00 00 67 [00:44:30]Write i2c OK [00:44:30]MH_I2C_Read... [00:44:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:44:30]Read from MH i2c: E2 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 03 00 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 03 00 8F 66 00 90 00 69 [00:44:30]RAPDU: 90 00 [00:44:30]wFMCommunicate OK [00:44:30]SAM_PROTO_ClearQueue done [00:44:30]KKMCreateOFDPacket [00:44:30]OFDProtocolAddRootSTLVToBuf [00:44:30]FM_MakeSignedData [00:44:30]FM_MakeSignedData [00:44:30]SAM_PROTO_SignData [00:44:30]wFMCommunicate request_size=4 [00:44:30]MH_SAM_APDU [00:44:30]CAPDU: 80 0D 01 02 [00:44:30]Write to MH i2c: E2 08 00 90 66 80 0D 01 02 00 00 00 00 6F [00:44:30]Write i2c OK [00:44:30]MH_I2C_Read... [00:44:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:44:30]Read from MH i2c: E2 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 03 00 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 03 00 90 66 00 90 00 6A [00:44:30]RAPDU: 90 00 [00:44:30]wFMCommunicate OK [00:44:30]wFMCommunicate request_size=255 [00:44:30]MH_SAM_APDU [00:44:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F8 E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B6 0E 01 00 35 04 06 00 FB [00:44:30]Write to MH i2c: E2 02 01 91 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F8 E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B6 0E 01 00 35 04 06 00 FB 00 00 A0 [00:44:30]Write i2c OK [00:44:30]MH_I2C_Read... [00:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:30]Read from MH i2c: E2 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 03 00 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 03 00 91 66 00 90 00 6B [00:44:30]RAPDU: 90 00 [00:44:30]wFMCommunicate OK [00:44:30]wFMCommunicate request_size=10 [00:44:30]MH_SAM_APDU [00:44:30]CAPDU: 80 0D 02 02 05 24 4B D8 B3 B9 [00:44:30]Write to MH i2c: E2 0D 00 92 66 80 0D 02 02 05 00 24 4B D8 B3 B9 00 00 2F [00:44:30]Write i2c OK [00:44:30]MH_I2C_Read... [00:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:30]Read from MH i2c: E2 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 03 00 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 03 00 92 66 00 90 00 6C [00:44:30]RAPDU: 90 00 [00:44:30]wFMCommunicate OK [00:44:30]wFMCommunicate request_size=4 [00:44:30]MH_SAM_APDU [00:44:30]CAPDU: 80 0D 03 02 [00:44:30]Write to MH i2c: E2 08 00 93 66 80 0D 03 02 00 00 00 00 74 [00:44:30]Write i2c OK [00:44:30]MH_I2C_Read... [00:44:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:44:30]Read from MH i2c: E2 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 0B 00 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 0B 00 93 66 00 44 38 FC 42 9C CE 40 32 90 00 0B [00:44:30]RAPDU: 44 38 FC 42 9C CE 40 32 90 00 [00:44:30]wFMCommunicate OK [00:44:30]SAM_PROTO_SignData done [00:44:30]FM_MakeSignedData done [00:44:30]CreateOFDProtocolMessage [00:44:30]wFMCommunicate request_size=4 [00:44:30]MH_SAM_APDU [00:44:30]CAPDU: 80 11 00 00 [00:44:30]Write to MH i2c: E2 08 00 94 66 80 11 00 00 00 00 00 00 74 [00:44:30]Write i2c OK [00:44:30]MH_I2C_Read... [00:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:30]Read from MH i2c: E2 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 17 00 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: E2 17 00 94 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D0 [00:44:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:44:30]wFMCommunicate OK [00:44:30]CreateOFDProtocolMessage done [00:44:30]OFDSenderStorePacket 69302 [00:44:30]StoreOFDPacket docnum=69302 [00:44:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 1D B4 07 01 3B C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F8 E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B6 0E 01 00 35 04 06 00 FB 24 4B D8 B3 B9 44 38 FC 42 9C CE 40 32 [00:44:30]CheckFolder [00:44:30]dirname=/storage/ofd_packets [00:44:30]CheckFolder done [00:44:30]ProducePacketName [00:44:30]name=ofd_packets/00069302 [00:44:30]NVStorageSaveData ofd_packets/00069302 [00:44:30]File name is /storage/ofd_packets/00069302 [00:44:30]Write 301 bytes [00:44:30]NVStorageSaveData done [00:44:30]OFDSenderStorePacket done [00:44:30]KKMCreateOFDPacket done [00:44:30]NVStorageSaveData kkm_last_timestamp [00:44:30]File name is /storage/kkm_last_timestamp [00:44:30]Write 4 bytes [00:44:30]NVStorageSaveData done [00:44:30]ExternCall_PrintAddStr [00:44:30]wPrintStart [00:44:30]Write to MH i2c: 01 00 00 95 66 FB [00:44:30]Write i2c OK [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: 01 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: 01 07 00 [00:44:30]MH_I2C_Read... [00:44:30]Read from MH i2c: 01 07 00 95 66 00 00 00 00 00 FF 0F 10 [00:44:30]RasterBufferAndPrint [00:44:30]line Счет N : (1)872272 [00:44:30]line ИНН: 02508201610067 [00:44:30]line Контрольно-Кассовый Чек [00:44:30]line ПРОДАЖА [00:44:30]line ТРК (МРК, ГНК) : 42 [00:44:30]line Товар: 2710124130 [00:44:30]line Аи-92-К-5 [00:44:30]line 7.380 * 67.80 [00:44:30]line = 500.36 [00:44:30]line НДС 12% НСП 1% [00:44:30]line > о реализуемом товаре [00:44:30]line ИТОГО: 500.36 [00:44:30]line НСП 1% : 4.43 [00:44:30]line НДС 12% : 53.14 [00:44:30]line Наличными: 0.00 [00:44:30]line Безнал.: 500.36 [00:44:30]line Место: АЗС № 125 "Партнер Нефть" [00:44:30]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [00:44:30]line СНО: Общий режим [00:44:30]line Чек 6 29.07.2024 00:44 [00:44:30]line Смена: 430 ФФД: 1.0 [00:44:30]line ЗНМ: 0300000049 [00:44:30]line РНМ: 0000000000092638 [00:44:30]line Версия ККМ: 001 [00:44:30]line Платежная система: Бакай Банк [00:44:30]line ФМ: 0000000000874949 [00:44:30]line ФД: 69302 [00:44:30]line ФПД: 276133309887417 [00:44:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004440&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69302&fm=276133309887417&tin=02508201610067®Number=0000000000092638&sum=50036 [00:44:30]OFD Sender: Processing packet 69302 [packets to send 19, broken 18] [00:44:30]ProducePacketName [00:44:30]name=ofd_packets/00069302 [00:44:30]OFD Sender: To server: pG, [00:44:30]CommunicateWithHost lk.salyk.kg:30040 [00:44:30]ConnectInit lk.salyk.kg [00:44:30]written 0, free lines is 4095 [00:44:31]Connected sock=10 [00:44:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 1D B4 07 01 3B C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F8 E5 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B6 0E 01 00 35 04 06 00 FB 24 4B D8 B3 B9 44 38 FC 42 9C CE 40 32 [00:44:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 E5 83 47 00 BB C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B6 0E 01 00 F4 03 04 00 66 8C A6 66 B6 04 01 00 00 21 04 75 8F 5B 87 3C D4 [00:44:31]CommunicateWithHost err = 0 [00:44:31]CheckOFDResponse [00:44:31]1017 (14) - 77093643461234 [00:44:31]1041 (16) - 0000000000874949 [00:44:31]1040 (4) - 69302 [00:44:31]1012 (4) - 28.07.2024 18:22 [00:44:31]1206 (1) - 0 [00:44:31]OFD Sender: Remove packet 69302 [00:44:31]ProducePacketName [00:44:31]name=ofd_packets/00069302 [00:44:31]NVStorageDeleteData [00:44:31]Write to MH i2c: 01 00 00 BF 66 25 [00:44:31]Write i2c OK [00:44:31]MH_I2C_Read... [00:44:31]Read from MH i2c: 01 [00:44:31]MH_I2C_Read... [00:44:31]Read from MH i2c: 01 07 00 [00:44:31]MH_I2C_Read... [00:44:31]Read from MH i2c: 01 07 00 BF 66 00 00 00 00 00 01 0D 3A [00:44:31]RasterBufferAndPrint [00:44:31]line [00:44:31]line [00:44:31]line [00:44:31]line [00:44:31]line [00:44:31]written 0, free lines is 3335 [00:44:31]MH_Cut [00:44:31]Write to MH i2c: D1 01 00 C6 66 01 FE [00:44:31]Write i2c OK [00:44:31]MH_I2C_Read... [00:44:31]Read from MH i2c: D1 [00:44:31]MH_I2C_Read... [00:44:31]Read from MH i2c: D1 01 00 [00:44:31]MH_I2C_Read... [00:44:31]Read from MH i2c: D1 01 00 C6 66 00 FD [00:44:31]Write to MH i2c: 01 00 00 C7 66 2D [00:44:31]Write i2c OK [00:44:31]MH_I2C_Read... [00:44:31]OFD Sender: No OFD packet to send [00:44:32]*** Cut start [00:44:32]*** Partial cut [00:44:32]*** CUTSNS_PIN = 1 [00:44:32]*** CUTSNS_PIN = 0 [00:44:32]*** Brake cut motor [00:44:32]Read from MH i2c: 01 [00:44:32]MH_I2C_Read... [00:44:32]*** Stop cut motor [00:44:32]*** Cut end [00:44:32]Read from MH i2c: 01 07 00 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: 01 07 00 C7 66 00 00 00 00 00 FF 0F 42 [00:44:32]process_action close_receipt done [00:44:32]requested_data is exist [00:44:32]produce_requested_data [00:44:32]requested_item fm.sn is exist - process it [00:44:32]wFMCommunicate request_size=4 [00:44:32]MH_SAM_APDU [00:44:32]CAPDU: 80 11 00 00 [00:44:32]Write to MH i2c: E2 08 00 C8 66 80 11 00 00 00 00 00 00 A8 [00:44:32]Write i2c OK [00:44:32]MH_I2C_Read... [00:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:32]Read from MH i2c: E2 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: E2 17 00 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: E2 17 00 C8 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 04 [00:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:44:32]wFMCommunicate OK [00:44:32]requested_item fd.num is exist - process it [00:44:32]SAM_PROTO_GetFieldsCounters [00:44:32]wFMCommunicate request_size=4 [00:44:32]MH_SAM_APDU [00:44:32]CAPDU: 80 13 00 00 [00:44:32]Write to MH i2c: E2 08 00 C9 66 80 13 00 00 00 00 00 00 AB [00:44:32]Write i2c OK [00:44:32]MH_I2C_Read... [00:44:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:44:32]Read from MH i2c: E2 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: E2 62 00 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: E2 62 00 C9 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B6 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [00:44:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B6 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:44:32]wFMCommunicate OK [00:44:32]SAM_PROTO_GetFieldsCounters done [00:44:32]requested_item shift.num is exist - process it [00:44:32]requested_item shift.opened is exist - process it [00:44:32]req_shift_opened [00:44:32]FM_GetShiftState [00:44:32]SAM_PROTO_GetShiftState [00:44:32]wFMCommunicate request_size=4 [00:44:32]MH_SAM_APDU [00:44:32]CAPDU: 80 13 01 00 [00:44:32]Write to MH i2c: E2 08 00 CA 66 80 13 01 00 00 00 00 00 AD [00:44:32]Write i2c OK [00:44:32]MH_I2C_Read... [00:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:32]Read from MH i2c: E2 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: E2 0E 00 [00:44:32]MH_I2C_Read... [00:44:32]Read from MH i2c: E2 0E 00 CA 66 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 64 [00:44:32]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:44:32]wFMCommunicate OK [00:44:32]SAM_PROTO_GetShiftState done [00:44:32]FM_GetShiftState done [00:44:32]req_shift_opened done [00:44:32]requested_item shift.open_date is exist - process it [00:44:32]req_shift_open_date [00:44:32]req_shift_open_date done [00:44:32]produce_requested_data done [00:44:32]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69302,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [00:44:32]process_action_free close_receipt [00:44:32]json_value_free [00:44:32]json_value_free done [00:44:32]process_json_proto returns [00:44:32]Send response to host [00:44:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69302,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [00:44:32]free response buf [00:44:32]execute_script done [00:44:32]execute_script returns [00:44:32]free content buf [00:44:32]Sock 9.Close socket [00:44:32]Sock 9.Thread stoped [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:35]accept exits with 7 [00:46:35]New connection [00:46:35]New thread 3066641764 created [00:46:35]Thread 3066785124 joined [00:46:35]Waiting for new connection... [00:46:35] Sock 7.Parse request [00:46:35]Sock 7.Check first char [00:46:35]Sock 7.First char is OK [00:46:35]request: POST /json_proto HTTP/1.0 [00:46:35]Method: POST [00:46:35]URL: /json_proto [00:46:35]Method is POST - this is cgi request [00:46:35]url: /json_proto [00:46:35]query_string will be loaded in cgi processing [00:46:35]execute_cgi json_proto POST (null) [00:46:35]execute_cgi path=json_proto method=POST [00:46:35]POST find Content-Length [00:46:35]Host: 172.17.49.132:8080 [00:46:35]Content-Length: 843 [00:46:35]Content-Type: application/json [00:46:35] [00:46:35]POST finish read [00:46:35]Found Content-Length = 843 [00:46:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:35]execute_script... [00:46:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:35]POST & json_proto [00:46:35]process_json_proto [00:46:35]json parsed OK: [00:46:35]protocol is kg_v1.0 [00:46:35]action value=close_receipt [00:46:35]process_action close_receipt [00:46:35]cmd_close_receipt [00:46:35]MH_GetDate [00:46:35]Write to MH i2c: F0 00 00 CB 66 20 [00:46:35]Write i2c OK [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: F0 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: F0 09 00 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: F0 09 00 CB 66 00 77 E6 A6 66 E7 4B C0 64 E8 [00:46:35]GetLastDocTimeStamp 1722213880 [00:46:35]current date 1722214007 [00:46:35]FM_GetShiftState [00:46:35]SAM_PROTO_GetShiftState [00:46:35]wFMCommunicate request_size=4 [00:46:35]MH_SAM_APDU [00:46:35]CAPDU: 80 13 01 00 [00:46:35]Write to MH i2c: E2 08 00 CC 66 80 13 01 00 00 00 00 00 AF [00:46:35]Write i2c OK [00:46:35]MH_I2C_Read... [00:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:35]Read from MH i2c: E2 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: E2 0E 00 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: E2 0E 00 CC 66 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 66 [00:46:35]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:46:35]wFMCommunicate OK [00:46:35]SAM_PROTO_GetShiftState done [00:46:35]FM_GetShiftState done [00:46:35]opened in 1722213563 [00:46:35]opened+sec_in_day 1722299963 [00:46:35]quantity*price = 100005 [00:46:35]sum+1 = 100006 [00:46:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 7 29.07.2024 00:46 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69303 ФПД: 197044894900321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004647&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69303&fm=197044894900321&tin=02508201610067®Number=0000000000092638&sum=100005 [00:46:36]StoreToDocumentArchive [00:46:36]shift 430 fd 69303 [00:46:36]save to /storage/0430/doc_00069303 [00:46:36]save last doc name /storage/0430/doc_00069303 to /storage/kkm_last_doc_name [00:46:36]save OK [00:46:36]Clear old archive folders... [00:46:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:46:36]tlvbuf is 00C44B80 [00:46:36]SAM_PROTO_ClearQueue [00:46:36]wFMCommunicate request_size=4 [00:46:36]MH_SAM_APDU [00:46:36]CAPDU: 80 09 00 00 [00:46:36]Write to MH i2c: E2 08 00 D9 66 80 09 00 00 00 00 00 00 B1 [00:46:36]OFD Sender: No OFD packet to send [00:46:36]Write i2c OK [00:46:36]MH_I2C_Read... [00:46:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:46:36]Read from MH i2c: E2 [00:46:36]MH_I2C_Read... [00:46:36]Read from MH i2c: E2 03 00 [00:46:36]MH_I2C_Read... [00:46:36]Read from MH i2c: E2 03 00 D9 66 00 90 00 B3 [00:46:36]RAPDU: 90 00 [00:46:36]wFMCommunicate OK [00:46:36]SAM_PROTO_ClearQueue done [00:46:36]KKMCreateOFDPacket [00:46:36]OFDProtocolAddRootSTLVToBuf [00:46:36]FM_MakeSignedData [00:46:36]FM_MakeSignedData [00:46:36]SAM_PROTO_SignData [00:46:36]wFMCommunicate request_size=4 [00:46:36]MH_SAM_APDU [00:46:36]CAPDU: 80 0D 01 02 [00:46:36]Write to MH i2c: E2 08 00 DA 66 80 0D 01 02 00 00 00 00 B9 [00:46:36]Write i2c OK [00:46:36]MH_I2C_Read... [00:46:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:46:37]Read from MH i2c: E2 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 03 00 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 03 00 DA 66 00 90 00 B4 [00:46:37]RAPDU: 90 00 [00:46:37]wFMCommunicate OK [00:46:37]wFMCommunicate request_size=255 [00:46:37]MH_SAM_APDU [00:46:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 77 E6 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B7 0E 01 00 35 04 06 00 B3 [00:46:37]Write to MH i2c: E2 02 01 DB 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 77 E6 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B7 0E 01 00 35 04 06 00 B3 00 00 75 [00:46:37]Write i2c OK [00:46:37]MH_I2C_Read... [00:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:37]Read from MH i2c: E2 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 03 00 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 03 00 DB 66 00 90 00 B5 [00:46:37]RAPDU: 90 00 [00:46:37]wFMCommunicate OK [00:46:37]wFMCommunicate request_size=10 [00:46:37]MH_SAM_APDU [00:46:37]CAPDU: 80 0D 02 02 05 36 16 F7 20 61 [00:46:37]Write to MH i2c: E2 0D 00 DC 66 80 0D 02 02 05 00 36 16 F7 20 61 00 00 8A [00:46:37]Write i2c OK [00:46:37]MH_I2C_Read... [00:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:37]Read from MH i2c: E2 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 03 00 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 03 00 DC 66 00 90 00 B6 [00:46:37]RAPDU: 90 00 [00:46:37]wFMCommunicate OK [00:46:37]wFMCommunicate request_size=4 [00:46:37]MH_SAM_APDU [00:46:37]CAPDU: 80 0D 03 02 [00:46:37]Write to MH i2c: E2 08 00 DD 66 80 0D 03 02 00 00 00 00 BE [00:46:37]Write i2c OK [00:46:37]MH_I2C_Read... [00:46:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:46:37]Read from MH i2c: E2 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 0B 00 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 0B 00 DD 66 00 22 0F 5D C6 39 D4 6C 3A 90 00 C6 [00:46:37]RAPDU: 22 0F 5D C6 39 D4 6C 3A 90 00 [00:46:37]wFMCommunicate OK [00:46:37]SAM_PROTO_SignData done [00:46:37]FM_MakeSignedData done [00:46:37]CreateOFDProtocolMessage [00:46:37]wFMCommunicate request_size=4 [00:46:37]MH_SAM_APDU [00:46:37]CAPDU: 80 11 00 00 [00:46:37]Write to MH i2c: E2 08 00 DE 66 80 11 00 00 00 00 00 00 BE [00:46:37]Write i2c OK [00:46:37]MH_I2C_Read... [00:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:37]Read from MH i2c: E2 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 17 00 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 17 00 DE 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 1A [00:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:46:37]wFMCommunicate OK [00:46:37]CreateOFDProtocolMessage done [00:46:37]OFDSenderStorePacket 69303 [00:46:37]StoreOFDPacket docnum=69303 [00:46:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 4D F3 07 01 8C A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 77 E6 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B7 0E 01 00 35 04 06 00 B3 36 16 F7 20 61 22 0F 5D C6 39 D4 6C 3A [00:46:37]CheckFolder [00:46:37]dirname=/storage/ofd_packets [00:46:37]CheckFolder done [00:46:37]ProducePacketName [00:46:37]name=ofd_packets/00069303 [00:46:37]NVStorageSaveData ofd_packets/00069303 [00:46:37]File name is /storage/ofd_packets/00069303 [00:46:37]Write 301 bytes [00:46:37]NVStorageSaveData done [00:46:37]OFDSenderStorePacket done [00:46:37]KKMCreateOFDPacket done [00:46:37]NVStorageSaveData kkm_last_timestamp [00:46:37]File name is /storage/kkm_last_timestamp [00:46:37]Write 4 bytes [00:46:37]NVStorageSaveData done [00:46:37]ExternCall_PrintAddStr [00:46:37]wPrintStart [00:46:37]Write to MH i2c: 01 00 00 DF 66 45 [00:46:37]Write i2c OK [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: 01 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: 01 07 00 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: 01 07 00 DF 66 00 00 00 00 00 FF 0F 5A [00:46:37]RasterBufferAndPrint [00:46:37]line Счет N : (1)872275 [00:46:37]line ИНН: 02508201610067 [00:46:37]line Контрольно-Кассовый Чек [00:46:37]line ПРОДАЖА [00:46:37]line ТРК (МРК, ГНК) : 42 [00:46:37]line Товар: 2710124130 [00:46:37]line Аи-92-К-5 [00:46:37]line 14.750 * 67.80 [00:46:37]line = 1000.05 [00:46:37]line НДС 12% НСП 1% [00:46:37]line > о реализуемом товаре [00:46:37]line ИТОГО: 1000.05 [00:46:37]line НСП 1% : 8.85 [00:46:37]line НДС 12% : 106.20 [00:46:37]line Наличными: 0.00 [00:46:37]line Безнал.: 1000.05 [00:46:37]line Место: АЗС № 125 "Партнер Нефть" [00:46:37]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [00:46:37]line СНО: Общий режим [00:46:37]line Чек 7 29.07.2024 00:46 [00:46:37]line Смена: 430 ФФД: 1.0 [00:46:37]line ЗНМ: 0300000049 [00:46:37]line РНМ: 0000000000092638 [00:46:37]line Версия ККМ: 001 [00:46:37]line Платежная система: АКБ Кыргызстан [00:46:37]line ФМ: 0000000000874949 [00:46:37]line ФД: 69303 [00:46:37]line ФПД: 197044894900321 [00:46:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T004647&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69303&fm=197044894900321&tin=02508201610067®Number=0000000000092638&sum=100005 [00:46:37]written 0, free lines is 4095 [00:46:37]OFD Sender: Processing packet 69303 [packets to send 19, broken 18] [00:46:37]ProducePacketName [00:46:37]name=ofd_packets/00069303 [00:46:37]OFD Sender: To server: pG, [00:46:37]CommunicateWithHost lk.salyk.kg:30040 [00:46:37]ConnectInit lk.salyk.kg [00:46:37]Connected sock=10 [00:46: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 39 34 39 0F 01 00 00 4D F3 07 01 8C A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 77 E6 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B7 0E 01 00 35 04 06 00 B3 36 16 F7 20 61 22 0F 5D C6 39 D4 6C 3A [00:46:37]Write to MH i2c: 01 00 00 09 67 70 [00:46:37]Write i2c OK [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: 01 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: 01 07 00 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: 01 07 00 09 67 00 00 00 00 00 16 0D 9A [00:46:37]RasterBufferAndPrint [00:46:37]line [00:46:37]line [00:46:37]line [00:46:37]line [00:46:37]line [00:46:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 1F 43 47 00 D4 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 39 34 39 10 04 04 00 B7 0E 01 00 F4 03 04 00 E5 8C A6 66 B6 04 01 00 00 16 1C 17 41 20 45 34 46 [00:46:37]CommunicateWithHost err = 0 [00:46:37]CheckOFDResponse [00:46:37]1017 (14) - 77093643461234 [00:46:37]1041 (16) - 0000000000874949 [00:46:37]1040 (4) - 69303 [00:46:37]1012 (4) - 28.07.2024 18:24 [00:46:37]1206 (1) - 0 [00:46:37]OFD Sender: Remove packet 69303 [00:46:37]ProducePacketName [00:46:37]name=ofd_packets/00069303 [00:46:37]NVStorageDeleteData [00:46:37]written 0, free lines is 3357 [00:46:37]MH_Cut [00:46:37]Write to MH i2c: D1 01 00 10 67 01 49 [00:46:37]Write i2c OK [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: D1 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: D1 01 00 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: D1 01 00 10 67 00 48 [00:46:37]Write to MH i2c: 01 00 00 11 67 78 [00:46:37]Write i2c OK [00:46:37]MH_I2C_Read... [00:46:38]OFD Sender: No OFD packet to send [00:46:38]*** Cut start [00:46:38]*** Partial cut [00:46:38]*** CUTSNS_PIN = 1 [00:46:38]*** CUTSNS_PIN = 0 [00:46:38]*** Brake cut motor [00:46:39]Read from MH i2c: 01 [00:46:39]MH_I2C_Read... [00:46:39]*** Stop cut motor [00:46:39]*** Cut end [00:46:39]Read from MH i2c: 01 07 00 [00:46:39]MH_I2C_Read... [00:46:39]Read from MH i2c: 01 07 00 11 67 00 00 00 00 00 FF 0F 8D [00:46:39]process_action close_receipt done [00:46:39]requested_data is exist [00:46:39]produce_requested_data [00:46:39]requested_item fm.sn is exist - process it [00:46:39]wFMCommunicate request_size=4 [00:46:39]MH_SAM_APDU [00:46:39]CAPDU: 80 11 00 00 [00:46:39]Write to MH i2c: E2 08 00 12 67 80 11 00 00 00 00 00 00 F3 [00:46:39]Write i2c OK [00:46:39]MH_I2C_Read... [00:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:39]Read from MH i2c: E2 [00:46:39]MH_I2C_Read... [00:46:39]Read from MH i2c: E2 17 00 [00:46:39]MH_I2C_Read... [00:46:39]Read from MH i2c: E2 17 00 12 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 4F [00:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:46:39]wFMCommunicate OK [00:46:39]requested_item fd.num is exist - process it [00:46:39]SAM_PROTO_GetFieldsCounters [00:46:39]wFMCommunicate request_size=4 [00:46:39]MH_SAM_APDU [00:46:39]CAPDU: 80 13 00 00 [00:46:39]Write to MH i2c: E2 08 00 13 67 80 13 00 00 00 00 00 00 F6 [00:46:39]Write i2c OK [00:46:39]MH_I2C_Read... [00:46:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:46:39]Read from MH i2c: E2 [00:46:39]MH_I2C_Read... [00:46:39]Read from MH i2c: E2 62 00 [00:46:39]MH_I2C_Read... [00:46:39]Read from MH i2c: E2 62 00 13 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B7 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [00:46: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B7 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:46:39]wFMCommunicate OK [00:46:39]SAM_PROTO_GetFieldsCounters done [00:46:39]requested_item shift.num is exist - process it [00:46:39]requested_item shift.opened is exist - process it [00:46:39]req_shift_opened [00:46:39]FM_GetShiftState [00:46:39]SAM_PROTO_GetShiftState [00:46:39]wFMCommunicate request_size=4 [00:46:39]MH_SAM_APDU [00:46:39]CAPDU: 80 13 01 00 [00:46:39]Write to MH i2c: E2 08 00 14 67 80 13 01 00 00 00 00 00 F8 [00:46:39]Write i2c OK [00:46:39]MH_I2C_Read... [00:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:39]Read from MH i2c: E2 [00:46:39]MH_I2C_Read... [00:46:39]Read from MH i2c: E2 0E 00 [00:46:39]MH_I2C_Read... [00:46:39]Read from MH i2c: E2 0E 00 14 67 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 AF [00:46:39]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:46:39]wFMCommunicate OK [00:46:39]SAM_PROTO_GetShiftState done [00:46:39]FM_GetShiftState done [00:46:39]req_shift_opened done [00:46:39]requested_item shift.open_date is exist - process it [00:46:39]req_shift_open_date [00:46:39]req_shift_open_date done [00:46:39]produce_requested_data done [00:46:39]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69303,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [00:46:39]process_action_free close_receipt [00:46:39]json_value_free [00:46:39]json_value_free done [00:46:39]process_json_proto returns [00:46:39]Send response to host [00:46:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69303,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [00:46:39]free response buf [00:46:39]execute_script done [00:46:39]execute_script returns [00:46:39]free content buf [00:46:39]Sock 7.Close socket [00:46:39]Sock 7.Thread stoped [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:30]accept exits with 9 [00:50:30]New connection [00:50:30]New thread 3066785124 created [00:50:30]Thread 3066641764 joined [00:50:30]Waiting for new connection... [00:50:30] Sock 9.Parse request [00:50:30]Sock 9.Check first char [00:50:30]Sock 9.First char is OK [00:50:30]request: POST /json_proto HTTP/1.0 [00:50:30]Method: POST [00:50:30]URL: /json_proto [00:50:30]Method is POST - this is cgi request [00:50:30]url: /json_proto [00:50:30]query_string will be loaded in cgi processing [00:50:30]execute_cgi json_proto POST (null) [00:50:30]execute_cgi path=json_proto method=POST [00:50:30]POST find Content-Length [00:50:30]Host: 172.17.49.132:8080 [00:50:30]Content-Length: 703 [00:50:30]Content-Type: application/json [00:50:30] [00:50:30]POST finish read [00:50:30]Found Content-Length = 703 [00:50:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136635", "tax_sys" : 0, "items" : [ { "code": "4700001060848", "name": "\u041D\u0430\u0441\u0442\u043E\u0439\u043A\u0430 \u0412\u0438\u0448\u043D\u044F \u043D\u0430 \u043A\u043E\u043D\u044C\u044F\u043A\u0435 0,2\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:30]execute_script... [00:50: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)136635", "tax_sys" : 0, "items" : [ { "code": "4700001060848", "name": "\u041D\u0430\u0441\u0442\u043E\u0439\u043A\u0430 \u0412\u0438\u0448\u043D\u044F \u043D\u0430 \u043A\u043E\u043D\u044C\u044F\u043A\u0435 0,2\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:30]POST & json_proto [00:50:30]process_json_proto [00:50:30]json parsed OK: [00:50:30]protocol is kg_v1.0 [00:50:30]action value=close_receipt [00:50:30]process_action close_receipt [00:50:30]cmd_close_receipt [00:50:30]MH_GetDate [00:50:30]Write to MH i2c: F0 00 00 15 67 6B [00:50:30]Write i2c OK [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: F0 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: F0 09 00 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: F0 09 00 15 67 00 62 E7 A6 66 E7 4B C0 64 1F [00:50:30]GetLastDocTimeStamp 1722214007 [00:50:30]current date 1722214242 [00:50:30]FM_GetShiftState [00:50:30]SAM_PROTO_GetShiftState [00:50:30]wFMCommunicate request_size=4 [00:50:30]MH_SAM_APDU [00:50:30]CAPDU: 80 13 01 00 [00:50:30]Write to MH i2c: E2 08 00 16 67 80 13 01 00 00 00 00 00 FA [00:50:30]Write i2c OK [00:50:30]MH_I2C_Read... [00:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:30]Read from MH i2c: E2 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: E2 0E 00 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: E2 0E 00 16 67 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 B1 [00:50:30]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:50:30]wFMCommunicate OK [00:50:30]SAM_PROTO_GetShiftState done [00:50:30]FM_GetShiftState done [00:50:30]opened in 1722213563 [00:50:30]opened+sec_in_day 1722299963 [00:50:30]quantity*price = 20000 [00:50:30]sum+1 = 20001 [00:50:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 8 29.07.2024 00:50 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69304 ФПД: 194405138432601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005042&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69304&fm=194405138432601&tin=02508201610067®Number=0000000000092638&sum=20000 0 [00:50:31]StoreToDocumentArchive [00:50:31]shift 430 fd 69304 [00:50:31]save to /storage/0430/doc_00069304 [00:50:31]save last doc name /storage/0430/doc_00069304 to /storage/kkm_last_doc_name [00:50:31]save OK [00:50:31]Clear old archive folders... [00:50:31]ProcessDocumentItem done err = 0, tmpTLVsize=295 [00:50:31]tlvbuf is 00C53210 [00:50:31]SAM_PROTO_ClearQueue [00:50:31]wFMCommunicate request_size=4 [00:50:31]MH_SAM_APDU [00:50:31]CAPDU: 80 09 00 00 [00:50:31]Write to MH i2c: E2 08 00 23 67 80 09 00 00 00 00 00 00 FC [00:50:31]Write i2c OK [00:50:31]MH_I2C_Read... [00:50:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:50:31]Read from MH i2c: E2 [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: E2 03 00 [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: E2 03 00 23 67 00 90 00 FE [00:50:31]RAPDU: 90 00 [00:50:31]wFMCommunicate OK [00:50:31]SAM_PROTO_ClearQueue done [00:50:31]KKMCreateOFDPacket [00:50:31]OFDProtocolAddRootSTLVToBuf [00:50:31]FM_MakeSignedData [00:50:31]FM_MakeSignedData [00:50:31]SAM_PROTO_SignData [00:50:31]wFMCommunicate request_size=4 [00:50:31]MH_SAM_APDU [00:50:31]CAPDU: 80 0D 01 02 [00:50:31]Write to MH i2c: E2 08 00 24 67 80 0D 01 02 00 00 00 00 04 [00:50:31]Write i2c OK [00:50:31]MH_I2C_Read... [00:50:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:50:31]Read from MH i2c: E2 [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: E2 03 00 [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: E2 03 00 24 67 00 90 00 FF [00:50:31]RAPDU: 90 00 [00:50:31]wFMCommunicate OK [00:50:31]wFMCommunicate request_size=255 [00:50:31]MH_SAM_APDU [00:50:31]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 34 38 06 04 35 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 62 E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [00:50:31]Write to MH i2c: E2 02 01 25 67 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 34 38 06 04 35 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 62 E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 A4 [00:50:31]Write i2c OK [00:50:31]MH_I2C_Read... [00:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:32]Read from MH i2c: E2 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 03 00 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 03 00 25 67 00 90 00 00 [00:50:32]RAPDU: 90 00 [00:50:32]wFMCommunicate OK [00:50:32]wFMCommunicate request_size=54 [00:50:32]MH_SAM_APDU [00:50:32]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B8 0E 01 00 35 04 06 00 B0 CF 79 38 02 59 [00:50:32]Write to MH i2c: E2 39 00 26 67 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B8 0E 01 00 35 04 06 00 B0 CF 79 38 02 59 00 00 8C [00:50:32]Write i2c OK [00:50:32]MH_I2C_Read... [00:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:32]Read from MH i2c: E2 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 03 00 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 03 00 26 67 00 90 00 01 [00:50:32]RAPDU: 90 00 [00:50:32]wFMCommunicate OK [00:50:32]wFMCommunicate request_size=4 [00:50:32]MH_SAM_APDU [00:50:32]CAPDU: 80 0D 03 02 [00:50:32]Write to MH i2c: E2 08 00 27 67 80 0D 03 02 00 00 00 00 09 [00:50:32]Write i2c OK [00:50:32]MH_I2C_Read... [00:50:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:50:32]Read from MH i2c: E2 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 0B 00 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 0B 00 27 67 00 18 0A 44 71 0B BE 76 E8 90 00 08 [00:50:32]RAPDU: 18 0A 44 71 0B BE 76 E8 90 00 [00:50:32]wFMCommunicate OK [00:50:32]SAM_PROTO_SignData done [00:50:32]FM_MakeSignedData done [00:50:32]CreateOFDProtocolMessage [00:50:32]wFMCommunicate request_size=4 [00:50:32]MH_SAM_APDU [00:50:32]CAPDU: 80 11 00 00 [00:50:32]Write to MH i2c: E2 08 00 28 67 80 11 00 00 00 00 00 00 09 [00:50:32]Write i2c OK [00:50:32]MH_I2C_Read... [00:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:32]Read from MH i2c: E2 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 17 00 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 17 00 28 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 65 [00:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:50:32]wFMCommunicate OK [00:50:32]CreateOFDProtocolMessage done [00:50:32]OFDSenderStorePacket 69304 [00:50:32]StoreOFDPacket docnum=69304 [00:50:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3B 01 00 00 61 82 33 01 21 C6 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 34 38 06 04 35 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 62 E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B8 0E 01 00 35 04 06 00 B0 CF 79 38 02 59 18 0A 44 71 0B BE 76 E8 [00:50:32]CheckFolder [00:50:32]dirname=/storage/ofd_packets [00:50:32]CheckFolder done [00:50:32]ProducePacketName [00:50:32]name=ofd_packets/00069304 [00:50:32]NVStorageSaveData ofd_packets/00069304 [00:50:32]File name is /storage/ofd_packets/00069304 [00:50:32]Write 345 bytes [00:50:32]NVStorageSaveData done [00:50:32]OFDSenderStorePacket done [00:50:32]KKMCreateOFDPacket done [00:50:32]NVStorageSaveData kkm_last_timestamp [00:50:32]File name is /storage/kkm_last_timestamp [00:50:32]Write 4 bytes [00:50:32]NVStorageSaveData done [00:50:32]ExternCall_PrintAddStr [00:50:32]wPrintStart [00:50:32]Write to MH i2c: 01 00 00 29 67 90 [00:50:32]Write i2c OK [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: 01 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: 01 07 00 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: 01 07 00 29 67 00 00 00 00 00 FF 0F A5 [00:50:32]RasterBufferAndPrint [00:50:32]line Счет N : (3)136635 [00:50:32]line ИНН: 02508201610067 [00:50:32]line Контрольно-Кассовый Чек [00:50:32]line ПРОДАЖА [00:50:32]line Товар: 4700001060848 [00:50:32]line Настойка Вишня на коньяке 0,2л [00:50:32]line 1.000 * 200.00 [00:50:32]line = 200.00 [00:50:32]line НДС 12% НСП 1% [00:50:32]line > о реализуемом товаре [00:50:32]line ИТОГО: 200.00 [00:50:32]line НСП 1% : 1.77 [00:50:32]line НДС 12% : 21.24 [00:50:32]line Наличными: 200.00 [00:50:32]line Безнал.: 0.00 [00:50:32]line Место: АЗС № 125 "Партнер Нефть" [00:50:32]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [00:50:32]line СНО: Общий режим [00:50:32]line Чек 8 29.07.2024 00:50 [00:50:32]line Смена: 430 ФФД: 1.0 [00:50:32]line ЗНМ: 0300000049 [00:50:32]line РНМ: 0000000000092638 [00:50:32]line Версия ККМ: 001 [00:50:32]line ФМ: 0000000000874949 [00:50:32]line ФД: 69304 [00:50:32]line ФПД: 194405138432601 [00:50:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005042&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69304&fm=194405138432601&tin=02508201610067®Number=0000000000092638&sum=20000 [00:50:32]line 0 [00:50:32]OFD Sender: Processing packet 69304 [packets to send 19, broken 18] [00:50:32]ProducePacketName [00:50:32]name=ofd_packets/00069304 [00:50:32]OFD Sender: To server: pG, [00:50:32]CommunicateWithHost lk.salyk.kg:30040 [00:50:32]ConnectInit lk.salyk.kg [00:50:32]written 0, free lines is 4095 [00:50:32]Connected sock=10 [00:50:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3B 01 00 00 61 82 33 01 21 C6 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 38 34 38 06 04 35 00 D0 9D D0 B0 D1 81 D1 82 D0 BE D0 B9 D0 BA D0 B0 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 D0 BD D0 B0 20 D0 BA D0 BE D0 BD D1 8C D1 8F D0 BA D0 B5 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 62 E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B8 0E 01 00 35 04 06 00 B0 CF 79 38 02 59 18 0A 44 71 0B BE 76 E8 [00:50:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 C7 D5 47 00 89 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B8 0E 01 00 F4 03 04 00 D0 8D A6 66 B6 04 01 00 00 F8 47 8A AA 56 38 DF 26 [00:50:33]CommunicateWithHost err = 0 [00:50:33]CheckOFDResponse [00:50:33]1017 (14) - 77093643461234 [00:50:33]1041 (16) - 0000000000874949 [00:50:33]1040 (4) - 69304 [00:50:33]1012 (4) - 28.07.2024 18:28 [00:50:33]1206 (1) - 0 [00:50:33]OFD Sender: Remove packet 69304 [00:50:33]ProducePacketName [00:50:33]name=ofd_packets/00069304 [00:50:33]NVStorageDeleteData [00:50:33]Write to MH i2c: 01 00 00 52 67 B9 [00:50:33]Write i2c OK [00:50:33]MH_I2C_Read... [00:50:33]Read from MH i2c: 01 [00:50:33]MH_I2C_Read... [00:50:33]Read from MH i2c: 01 07 00 [00:50:33]MH_I2C_Read... [00:50:33]Read from MH i2c: 01 07 00 52 67 00 00 00 00 00 F4 0C C0 [00:50:33]RasterBufferAndPrint [00:50:33]line [00:50:33]line [00:50:33]line [00:50:33]line [00:50:33]line [00:50:33]written 0, free lines is 3323 [00:50:33]MH_Cut [00:50:33]Write to MH i2c: D1 01 00 59 67 01 92 [00:50:33]Write i2c OK [00:50:33]MH_I2C_Read... [00:50:33]Read from MH i2c: D1 [00:50:33]MH_I2C_Read... [00:50:33]Read from MH i2c: D1 01 00 [00:50:33]MH_I2C_Read... [00:50:33]Read from MH i2c: D1 01 00 59 67 00 91 [00:50:33]Write to MH i2c: 01 00 00 5A 67 C1 [00:50:33]Write i2c OK [00:50:33]MH_I2C_Read... [00:50:33]OFD Sender: No OFD packet to send [00:50:33]*** Cut start [00:50:33]*** Partial cut [00:50:33]*** CUTSNS_PIN = 1 [00:50:33]*** CUTSNS_PIN = 0 [00:50:34]*** Brake cut motor [00:50:34]Read from MH i2c: 01 [00:50:34]MH_I2C_Read... [00:50:34]*** Stop cut motor [00:50:34]*** Cut end [00:50:34]Read from MH i2c: 01 07 00 [00:50:34]MH_I2C_Read... [00:50:34]Read from MH i2c: 01 07 00 5A 67 00 00 00 00 00 FF 0F D6 [00:50:34]process_action close_receipt done [00:50:34]requested_data is exist [00:50:34]produce_requested_data [00:50:34]requested_item fm.sn is exist - process it [00:50:34]wFMCommunicate request_size=4 [00:50:34]MH_SAM_APDU [00:50:34]CAPDU: 80 11 00 00 [00:50:34]Write to MH i2c: E2 08 00 5B 67 80 11 00 00 00 00 00 00 3C [00:50:34]Write i2c OK [00:50:34]MH_I2C_Read... [00:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:34]Read from MH i2c: E2 [00:50:34]MH_I2C_Read... [00:50:34]Read from MH i2c: E2 17 00 [00:50:34]MH_I2C_Read... [00:50:34]Read from MH i2c: E2 17 00 5B 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 98 [00:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:50:34]wFMCommunicate OK [00:50:34]requested_item fd.num is exist - process it [00:50:34]SAM_PROTO_GetFieldsCounters [00:50:34]wFMCommunicate request_size=4 [00:50:34]MH_SAM_APDU [00:50:34]CAPDU: 80 13 00 00 [00:50:34]Write to MH i2c: E2 08 00 5C 67 80 13 00 00 00 00 00 00 3F [00:50:34]Write i2c OK [00:50:34]MH_I2C_Read... [00:50:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:50:34]Read from MH i2c: E2 [00:50:34]MH_I2C_Read... [00:50:34]Read from MH i2c: E2 62 00 [00:50:34]MH_I2C_Read... [00:50:34]Read from MH i2c: E2 62 00 5C 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B8 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [00:50:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B8 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:50:34]wFMCommunicate OK [00:50:34]SAM_PROTO_GetFieldsCounters done [00:50:34]requested_item shift.num is exist - process it [00:50:34]requested_item shift.opened is exist - process it [00:50:34]req_shift_opened [00:50:34]FM_GetShiftState [00:50:34]SAM_PROTO_GetShiftState [00:50:34]wFMCommunicate request_size=4 [00:50:34]MH_SAM_APDU [00:50:34]CAPDU: 80 13 01 00 [00:50:34]Write to MH i2c: E2 08 00 5D 67 80 13 01 00 00 00 00 00 41 [00:50:34]Write i2c OK [00:50:34]MH_I2C_Read... [00:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:34]Read from MH i2c: E2 [00:50:34]MH_I2C_Read... [00:50:34]Read from MH i2c: E2 0E 00 [00:50:34]MH_I2C_Read... [00:50:34]Read from MH i2c: E2 0E 00 5D 67 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 F8 [00:50:34]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:50:34]wFMCommunicate OK [00:50:34]SAM_PROTO_GetShiftState done [00:50:34]FM_GetShiftState done [00:50:34]req_shift_opened done [00:50:34]requested_item shift.open_date is exist - process it [00:50:34]req_shift_open_date [00:50:34]req_shift_open_date done [00:50:34]produce_requested_data done [00:50:34]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69304,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [00:50:34]process_action_free close_receipt [00:50:34]json_value_free [00:50:34]json_value_free done [00:50:34]process_json_proto returns [00:50:34]Send response to host [00:50:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69304,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [00:50:34]free response buf [00:50:34]execute_script done [00:50:34]execute_script returns [00:50:34]free content buf [00:50:34]Sock 9.Close socket [00:50:34]Sock 9.Thread stoped [00:50:38]OFD Sender: No OFD packet to send [00:50:42]accept exits with 7 [00:50:42]New connection [00:50:42]New thread 3066641764 created [00:50:42]Thread 3066785124 joined [00:50:42]Waiting for new connection... [00:50:42] Sock 7.Parse request [00:50:42]Sock 7.Check first char [00:50:42]Sock 7.First char is OK [00:50:42]request: POST /json_proto HTTP/1.0 [00:50:42]Method: POST [00:50:42]URL: /json_proto [00:50:42]Method is POST - this is cgi request [00:50:42]url: /json_proto [00:50:42]query_string will be loaded in cgi processing [00:50:42]execute_cgi json_proto POST (null) [00:50:42]execute_cgi path=json_proto method=POST [00:50:42]POST find Content-Length [00:50:42]Host: 172.17.49.132:8080 [00:50:42]Content-Length: 843 [00:50:42]Content-Type: application/json [00:50:42] [00:50:42]POST finish read [00:50:42]Found Content-Length = 843 [00:50:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.70, "quantity" : 45.850, "sum" : 3425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3425.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:42]execute_script... [00:50:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)872278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.70, "quantity" : 45.850, "sum" : 3425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3425.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:42]POST & json_proto [00:50:42]process_json_proto [00:50:42]json parsed OK: [00:50:42]protocol is kg_v1.0 [00:50:42]action value=close_receipt [00:50:42]process_action close_receipt [00:50:42]cmd_close_receipt [00:50:42]MH_GetDate [00:50:42]Write to MH i2c: F0 00 00 5E 67 B4 [00:50:42]Write i2c OK [00:50:42]MH_I2C_Read... [00:50:42]Read from MH i2c: F0 [00:50:42]MH_I2C_Read... [00:50:42]Read from MH i2c: F0 09 00 [00:50:42]MH_I2C_Read... [00:50:42]Read from MH i2c: F0 09 00 5E 67 00 6E E7 A6 66 E7 4B C0 64 74 [00:50:42]GetLastDocTimeStamp 1722214242 [00:50:42]current date 1722214254 [00:50:42]FM_GetShiftState [00:50:42]SAM_PROTO_GetShiftState [00:50:42]wFMCommunicate request_size=4 [00:50:42]MH_SAM_APDU [00:50:42]CAPDU: 80 13 01 00 [00:50:42]Write to MH i2c: E2 08 00 5F 67 80 13 01 00 00 00 00 00 43 [00:50:42]Write i2c OK [00:50:42]MH_I2C_Read... [00:50:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:42]Read from MH i2c: E2 [00:50:42]MH_I2C_Read... [00:50:42]Read from MH i2c: E2 0E 00 [00:50:42]MH_I2C_Read... [00:50:42]Read from MH i2c: E2 0E 00 5F 67 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 FA [00:50:42]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:50:42]wFMCommunicate OK [00:50:42]SAM_PROTO_GetShiftState done [00:50:42]FM_GetShiftState done [00:50:42]opened in 1722213563 [00:50:42]opened+sec_in_day 1722299963 [00:50:42]quantity*price = 342499 [00:50:42]sum+1 = 342501 [00:50:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3425.00 НСП 1% : 30.31 НДС 12% : 363.72 Наличными: 0.00 Безнал.: 3425.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 9 29.07.2024 00:50 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69305 ФПД: 211768610988724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005054&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69305&fm=211768610988724&tin=02508201610067®Number=0000000000092638&sum=342500 [00:50:43]StoreToDocumentArchive [00:50:43]shift 430 fd 69305 [00:50:43]save to /storage/0430/doc_00069305 [00:50:43]save last doc name /storage/0430/doc_00069305 to /storage/kkm_last_doc_name [00:50:43]save OK [00:50:43]Clear old archive folders... [00:50:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:50:43]tlvbuf is 00BABCF0 [00:50:43]SAM_PROTO_ClearQueue [00:50:43]wFMCommunicate request_size=4 [00:50:43]MH_SAM_APDU [00:50:43]CAPDU: 80 09 00 00 [00:50:43]Write to MH i2c: E2 08 00 6C 67 80 09 00 00 00 00 00 00 45 [00:50:43]Write i2c OK [00:50:43]MH_I2C_Read... [00:50:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:50:43]Read from MH i2c: E2 [00:50:43]MH_I2C_Read... [00:50:43]Read from MH i2c: E2 03 00 [00:50:43]MH_I2C_Read... [00:50:43]Read from MH i2c: E2 03 00 6C 67 00 90 00 47 [00:50:43]RAPDU: 90 00 [00:50:43]wFMCommunicate OK [00:50:43]SAM_PROTO_ClearQueue done [00:50:43]KKMCreateOFDPacket [00:50:43]OFDProtocolAddRootSTLVToBuf [00:50:43]FM_MakeSignedData [00:50:43]FM_MakeSignedData [00:50:43]SAM_PROTO_SignData [00:50:43]wFMCommunicate request_size=4 [00:50:43]MH_SAM_APDU [00:50:43]CAPDU: 80 0D 01 02 [00:50:43]Write to MH i2c: E2 08 00 6D 67 80 0D 01 02 00 00 00 00 4D [00:50:43]Write i2c OK [00:50:43]MH_I2C_Read... [00:50:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:50:43]Read from MH i2c: E2 [00:50:43]MH_I2C_Read... [00:50:43]Read from MH i2c: E2 03 00 [00:50:43]MH_I2C_Read... [00:50:43]Read from MH i2c: E2 03 00 6D 67 00 90 00 48 [00:50:43]RAPDU: 90 00 [00:50:43]wFMCommunicate OK [00:50:43]wFMCommunicate request_size=255 [00:50:43]MH_SAM_APDU [00:50:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A B3 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E4 39 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 39 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 8E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 39 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6E E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B9 0E 01 00 35 04 06 00 C0 [00:50:43]Write to MH i2c: E2 02 01 6E 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A B3 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E4 39 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 39 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 8E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 39 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6E E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B9 0E 01 00 35 04 06 00 C0 00 00 0A [00:50:43]Write i2c OK [00:50:43]MH_I2C_Read... [00:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:44]Read from MH i2c: E2 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: E2 03 00 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: E2 03 00 6E 67 00 90 00 49 [00:50:44]RAPDU: 90 00 [00:50:44]wFMCommunicate OK [00:50:44]wFMCommunicate request_size=10 [00:50:44]MH_SAM_APDU [00:50:44]CAPDU: 80 0D 02 02 05 9A 38 D5 22 B4 [00:50:44]Write to MH i2c: E2 0D 00 6F 67 80 0D 02 02 05 00 9A 38 D5 22 B4 00 00 D7 [00:50:44]Write i2c OK [00:50:44]MH_I2C_Read... [00:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:44]Read from MH i2c: E2 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: E2 03 00 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: E2 03 00 6F 67 00 90 00 4A [00:50:44]RAPDU: 90 00 [00:50:44]wFMCommunicate OK [00:50:44]wFMCommunicate request_size=4 [00:50:44]MH_SAM_APDU [00:50:44]CAPDU: 80 0D 03 02 [00:50:44]Write to MH i2c: E2 08 00 70 67 80 0D 03 02 00 00 00 00 52 [00:50:44]Write i2c OK [00:50:44]MH_I2C_Read... [00:50:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:50:44]Read from MH i2c: E2 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: E2 0B 00 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: E2 0B 00 70 67 00 D7 11 FB 2B 9C 2C 63 65 90 00 F1 [00:50:44]RAPDU: D7 11 FB 2B 9C 2C 63 65 90 00 [00:50:44]wFMCommunicate OK [00:50:44]SAM_PROTO_SignData done [00:50:44]FM_MakeSignedData done [00:50:44]CreateOFDProtocolMessage [00:50:44]wFMCommunicate request_size=4 [00:50:44]MH_SAM_APDU [00:50:44]CAPDU: 80 11 00 00 [00:50:44]Write to MH i2c: E2 08 00 71 67 80 11 00 00 00 00 00 00 52 [00:50:44]Write i2c OK [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: E2 [00:50:44]MH_I2C_Read... [00:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:44]Read from MH i2c: E2 17 00 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: E2 17 00 71 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AE [00:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:50:44]wFMCommunicate OK [00:50:44]CreateOFDProtocolMessage done [00:50:44]OFDSenderStorePacket 69305 [00:50:44]StoreOFDPacket docnum=69305 [00:50:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 4A 52 07 01 B3 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A B3 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E4 39 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 39 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 8E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 39 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6E E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B9 0E 01 00 35 04 06 00 C0 9A 38 D5 22 B4 D7 11 FB 2B 9C 2C 63 65 [00:50:44]CheckFolder [00:50:44]dirname=/storage/ofd_packets [00:50:44]CheckFolder done [00:50:44]ProducePacketName [00:50:44]name=ofd_packets/00069305 [00:50:44]NVStorageSaveData ofd_packets/00069305 [00:50:44]File name is /storage/ofd_packets/00069305 [00:50:44]Write 301 bytes [00:50:44]NVStorageSaveData done [00:50:44]OFDSenderStorePacket done [00:50:44]KKMCreateOFDPacket done [00:50:44]NVStorageSaveData kkm_last_timestamp [00:50:44]File name is /storage/kkm_last_timestamp [00:50:44]Write 4 bytes [00:50:44]NVStorageSaveData done [00:50:44]ExternCall_PrintAddStr [00:50:44]wPrintStart [00:50:44]Write to MH i2c: 01 00 00 72 67 D9 [00:50:44]Write i2c OK [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: 01 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: 01 07 00 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: 01 07 00 72 67 00 00 00 00 00 FF 0F EE [00:50:44]RasterBufferAndPrint [00:50:44]line Счет N : (1)872278 [00:50:44]line ИНН: 02508201610067 [00:50:44]line Контрольно-Кассовый Чек [00:50:44]line ПРОДАЖА [00:50:44]line ТРК (МРК, ГНК) : 51 [00:50:44]line Товар: 2710124500 [00:50:44]line Аи-95-К-5 [00:50:44]line 45.850 * 74.70 [00:50:44]line = 3425.00 [00:50:44]line НДС 12% НСП 1% [00:50:44]line > о реализуемом товаре [00:50:44]line ИТОГО: 3425.00 [00:50:44]line НСП 1% : 30.31 [00:50:44]line НДС 12% : 363.72 [00:50:44]line Наличными: 0.00 [00:50:44]line Безнал.: 3425.00 [00:50:44]line Место: АЗС № 125 "Партнер Нефть" [00:50:44]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [00:50:44]line СНО: Общий режим [00:50:44]line Чек 9 29.07.2024 00:50 [00:50:44]line Смена: 430 ФФД: 1.0 [00:50:44]line ЗНМ: 0300000049 [00:50:44]line РНМ: 0000000000092638 [00:50:44]line Версия ККМ: 001 [00:50:44]line Платежная система: АКБ Кыргызстан [00:50:44]line ФМ: 0000000000874949 [00:50:44]line ФД: 69305 [00:50:44]line ФПД: 211768610988724 [00:50:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005054&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69305&fm=211768610988724&tin=02508201610067®Number=0000000000092638&sum=342500 [00:50:44]written 0, free lines is 4095 [00:50:44]OFD Sender: Processing packet 69305 [packets to send 19, broken 18] [00:50:44]ProducePacketName [00:50:44]name=ofd_packets/00069305 [00:50:44]OFD Sender: To server: pG, [00:50:44]CommunicateWithHost lk.salyk.kg:30040 [00:50:44]ConnectInit lk.salyk.kg [00:50:44]Connected sock=9 [00:50: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 39 34 39 0F 01 00 00 4A 52 07 01 B3 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A B3 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E4 39 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 39 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 8E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 39 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 6E E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 B9 0E 01 00 35 04 06 00 C0 9A 38 D5 22 B4 D7 11 FB 2B 9C 2C 63 65 [00:50:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 6B 89 47 00 52 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 39 34 39 10 04 04 00 B9 0E 01 00 F4 03 04 00 DC 8D A6 66 B6 04 01 00 00 7E EC EE B9 C2 36 A1 10 [00:50:44]CommunicateWithHost err = 0 [00:50:44]CheckOFDResponse [00:50:44]1017 (14) - 77093643461234 [00:50:44]1041 (16) - 0000000000874949 [00:50:44]1040 (4) - 69305 [00:50:44]1012 (4) - 28.07.2024 18:28 [00:50:44]1206 (1) - 0 [00:50:44]OFD Sender: Remove packet 69305 [00:50:44]ProducePacketName [00:50:44]name=ofd_packets/00069305 [00:50:44]NVStorageDeleteData [00:50:44]Write to MH i2c: 01 00 00 9C 67 03 [00:50:44]Write i2c OK [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: 01 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: 01 07 00 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: 01 07 00 9C 67 00 00 00 00 00 0A 0D 21 [00:50:44]RasterBufferAndPrint [00:50:44]line [00:50:44]line [00:50:44]line [00:50:44]line [00:50:44]line [00:50:44]written 0, free lines is 3344 [00:50:44]MH_Cut [00:50:44]Write to MH i2c: D1 01 00 A3 67 01 DC [00:50:44]Write i2c OK [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: D1 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: D1 01 00 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: D1 01 00 A3 67 00 DB [00:50:44]Write to MH i2c: 01 00 00 A4 67 0B [00:50:44]Write i2c OK [00:50:44]MH_I2C_Read... [00:50:45]OFD Sender: No OFD packet to send [00:50:45]*** Cut start [00:50:45]*** Partial cut [00:50:45]*** CUTSNS_PIN = 1 [00:50:45]*** CUTSNS_PIN = 0 [00:50:45]*** Brake cut motor [00:50:46]Read from MH i2c: 01 [00:50:46]MH_I2C_Read... [00:50:46]*** Stop cut motor [00:50:46]*** Cut end [00:50:46]Read from MH i2c: 01 07 00 [00:50:46]MH_I2C_Read... [00:50:46]Read from MH i2c: 01 07 00 A4 67 00 00 00 00 00 FF 0F 20 [00:50:46]process_action close_receipt done [00:50:46]requested_data is exist [00:50:46]produce_requested_data [00:50:46]requested_item fm.sn is exist - process it [00:50:46]wFMCommunicate request_size=4 [00:50:46]MH_SAM_APDU [00:50:46]CAPDU: 80 11 00 00 [00:50:46]Write to MH i2c: E2 08 00 A5 67 80 11 00 00 00 00 00 00 86 [00:50:46]Write i2c OK [00:50:46]MH_I2C_Read... [00:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:46]Read from MH i2c: E2 [00:50:46]MH_I2C_Read... [00:50:46]Read from MH i2c: E2 17 00 [00:50:46]MH_I2C_Read... [00:50:46]Read from MH i2c: E2 17 00 A5 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E2 [00:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:50:46]wFMCommunicate OK [00:50:46]requested_item fd.num is exist - process it [00:50:46]SAM_PROTO_GetFieldsCounters [00:50:46]wFMCommunicate request_size=4 [00:50:46]MH_SAM_APDU [00:50:46]CAPDU: 80 13 00 00 [00:50:46]Write to MH i2c: E2 08 00 A6 67 80 13 00 00 00 00 00 00 89 [00:50:46]Write i2c OK [00:50:46]MH_I2C_Read... [00:50:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:50:46]Read from MH i2c: E2 [00:50:46]MH_I2C_Read... [00:50:46]Read from MH i2c: E2 62 00 [00:50:46]MH_I2C_Read... [00:50:46]Read from MH i2c: E2 62 00 A6 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B9 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [00:50: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 B9 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:50:46]wFMCommunicate OK [00:50:46]SAM_PROTO_GetFieldsCounters done [00:50:46]requested_item shift.num is exist - process it [00:50:46]requested_item shift.opened is exist - process it [00:50:46]req_shift_opened [00:50:46]FM_GetShiftState [00:50:46]SAM_PROTO_GetShiftState [00:50:46]wFMCommunicate request_size=4 [00:50:46]MH_SAM_APDU [00:50:46]CAPDU: 80 13 01 00 [00:50:46]Write to MH i2c: E2 08 00 A7 67 80 13 01 00 00 00 00 00 8B [00:50:46]Write i2c OK [00:50:46]MH_I2C_Read... [00:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:46]Read from MH i2c: E2 [00:50:46]MH_I2C_Read... [00:50:46]Read from MH i2c: E2 0E 00 [00:50:46]MH_I2C_Read... [00:50:46]Read from MH i2c: E2 0E 00 A7 67 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 42 [00:50:46]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:50:46]wFMCommunicate OK [00:50:46]SAM_PROTO_GetShiftState done [00:50:46]FM_GetShiftState done [00:50:46]req_shift_opened done [00:50:46]requested_item shift.open_date is exist - process it [00:50:46]req_shift_open_date [00:50:46]req_shift_open_date done [00:50:46]produce_requested_data done [00:50:46]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69305,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [00:50:46]process_action_free close_receipt [00:50:46]json_value_free [00:50:46]json_value_free done [00:50:46]process_json_proto returns [00:50:46]Send response to host [00:50:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69305,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [00:50:46]free response buf [00:50:46]execute_script done [00:50:46]execute_script returns [00:50:46]free content buf [00:50:46]Sock 7.Close socket [00:50:46]Sock 7.Thread stoped [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:28]accept exits with 10 [00:51:28]New connection [00:51:28]New thread 3066785124 created [00:51:28]Thread 3066641764 joined [00:51:28]Waiting for new connection... [00:51:28] Sock 10.Parse request [00:51:28]Sock 10.Check first char [00:51:28]Sock 10.First char is OK [00:51:28]request: POST /json_proto HTTP/1.0 [00:51:28]Method: POST [00:51:28]URL: /json_proto [00:51:28]Method is POST - this is cgi request [00:51:28]url: /json_proto [00:51:28]query_string will be loaded in cgi processing [00:51:28]execute_cgi json_proto POST (null) [00:51:28]execute_cgi path=json_proto method=POST [00:51:28]POST find Content-Length [00:51:28]Host: 172.17.49.132:8080 [00:51:28]Content-Length: 590 [00:51:28]Content-Type: application/json [00:51:28] [00:51:28]POST finish read [00:51:28]Found Content-Length = 590 [00:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136636", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 37.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:28]execute_script... [00:51: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)136636", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 37.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:28]POST & json_proto [00:51:28]process_json_proto [00:51:28]json parsed OK: [00:51:28]protocol is kg_v1.0 [00:51:28]action value=close_receipt [00:51:28]process_action close_receipt [00:51:28]cmd_close_receipt [00:51:28]MH_GetDate [00:51:28]Write to MH i2c: F0 00 00 A8 67 FE [00:51:28]Write i2c OK [00:51:28]MH_I2C_Read... [00:51:28]Read from MH i2c: F0 [00:51:28]MH_I2C_Read... [00:51:28]Read from MH i2c: F0 09 00 [00:51:28]MH_I2C_Read... [00:51:28]Read from MH i2c: F0 09 00 A8 67 00 9C E7 A6 66 E7 4B C0 64 EC [00:51:28]GetLastDocTimeStamp 1722214254 [00:51:28]current date 1722214300 [00:51:28]FM_GetShiftState [00:51:28]SAM_PROTO_GetShiftState [00:51:28]wFMCommunicate request_size=4 [00:51:28]MH_SAM_APDU [00:51:28]CAPDU: 80 13 01 00 [00:51:28]Write to MH i2c: E2 08 00 A9 67 80 13 01 00 00 00 00 00 8D [00:51:28]Write i2c OK [00:51:28]MH_I2C_Read... [00:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:28]Read from MH i2c: E2 [00:51:28]MH_I2C_Read... [00:51:28]Read from MH i2c: E2 0E 00 [00:51:28]MH_I2C_Read... [00:51:28]Read from MH i2c: E2 0E 00 A9 67 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 44 [00:51:28]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:51:28]wFMCommunicate OK [00:51:28]SAM_PROTO_GetShiftState done [00:51:28]FM_GetShiftState done [00:51:28]opened in 1722213563 [00:51:28]opened+sec_in_day 1722299963 [00:51:28]quantity*price = 3700 [00:51:28]sum+1 = 3701 [00:51:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 37.00 НСП 1% : 0.33 НДС 12% : 3.93 Наличными: 37.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 10 29.07.2024 00:51 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69306 ФПД: 37950227179890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005140&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69306&fm=37950227179890&tin=02508201610067®Number=0000000000092638&sum=3700 0 [00:51:30]StoreToDocumentArchive [00:51:30]shift 430 fd 69306 [00:51:30]save to /storage/0430/doc_00069306 [00:51:30]save last doc name /storage/0430/doc_00069306 to /storage/kkm_last_doc_name [00:51:30]save OK [00:51:30]Clear old archive folders... [00:51:30]ProcessDocumentItem done err = 0, tmpTLVsize=265 [00:51:30]tlvbuf is 00A3E6B0 [00:51:30]SAM_PROTO_ClearQueue [00:51:30]wFMCommunicate request_size=4 [00:51:30]MH_SAM_APDU [00:51:30]CAPDU: 80 09 00 00 [00:51:30]Write to MH i2c: E2 08 00 B6 67 80 09 00 00 00 00 00 00 8F [00:51:30]Write i2c OK [00:51:30]MH_I2C_Read... [00:51:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:30]Read from MH i2c: E2 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: E2 03 00 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: E2 03 00 B6 67 00 90 00 91 [00:51:30]RAPDU: 90 00 [00:51:30]wFMCommunicate OK [00:51:30]SAM_PROTO_ClearQueue done [00:51:30]KKMCreateOFDPacket [00:51:30]OFDProtocolAddRootSTLVToBuf [00:51:30]FM_MakeSignedData [00:51:30]FM_MakeSignedData [00:51:30]SAM_PROTO_SignData [00:51:30]wFMCommunicate request_size=4 [00:51:30]MH_SAM_APDU [00:51:30]CAPDU: 80 0D 01 02 [00:51:30]Write to MH i2c: E2 08 00 B7 67 80 0D 01 02 00 00 00 00 97 [00:51:30]Write i2c OK [00:51:30]MH_I2C_Read... [00:51:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:30]Read from MH i2c: E2 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: E2 03 00 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: E2 03 00 B7 67 00 90 00 92 [00:51:30]RAPDU: 90 00 [00:51:30]wFMCommunicate OK [00:51:30]wFMCommunicate request_size=255 [00:51:30]MH_SAM_APDU [00:51:30]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 9C E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 [00:51:30]Write to MH i2c: E2 02 01 B8 67 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 9C E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 00 00 D7 [00:51:30]Write i2c OK [00:51:30]MH_I2C_Read... [00:51:30]OFD Sender: No OFD packet to send [00:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:30]Read from MH i2c: E2 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: E2 03 00 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: E2 03 00 B8 67 00 90 00 93 [00:51:30]RAPDU: 90 00 [00:51:30]wFMCommunicate OK [00:51:30]wFMCommunicate request_size=24 [00:51:30]MH_SAM_APDU [00:51:30]CAPDU: 80 0D 02 02 13 39 10 04 04 00 BA 0E 01 00 35 04 06 00 22 83 F9 CF 69 72 [00:51:30]Write to MH i2c: E2 1B 00 B9 67 80 0D 02 02 13 00 39 10 04 04 00 BA 0E 01 00 35 04 06 00 22 83 F9 CF 69 72 00 00 61 [00:51:30]Write i2c OK [00:51:30]MH_I2C_Read... [00:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:30]Read from MH i2c: E2 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: E2 03 00 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: E2 03 00 B9 67 00 90 00 94 [00:51:30]RAPDU: 90 00 [00:51:30]wFMCommunicate OK [00:51:30]wFMCommunicate request_size=4 [00:51:30]MH_SAM_APDU [00:51:30]CAPDU: 80 0D 03 02 [00:51:30]Write to MH i2c: E2 08 00 BA 67 80 0D 03 02 00 00 00 00 9C [00:51:30]Write i2c OK [00:51:30]MH_I2C_Read... [00:51:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:30]Read from MH i2c: E2 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: E2 0B 00 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: E2 0B 00 BA 67 00 7A 57 AD 1C 37 E0 10 78 90 00 D6 [00:51:30]RAPDU: 7A 57 AD 1C 37 E0 10 78 90 00 [00:51:30]wFMCommunicate OK [00:51:30]SAM_PROTO_SignData done [00:51:30]FM_MakeSignedData done [00:51:30]CreateOFDProtocolMessage [00:51:30]wFMCommunicate request_size=4 [00:51:30]MH_SAM_APDU [00:51:30]CAPDU: 80 11 00 00 [00:51:30]Write to MH i2c: E2 08 00 BB 67 80 11 00 00 00 00 00 00 9C [00:51:30]Write i2c OK [00:51:30]MH_I2C_Read... [00:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:30]Read from MH i2c: E2 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: E2 17 00 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: E2 17 00 BB 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F8 [00:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:51:30]wFMCommunicate OK [00:51:30]CreateOFDProtocolMessage done [00:51:30]OFDSenderStorePacket 69306 [00:51:30]StoreOFDPacket docnum=69306 [00:51:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 1D 01 00 00 7A B0 15 01 F4 19 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 9C E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BA 0E 01 00 35 04 06 00 22 83 F9 CF 69 72 7A 57 AD 1C 37 E0 10 78 [00:51:30]CheckFolder [00:51:30]dirname=/storage/ofd_packets [00:51:30]CheckFolder done [00:51:30]ProducePacketName [00:51:30]name=ofd_packets/00069306 [00:51:30]NVStorageSaveData ofd_packets/00069306 [00:51:30]File name is /storage/ofd_packets/00069306 [00:51:30]Write 315 bytes [00:51:30]NVStorageSaveData done [00:51:30]OFDSenderStorePacket done [00:51:30]KKMCreateOFDPacket done [00:51:30]NVStorageSaveData kkm_last_timestamp [00:51:30]File name is /storage/kkm_last_timestamp [00:51:30]Write 4 bytes [00:51:30]NVStorageSaveData done [00:51:30]ExternCall_PrintAddStr [00:51:30]wPrintStart [00:51:30]Write to MH i2c: 01 00 00 BC 67 23 [00:51:30]Write i2c OK [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: 01 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: 01 07 00 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: 01 07 00 BC 67 00 00 00 00 00 FF 0F 38 [00:51:30]RasterBufferAndPrint [00:51:30]line Счет N : (3)136636 [00:51:30]line ИНН: 02508201610067 [00:51:30]line Контрольно-Кассовый Чек [00:51:30]line ПРОДАЖА [00:51:30]line Товар: 42113164 [00:51:30]line Жев Orbit White Spearmint [00:51:30]line 1.000 * 37.00 [00:51:30]line = 37.00 [00:51:30]line НДС 12% НСП 1% [00:51:30]line > о реализуемом товаре [00:51:30]line ИТОГО: 37.00 [00:51:30]line НСП 1% : 0.33 [00:51:30]line НДС 12% : 3.93 [00:51:30]line Наличными: 37.00 [00:51:30]line Безнал.: 0.00 [00:51:30]line Место: АЗС № 125 "Партнер Нефть" [00:51:30]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [00:51:30]line СНО: Общий режим [00:51:30]line Чек 10 29.07.2024 00:51 [00:51:30]line Смена: 430 ФФД: 1.0 [00:51:30]line ЗНМ: 0300000049 [00:51:30]line РНМ: 0000000000092638 [00:51:30]line Версия ККМ: 001 [00:51:30]line ФМ: 0000000000874949 [00:51:30]line ФД: 69306 [00:51:30]line ФПД: 37950227179890 [00:51:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005140&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69306&fm=37950227179890&tin=02508201610067®Number=0000000000092638&sum=3700 [00:51:30]line 0 [00:51:30]written 0, free lines is 4095 [00:51:30]OFD Sender: Processing packet 69306 [packets to send 19, broken 18] [00:51:30]ProducePacketName [00:51:30]name=ofd_packets/00069306 [00:51:30]OFD Sender: To server: pG, [00:51:30]CommunicateWithHost lk.salyk.kg:30040 [00:51:30]ConnectInit lk.salyk.kg [00:51:30]Connected sock=9 [00:51: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 39 34 39 1D 01 00 00 7A B0 15 01 F4 19 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 9C E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BA 0E 01 00 35 04 06 00 22 83 F9 CF 69 72 7A 57 AD 1C 37 E0 10 78 [00:51:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 44 B7 47 00 3D 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BA 0E 01 00 F4 03 04 00 0A 8E A6 66 B6 04 01 00 00 8C 9C 32 34 A3 55 82 FE [00:51:30]CommunicateWithHost err = 0 [00:51:30]CheckOFDResponse [00:51:30]1017 (14) - 77093643461234 [00:51:30]1041 (16) - 0000000000874949 [00:51:30]1040 (4) - 69306 [00:51:30]1012 (4) - 28.07.2024 18:29 [00:51:30]1206 (1) - 0 [00:51:30]OFD Sender: Remove packet 69306 [00:51:30]ProducePacketName [00:51:30]name=ofd_packets/00069306 [00:51:30]NVStorageDeleteData [00:51:30]Write to MH i2c: 01 00 00 E4 67 4B [00:51:30]Write i2c OK [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: 01 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: 01 07 00 [00:51:30]MH_I2C_Read... [00:51:30]Read from MH i2c: 01 07 00 E4 67 00 00 00 00 00 17 0D 76 [00:51:30]RasterBufferAndPrint [00:51:30]line [00:51:30]line [00:51:30]line [00:51:30]line [00:51:30]line [00:51:30]written 0, free lines is 3358 [00:51:31]MH_Cut [00:51:31]Write to MH i2c: D1 01 00 EB 67 01 24 [00:51:31]Write i2c OK [00:51:31]MH_I2C_Read... [00:51:31]Read from MH i2c: D1 [00:51:31]MH_I2C_Read... [00:51:31]Read from MH i2c: D1 01 00 [00:51:31]MH_I2C_Read... [00:51:31]Read from MH i2c: D1 01 00 EB 67 00 23 [00:51:31]Write to MH i2c: 01 00 00 EC 67 53 [00:51:31]Write i2c OK [00:51:31]MH_I2C_Read... [00:51:31]OFD Sender: No OFD packet to send [00:51:31]*** Cut start [00:51:31]*** Partial cut [00:51:31]*** CUTSNS_PIN = 1 [00:51:31]*** CUTSNS_PIN = 0 [00:51:31]*** Brake cut motor [00:51:32]Read from MH i2c: 01 [00:51:32]MH_I2C_Read... [00:51:32]*** Stop cut motor [00:51:32]*** Cut end [00:51:32]Read from MH i2c: 01 07 00 [00:51:32]MH_I2C_Read... [00:51:32]Read from MH i2c: 01 07 00 EC 67 00 00 00 00 00 FF 0F 68 [00:51:32]process_action close_receipt done [00:51:32]requested_data is exist [00:51:32]produce_requested_data [00:51:32]requested_item fm.sn is exist - process it [00:51:32]wFMCommunicate request_size=4 [00:51:32]MH_SAM_APDU [00:51:32]CAPDU: 80 11 00 00 [00:51:32]Write to MH i2c: E2 08 00 ED 67 80 11 00 00 00 00 00 00 CE [00:51:32]Write i2c OK [00:51:32]MH_I2C_Read... [00:51:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:32]Read from MH i2c: E2 [00:51:32]MH_I2C_Read... [00:51:32]Read from MH i2c: E2 17 00 [00:51:32]MH_I2C_Read... [00:51:32]Read from MH i2c: E2 17 00 ED 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 2A [00:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:51:32]wFMCommunicate OK [00:51:32]requested_item fd.num is exist - process it [00:51:32]SAM_PROTO_GetFieldsCounters [00:51:32]wFMCommunicate request_size=4 [00:51:32]MH_SAM_APDU [00:51:32]CAPDU: 80 13 00 00 [00:51:32]Write to MH i2c: E2 08 00 EE 67 80 13 00 00 00 00 00 00 D1 [00:51:32]Write i2c OK [00:51:32]MH_I2C_Read... [00:51:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:32]Read from MH i2c: E2 [00:51:32]MH_I2C_Read... [00:51:32]Read from MH i2c: E2 62 00 [00:51:32]MH_I2C_Read... [00:51:32]Read from MH i2c: E2 62 00 EE 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 BA 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [00:51: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 BA 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:51:32]wFMCommunicate OK [00:51:32]SAM_PROTO_GetFieldsCounters done [00:51:32]requested_item shift.num is exist - process it [00:51:32]requested_item shift.opened is exist - process it [00:51:32]req_shift_opened [00:51:32]FM_GetShiftState [00:51:32]SAM_PROTO_GetShiftState [00:51:32]wFMCommunicate request_size=4 [00:51:32]MH_SAM_APDU [00:51:32]CAPDU: 80 13 01 00 [00:51:32]Write to MH i2c: E2 08 00 EF 67 80 13 01 00 00 00 00 00 D3 [00:51:32]Write i2c OK [00:51:32]MH_I2C_Read... [00:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:32]Read from MH i2c: E2 [00:51:32]MH_I2C_Read... [00:51:32]Read from MH i2c: E2 0E 00 [00:51:32]MH_I2C_Read... [00:51:32]Read from MH i2c: E2 0E 00 EF 67 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 8A [00:51:32]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:51:32]wFMCommunicate OK [00:51:32]SAM_PROTO_GetShiftState done [00:51:32]FM_GetShiftState done [00:51:32]req_shift_opened done [00:51:32]requested_item shift.open_date is exist - process it [00:51:32]req_shift_open_date [00:51:32]req_shift_open_date done [00:51:32]produce_requested_data done [00:51:32]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69306,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [00:51:32]process_action_free close_receipt [00:51:32]json_value_free [00:51:32]json_value_free done [00:51:32]process_json_proto returns [00:51:32]Send response to host [00:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69306,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [00:51:32]free response buf [00:51:32]execute_script done [00:51:32]execute_script returns [00:51:32]free content buf [00:51:32]Sock 10.Close socket [00:51:32]Sock 10.Thread stoped [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:33]accept exits with 7 [00:52:33]New connection [00:52:33]New thread 3066641764 created [00:52:33]Thread 3066785124 joined [00:52:33]Waiting for new connection... [00:52:33] Sock 7.Parse request [00:52:33]Sock 7.Check first char [00:52:33]Sock 7.First char is OK [00:52:33]request: POST /json_proto HTTP/1.0 [00:52:33]Method: POST [00:52:33]URL: /json_proto [00:52:33]Method is POST - this is cgi request [00:52:33]url: /json_proto [00:52:33]query_string will be loaded in cgi processing [00:52:33]execute_cgi json_proto POST (null) [00:52:33]execute_cgi path=json_proto method=POST [00:52:33]POST find Content-Length [00:52:33]Host: 172.17.49.132:8080 [00:52:33]Content-Length: 623 [00:52:33]Content-Type: application/json [00:52:33] [00:52:33]POST finish read [00:52:33]Found Content-Length = 623 [00:52:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136637", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:33]execute_script... [00:52:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136637", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:33]POST & json_proto [00:52:33]process_json_proto [00:52:33]json parsed OK: [00:52:33]protocol is kg_v1.0 [00:52:33]action value=close_receipt [00:52:33]process_action close_receipt [00:52:33]cmd_close_receipt [00:52:33]MH_GetDate [00:52:33]Write to MH i2c: F0 00 00 F0 67 46 [00:52:33]Write i2c OK [00:52:33]MH_I2C_Read... [00:52:33]Read from MH i2c: F0 [00:52:33]MH_I2C_Read... [00:52:33]Read from MH i2c: F0 09 00 [00:52:33]MH_I2C_Read... [00:52:33]Read from MH i2c: F0 09 00 F0 67 00 DD E7 A6 66 E7 4B C0 64 75 [00:52:33]GetLastDocTimeStamp 1722214300 [00:52:33]current date 1722214365 [00:52:33]FM_GetShiftState [00:52:33]SAM_PROTO_GetShiftState [00:52:33]wFMCommunicate request_size=4 [00:52:33]MH_SAM_APDU [00:52:33]CAPDU: 80 13 01 00 [00:52:33]Write to MH i2c: E2 08 00 F1 67 80 13 01 00 00 00 00 00 D5 [00:52:33]Write i2c OK [00:52:33]MH_I2C_Read... [00:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:33]Read from MH i2c: E2 [00:52:33]MH_I2C_Read... [00:52:33]Read from MH i2c: E2 0E 00 [00:52:33]MH_I2C_Read... [00:52:33]Read from MH i2c: E2 0E 00 F1 67 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 8C [00:52:33]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:52:33]wFMCommunicate OK [00:52:33]SAM_PROTO_GetShiftState done [00:52:33]FM_GetShiftState done [00:52:33]opened in 1722213563 [00:52:33]opened+sec_in_day 1722299963 [00:52:33]quantity*price = 14000 [00:52:33]sum+1 = 14001 [00:52:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 11 29.07.2024 00:52 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69307 ФПД: 147167301674626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005245&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69307&fm=147167301674626&tin=02508201610067®Number=0000000000092638&sum=14000 0 [00:52:34]StoreToDocumentArchive [00:52:34]shift 430 fd 69307 [00:52:34]save to /storage/0430/doc_00069307 [00:52:34]save last doc name /storage/0430/doc_00069307 to /storage/kkm_last_doc_name [00:52:34]save OK [00:52:34]Clear old archive folders... [00:52:34]ProcessDocumentItem done err = 0, tmpTLVsize=275 [00:52:34]tlvbuf is 00BC44F0 [00:52:34]SAM_PROTO_ClearQueue [00:52:34]wFMCommunicate request_size=4 [00:52:34]MH_SAM_APDU [00:52:34]CAPDU: 80 09 00 00 [00:52:34]Write to MH i2c: E2 08 00 FE 67 80 09 00 00 00 00 00 00 D7 [00:52:34]Write i2c OK [00:52:34]MH_I2C_Read... [00:52:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:52:34]Read from MH i2c: E2 [00:52:34]MH_I2C_Read... [00:52:34]Read from MH i2c: E2 03 00 [00:52:34]MH_I2C_Read... [00:52:34]Read from MH i2c: E2 03 00 FE 67 00 90 00 D9 [00:52:34]RAPDU: 90 00 [00:52:34]wFMCommunicate OK [00:52:34]SAM_PROTO_ClearQueue done [00:52:34]KKMCreateOFDPacket [00:52:34]OFDProtocolAddRootSTLVToBuf [00:52:34]FM_MakeSignedData [00:52:34]FM_MakeSignedData [00:52:34]SAM_PROTO_SignData [00:52:34]wFMCommunicate request_size=4 [00:52:34]MH_SAM_APDU [00:52:34]CAPDU: 80 0D 01 02 [00:52:34]Write to MH i2c: E2 08 00 FF 67 80 0D 01 02 00 00 00 00 DF [00:52:34]Write i2c OK [00:52:34]MH_I2C_Read... [00:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:52:35]Read from MH i2c: E2 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 03 00 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 03 00 FF 67 00 90 00 DA [00:52:35]RAPDU: 90 00 [00:52:35]wFMCommunicate OK [00:52:35]wFMCommunicate request_size=255 [00:52:35]MH_SAM_APDU [00:52:35]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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 DD E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 [00:52:35]Write to MH i2c: E2 02 01 00 68 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 DD E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 00 00 FD [00:52:35]Write i2c OK [00:52:35]MH_I2C_Read... [00:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:35]Read from MH i2c: E2 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 03 00 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 03 00 00 68 00 90 00 DC [00:52:35]RAPDU: 90 00 [00:52:35]wFMCommunicate OK [00:52:35]wFMCommunicate request_size=34 [00:52:35]MH_SAM_APDU [00:52:35]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BB 0E 01 00 35 04 06 00 85 D9 0E BD 26 82 [00:52:35]Write to MH i2c: E2 25 00 01 68 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BB 0E 01 00 35 04 06 00 85 D9 0E BD 26 82 00 00 48 [00:52:35]Write i2c OK [00:52:35]MH_I2C_Read... [00:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:35]Read from MH i2c: E2 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 03 00 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 03 00 01 68 00 90 00 DD [00:52:35]RAPDU: 90 00 [00:52:35]wFMCommunicate OK [00:52:35]wFMCommunicate request_size=4 [00:52:35]MH_SAM_APDU [00:52:35]CAPDU: 80 0D 03 02 [00:52:35]Write to MH i2c: E2 08 00 02 68 80 0D 03 02 00 00 00 00 E5 [00:52:35]Write i2c OK [00:52:35]MH_I2C_Read... [00:52:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:52:35]Read from MH i2c: E2 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 0B 00 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 0B 00 02 68 00 22 86 18 4E 91 A5 8E A0 90 00 58 [00:52:35]RAPDU: 22 86 18 4E 91 A5 8E A0 90 00 [00:52:35]wFMCommunicate OK [00:52:35]SAM_PROTO_SignData done [00:52:35]FM_MakeSignedData done [00:52:35]CreateOFDProtocolMessage [00:52:35]wFMCommunicate request_size=4 [00:52:35]MH_SAM_APDU [00:52:35]CAPDU: 80 11 00 00 [00:52:35]Write to MH i2c: E2 08 00 03 68 80 11 00 00 00 00 00 00 E5 [00:52:35]Write i2c OK [00:52:35]MH_I2C_Read... [00:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:35]Read from MH i2c: E2 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 17 00 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: E2 17 00 03 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 41 [00:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:52:35]wFMCommunicate OK [00:52:35]CreateOFDProtocolMessage done [00:52:35]OFDSenderStorePacket 69307 [00:52:35]StoreOFDPacket docnum=69307 [00:52:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 48 B4 1F 01 0C 2B 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 DD E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BB 0E 01 00 35 04 06 00 85 D9 0E BD 26 82 22 86 18 4E 91 A5 8E A0 [00:52:35]CheckFolder [00:52:35]dirname=/storage/ofd_packets [00:52:35]CheckFolder done [00:52:35]ProducePacketName [00:52:35]name=ofd_packets/00069307 [00:52:35]NVStorageSaveData ofd_packets/00069307 [00:52:35]File name is /storage/ofd_packets/00069307 [00:52:35]Write 325 bytes [00:52:35]NVStorageSaveData done [00:52:35]OFDSenderStorePacket done [00:52:35]KKMCreateOFDPacket done [00:52:35]NVStorageSaveData kkm_last_timestamp [00:52:35]File name is /storage/kkm_last_timestamp [00:52:35]Write 4 bytes [00:52:35]NVStorageSaveData done [00:52:35]ExternCall_PrintAddStr [00:52:35]wPrintStart [00:52:35]Write to MH i2c: 01 00 00 04 68 6C [00:52:35]OFD Sender: Processing packet 69307 [packets to send 19, broken 18] [00:52:35]ProducePacketName [00:52:35]name=ofd_packets/00069307 [00:52:35]OFD Sender: To server: pG, [00:52:35]CommunicateWithHost lk.salyk.kg:30040 [00:52:35]ConnectInit lk.salyk.kg [00:52:35]Write i2c OK [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: 01 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: 01 07 00 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: 01 07 00 04 68 00 00 00 00 00 FF 0F 81 [00:52:35]RasterBufferAndPrint [00:52:35]line Счет N : (3)136637 [00:52:35]line ИНН: 02508201610067 [00:52:35]line Контрольно-Кассовый Чек [00:52:35]line ПРОДАЖА [00:52:35]line Товар: 48743587 [00:52:35]line Сигареты Winston XStyle Silver [00:52:35]line 1.000 * 140.00 [00:52:35]line = 140.00 [00:52:35]line НДС 12% НСП 1% [00:52:35]line > о реализуемом товаре [00:52:35]line ИТОГО: 140.00 [00:52:35]line НСП 1% : 1.24 [00:52:35]line НДС 12% : 14.87 [00:52:35]line Наличными: 140.00 [00:52:35]line Безнал.: 0.00 [00:52:35]line Место: АЗС № 125 "Партнер Нефть" [00:52:35]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [00:52:35]line СНО: Общий режим [00:52:35]line Чек 11 29.07.2024 00:52 [00:52:35]line Смена: 430 ФФД: 1.0 [00:52:35]line ЗНМ: 0300000049 [00:52:35]line РНМ: 0000000000092638 [00:52:35]line Версия ККМ: 001 [00:52:35]line ФМ: 0000000000874949 [00:52:35]line ФД: 69307 [00:52:35]line ФПД: 147167301674626 [00:52:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005245&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69307&fm=147167301674626&tin=02508201610067®Number=0000000000092638&sum=14000 [00:52:35]line 0 [00:52:35]written 0, free lines is 4095 [00:52:35]Connected sock=9 [00:52:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 48 B4 1F 01 0C 2B 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 DD E7 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BB 0E 01 00 35 04 06 00 85 D9 0E BD 26 82 22 86 18 4E 91 A5 8E A0 [00:52:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 05 12 47 00 78 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 39 34 39 10 04 04 00 BB 0E 01 00 F4 03 04 00 4B 8E A6 66 B6 04 01 00 00 D6 AF CE ED A0 A6 95 6C [00:52:35]CommunicateWithHost err = 0 [00:52:35]CheckOFDResponse [00:52:35]1017 (14) - 77093643461234 [00:52:35]1041 (16) - 0000000000874949 [00:52:35]1040 (4) - 69307 [00:52:35]1012 (4) - 28.07.2024 18:30 [00:52:35]1206 (1) - 0 [00:52:35]OFD Sender: Remove packet 69307 [00:52:35]ProducePacketName [00:52:35]name=ofd_packets/00069307 [00:52:35]NVStorageDeleteData [00:52:35]Write to MH i2c: 01 00 00 2D 68 95 [00:52:35]Write i2c OK [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: 01 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: 01 07 00 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: 01 07 00 2D 68 00 00 00 00 00 0E 0D B7 [00:52:35]RasterBufferAndPrint [00:52:35]line [00:52:35]line [00:52:35]line [00:52:35]line [00:52:35]line [00:52:35]written 0, free lines is 3348 [00:52:35]MH_Cut [00:52:35]Write to MH i2c: D1 01 00 34 68 01 6E [00:52:35]Write i2c OK [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: D1 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: D1 01 00 [00:52:35]MH_I2C_Read... [00:52:35]Read from MH i2c: D1 01 00 34 68 00 6D [00:52:35]Write to MH i2c: 01 00 00 35 68 9D [00:52:35]Write i2c OK [00:52:35]MH_I2C_Read... [00:52:36]OFD Sender: No OFD packet to send [00:52:36]*** Cut start [00:52:36]*** Partial cut [00:52:36]*** CUTSNS_PIN = 1 [00:52:36]*** CUTSNS_PIN = 0 [00:52:36]*** Brake cut motor [00:52:37]Read from MH i2c: 01 [00:52:37]MH_I2C_Read... [00:52:37]*** Stop cut motor [00:52:37]*** Cut end [00:52:37]Read from MH i2c: 01 07 00 [00:52:37]MH_I2C_Read... [00:52:37]Read from MH i2c: 01 07 00 35 68 00 00 00 00 00 FF 0F B2 [00:52:37]process_action close_receipt done [00:52:37]requested_data is exist [00:52:37]produce_requested_data [00:52:37]requested_item fm.sn is exist - process it [00:52:37]wFMCommunicate request_size=4 [00:52:37]MH_SAM_APDU [00:52:37]CAPDU: 80 11 00 00 [00:52:37]Write to MH i2c: E2 08 00 36 68 80 11 00 00 00 00 00 00 18 [00:52:37]Write i2c OK [00:52:37]MH_I2C_Read... [00:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:37]Read from MH i2c: E2 [00:52:37]MH_I2C_Read... [00:52:37]Read from MH i2c: E2 17 00 [00:52:37]MH_I2C_Read... [00:52:37]Read from MH i2c: E2 17 00 36 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 74 [00:52:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:52:37]wFMCommunicate OK [00:52:37]requested_item fd.num is exist - process it [00:52:37]SAM_PROTO_GetFieldsCounters [00:52:37]wFMCommunicate request_size=4 [00:52:37]MH_SAM_APDU [00:52:37]CAPDU: 80 13 00 00 [00:52:37]Write to MH i2c: E2 08 00 37 68 80 13 00 00 00 00 00 00 1B [00:52:37]Write i2c OK [00:52:37]MH_I2C_Read... [00:52:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:52:37]Read from MH i2c: E2 [00:52:37]MH_I2C_Read... [00:52:37]Read from MH i2c: E2 62 00 [00:52:37]MH_I2C_Read... [00:52:37]Read from MH i2c: E2 62 00 37 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 BB 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [00:52:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 BB 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:52:37]wFMCommunicate OK [00:52:37]SAM_PROTO_GetFieldsCounters done [00:52:37]requested_item shift.num is exist - process it [00:52:37]requested_item shift.opened is exist - process it [00:52:37]req_shift_opened [00:52:37]FM_GetShiftState [00:52:37]SAM_PROTO_GetShiftState [00:52:37]wFMCommunicate request_size=4 [00:52:37]MH_SAM_APDU [00:52:37]CAPDU: 80 13 01 00 [00:52:37]Write to MH i2c: E2 08 00 38 68 80 13 01 00 00 00 00 00 1D [00:52:37]Write i2c OK [00:52:37]MH_I2C_Read... [00:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:37]Read from MH i2c: E2 [00:52:37]MH_I2C_Read... [00:52:37]Read from MH i2c: E2 0E 00 [00:52:37]MH_I2C_Read... [00:52:37]Read from MH i2c: E2 0E 00 38 68 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 D4 [00:52:37]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:52:37]wFMCommunicate OK [00:52:37]SAM_PROTO_GetShiftState done [00:52:37]FM_GetShiftState done [00:52:37]req_shift_opened done [00:52:37]requested_item shift.open_date is exist - process it [00:52:37]req_shift_open_date [00:52:37]req_shift_open_date done [00:52:37]produce_requested_data done [00:52:37]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69307,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [00:52:37]process_action_free close_receipt [00:52:37]json_value_free [00:52:37]json_value_free done [00:52:37]process_json_proto returns [00:52:37]Send response to host [00:52:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69307,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [00:52:37]free response buf [00:52:37]execute_script done [00:52:37]execute_script returns [00:52:37]free content buf [00:52:37]Sock 7.Close socket [00:52:37]Sock 7.Thread stoped [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:16]accept exits with 10 [00:54:16]New connection [00:54:16]New thread 3066785124 created [00:54:16]Thread 3066641764 joined [00:54:16]Waiting for new connection... [00:54:16] Sock 10.Parse request [00:54:16]Sock 10.Check first char [00:54:16]Sock 10.First char is OK [00:54:16]request: POST /json_proto HTTP/1.0 [00:54:16]Method: POST [00:54:16]URL: /json_proto [00:54:16]Method is POST - this is cgi request [00:54:16]url: /json_proto [00:54:16]query_string will be loaded in cgi processing [00:54:16]execute_cgi json_proto POST (null) [00:54:16]execute_cgi path=json_proto method=POST [00:54:16]POST find Content-Length [00:54:16]Host: 172.17.49.132:8080 [00:54:16]Content-Length: 671 [00:54:16]Content-Type: application/json [00:54:16] [00:54:16]POST finish read [00:54:16]Found Content-Length = 671 [00:54:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136638", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:16]execute_script... [00:54: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)136638", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:16]POST & json_proto [00:54:16]process_json_proto [00:54:16]json parsed OK: [00:54:16]protocol is kg_v1.0 [00:54:16]action value=close_receipt [00:54:16]process_action close_receipt [00:54:16]cmd_close_receipt [00:54:16]MH_GetDate [00:54:16]Write to MH i2c: F0 00 00 39 68 90 [00:54:16]Write i2c OK [00:54:16]MH_I2C_Read... [00:54:16]Read from MH i2c: F0 [00:54:16]MH_I2C_Read... [00:54:16]Read from MH i2c: F0 09 00 [00:54:16]MH_I2C_Read... [00:54:16]Read from MH i2c: F0 09 00 39 68 00 44 E8 A6 66 E7 4B C0 64 27 [00:54:16]GetLastDocTimeStamp 1722214365 [00:54:16]current date 1722214468 [00:54:16]FM_GetShiftState [00:54:16]SAM_PROTO_GetShiftState [00:54:16]wFMCommunicate request_size=4 [00:54:16]MH_SAM_APDU [00:54:16]CAPDU: 80 13 01 00 [00:54:16]Write to MH i2c: E2 08 00 3A 68 80 13 01 00 00 00 00 00 1F [00:54:16]Write i2c OK [00:54:16]MH_I2C_Read... [00:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:16]Read from MH i2c: E2 [00:54:16]MH_I2C_Read... [00:54:16]Read from MH i2c: E2 0E 00 [00:54:16]MH_I2C_Read... [00:54:16]Read from MH i2c: E2 0E 00 3A 68 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 D6 [00:54:16]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:54:16]wFMCommunicate OK [00:54:16]SAM_PROTO_GetShiftState done [00:54:16]FM_GetShiftState done [00:54:16]opened in 1722213563 [00:54:16]opened+sec_in_day 1722299963 [00:54:16]quantity*price = 8200 [00:54:16]sum+1 = 8201 [00:54:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 82.00 НСП 1% : 0.73 НДС 12% : 8.71 Наличными: 82.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 12 29.07.2024 00:54 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69308 ФПД: 205541117374393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005428&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69308&fm=205541117374393&tin=02508201610067®Number=0000000000092638&sum=8200 0 [00:54:18]StoreToDocumentArchive [00:54:18]shift 430 fd 69308 [00:54:18]save to /storage/0430/doc_00069308 [00:54:18]save last doc name /storage/0430/doc_00069308 to /storage/kkm_last_doc_name [00:54:18]save OK [00:54:18]Clear old archive folders... [00:54:18]ProcessDocumentItem done err = 0, tmpTLVsize=290 [00:54:18]tlvbuf is 00A37900 [00:54:18]SAM_PROTO_ClearQueue [00:54:18]wFMCommunicate request_size=4 [00:54:18]MH_SAM_APDU [00:54:18]CAPDU: 80 09 00 00 [00:54:18]Write to MH i2c: E2 08 00 47 68 80 09 00 00 00 00 00 00 21 [00:54:18]Write i2c OK [00:54:18]MH_I2C_Read... [00:54:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:54:18]Read from MH i2c: E2 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: E2 03 00 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: E2 03 00 47 68 00 90 00 23 [00:54:18]RAPDU: 90 00 [00:54:18]wFMCommunicate OK [00:54:18]SAM_PROTO_ClearQueue done [00:54:18]KKMCreateOFDPacket [00:54:18]OFDProtocolAddRootSTLVToBuf [00:54:18]FM_MakeSignedData [00:54:18]FM_MakeSignedData [00:54:18]SAM_PROTO_SignData [00:54:18]wFMCommunicate request_size=4 [00:54:18]MH_SAM_APDU [00:54:18]CAPDU: 80 0D 01 02 [00:54:18]Write to MH i2c: E2 08 00 48 68 80 0D 01 02 00 00 00 00 29 [00:54:18]Write i2c OK [00:54:18]MH_I2C_Read... [00:54:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:54:18]Read from MH i2c: E2 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: E2 03 00 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: E2 03 00 48 68 00 90 00 24 [00:54:18]RAPDU: 90 00 [00:54:18]wFMCommunicate OK [00:54:18]wFMCommunicate request_size=255 [00:54:18]MH_SAM_APDU [00:54:18]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 44 E8 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [00:54:18]Write to MH i2c: E2 02 01 49 68 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 44 E8 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 F2 [00:54:18]Write i2c OK [00:54:18]MH_I2C_Read... [00:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:18]Read from MH i2c: E2 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: E2 03 00 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: E2 03 00 49 68 00 90 00 25 [00:54:18]RAPDU: 90 00 [00:54:18]wFMCommunicate OK [00:54:18]wFMCommunicate request_size=49 [00:54:18]MH_SAM_APDU [00:54:18]CAPDU: 80 0D 02 02 2C 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BC 0E 01 00 35 04 06 00 BA F0 45 49 AF B9 [00:54:18]Write to MH i2c: E2 34 00 4A 68 80 0D 02 02 2C 00 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BC 0E 01 00 35 04 06 00 BA F0 45 49 AF B9 00 00 D0 [00:54:18]Write i2c OK [00:54:18]MH_I2C_Read... [00:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:18]Read from MH i2c: E2 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: E2 03 00 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: E2 03 00 4A 68 00 90 00 26 [00:54:18]RAPDU: 90 00 [00:54:18]wFMCommunicate OK [00:54:18]wFMCommunicate request_size=4 [00:54:18]MH_SAM_APDU [00:54:18]CAPDU: 80 0D 03 02 [00:54:18]Write to MH i2c: E2 08 00 4B 68 80 0D 03 02 00 00 00 00 2E [00:54:18]Write i2c OK [00:54:18]MH_I2C_Read... [00:54:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:54:18]Read from MH i2c: E2 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: E2 0B 00 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: E2 0B 00 4B 68 00 EE D6 47 20 30 FC 07 36 90 00 C3 [00:54:18]RAPDU: EE D6 47 20 30 FC 07 36 90 00 [00:54:18]wFMCommunicate OK [00:54:18]SAM_PROTO_SignData done [00:54:18]FM_MakeSignedData done [00:54:18]CreateOFDProtocolMessage [00:54:18]wFMCommunicate request_size=4 [00:54:18]MH_SAM_APDU [00:54:18]CAPDU: 80 11 00 00 [00:54:18]Write to MH i2c: E2 08 00 4C 68 80 11 00 00 00 00 00 00 2E [00:54:18]Write i2c OK [00:54:18]MH_I2C_Read... [00:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:18]Read from MH i2c: E2 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: E2 17 00 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: E2 17 00 4C 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 8A [00:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:54:18]wFMCommunicate OK [00:54:18]CreateOFDProtocolMessage done [00:54:18]OFDSenderStorePacket 69308 [00:54:18]StoreOFDPacket docnum=69308 [00:54:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 36 01 00 00 79 C8 2E 01 EE 2E 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 44 E8 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BC 0E 01 00 35 04 06 00 BA F0 45 49 AF B9 EE D6 47 20 30 FC 07 36 [00:54:18]CheckFolder [00:54:18]dirname=/storage/ofd_packets [00:54:18]CheckFolder done [00:54:18]ProducePacketName [00:54:18]name=ofd_packets/00069308 [00:54:18]NVStorageSaveData ofd_packets/00069308 [00:54:18]File name is /storage/ofd_packets/00069308 [00:54:18]Write 340 bytes [00:54:18]NVStorageSaveData done [00:54:18]OFDSenderStorePacket done [00:54:18]KKMCreateOFDPacket done [00:54:18]NVStorageSaveData kkm_last_timestamp [00:54:18]File name is /storage/kkm_last_timestamp [00:54:18]Write 4 bytes [00:54:18]NVStorageSaveData done [00:54:18]ExternCall_PrintAddStr [00:54:18]wPrintStart [00:54:18]Write to MH i2c: 01 00 00 4D 68 B5 [00:54:18]Write i2c OK [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: 01 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: 01 07 00 [00:54:18]MH_I2C_Read... [00:54:18]Read from MH i2c: 01 07 00 4D 68 00 00 00 00 00 FF 0F CA [00:54:18]RasterBufferAndPrint [00:54:18]line Счет N : (3)136638 [00:54:18]line ИНН: 02508201610067 [00:54:18]line Контрольно-Кассовый Чек [00:54:18]line ПРОДАЖА [00:54:18]line Товар: 4700000483334 [00:54:18]line Напиток Nitro Fresh Дикие ягоды [00:54:18]line 1.000 * 82.00 [00:54:18]line = 82.00 [00:54:18]line НДС 12% НСП 1% [00:54:18]line > о реализуемом товаре [00:54:18]line ИТОГО: 82.00 [00:54:18]line НСП 1% : 0.73 [00:54:18]line НДС 12% : 8.71 [00:54:18]line Наличными: 82.00 [00:54:18]line Безнал.: 0.00 [00:54:18]line Место: АЗС № 125 "Партнер Нефть" [00:54:18]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [00:54:18]line СНО: Общий режим [00:54:18]line Чек 12 29.07.2024 00:54 [00:54:18]line Смена: 430 ФФД: 1.0 [00:54:18]line ЗНМ: 0300000049 [00:54:18]line РНМ: 0000000000092638 [00:54:18]line Версия ККМ: 001 [00:54:18]line ФМ: 0000000000874949 [00:54:18]line ФД: 69308 [00:54:18]line ФПД: 205541117374393 [00:54:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T005428&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69308&fm=205541117374393&tin=02508201610067®Number=0000000000092638&sum=8200 [00:54:18]OFD Sender: Processing packet 69308 [packets to send 19, broken 18] [00:54:18]ProducePacketName [00:54:18]name=ofd_packets/00069308 [00:54:18]OFD Sender: To server: pG, [00:54:18]CommunicateWithHost lk.salyk.kg:30040 [00:54:18]ConnectInit lk.salyk.kg [00:54:18]line 0 [00:54:18]written 0, free lines is 4095 [00:54:19]Connected sock=9 [00:54: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 39 34 39 36 01 00 00 79 C8 2E 01 EE 2E 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 44 E8 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BC 0E 01 00 35 04 06 00 BA F0 45 49 AF B9 EE D6 47 20 30 FC 07 36 [00:54:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CA 18 47 00 83 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BC 0E 01 00 F4 03 04 00 B2 8E A6 66 B6 04 01 00 00 EB 99 7D DC AC 9B 57 57 [00:54:19]CommunicateWithHost err = 0 [00:54:19]CheckOFDResponse [00:54:19]1017 (14) - 77093643461234 [00:54:19]1041 (16) - 0000000000874949 [00:54:19]1040 (4) - 69308 [00:54:19]1012 (4) - 28.07.2024 18:32 [00:54:19]1206 (1) - 0 [00:54:19]OFD Sender: Remove packet 69308 [00:54:19]ProducePacketName [00:54:19]name=ofd_packets/00069308 [00:54:19]NVStorageDeleteData [00:54:19]Write to MH i2c: 01 00 00 76 68 DE [00:54:19]Write i2c OK [00:54:19]MH_I2C_Read... [00:54:19]Read from MH i2c: 01 [00:54:19]MH_I2C_Read... [00:54:19]Read from MH i2c: 01 07 00 [00:54:19]MH_I2C_Read... [00:54:19]Read from MH i2c: 01 07 00 76 68 00 00 00 00 00 F4 0C E5 [00:54:19]RasterBufferAndPrint [00:54:19]line [00:54:19]line [00:54:19]line [00:54:19]line [00:54:19]line [00:54:19]written 0, free lines is 3323 [00:54:19]MH_Cut [00:54:19]Write to MH i2c: D1 01 00 7D 68 01 B7 [00:54:19]Write i2c OK [00:54:19]MH_I2C_Read... [00:54:19]Read from MH i2c: D1 [00:54:19]MH_I2C_Read... [00:54:19]Read from MH i2c: D1 01 00 [00:54:19]MH_I2C_Read... [00:54:19]Read from MH i2c: D1 01 00 7D 68 00 B6 [00:54:19]Write to MH i2c: 01 00 00 7E 68 E6 [00:54:19]Write i2c OK [00:54:19]MH_I2C_Read... [00:54:19]OFD Sender: No OFD packet to send [00:54:20]*** Cut start [00:54:20]*** Partial cut [00:54:20]*** CUTSNS_PIN = 1 [00:54:20]*** CUTSNS_PIN = 0 [00:54:20]*** Brake cut motor [00:54:20]Read from MH i2c: 01 [00:54:20]MH_I2C_Read... [00:54:20]*** Stop cut motor [00:54:20]*** Cut end [00:54:20]Read from MH i2c: 01 07 00 [00:54:20]MH_I2C_Read... [00:54:20]Read from MH i2c: 01 07 00 7E 68 00 00 00 00 00 FF 0F FB [00:54:20]process_action close_receipt done [00:54:20]requested_data is exist [00:54:20]produce_requested_data [00:54:20]requested_item fm.sn is exist - process it [00:54:20]wFMCommunicate request_size=4 [00:54:20]MH_SAM_APDU [00:54:20]CAPDU: 80 11 00 00 [00:54:20]Write to MH i2c: E2 08 00 7F 68 80 11 00 00 00 00 00 00 61 [00:54:20]Write i2c OK [00:54:20]MH_I2C_Read... [00:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:20]Read from MH i2c: E2 [00:54:20]MH_I2C_Read... [00:54:20]Read from MH i2c: E2 17 00 [00:54:20]MH_I2C_Read... [00:54:20]Read from MH i2c: E2 17 00 7F 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 BD [00:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [00:54:20]wFMCommunicate OK [00:54:20]requested_item fd.num is exist - process it [00:54:20]SAM_PROTO_GetFieldsCounters [00:54:20]wFMCommunicate request_size=4 [00:54:20]MH_SAM_APDU [00:54:20]CAPDU: 80 13 00 00 [00:54:20]Write to MH i2c: E2 08 00 80 68 80 13 00 00 00 00 00 00 64 [00:54:20]Write i2c OK [00:54:20]MH_I2C_Read... [00:54:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:54:20]Read from MH i2c: E2 [00:54:20]MH_I2C_Read... [00:54:20]Read from MH i2c: E2 62 00 [00:54:20]MH_I2C_Read... [00:54:20]Read from MH i2c: E2 62 00 80 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 BC 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [00:54: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 BC 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:54:20]wFMCommunicate OK [00:54:20]SAM_PROTO_GetFieldsCounters done [00:54:20]requested_item shift.num is exist - process it [00:54:20]requested_item shift.opened is exist - process it [00:54:20]req_shift_opened [00:54:20]FM_GetShiftState [00:54:20]SAM_PROTO_GetShiftState [00:54:20]wFMCommunicate request_size=4 [00:54:20]MH_SAM_APDU [00:54:20]CAPDU: 80 13 01 00 [00:54:20]Write to MH i2c: E2 08 00 81 68 80 13 01 00 00 00 00 00 66 [00:54:20]Write i2c OK [00:54:20]MH_I2C_Read... [00:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:20]Read from MH i2c: E2 [00:54:20]MH_I2C_Read... [00:54:20]Read from MH i2c: E2 0E 00 [00:54:20]MH_I2C_Read... [00:54:20]Read from MH i2c: E2 0E 00 81 68 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 1D [00:54:20]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [00:54:20]wFMCommunicate OK [00:54:20]SAM_PROTO_GetShiftState done [00:54:20]FM_GetShiftState done [00:54:20]req_shift_opened done [00:54:20]requested_item shift.open_date is exist - process it [00:54:20]req_shift_open_date [00:54:20]req_shift_open_date done [00:54:20]produce_requested_data done [00:54:20]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69308,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [00:54:20]process_action_free close_receipt [00:54:20]json_value_free [00:54:20]json_value_free done [00:54:20]process_json_proto returns [00:54:20]Send response to host [00:54:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69308,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [00:54:20]free response buf [00:54:20]execute_script done [00:54:20]execute_script returns [00:54:20]free content buf [00:54:20]Sock 10.Close socket [00:54:20]Sock 10.Thread stoped [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:29]accept exits with 7 [01:06:29]New connection [01:06:29]New thread 3066641764 created [01:06:29]Thread 3066785124 joined [01:06:29]Waiting for new connection... [01:06:29] Sock 7.Parse request [01:06:29]Sock 7.Check first char [01:06:29]Sock 7.First char is OK [01:06:29]request: POST /json_proto HTTP/1.0 [01:06:29]Method: POST [01:06:29]URL: /json_proto [01:06:29]Method is POST - this is cgi request [01:06:29]url: /json_proto [01:06:29]query_string will be loaded in cgi processing [01:06:29]execute_cgi json_proto POST (null) [01:06:29]execute_cgi path=json_proto method=POST [01:06:29]POST find Content-Length [01:06:29]Host: 172.17.49.132:8080 [01:06:29]Content-Length: 898 [01:06:29]Content-Type: application/json [01:06:29] [01:06:29]POST finish read [01:06:29]Found Content-Length = 898 [01:06:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136639", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 3.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 454.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:06:29]execute_script... [01:06:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136639", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 3.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 454.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:06:29]POST & json_proto [01:06:29]process_json_proto [01:06:29]json parsed OK: [01:06:29]protocol is kg_v1.0 [01:06:29]action value=close_receipt [01:06:29]process_action close_receipt [01:06:29]cmd_close_receipt [01:06:29]MH_GetDate [01:06:29]Write to MH i2c: F0 00 00 82 68 D9 [01:06:29]Write i2c OK [01:06:29]MH_I2C_Read... [01:06:29]Read from MH i2c: F0 [01:06:29]MH_I2C_Read... [01:06:29]Read from MH i2c: F0 09 00 [01:06:29]MH_I2C_Read... [01:06:29]Read from MH i2c: F0 09 00 82 68 00 22 EB A6 66 E7 4B C0 64 51 [01:06:29]GetLastDocTimeStamp 1722214468 [01:06:29]current date 1722215202 [01:06:29]FM_GetShiftState [01:06:29]SAM_PROTO_GetShiftState [01:06:29]wFMCommunicate request_size=4 [01:06:29]MH_SAM_APDU [01:06:29]CAPDU: 80 13 01 00 [01:06:29]Write to MH i2c: E2 08 00 83 68 80 13 01 00 00 00 00 00 68 [01:06:29]Write i2c OK [01:06:29]MH_I2C_Read... [01:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:29]Read from MH i2c: E2 [01:06:29]MH_I2C_Read... [01:06:29]Read from MH i2c: E2 0E 00 [01:06:29]MH_I2C_Read... [01:06:29]Read from MH i2c: E2 0E 00 83 68 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 1F [01:06:29]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:06:29]wFMCommunicate OK [01:06:29]SAM_PROTO_GetShiftState done [01:06:29]FM_GetShiftState done [01:06:29]opened in 1722213563 [01:06:29]opened+sec_in_day 1722299963 [01:06:29]quantity*price = 45000 [01:06:29]sum+1 = 45001 [01:06:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 454.00 НСП 1% : 4.01 НДС 12% : 48.21 Наличными: 454.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 13 29.07.2024 01:06 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69309 ФПД: 123797092365973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T010642&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69309&fm=123797092365973&tin=02508201610067®Number=0000000000092638&sum=45400 0 [01:06:31]StoreToDocumentArchive [01:06:31]shift 430 fd 69309 [01:06:31]save to /storage/0430/doc_00069309 [01:06:31]save last doc name /storage/0430/doc_00069309 to /storage/kkm_last_doc_name [01:06:31]save OK [01:06:31]Clear old archive folders... [01:06:31]ProcessDocumentItem done err = 0, tmpTLVsize=376 [01:06:31]tlvbuf is 00C44570 [01:06:31]SAM_PROTO_ClearQueue [01:06:31]wFMCommunicate request_size=4 [01:06:31]MH_SAM_APDU [01:06:31]CAPDU: 80 09 00 00 [01:06:31]Write to MH i2c: E2 08 00 90 68 80 09 00 00 00 00 00 00 6A [01:06:31]Write i2c OK [01:06:31]MH_I2C_Read... [01:06:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:06:31]Read from MH i2c: E2 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: E2 03 00 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: E2 03 00 90 68 00 90 00 6C [01:06:31]RAPDU: 90 00 [01:06:31]wFMCommunicate OK [01:06:31]SAM_PROTO_ClearQueue done [01:06:31]KKMCreateOFDPacket [01:06:31]OFDProtocolAddRootSTLVToBuf [01:06:31]FM_MakeSignedData [01:06:31]FM_MakeSignedData [01:06:31]SAM_PROTO_SignData [01:06:31]wFMCommunicate request_size=4 [01:06:31]MH_SAM_APDU [01:06:31]CAPDU: 80 0D 01 02 [01:06:31]Write to MH i2c: E2 08 00 91 68 80 0D 01 02 00 00 00 00 72 [01:06:31]Write i2c OK [01:06:31]MH_I2C_Read... [01:06:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:06:31]Read from MH i2c: E2 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: E2 03 00 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: E2 03 00 91 68 00 90 00 6D [01:06:31]RAPDU: 90 00 [01:06:31]wFMCommunicate OK [01:06:31]wFMCommunicate request_size=255 [01:06:31]MH_SAM_APDU [01:06:31]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 [01:06:31]Write to MH i2c: E2 02 01 92 68 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 00 00 8A [01:06:31]Write i2c OK [01:06:31]MH_I2C_Read... [01:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:31]Read from MH i2c: E2 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: E2 03 00 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: E2 03 00 92 68 00 90 00 6E [01:06:31]RAPDU: 90 00 [01:06:31]wFMCommunicate OK [01:06:31]wFMCommunicate request_size=135 [01:06:31]MH_SAM_APDU [01:06:31]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 D5 12 00 00 00 00 07 04 06 00 58 B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 22 EB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BD 0E 01 00 35 04 06 00 70 97 C1 B6 F6 95 [01:06:31]Write to MH i2c: E2 8A 00 93 68 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 D5 12 00 00 00 00 07 04 06 00 58 B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 22 EB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BD 0E 01 00 35 04 06 00 70 97 C1 B6 F6 95 00 00 5B [01:06:31]Write i2c OK [01:06:31]MH_I2C_Read... [01:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:31]Read from MH i2c: E2 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: E2 03 00 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: E2 03 00 93 68 00 90 00 6F [01:06:31]RAPDU: 90 00 [01:06:31]wFMCommunicate OK [01:06:31]wFMCommunicate request_size=4 [01:06:31]MH_SAM_APDU [01:06:31]CAPDU: 80 0D 03 02 [01:06:31]Write to MH i2c: E2 08 00 94 68 80 0D 03 02 00 00 00 00 77 [01:06:31]Write i2c OK [01:06:31]MH_I2C_Read... [01:06:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:06:31]Read from MH i2c: E2 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: E2 0B 00 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: E2 0B 00 94 68 00 C5 81 33 78 F3 74 F5 B7 90 00 7C [01:06:31]RAPDU: C5 81 33 78 F3 74 F5 B7 90 00 [01:06:31]wFMCommunicate OK [01:06:31]SAM_PROTO_SignData done [01:06:31]FM_MakeSignedData done [01:06:31]CreateOFDProtocolMessage [01:06:31]wFMCommunicate request_size=4 [01:06:31]MH_SAM_APDU [01:06:31]CAPDU: 80 11 00 00 [01:06:31]Write to MH i2c: E2 08 00 95 68 80 11 00 00 00 00 00 00 77 [01:06:31]Write i2c OK [01:06:31]MH_I2C_Read... [01:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:31]Read from MH i2c: E2 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: E2 17 00 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: E2 17 00 95 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D3 [01:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:06:31]wFMCommunicate OK [01:06:31]CreateOFDProtocolMessage done [01:06:31]OFDSenderStorePacket 69309 [01:06:31]StoreOFDPacket docnum=69309 [01:06:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 8C 01 00 00 73 60 84 01 61 96 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 12 00 00 00 00 07 04 06 00 58 B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 22 EB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BD 0E 01 00 35 04 06 00 70 97 C1 B6 F6 95 C5 81 33 78 F3 74 F5 B7 [01:06:31]CheckFolder [01:06:31]dirname=/storage/ofd_packets [01:06:31]CheckFolder done [01:06:31]ProducePacketName [01:06:31]name=ofd_packets/00069309 [01:06:31]NVStorageSaveData ofd_packets/00069309 [01:06:31]File name is /storage/ofd_packets/00069309 [01:06:31]Write 426 bytes [01:06:31]NVStorageSaveData done [01:06:31]OFDSenderStorePacket done [01:06:31]KKMCreateOFDPacket done [01:06:31]NVStorageSaveData kkm_last_timestamp [01:06:31]File name is /storage/kkm_last_timestamp [01:06:31]Write 4 bytes [01:06:31]NVStorageSaveData done [01:06:31]ExternCall_PrintAddStr [01:06:31]wPrintStart [01:06:31]Write to MH i2c: 01 00 00 96 68 FE [01:06:31]Write i2c OK [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: 01 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: 01 07 00 [01:06:31]MH_I2C_Read... [01:06:31]Read from MH i2c: 01 07 00 96 68 00 00 00 00 00 FF 0F 13 [01:06:31]RasterBufferAndPrint [01:06:31]line Счет N : (3)136639 [01:06:31]line ИНН: 02508201610067 [01:06:31]line Контрольно-Кассовый Чек [01:06:31]line ПРОДАЖА [01:06:31]line Товар: 4600721021627 [01:06:31]line Пиво БАД 0,5л ст [01:06:31]line 3.000 * 150.00 [01:06:31]line = 450.00 [01:06:31]line НДС 12% НСП 1% [01:06:31]line > о реализуемом товаре [01:06:32]line Товар: 2000031750019 [01:06:32]line Пакет Партнер Нефть [01:06:32]line 1.000 * 4.00 [01:06:32]line = 4.00 [01:06:32]line НДС 12% НСП 1% [01:06:32]line > о реализуемом товаре [01:06:32]line ИТОГО: 454.00 [01:06:32]line НСП 1% : 4.01 [01:06:32]line НДС 12% : 48.21 [01:06:32]line Наличными: 454.00 [01:06:32]line Безнал.: 0.00 [01:06:32]line Место: АЗС № 125 "Партнер Нефть" [01:06:32]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [01:06:32]line СНО: Общий режим [01:06:32]line Чек 13 29.07.2024 01:06 [01:06:32]line Смена: 430 ФФД: 1.0 [01:06:32]line ЗНМ: 0300000049 [01:06:32]line РНМ: 0000000000092638 [01:06:32]line Версия ККМ: 001 [01:06:32]line ФМ: 0000000000874949 [01:06:32]line ФД: 69309 [01:06:32]line ФПД: 123797092365973 [01:06:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T010642&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69309&fm=123797092365973&tin=02508201610067®Number=0000000000092638&sum=45400 [01:06:32]line 0 [01:06:32]OFD Sender: Processing packet 69309 [packets to send 19, broken 18] [01:06:32]ProducePacketName [01:06:32]name=ofd_packets/00069309 [01:06:32]OFD Sender: To server: pG, [01:06:32]CommunicateWithHost lk.salyk.kg:30040 [01:06:32]ConnectInit lk.salyk.kg [01:06:32]written 0, free lines is 4095 [01:06:32]Connected sock=10 [01:06:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 8C 01 00 00 73 60 84 01 61 96 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 12 00 00 00 00 07 04 06 00 58 B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 22 EB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BD 0E 01 00 35 04 06 00 70 97 C1 B6 F6 95 C5 81 33 78 F3 74 F5 B7 [01:06:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 E2 E8 47 00 E8 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BD 0E 01 00 F4 03 04 00 90 91 A6 66 B6 04 01 00 00 BF BA A2 6F 91 D6 AC 36 [01:06:32]CommunicateWithHost err = 0 [01:06:32]CheckOFDResponse [01:06:32]1017 (14) - 77093643461234 [01:06:32]1041 (16) - 0000000000874949 [01:06:32]1040 (4) - 69309 [01:06:32]1012 (4) - 28.07.2024 18:44 [01:06:32]1206 (1) - 0 [01:06:32]OFD Sender: Remove packet 69309 [01:06:32]ProducePacketName [01:06:32]name=ofd_packets/00069309 [01:06:32]NVStorageDeleteData [01:06:32]Write to MH i2c: 01 00 00 C4 68 2C [01:06:32]Write i2c OK [01:06:32]MH_I2C_Read... [01:06:32]Read from MH i2c: 01 [01:06:32]MH_I2C_Read... [01:06:32]Read from MH i2c: 01 07 00 [01:06:32]MH_I2C_Read... [01:06:32]Read from MH i2c: 01 07 00 C4 68 00 00 00 00 00 DC 0C 1B [01:06:32]RasterBufferAndPrint [01:06:32]line [01:06:32]line [01:06:32]line [01:06:32]line [01:06:32]line [01:06:32]written 0, free lines is 3301 [01:06:32]MH_Cut [01:06:32]Write to MH i2c: D1 01 00 CB 68 01 05 [01:06:32]Write i2c OK [01:06:32]MH_I2C_Read... [01:06:32]Read from MH i2c: D1 [01:06:32]MH_I2C_Read... [01:06:32]Read from MH i2c: D1 01 00 [01:06:32]MH_I2C_Read... [01:06:32]Read from MH i2c: D1 01 00 CB 68 00 04 [01:06:32]Write to MH i2c: 01 00 00 CC 68 34 [01:06:32]Write i2c OK [01:06:32]MH_I2C_Read... [01:06:32]OFD Sender: No OFD packet to send [01:06:33]*** Cut start [01:06:33]*** Partial cut [01:06:33]*** CUTSNS_PIN = 1 [01:06:33]*** CUTSNS_PIN = 0 [01:06:33]*** Brake cut motor [01:06:33]Read from MH i2c: 01 [01:06:33]MH_I2C_Read... [01:06:33]*** Stop cut motor [01:06:33]*** Cut end [01:06:33]Read from MH i2c: 01 07 00 [01:06:33]MH_I2C_Read... [01:06:33]Read from MH i2c: 01 07 00 CC 68 00 00 00 00 00 FF 0F 49 [01:06:33]process_action close_receipt done [01:06:33]requested_data is exist [01:06:33]produce_requested_data [01:06:33]requested_item fm.sn is exist - process it [01:06:33]wFMCommunicate request_size=4 [01:06:33]MH_SAM_APDU [01:06:33]CAPDU: 80 11 00 00 [01:06:33]Write to MH i2c: E2 08 00 CD 68 80 11 00 00 00 00 00 00 AF [01:06:33]Write i2c OK [01:06:33]MH_I2C_Read... [01:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:33]Read from MH i2c: E2 [01:06:33]MH_I2C_Read... [01:06:33]Read from MH i2c: E2 17 00 [01:06:33]MH_I2C_Read... [01:06:33]Read from MH i2c: E2 17 00 CD 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 0B [01:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:06:33]wFMCommunicate OK [01:06:33]requested_item fd.num is exist - process it [01:06:33]SAM_PROTO_GetFieldsCounters [01:06:33]wFMCommunicate request_size=4 [01:06:33]MH_SAM_APDU [01:06:33]CAPDU: 80 13 00 00 [01:06:33]Write to MH i2c: E2 08 00 CE 68 80 13 00 00 00 00 00 00 B2 [01:06:33]Write i2c OK [01:06:33]MH_I2C_Read... [01:06:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:06:34]Read from MH i2c: E2 [01:06:34]MH_I2C_Read... [01:06:34]Read from MH i2c: E2 62 00 [01:06:34]MH_I2C_Read... [01:06:34]Read from MH i2c: E2 62 00 CE 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 BD 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [01:06:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 BD 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:06:34]wFMCommunicate OK [01:06:34]SAM_PROTO_GetFieldsCounters done [01:06:34]requested_item shift.num is exist - process it [01:06:34]requested_item shift.opened is exist - process it [01:06:34]req_shift_opened [01:06:34]FM_GetShiftState [01:06:34]SAM_PROTO_GetShiftState [01:06:34]wFMCommunicate request_size=4 [01:06:34]MH_SAM_APDU [01:06:34]CAPDU: 80 13 01 00 [01:06:34]Write to MH i2c: E2 08 00 CF 68 80 13 01 00 00 00 00 00 B4 [01:06:34]Write i2c OK [01:06:34]MH_I2C_Read... [01:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:34]Read from MH i2c: E2 [01:06:34]MH_I2C_Read... [01:06:34]Read from MH i2c: E2 0E 00 [01:06:34]MH_I2C_Read... [01:06:34]Read from MH i2c: E2 0E 00 CF 68 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 6B [01:06:34]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:06:34]wFMCommunicate OK [01:06:34]SAM_PROTO_GetShiftState done [01:06:34]FM_GetShiftState done [01:06:34]req_shift_opened done [01:06:34]requested_item shift.open_date is exist - process it [01:06:34]req_shift_open_date [01:06:34]req_shift_open_date done [01:06:34]produce_requested_data done [01:06:34]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69309,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [01:06:34]process_action_free close_receipt [01:06:34]json_value_free [01:06:34]json_value_free done [01:06:34]process_json_proto returns [01:06:34]Send response to host [01:06:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69309,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [01:06:34]free response buf [01:06:34]execute_script done [01:06:34]execute_script returns [01:06:34]free content buf [01:06:34]Sock 7.Close socket [01:06:34]Sock 7.Thread stoped [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:51]accept exits with 9 [01:07:51]New connection [01:07:51]New thread 3066785124 created [01:07:51]Thread 3066641764 joined [01:07:51]Waiting for new connection... [01:07:51] Sock 9.Parse request [01:07:51]Sock 9.Check first char [01:07:51]Sock 9.First char is OK [01:07:51]request: POST /json_proto HTTP/1.0 [01:07:51]Method: POST [01:07:51]URL: /json_proto [01:07:51]Method is POST - this is cgi request [01:07:51]url: /json_proto [01:07:51]query_string will be loaded in cgi processing [01:07:51]execute_cgi json_proto POST (null) [01:07:51]execute_cgi path=json_proto method=POST [01:07:51]POST find Content-Length [01:07:51]Host: 172.17.49.132:8080 [01:07:51]Content-Length: 1513 [01:07:51]Content-Type: application/json [01:07:51] [01:07:51]POST finish read [01:07:51]Found Content-Length = 1513 [01:07:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136640", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \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": "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": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 394.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:07:51]execute_script... [01:07:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136640", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \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": "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": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 394.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:07:51]POST & json_proto [01:07:51]process_json_proto [01:07:51]json parsed OK: [01:07:51]protocol is kg_v1.0 [01:07:51]action value=close_receipt [01:07:51]process_action close_receipt [01:07:51]cmd_close_receipt [01:07:51]MH_GetDate [01:07:51]Write to MH i2c: F0 00 00 D0 68 27 [01:07:51]Write i2c OK [01:07:51]MH_I2C_Read... [01:07:51]Read from MH i2c: F0 [01:07:51]MH_I2C_Read... [01:07:51]Read from MH i2c: F0 09 00 [01:07:51]MH_I2C_Read... [01:07:51]Read from MH i2c: F0 09 00 D0 68 00 73 EB A6 66 E7 4B C0 64 F0 [01:07:51]GetLastDocTimeStamp 1722215202 [01:07:51]current date 1722215283 [01:07:51]FM_GetShiftState [01:07:51]SAM_PROTO_GetShiftState [01:07:51]wFMCommunicate request_size=4 [01:07:51]MH_SAM_APDU [01:07:51]CAPDU: 80 13 01 00 [01:07:51]Write to MH i2c: E2 08 00 D1 68 80 13 01 00 00 00 00 00 B6 [01:07:51]Write i2c OK [01:07:51]MH_I2C_Read... [01:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:51]Read from MH i2c: E2 [01:07:51]MH_I2C_Read... [01:07:51]Read from MH i2c: E2 0E 00 [01:07:51]MH_I2C_Read... [01:07:51]Read from MH i2c: E2 0E 00 D1 68 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 6D [01:07:51]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:07:51]wFMCommunicate OK [01:07:51]SAM_PROTO_GetShiftState done [01:07:51]FM_GetShiftState done [01:07:51]opened in 1722213563 [01:07:51]opened+sec_in_day 1722299963 [01:07:51]quantity*price = 18000 [01:07:51]sum+1 = 18001 [01:07:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000482740 Напиток Nitro Fr газ апельсин ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 394.00 НСП 1% : 3.48 НДС 12% : 41.83 Наличными: 394.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 14 29.07.2024 01:08 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69310 ФПД: 225449813108447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T010803&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69310&fm=225449813108447&tin=02508201610067®Number=0000000000092638&sum=39400 0 [01:07:52]StoreToDocumentArchive [01:07:52]shift 430 fd 69310 [01:07:52]save to /storage/0430/doc_00069310 [01:07:52]save last doc name /storage/0430/doc_00069310 to /storage/kkm_last_doc_name [01:07:52]save OK [01:07:52]Clear old archive folders... [01:07:52]ProcessDocumentItem done err = 0, tmpTLVsize=637 [01:07:52]tlvbuf is 00C60F50 [01:07:52]SAM_PROTO_ClearQueue [01:07:52]wFMCommunicate request_size=4 [01:07:52]MH_SAM_APDU [01:07:52]CAPDU: 80 09 00 00 [01:07:52]Write to MH i2c: E2 08 00 DE 68 80 09 00 00 00 00 00 00 B8 [01:07:52]Write i2c OK [01:07:52]MH_I2C_Read... [01:07:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:07:52]Read from MH i2c: E2 [01:07:52]MH_I2C_Read... [01:07:52]Read from MH i2c: E2 03 00 [01:07:52]MH_I2C_Read... [01:07:52]Read from MH i2c: E2 03 00 DE 68 00 90 00 BA [01:07:52]RAPDU: 90 00 [01:07:52]wFMCommunicate OK [01:07:52]SAM_PROTO_ClearQueue done [01:07:52]KKMCreateOFDPacket [01:07:52]OFDProtocolAddRootSTLVToBuf [01:07:52]FM_MakeSignedData [01:07:52]FM_MakeSignedData [01:07:52]SAM_PROTO_SignData [01:07:52]wFMCommunicate request_size=4 [01:07:52]MH_SAM_APDU [01:07:52]CAPDU: 80 0D 01 02 [01:07:52]Write to MH i2c: E2 08 00 DF 68 80 0D 01 02 00 00 00 00 C0 [01:07:52]Write i2c OK [01:07:52]MH_I2C_Read... [01:07:52]OFD Sender: No OFD packet to send [01:07:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:07:53]Read from MH i2c: E2 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: E2 03 00 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: E2 03 00 DF 68 00 90 00 BB [01:07:53]RAPDU: 90 00 [01:07:53]wFMCommunicate OK [01:07:53]wFMCommunicate request_size=255 [01:07:53]MH_SAM_APDU [01:07:53]CAPDU: 80 0D 02 02 FA 03 00 7D 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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:07:53]Write to MH i2c: E2 02 01 E0 68 80 0D 02 02 FA 00 03 00 7D 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 00 00 3E [01:07:53]Write i2c OK [01:07:53]MH_I2C_Read... [01:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:53]Read from MH i2c: E2 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: E2 03 00 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: E2 03 00 E0 68 00 90 00 BC [01:07:53]RAPDU: 90 00 [01:07:53]wFMCommunicate OK [01:07:53]wFMCommunicate request_size=255 [01:07:53]MH_SAM_APDU [01:07:53]CAPDU: 80 0D 02 02 FA 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 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [01:07:53]Write to MH i2c: E2 02 01 E1 68 80 0D 02 02 FA 00 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 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 76 [01:07:53]Write i2c OK [01:07:53]MH_I2C_Read... [01:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:53]Read from MH i2c: E2 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: E2 03 00 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: E2 03 00 E1 68 00 90 00 BD [01:07:53]RAPDU: 90 00 [01:07:53]wFMCommunicate OK [01:07:53]wFMCommunicate request_size=146 [01:07:53]MH_SAM_APDU [01:07:53]CAPDU: 80 0D 02 02 8D 03 06 00 5C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 10 00 00 00 00 07 04 06 00 E8 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 0E 00 00 00 F4 03 04 00 73 EB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BE 0E 01 00 35 04 06 00 CD 0B A0 06 66 DF [01:07:53]Write to MH i2c: E2 95 00 E2 68 80 0D 02 02 8D 00 03 06 00 5C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 10 00 00 00 00 07 04 06 00 E8 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 0E 00 00 00 F4 03 04 00 73 EB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BE 0E 01 00 35 04 06 00 CD 0B A0 06 66 DF 00 00 1C [01:07:53]Write i2c OK [01:07:53]MH_I2C_Read... [01:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:53]Read from MH i2c: E2 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: E2 03 00 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: E2 03 00 E2 68 00 90 00 BE [01:07:53]RAPDU: 90 00 [01:07:53]wFMCommunicate OK [01:07:53]wFMCommunicate request_size=4 [01:07:53]MH_SAM_APDU [01:07:53]CAPDU: 80 0D 03 02 [01:07:53]Write to MH i2c: E2 08 00 E3 68 80 0D 03 02 00 00 00 00 C6 [01:07:53]Write i2c OK [01:07:53]MH_I2C_Read... [01:07:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:07:53]Read from MH i2c: E2 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: E2 0B 00 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: E2 0B 00 E3 68 00 A5 3C E4 19 10 5D 63 03 90 00 78 [01:07:53]RAPDU: A5 3C E4 19 10 5D 63 03 90 00 [01:07:53]wFMCommunicate OK [01:07:53]SAM_PROTO_SignData done [01:07:53]FM_MakeSignedData done [01:07:53]CreateOFDProtocolMessage [01:07:53]wFMCommunicate request_size=4 [01:07:53]MH_SAM_APDU [01:07:53]CAPDU: 80 11 00 00 [01:07:53]Write to MH i2c: E2 08 00 E4 68 80 11 00 00 00 00 00 00 C6 [01:07:53]Write i2c OK [01:07:53]MH_I2C_Read... [01:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:53]Read from MH i2c: E2 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: E2 17 00 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: E2 17 00 E4 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 22 [01:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:07:53]wFMCommunicate OK [01:07:53]CreateOFDProtocolMessage done [01:07:53]OFDSenderStorePacket 69310 [01:07:53]StoreOFDPacket docnum=69310 [01:07:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 91 02 00 00 94 90 89 02 1F 52 5A 03 01 00 03 00 7D 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 10 00 00 00 00 07 04 06 00 E8 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 0E 00 00 00 F4 03 04 00 73 EB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BE 0E 01 00 35 04 06 00 CD 0B A0 06 66 DF A5 3C E4 19 10 5D 63 03 [01:07:53]CheckFolder [01:07:53]dirname=/storage/ofd_packets [01:07:53]CheckFolder done [01:07:53]ProducePacketName [01:07:53]name=ofd_packets/00069310 [01:07:53]NVStorageSaveData ofd_packets/00069310 [01:07:53]File name is /storage/ofd_packets/00069310 [01:07:53]Write 687 bytes [01:07:53]NVStorageSaveData done [01:07:53]OFDSenderStorePacket done [01:07:53]KKMCreateOFDPacket done [01:07:53]NVStorageSaveData kkm_last_timestamp [01:07:53]File name is /storage/kkm_last_timestamp [01:07:53]Write 4 bytes [01:07:53]NVStorageSaveData done [01:07:53]ExternCall_PrintAddStr [01:07:53]wPrintStart [01:07:53]Write to MH i2c: 01 00 00 E5 68 4D [01:07:53]Write i2c OK [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: 01 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: 01 07 00 [01:07:53]MH_I2C_Read... [01:07:53]Read from MH i2c: 01 07 00 E5 68 00 00 00 00 00 FF 0F 62 [01:07:53]RasterBufferAndPrint [01:07:53]line Счет N : (3)136640 [01:07:53]line ИНН: 02508201610067 [01:07:53]line Контрольно-Кассовый Чек [01:07:53]line ПРОДАЖА [01:07:53]line Товар: 5449000176448 [01:07:53]line Сок Piko Pulpy апельсин ПЭТ 1л [01:07:53]line 1.000 * 180.00 [01:07:53]line = 180.00 [01:07:53]line НДС 12% НСП 1% [01:07:53]line > о реализуемом товаре [01:07:53]line Товар: 4700000482740 [01:07:53]line Напиток Nitro Fr газ апельсин ж/б 0,45л [01:07:53]line 1.000 * 95.00 [01:07:53]line = 95.00 [01:07:53]line НДС 12% НСП 1% [01:07:53]line > о реализуемом товаре [01:07:53]line Товар: 2000036210013 [01:07:54]line Кофе Капучино (GABB TRADE) [01:07:54]line 1.000 * 115.00 [01:07:54]line = 115.00 [01:07:54]line НДС 12% НСП 1% [01:07:54]line > о реализуемом товаре [01:07:54]line Товар: 2000031750019 [01:07:54]line Пакет Партнер Нефть [01:07:54]line 1.000 * 4.00 [01:07:54]line = 4.00 [01:07:54]line НДС 12% НСП 1% [01:07:54]line > о реализуемом товаре [01:07:54]line ИТОГО: 394.00 [01:07:54]line НСП 1% : 3.48 [01:07:54]line НДС 12% : 41.83 [01:07:54]line Наличными: 394.00 [01:07:54]line Безнал.: 0.00 [01:07:54]line Место: АЗС № 125 "Партнер Нефть" [01:07:54]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [01:07:54]line СНО: Общий режим [01:07:54]line Чек 14 29.07.2024 01:08 [01:07:54]line Смена: 430 ФФД: 1.0 [01:07:54]line ЗНМ: 0300000049 [01:07:54]line РНМ: 0000000000092638 [01:07:54]line Версия ККМ: 001 [01:07:54]line ФМ: 0000000000874949 [01:07:54]line ФД: 69310 [01:07:54]line ФПД: 225449813108447 [01:07:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T010803&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69310&fm=225449813108447&tin=02508201610067®Number=0000000000092638&sum=39400 [01:07:54]line 0 [01:07:54]OFD Sender: Processing packet 69310 [packets to send 19, broken 18] [01:07:54]ProducePacketName [01:07:54]name=ofd_packets/00069310 [01:07:54]OFD Sender: To server: pG, [01:07:54]CommunicateWithHost lk.salyk.kg:30040 [01:07:54]ConnectInit lk.salyk.kg [01:07:54]written 0, free lines is 4095 [01:07:54]Connected sock=10 [01:07: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 39 34 39 91 02 00 00 94 90 89 02 1F 52 5A 03 01 00 03 00 7D 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 10 00 00 00 00 07 04 06 00 E8 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 0E 00 00 00 F4 03 04 00 73 EB A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BE 0E 01 00 35 04 06 00 CD 0B A0 06 66 DF A5 3C E4 19 10 5D 63 03 [01:07:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 59 14 47 00 A4 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BE 0E 01 00 F4 03 04 00 E2 91 A6 66 B6 04 01 00 00 74 77 5E 2B 5E D6 BA A3 [01:07:54]CommunicateWithHost err = 0 [01:07:54]CheckOFDResponse [01:07:54]1017 (14) - 77093643461234 [01:07:54]1041 (16) - 0000000000874949 [01:07:54]1040 (4) - 69310 [01:07:54]1012 (4) - 28.07.2024 18:45 [01:07:54]1206 (1) - 0 [01:07:54]OFD Sender: Remove packet 69310 [01:07:54]ProducePacketName [01:07:54]name=ofd_packets/00069310 [01:07:54]NVStorageDeleteData [01:07:54]Write to MH i2c: 01 00 00 21 69 8A [01:07:54]Write i2c OK [01:07:54]MH_I2C_Read... [01:07:54]Read from MH i2c: 01 [01:07:54]MH_I2C_Read... [01:07:54]Read from MH i2c: 01 07 00 [01:07:54]MH_I2C_Read... [01:07:54]Read from MH i2c: 01 07 00 21 69 00 00 00 00 00 1E 0C BB [01:07:54]RasterBufferAndPrint [01:07:54]line [01:07:54]line [01:07:54]line [01:07:54]line [01:07:54]line [01:07:54]written 0, free lines is 3112 [01:07:54]MH_Cut [01:07:54]Write to MH i2c: D1 01 00 28 69 01 63 [01:07:54]Write i2c OK [01:07:54]MH_I2C_Read... [01:07:54]Read from MH i2c: D1 [01:07:54]MH_I2C_Read... [01:07:54]Read from MH i2c: D1 01 00 [01:07:54]MH_I2C_Read... [01:07:54]Read from MH i2c: D1 01 00 28 69 00 62 [01:07:54]Write to MH i2c: 01 00 00 29 69 92 [01:07:54]Write i2c OK [01:07:54]MH_I2C_Read... [01:07:55]OFD Sender: No OFD packet to send [01:07:55]*** Cut start [01:07:55]*** Partial cut [01:07:55]*** CUTSNS_PIN = 1 [01:07:55]*** CUTSNS_PIN = 0 [01:07:55]*** Brake cut motor [01:07:56]Read from MH i2c: 01 [01:07:56]MH_I2C_Read... [01:07:56]*** Stop cut motor [01:07:56]*** Cut end [01:07:56]Read from MH i2c: 01 07 00 [01:07:56]MH_I2C_Read... [01:07:56]Read from MH i2c: 01 07 00 29 69 00 00 00 00 00 FF 0F A7 [01:07:56]process_action close_receipt done [01:07:56]requested_data is exist [01:07:56]produce_requested_data [01:07:56]requested_item fm.sn is exist - process it [01:07:56]wFMCommunicate request_size=4 [01:07:56]MH_SAM_APDU [01:07:56]CAPDU: 80 11 00 00 [01:07:56]Write to MH i2c: E2 08 00 2A 69 80 11 00 00 00 00 00 00 0D [01:07:56]Write i2c OK [01:07:56]MH_I2C_Read... [01:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:56]Read from MH i2c: E2 [01:07:56]MH_I2C_Read... [01:07:56]Read from MH i2c: E2 17 00 [01:07:56]MH_I2C_Read... [01:07:56]Read from MH i2c: E2 17 00 2A 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 69 [01:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:07:56]wFMCommunicate OK [01:07:56]requested_item fd.num is exist - process it [01:07:56]SAM_PROTO_GetFieldsCounters [01:07:56]wFMCommunicate request_size=4 [01:07:56]MH_SAM_APDU [01:07:56]CAPDU: 80 13 00 00 [01:07:56]Write to MH i2c: E2 08 00 2B 69 80 13 00 00 00 00 00 00 10 [01:07:56]Write i2c OK [01:07:56]MH_I2C_Read... [01:07:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:07:56]Read from MH i2c: E2 [01:07:56]MH_I2C_Read... [01:07:56]Read from MH i2c: E2 62 00 [01:07:56]MH_I2C_Read... [01:07:56]Read from MH i2c: E2 62 00 2B 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 BE 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [01:07: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 BE 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:07:56]wFMCommunicate OK [01:07:56]SAM_PROTO_GetFieldsCounters done [01:07:56]requested_item shift.num is exist - process it [01:07:56]requested_item shift.opened is exist - process it [01:07:56]req_shift_opened [01:07:56]FM_GetShiftState [01:07:56]SAM_PROTO_GetShiftState [01:07:56]wFMCommunicate request_size=4 [01:07:56]MH_SAM_APDU [01:07:56]CAPDU: 80 13 01 00 [01:07:56]Write to MH i2c: E2 08 00 2C 69 80 13 01 00 00 00 00 00 12 [01:07:56]Write i2c OK [01:07:56]MH_I2C_Read... [01:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:56]Read from MH i2c: E2 [01:07:56]MH_I2C_Read... [01:07:56]Read from MH i2c: E2 0E 00 [01:07:56]MH_I2C_Read... [01:07:56]Read from MH i2c: E2 0E 00 2C 69 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 C9 [01:07:56]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:07:56]wFMCommunicate OK [01:07:56]SAM_PROTO_GetShiftState done [01:07:56]FM_GetShiftState done [01:07:56]req_shift_opened done [01:07:56]requested_item shift.open_date is exist - process it [01:07:56]req_shift_open_date [01:07:56]req_shift_open_date done [01:07:56]produce_requested_data done [01:07:56]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69310,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [01:07:56]process_action_free close_receipt [01:07:56]json_value_free [01:07:56]json_value_free done [01:07:56]process_json_proto returns [01:07:56]Send response to host [01:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69310,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [01:07:56]free response buf [01:07:56]execute_script done [01:07:56]execute_script returns [01:07:56]free content buf [01:07:56]Sock 9.Close socket [01:07:56]Sock 9.Thread stoped [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:36]accept exits with 7 [01:16:36]New connection [01:16:36]New thread 3066641764 created [01:16:36]Thread 3066785124 joined [01:16:36]Waiting for new connection... [01:16:36] Sock 7.Parse request [01:16:36]Sock 7.Check first char [01:16:36]Sock 7.First char is OK [01:16:36]request: POST /json_proto HTTP/1.0 [01:16:36]Method: POST [01:16:36]URL: /json_proto [01:16:36]Method is POST - this is cgi request [01:16:36]url: /json_proto [01:16:36]query_string will be loaded in cgi processing [01:16:36]execute_cgi json_proto POST (null) [01:16:36]execute_cgi path=json_proto method=POST [01:16:36]POST find Content-Length [01:16:36]Host: 172.17.49.132:8080 [01:16:36]Content-Length: 880 [01:16:36]Content-Type: application/json [01:16:36] [01:16:36]POST finish read [01:16:36]Found Content-Length = 880 [01:16:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136641", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 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" : 196.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:36]execute_script... [01:16:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136641", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 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" : 196.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:36]POST & json_proto [01:16:36]process_json_proto [01:16:36]json parsed OK: [01:16:36]protocol is kg_v1.0 [01:16:36]action value=close_receipt [01:16:36]process_action close_receipt [01:16:36]cmd_close_receipt [01:16:36]MH_GetDate [01:16:36]Write to MH i2c: F0 00 00 2D 69 85 [01:16:36]Write i2c OK [01:16:36]MH_I2C_Read... [01:16:36]Read from MH i2c: F0 [01:16:36]MH_I2C_Read... [01:16:36]Read from MH i2c: F0 09 00 [01:16:36]MH_I2C_Read... [01:16:36]Read from MH i2c: F0 09 00 2D 69 00 81 ED A6 66 E7 4B C0 64 5E [01:16:36]GetLastDocTimeStamp 1722215283 [01:16:36]current date 1722215809 [01:16:36]FM_GetShiftState [01:16:36]SAM_PROTO_GetShiftState [01:16:36]wFMCommunicate request_size=4 [01:16:36]MH_SAM_APDU [01:16:36]CAPDU: 80 13 01 00 [01:16:36]Write to MH i2c: E2 08 00 2E 69 80 13 01 00 00 00 00 00 14 [01:16:36]Write i2c OK [01:16:36]MH_I2C_Read... [01:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:37]Read from MH i2c: E2 [01:16:37]MH_I2C_Read... [01:16:37]Read from MH i2c: E2 0E 00 [01:16:37]MH_I2C_Read... [01:16:37]Read from MH i2c: E2 0E 00 2E 69 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 CB [01:16:37]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:16:37]wFMCommunicate OK [01:16:37]SAM_PROTO_GetShiftState done [01:16:37]FM_GetShiftState done [01:16:37]opened in 1722213563 [01:16:37]opened+sec_in_day 1722299963 [01:16:37]quantity*price = 11100 [01:16:37]sum+1 = 11101 [01:16:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870227273831 Лимонад Sunbel Мохито 1л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 196.00 НСП 1% : 1.73 НДС 12% : 20.82 Наличными: 196.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 15 29.07.2024 01:16 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69311 ФПД: 13232381334129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011649&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69311&fm=13232381334129&tin=02508201610067®Number=0000000000092638&sum=19600 0 [01:16:38]StoreToDocumentArchive [01:16:38]shift 430 fd 69311 [01:16:38]save to /storage/0430/doc_00069311 [01:16:38]save last doc name /storage/0430/doc_00069311 to /storage/kkm_last_doc_name [01:16:38]save OK [01:16:38]Clear old archive folders... [01:16:38]ProcessDocumentItem done err = 0, tmpTLVsize=376 [01:16:38]tlvbuf is 00C2C3D0 [01:16:38]SAM_PROTO_ClearQueue [01:16:38]wFMCommunicate request_size=4 [01:16:38]MH_SAM_APDU [01:16:38]CAPDU: 80 09 00 00 [01:16:38]Write to MH i2c: E2 08 00 3B 69 80 09 00 00 00 00 00 00 16 [01:16:38]Write i2c OK [01:16:38]MH_I2C_Read... [01:16:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:16:38]Read from MH i2c: E2 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: E2 03 00 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: E2 03 00 3B 69 00 90 00 18 [01:16:38]RAPDU: 90 00 [01:16:38]wFMCommunicate OK [01:16:38]SAM_PROTO_ClearQueue done [01:16:38]KKMCreateOFDPacket [01:16:38]OFDProtocolAddRootSTLVToBuf [01:16:38]FM_MakeSignedData [01:16:38]FM_MakeSignedData [01:16:38]SAM_PROTO_SignData [01:16:38]wFMCommunicate request_size=4 [01:16:38]MH_SAM_APDU [01:16:38]CAPDU: 80 0D 01 02 [01:16:38]Write to MH i2c: E2 08 00 3C 69 80 0D 01 02 00 00 00 00 1E [01:16:38]Write i2c OK [01:16:38]MH_I2C_Read... [01:16:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:16:38]Read from MH i2c: E2 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: E2 03 00 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: E2 03 00 3C 69 00 90 00 19 [01:16:38]RAPDU: 90 00 [01:16:38]wFMCommunicate OK [01:16:38]wFMCommunicate request_size=255 [01:16:38]MH_SAM_APDU [01:16:38]CAPDU: 80 0D 02 02 FA 03 00 78 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 34 38 37 30 32 32 37 32 37 33 38 33 31 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 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 90 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 [01:16:38]Write to MH i2c: E2 02 01 3D 69 80 0D 02 02 FA 00 03 00 78 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 34 38 37 30 32 32 37 32 37 33 38 33 31 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 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 90 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 00 00 32 [01:16:38]Write i2c OK [01:16:38]MH_I2C_Read... [01:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:38]Read from MH i2c: E2 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: E2 03 00 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: E2 03 00 3D 69 00 90 00 1A [01:16:38]RAPDU: 90 00 [01:16:38]wFMCommunicate OK [01:16:38]wFMCommunicate request_size=135 [01:16:38]MH_SAM_APDU [01:16:38]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 90 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 0F 00 00 00 F4 03 04 00 81 ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BF 0E 01 00 35 04 06 00 0C 08 E7 63 92 71 [01:16:38]Write to MH i2c: E2 8A 00 3E 69 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 90 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 0F 00 00 00 F4 03 04 00 81 ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BF 0E 01 00 35 04 06 00 0C 08 E7 63 92 71 00 00 DA [01:16:38]Write i2c OK [01:16:38]MH_I2C_Read... [01:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:38]Read from MH i2c: E2 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: E2 03 00 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: E2 03 00 3E 69 00 90 00 1B [01:16:38]RAPDU: 90 00 [01:16:38]wFMCommunicate OK [01:16:38]wFMCommunicate request_size=4 [01:16:38]MH_SAM_APDU [01:16:38]CAPDU: 80 0D 03 02 [01:16:38]Write to MH i2c: E2 08 00 3F 69 80 0D 03 02 00 00 00 00 23 [01:16:38]Write i2c OK [01:16:38]MH_I2C_Read... [01:16:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:16:38]Read from MH i2c: E2 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: E2 0B 00 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: E2 0B 00 3F 69 00 D6 68 E5 E9 99 59 EF FB 90 00 0C [01:16:38]RAPDU: D6 68 E5 E9 99 59 EF FB 90 00 [01:16:38]wFMCommunicate OK [01:16:38]SAM_PROTO_SignData done [01:16:38]FM_MakeSignedData done [01:16:38]CreateOFDProtocolMessage [01:16:38]wFMCommunicate request_size=4 [01:16:38]MH_SAM_APDU [01:16:38]CAPDU: 80 11 00 00 [01:16:38]Write to MH i2c: E2 08 00 40 69 80 11 00 00 00 00 00 00 23 [01:16:38]Write i2c OK [01:16:38]MH_I2C_Read... [01:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:38]Read from MH i2c: E2 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: E2 17 00 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: E2 17 00 40 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 7F [01:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:16:38]wFMCommunicate OK [01:16:38]CreateOFDProtocolMessage done [01:16:38]OFDSenderStorePacket 69311 [01:16:38]StoreOFDPacket docnum=69311 [01:16:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 8C 01 00 00 97 63 84 01 BA 55 5A 03 01 00 03 00 78 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 34 38 37 30 32 32 37 32 37 33 38 33 31 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 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 90 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 22 08 00 00 00 00 07 04 06 00 90 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 0F 00 00 00 F4 03 04 00 81 ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BF 0E 01 00 35 04 06 00 0C 08 E7 63 92 71 D6 68 E5 E9 99 59 EF FB [01:16:38]CheckFolder [01:16:38]dirname=/storage/ofd_packets [01:16:38]CheckFolder done [01:16:38]ProducePacketName [01:16:38]name=ofd_packets/00069311 [01:16:38]NVStorageSaveData ofd_packets/00069311 [01:16:38]File name is /storage/ofd_packets/00069311 [01:16:38]Write 426 bytes [01:16:38]NVStorageSaveData done [01:16:38]OFDSenderStorePacket done [01:16:38]KKMCreateOFDPacket done [01:16:38]NVStorageSaveData kkm_last_timestamp [01:16:38]File name is /storage/kkm_last_timestamp [01:16:38]Write 4 bytes [01:16:38]NVStorageSaveData done [01:16:38]ExternCall_PrintAddStr [01:16:38]wPrintStart [01:16:38]Write to MH i2c: 01 00 00 41 69 AA [01:16:38]Write i2c OK [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: 01 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: 01 07 00 [01:16:38]MH_I2C_Read... [01:16:38]Read from MH i2c: 01 07 00 41 69 00 00 00 00 00 FF 0F BF [01:16:38]RasterBufferAndPrint [01:16:38]line Счет N : (3)136641 [01:16:38]line ИНН: 02508201610067 [01:16:38]line Контрольно-Кассовый Чек [01:16:38]line ПРОДАЖА [01:16:38]line Товар: 4870001570071 [01:16:38]line Напиток Pepsi 1л [01:16:38]line 1.000 * 111.00 [01:16:38]line = 111.00 [01:16:38]line НДС 12% НСП 1% [01:16:39]line > о реализуемом товаре [01:16:39]line Товар: 4870227273831 [01:16:39]line Лимонад Sunbel Мохито 1л [01:16:39]line 1.000 * 85.00 [01:16:39]line = 85.00 [01:16:39]line НДС 12% НСП 1% [01:16:39]line > о реализуемом товаре [01:16:39]line ИТОГО: 196.00 [01:16:39]line НСП 1% : 1.73 [01:16:39]line НДС 12% : 20.82 [01:16:39]line Наличными: 196.00 [01:16:39]line Безнал.: 0.00 [01:16:39]line Место: АЗС № 125 "Партнер Нефть" [01:16:39]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [01:16:39]line СНО: Общий режим [01:16:39]line Чек 15 29.07.2024 01:16 [01:16:39]line Смена: 430 ФФД: 1.0 [01:16:39]line ЗНМ: 0300000049 [01:16:39]line РНМ: 0000000000092638 [01:16:39]line Версия ККМ: 001 [01:16:39]line ФМ: 0000000000874949 [01:16:39]line ФД: 69311 [01:16:39]line ФПД: 13232381334129 [01:16:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011649&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69311&fm=13232381334129&tin=02508201610067®Number=0000000000092638&sum=19600 [01:16:39]line 0 [01:16:39]OFD Sender: Processing packet 69311 [packets to send 19, broken 18] [01:16:39]ProducePacketName [01:16:39]name=ofd_packets/00069311 [01:16:39]OFD Sender: To server: pG, [01:16:39]CommunicateWithHost lk.salyk.kg:30040 [01:16:39]ConnectInit lk.salyk.kg [01:16:39]written 0, free lines is 4095 [01:16:39]Connected sock=10 [01:16: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 39 34 39 8C 01 00 00 97 63 84 01 BA 55 5A 03 01 00 03 00 78 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 34 38 37 30 32 32 37 32 37 33 38 33 31 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 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 90 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 22 08 00 00 00 00 07 04 06 00 90 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 0F 00 00 00 F4 03 04 00 81 ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 BF 0E 01 00 35 04 06 00 0C 08 E7 63 92 71 D6 68 E5 E9 99 59 EF FB [01:16:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CB B0 47 00 DC 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 39 34 39 10 04 04 00 BF 0E 01 00 F4 03 04 00 EF 93 A6 66 B6 04 01 00 00 2E 47 64 D0 98 8F 7D EB [01:16:39]CommunicateWithHost err = 0 [01:16:39]CheckOFDResponse [01:16:39]1017 (14) - 77093643461234 [01:16:39]1041 (16) - 0000000000874949 [01:16:39]1040 (4) - 69311 [01:16:39]1012 (4) - 28.07.2024 18:54 [01:16:39]1206 (1) - 0 [01:16:39]OFD Sender: Remove packet 69311 [01:16:39]ProducePacketName [01:16:39]name=ofd_packets/00069311 [01:16:39]NVStorageDeleteData [01:16:39]Write to MH i2c: 01 00 00 6F 69 D8 [01:16:39]Write i2c OK [01:16:39]MH_I2C_Read... [01:16:39]Read from MH i2c: 01 [01:16:39]MH_I2C_Read... [01:16:39]Read from MH i2c: 01 07 00 [01:16:39]MH_I2C_Read... [01:16:39]Read from MH i2c: 01 07 00 6F 69 00 00 00 00 00 DE 0C C9 [01:16:39]RasterBufferAndPrint [01:16:39]line [01:16:39]line [01:16:39]line [01:16:39]line [01:16:39]line [01:16:39]written 0, free lines is 3303 [01:16:39]MH_Cut [01:16:39]Write to MH i2c: D1 01 00 76 69 01 B1 [01:16:39]Write i2c OK [01:16:39]MH_I2C_Read... [01:16:39]Read from MH i2c: D1 [01:16:39]MH_I2C_Read... [01:16:39]Read from MH i2c: D1 01 00 [01:16:39]MH_I2C_Read... [01:16:39]Read from MH i2c: D1 01 00 76 69 00 B0 [01:16:39]Write to MH i2c: 01 00 00 77 69 E0 [01:16:39]Write i2c OK [01:16:39]MH_I2C_Read... [01:16:39]OFD Sender: No OFD packet to send [01:16:40]*** Cut start [01:16:40]*** Partial cut [01:16:40]*** CUTSNS_PIN = 1 [01:16:40]*** CUTSNS_PIN = 0 [01:16:40]*** Brake cut motor [01:16:40]Read from MH i2c: 01 [01:16:40]MH_I2C_Read... [01:16:40]*** Stop cut motor [01:16:40]*** Cut end [01:16:40]Read from MH i2c: 01 07 00 [01:16:40]MH_I2C_Read... [01:16:40]Read from MH i2c: 01 07 00 77 69 00 00 00 00 00 FF 0F F5 [01:16:40]process_action close_receipt done [01:16:40]requested_data is exist [01:16:40]produce_requested_data [01:16:40]requested_item fm.sn is exist - process it [01:16:40]wFMCommunicate request_size=4 [01:16:40]MH_SAM_APDU [01:16:40]CAPDU: 80 11 00 00 [01:16:40]Write to MH i2c: E2 08 00 78 69 80 11 00 00 00 00 00 00 5B [01:16:40]Write i2c OK [01:16:40]MH_I2C_Read... [01:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:40]Read from MH i2c: E2 [01:16:40]MH_I2C_Read... [01:16:40]Read from MH i2c: E2 17 00 [01:16:40]MH_I2C_Read... [01:16:40]Read from MH i2c: E2 17 00 78 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B7 [01:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:16:40]wFMCommunicate OK [01:16:40]requested_item fd.num is exist - process it [01:16:40]SAM_PROTO_GetFieldsCounters [01:16:40]wFMCommunicate request_size=4 [01:16:40]MH_SAM_APDU [01:16:40]CAPDU: 80 13 00 00 [01:16:40]Write to MH i2c: E2 08 00 79 69 80 13 00 00 00 00 00 00 5E [01:16:40]Write i2c OK [01:16:40]MH_I2C_Read... [01:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:16:41]Read from MH i2c: E2 [01:16:41]MH_I2C_Read... [01:16:41]Read from MH i2c: E2 62 00 [01:16:41]MH_I2C_Read... [01:16:41]Read from MH i2c: E2 62 00 79 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 BF 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [01:16: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 BF 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:16:41]wFMCommunicate OK [01:16:41]SAM_PROTO_GetFieldsCounters done [01:16:41]requested_item shift.num is exist - process it [01:16:41]requested_item shift.opened is exist - process it [01:16:41]req_shift_opened [01:16:41]FM_GetShiftState [01:16:41]SAM_PROTO_GetShiftState [01:16:41]wFMCommunicate request_size=4 [01:16:41]MH_SAM_APDU [01:16:41]CAPDU: 80 13 01 00 [01:16:41]Write to MH i2c: E2 08 00 7A 69 80 13 01 00 00 00 00 00 60 [01:16:41]Write i2c OK [01:16:41]MH_I2C_Read... [01:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:41]Read from MH i2c: E2 [01:16:41]MH_I2C_Read... [01:16:41]Read from MH i2c: E2 0E 00 [01:16:41]MH_I2C_Read... [01:16:41]Read from MH i2c: E2 0E 00 7A 69 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 17 [01:16:41]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:16:41]wFMCommunicate OK [01:16:41]SAM_PROTO_GetShiftState done [01:16:41]FM_GetShiftState done [01:16:41]req_shift_opened done [01:16:41]requested_item shift.open_date is exist - process it [01:16:41]req_shift_open_date [01:16:41]req_shift_open_date done [01:16:41]produce_requested_data done [01:16:41]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69311,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [01:16:41]process_action_free close_receipt [01:16:41]json_value_free [01:16:41]json_value_free done [01:16:41]process_json_proto returns [01:16:41]Send response to host [01:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69311,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [01:16:41]free response buf [01:16:41]execute_script done [01:16:41]execute_script returns [01:16:41]free content buf [01:16:41]Sock 7.Close socket [01:16:41]Sock 7.Thread stoped [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:15]accept exits with 9 [01:17:15]New connection [01:17:15]New thread 3066785124 created [01:17:15]Thread 3066641764 joined [01:17:15]Waiting for new connection... [01:17:15] Sock 9.Parse request [01:17:15]Sock 9.Check first char [01:17:15]Sock 9.First char is OK [01:17:15]request: POST /json_proto HTTP/1.0 [01:17:15]Method: POST [01:17:15]URL: /json_proto [01:17:15]Method is POST - this is cgi request [01:17:15]url: /json_proto [01:17:15]query_string will be loaded in cgi processing [01:17:15]execute_cgi json_proto POST (null) [01:17:15]execute_cgi path=json_proto method=POST [01:17:15]POST find Content-Length [01:17:15]Host: 172.17.49.132:8080 [01:17:15]Content-Length: 822 [01:17:15]Content-Type: application/json [01:17:15] [01:17:15]POST finish read [01:17:15]Found Content-Length = 822 [01:17:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136642", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:17:15]execute_script... [01:17: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)136642", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:17:15]POST & json_proto [01:17:15]process_json_proto [01:17:15]json parsed OK: [01:17:15]protocol is kg_v1.0 [01:17:15]action value=close_receipt [01:17:15]process_action close_receipt [01:17:15]cmd_close_receipt [01:17:15]MH_GetDate [01:17:15]Write to MH i2c: F0 00 00 7B 69 D3 [01:17:15]Write i2c OK [01:17:15]MH_I2C_Read... [01:17:15]Read from MH i2c: F0 [01:17:15]MH_I2C_Read... [01:17:15]Read from MH i2c: F0 09 00 [01:17:15]MH_I2C_Read... [01:17:15]Read from MH i2c: F0 09 00 7B 69 00 A7 ED A6 66 E7 4B C0 64 D2 [01:17:15]GetLastDocTimeStamp 1722215809 [01:17:15]current date 1722215847 [01:17:15]FM_GetShiftState [01:17:15]SAM_PROTO_GetShiftState [01:17:15]wFMCommunicate request_size=4 [01:17:15]MH_SAM_APDU [01:17:15]CAPDU: 80 13 01 00 [01:17:15]Write to MH i2c: E2 08 00 7C 69 80 13 01 00 00 00 00 00 62 [01:17:15]Write i2c OK [01:17:15]MH_I2C_Read... [01:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:15]Read from MH i2c: E2 [01:17:15]MH_I2C_Read... [01:17:15]Read from MH i2c: E2 0E 00 [01:17:15]MH_I2C_Read... [01:17:15]Read from MH i2c: E2 0E 00 7C 69 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 19 [01:17:15]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:17:15]wFMCommunicate OK [01:17:15]SAM_PROTO_GetShiftState done [01:17:15]FM_GetShiftState done [01:17:15]opened in 1722213563 [01:17:15]opened+sec_in_day 1722299963 [01:17:15]quantity*price = 14000 [01:17:15]sum+1 = 14001 [01:17:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 16 29.07.2024 01:17 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69312 ФПД: 109973735676206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011728&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69312&fm=109973735676206&tin=02508201610067®Number=0000000000092638&sum=14000 0 [01:17:17]StoreToDocumentArchive [01:17:17]shift 430 fd 69312 [01:17:17]save to /storage/0430/doc_00069312 [01:17:17]save last doc name /storage/0430/doc_00069312 to /storage/kkm_last_doc_name [01:17:17]save OK [01:17:17]Clear old archive folders... [01:17:17]ProcessDocumentItem done err = 0, tmpTLVsize=273 [01:17:17]tlvbuf is 00B63120 [01:17:17]SAM_PROTO_ClearQueue [01:17:17]wFMCommunicate request_size=4 [01:17:17]MH_SAM_APDU [01:17:17]CAPDU: 80 09 00 00 [01:17:17]Write to MH i2c: E2 08 00 89 69 80 09 00 00 00 00 00 00 64 [01:17:17]Write i2c OK [01:17:17]MH_I2C_Read... [01:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:17:17]Read from MH i2c: E2 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: E2 03 00 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: E2 03 00 89 69 00 90 00 66 [01:17:17]RAPDU: 90 00 [01:17:17]wFMCommunicate OK [01:17:17]SAM_PROTO_ClearQueue done [01:17:17]KKMCreateOFDPacket [01:17:17]OFDProtocolAddRootSTLVToBuf [01:17:17]FM_MakeSignedData [01:17:17]FM_MakeSignedData [01:17:17]SAM_PROTO_SignData [01:17:17]wFMCommunicate request_size=4 [01:17:17]MH_SAM_APDU [01:17:17]CAPDU: 80 0D 01 02 [01:17:17]Write to MH i2c: E2 08 00 8A 69 80 0D 01 02 00 00 00 00 6C [01:17:17]Write i2c OK [01:17:17]MH_I2C_Read... [01:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:17:17]Read from MH i2c: E2 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: E2 03 00 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: E2 03 00 8A 69 00 90 00 67 [01:17:17]RAPDU: 90 00 [01:17:17]wFMCommunicate OK [01:17:17]wFMCommunicate request_size=255 [01:17:17]MH_SAM_APDU [01:17:17]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A8 ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 [01:17:17]Write to MH i2c: E2 02 01 8B 69 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A8 ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 00 00 C4 [01:17:17]Write i2c OK [01:17:17]MH_I2C_Read... [01:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:17]Read from MH i2c: E2 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: E2 03 00 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: E2 03 00 8B 69 00 90 00 68 [01:17:17]RAPDU: 90 00 [01:17:17]wFMCommunicate OK [01:17:17]wFMCommunicate request_size=32 [01:17:17]MH_SAM_APDU [01:17:17]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 39 10 04 04 00 C0 0E 01 00 35 04 06 00 64 05 41 73 19 2E [01:17:17]Write to MH i2c: E2 23 00 8C 69 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 39 10 04 04 00 C0 0E 01 00 35 04 06 00 64 05 41 73 19 2E 00 00 08 [01:17:17]Write i2c OK [01:17:17]MH_I2C_Read... [01:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:17]Read from MH i2c: E2 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: E2 03 00 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: E2 03 00 8C 69 00 90 00 69 [01:17:17]RAPDU: 90 00 [01:17:17]wFMCommunicate OK [01:17:17]wFMCommunicate request_size=4 [01:17:17]MH_SAM_APDU [01:17:17]CAPDU: 80 0D 03 02 [01:17:17]Write to MH i2c: E2 08 00 8D 69 80 0D 03 02 00 00 00 00 71 [01:17:17]Write i2c OK [01:17:17]MH_I2C_Read... [01:17:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:17:17]Read from MH i2c: E2 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: E2 0B 00 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: E2 0B 00 8D 69 00 72 DF AF 91 2E 86 78 FA 90 00 29 [01:17:17]RAPDU: 72 DF AF 91 2E 86 78 FA 90 00 [01:17:17]wFMCommunicate OK [01:17:17]SAM_PROTO_SignData done [01:17:17]FM_MakeSignedData done [01:17:17]CreateOFDProtocolMessage [01:17:17]wFMCommunicate request_size=4 [01:17:17]MH_SAM_APDU [01:17:17]CAPDU: 80 11 00 00 [01:17:17]Write to MH i2c: E2 08 00 8E 69 80 11 00 00 00 00 00 00 71 [01:17:17]Write i2c OK [01:17:17]MH_I2C_Read... [01:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:17]Read from MH i2c: E2 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: E2 17 00 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: E2 17 00 8E 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 CD [01:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:17:17]wFMCommunicate OK [01:17:17]CreateOFDProtocolMessage done [01:17:17]OFDSenderStorePacket 69312 [01:17:17]StoreOFDPacket docnum=69312 [01:17:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 44 04 1D 01 84 4C 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A8 ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C0 0E 01 00 35 04 06 00 64 05 41 73 19 2E 72 DF AF 91 2E 86 78 FA [01:17:17]CheckFolder [01:17:17]dirname=/storage/ofd_packets [01:17:17]CheckFolder done [01:17:17]ProducePacketName [01:17:17]name=ofd_packets/00069312 [01:17:17]NVStorageSaveData ofd_packets/00069312 [01:17:17]File name is /storage/ofd_packets/00069312 [01:17:17]Write 323 bytes [01:17:17]NVStorageSaveData done [01:17:17]OFDSenderStorePacket done [01:17:17]KKMCreateOFDPacket done [01:17:17]NVStorageSaveData kkm_last_timestamp [01:17:17]File name is /storage/kkm_last_timestamp [01:17:17]Write 4 bytes [01:17:17]NVStorageSaveData done [01:17:17]ExternCall_PrintAddStr [01:17:17]wPrintStart [01:17:17]Write to MH i2c: 01 00 00 8F 69 F8 [01:17:17]Write i2c OK [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: 01 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: 01 07 00 [01:17:17]MH_I2C_Read... [01:17:17]Read from MH i2c: 01 07 00 8F 69 00 00 00 00 00 FF 0F 0D [01:17:17]RasterBufferAndPrint [01:17:17]line Счет N : (3)136642 [01:17:17]line ИНН: 02508201610067 [01:17:17]line Контрольно-Кассовый Чек [01:17:17]line ПРОДАЖА [01:17:17]line Товар: 48743570 [01:17:17]line Сигареты Winston XStyle Blue [01:17:17]line 1.000 * 140.00 [01:17:17]line = 140.00 [01:17:17]line НДС 12% НСП 1% [01:17:17]line > о реализуемом товаре [01:17:17]line ИТОГО: 140.00 [01:17:17]line НСП 1% : 1.24 [01:17:17]line НДС 12% : 14.87 [01:17:17]line Наличными: 0.00 [01:17:17]line Безнал.: 140.00 [01:17:17]line Место: АЗС № 125 "Партнер Нефть" [01:17:17]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [01:17:17]line СНО: Общий режим [01:17:17]line Чек 16 29.07.2024 01:17 [01:17:17]line Смена: 430 ФФД: 1.0 [01:17:17]line ЗНМ: 0300000049 [01:17:17]line РНМ: 0000000000092638 [01:17:17]line Версия ККМ: 001 [01:17:17]line Платежная система: АКБ Кыргызстан [01:17:17]line ФМ: 0000000000874949 [01:17:17]line ФД: 69312 [01:17:17]line ФПД: 109973735676206 [01:17:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011728&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69312&fm=109973735676206&tin=02508201610067®Number=0000000000092638&sum=14000 [01:17:17]OFD Sender: Processing packet 69312 [packets to send 19, broken 18] [01:17:17]ProducePacketName [01:17:17]name=ofd_packets/00069312 [01:17:17]OFD Sender: To server: pG, [01:17:17]CommunicateWithHost lk.salyk.kg:30040 [01:17:17]ConnectInit lk.salyk.kg [01:17:17]line 0 [01:17:17]written 0, free lines is 4095 [01:17:18]Connected sock=10 [01:17:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 44 04 1D 01 84 4C 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A8 ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C0 0E 01 00 35 04 06 00 64 05 41 73 19 2E 72 DF AF 91 2E 86 78 FA [01:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 A9 93 47 00 7F 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C0 0E 01 00 F4 03 04 00 15 94 A6 66 B6 04 01 00 00 B1 85 09 B7 01 33 FA 5F [01:17:18]CommunicateWithHost err = 0 [01:17:18]CheckOFDResponse [01:17:18]1017 (14) - 77093643461234 [01:17:18]1041 (16) - 0000000000874949 [01:17:18]1040 (4) - 69312 [01:17:18]1012 (4) - 28.07.2024 18:55 [01:17:18]1206 (1) - 0 [01:17:18]OFD Sender: Remove packet 69312 [01:17:18]ProducePacketName [01:17:18]name=ofd_packets/00069312 [01:17:18]NVStorageDeleteData [01:17:18]Write to MH i2c: 01 00 00 B9 69 22 [01:17:18]Write i2c OK [01:17:18]MH_I2C_Read... [01:17:18]Read from MH i2c: 01 [01:17:18]MH_I2C_Read... [01:17:18]Read from MH i2c: 01 07 00 [01:17:18]MH_I2C_Read... [01:17:18]Read from MH i2c: 01 07 00 B9 69 00 00 00 00 00 00 0D 36 [01:17:18]RasterBufferAndPrint [01:17:18]line [01:17:18]line [01:17:18]line [01:17:18]line [01:17:18]line [01:17:18]written 0, free lines is 3337 [01:17:18]MH_Cut [01:17:18]Write to MH i2c: D1 01 00 C0 69 01 FB [01:17:18]Write i2c OK [01:17:18]MH_I2C_Read... [01:17:18]Read from MH i2c: D1 [01:17:18]MH_I2C_Read... [01:17:18]Read from MH i2c: D1 01 00 [01:17:18]MH_I2C_Read... [01:17:18]Read from MH i2c: D1 01 00 C0 69 00 FA [01:17:18]Write to MH i2c: 01 00 00 C1 69 2A [01:17:18]Write i2c OK [01:17:18]MH_I2C_Read... [01:17:18]OFD Sender: No OFD packet to send [01:17:19]*** Cut start [01:17:19]*** Partial cut [01:17:19]*** CUTSNS_PIN = 1 [01:17:19]*** CUTSNS_PIN = 0 [01:17:19]*** Brake cut motor [01:17:19]Read from MH i2c: 01 [01:17:19]MH_I2C_Read... [01:17:19]*** Stop cut motor [01:17:19]*** Cut end [01:17:19]Read from MH i2c: 01 07 00 [01:17:19]MH_I2C_Read... [01:17:19]Read from MH i2c: 01 07 00 C1 69 00 00 00 00 00 FF 0F 3F [01:17:19]process_action close_receipt done [01:17:19]requested_data is exist [01:17:19]produce_requested_data [01:17:19]requested_item fm.sn is exist - process it [01:17:19]wFMCommunicate request_size=4 [01:17:19]MH_SAM_APDU [01:17:19]CAPDU: 80 11 00 00 [01:17:19]Write to MH i2c: E2 08 00 C2 69 80 11 00 00 00 00 00 00 A5 [01:17:19]Write i2c OK [01:17:19]MH_I2C_Read... [01:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:19]Read from MH i2c: E2 [01:17:19]MH_I2C_Read... [01:17:19]Read from MH i2c: E2 17 00 [01:17:19]MH_I2C_Read... [01:17:19]Read from MH i2c: E2 17 00 C2 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 01 [01:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:17:19]wFMCommunicate OK [01:17:19]requested_item fd.num is exist - process it [01:17:19]SAM_PROTO_GetFieldsCounters [01:17:19]wFMCommunicate request_size=4 [01:17:19]MH_SAM_APDU [01:17:19]CAPDU: 80 13 00 00 [01:17:19]Write to MH i2c: E2 08 00 C3 69 80 13 00 00 00 00 00 00 A8 [01:17:19]Write i2c OK [01:17:19]MH_I2C_Read... [01:17:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:17:19]Read from MH i2c: E2 [01:17:19]MH_I2C_Read... [01:17:19]Read from MH i2c: E2 62 00 [01:17:19]MH_I2C_Read... [01:17:19]Read from MH i2c: E2 62 00 C3 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C0 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [01:17: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C0 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:17:19]wFMCommunicate OK [01:17:19]SAM_PROTO_GetFieldsCounters done [01:17:19]requested_item shift.num is exist - process it [01:17:19]requested_item shift.opened is exist - process it [01:17:19]req_shift_opened [01:17:19]FM_GetShiftState [01:17:19]SAM_PROTO_GetShiftState [01:17:19]wFMCommunicate request_size=4 [01:17:19]MH_SAM_APDU [01:17:19]CAPDU: 80 13 01 00 [01:17:19]Write to MH i2c: E2 08 00 C4 69 80 13 01 00 00 00 00 00 AA [01:17:19]Write i2c OK [01:17:19]MH_I2C_Read... [01:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:19]Read from MH i2c: E2 [01:17:19]MH_I2C_Read... [01:17:19]Read from MH i2c: E2 0E 00 [01:17:19]MH_I2C_Read... [01:17:19]Read from MH i2c: E2 0E 00 C4 69 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 61 [01:17:19]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:17:19]wFMCommunicate OK [01:17:19]SAM_PROTO_GetShiftState done [01:17:19]FM_GetShiftState done [01:17:19]req_shift_opened done [01:17:19]requested_item shift.open_date is exist - process it [01:17:19]req_shift_open_date [01:17:19]req_shift_open_date done [01:17:19]produce_requested_data done [01:17:19]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69312,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [01:17:19]process_action_free close_receipt [01:17:19]json_value_free [01:17:19]json_value_free done [01:17:19]process_json_proto returns [01:17:19]Send response to host [01:17:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69312,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [01:17:19]free response buf [01:17:19]execute_script done [01:17:19]execute_script returns [01:17:19]free content buf [01:17:19]Sock 9.Close socket [01:17:19]Sock 9.Thread stoped [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:53]accept exits with 7 [01:17:53]New connection [01:17:53]New thread 3066641764 created [01:17:53]Thread 3066785124 joined [01:17:53]Waiting for new connection... [01:17:53] Sock 7.Parse request [01:17:53]Sock 7.Check first char [01:17:53]Sock 7.First char is OK [01:17:53]request: POST /json_proto HTTP/1.0 [01:17:53]Method: POST [01:17:53]URL: /json_proto [01:17:53]Method is POST - this is cgi request [01:17:53]url: /json_proto [01:17:53]query_string will be loaded in cgi processing [01:17:53]execute_cgi json_proto POST (null) [01:17:53]execute_cgi path=json_proto method=POST [01:17:53]POST find Content-Length [01:17:53]Host: 172.17.49.132:8080 [01:17:53]Content-Length: 663 [01:17:53]Content-Type: application/json [01:17:53] [01:17:53]POST finish read [01:17:53]Found Content-Length = 663 [01:17:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136643", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:17:53]execute_script... [01:17:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136643", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:17:53]POST & json_proto [01:17:53]process_json_proto [01:17:53]json parsed OK: [01:17:53]protocol is kg_v1.0 [01:17:53]action value=close_receipt [01:17:53]process_action close_receipt [01:17:53]cmd_close_receipt [01:17:53]MH_GetDate [01:17:53]Write to MH i2c: F0 00 00 C5 69 1D [01:17:53]Write i2c OK [01:17:53]MH_I2C_Read... [01:17:53]Read from MH i2c: F0 [01:17:53]MH_I2C_Read... [01:17:53]Read from MH i2c: F0 09 00 [01:17:53]MH_I2C_Read... [01:17:53]Read from MH i2c: F0 09 00 C5 69 00 CD ED A6 66 E7 4B C0 64 42 [01:17:53]GetLastDocTimeStamp 1722215848 [01:17:53]current date 1722215885 [01:17:53]FM_GetShiftState [01:17:53]SAM_PROTO_GetShiftState [01:17:53]wFMCommunicate request_size=4 [01:17:53]MH_SAM_APDU [01:17:53]CAPDU: 80 13 01 00 [01:17:53]Write to MH i2c: E2 08 00 C6 69 80 13 01 00 00 00 00 00 AC [01:17:53]Write i2c OK [01:17:53]MH_I2C_Read... [01:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:53]Read from MH i2c: E2 [01:17:53]MH_I2C_Read... [01:17:53]Read from MH i2c: E2 0E 00 [01:17:53]MH_I2C_Read... [01:17:53]Read from MH i2c: E2 0E 00 C6 69 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 63 [01:17:53]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:17:53]wFMCommunicate OK [01:17:53]SAM_PROTO_GetShiftState done [01:17:53]FM_GetShiftState done [01:17:53]opened in 1722213563 [01:17:53]opened+sec_in_day 1722299963 [01:17:53]quantity*price = 18000 [01:17:53]sum+1 = 18001 [01:17:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 17 29.07.2024 01:18 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69313 ФПД: 137629086561217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011806&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69313&fm=137629086561217&tin=02508201610067®Number=0000000000092638&sum=18000 0 [01:17:55]StoreToDocumentArchive [01:17:55]shift 430 fd 69313 [01:17:55]save to /storage/0430/doc_00069313 [01:17:55]save last doc name /storage/0430/doc_00069313 to /storage/kkm_last_doc_name [01:17:55]save OK [01:17:55]Clear old archive folders... [01:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=287 [01:17:55]tlvbuf is 00A72E30 [01:17:55]SAM_PROTO_ClearQueue [01:17:55]wFMCommunicate request_size=4 [01:17:55]MH_SAM_APDU [01:17:55]CAPDU: 80 09 00 00 [01:17:55]Write to MH i2c: E2 08 00 D3 69 80 09 00 00 00 00 00 00 AE [01:17:55]Write i2c OK [01:17:55]MH_I2C_Read... [01:17:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:17:55]Read from MH i2c: E2 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: E2 03 00 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: E2 03 00 D3 69 00 90 00 B0 [01:17:55]RAPDU: 90 00 [01:17:55]wFMCommunicate OK [01:17:55]SAM_PROTO_ClearQueue done [01:17:55]KKMCreateOFDPacket [01:17:55]OFDProtocolAddRootSTLVToBuf [01:17:55]FM_MakeSignedData [01:17:55]FM_MakeSignedData [01:17:55]SAM_PROTO_SignData [01:17:55]wFMCommunicate request_size=4 [01:17:55]MH_SAM_APDU [01:17:55]CAPDU: 80 0D 01 02 [01:17:55]Write to MH i2c: E2 08 00 D4 69 80 0D 01 02 00 00 00 00 B6 [01:17:55]Write i2c OK [01:17:55]MH_I2C_Read... [01:17:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:17:55]Read from MH i2c: E2 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: E2 03 00 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: E2 03 00 D4 69 00 90 00 B1 [01:17:55]RAPDU: 90 00 [01:17:55]wFMCommunicate OK [01:17:55]wFMCommunicate request_size=255 [01:17:55]MH_SAM_APDU [01:17:55]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CE ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [01:17:55]Write to MH i2c: E2 02 01 D5 69 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CE ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 E3 [01:17:55]Write i2c OK [01:17:55]MH_I2C_Read... [01:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:55]Read from MH i2c: E2 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: E2 03 00 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: E2 03 00 D5 69 00 90 00 B2 [01:17:55]RAPDU: 90 00 [01:17:55]wFMCommunicate OK [01:17:55]wFMCommunicate request_size=46 [01:17:55]MH_SAM_APDU [01:17:55]CAPDU: 80 0D 02 02 29 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C1 0E 01 00 35 04 06 00 7D 2C 44 D0 B3 C1 [01:17:55]Write to MH i2c: E2 31 00 D6 69 80 0D 02 02 29 00 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C1 0E 01 00 35 04 06 00 7D 2C 44 D0 B3 C1 00 00 52 [01:17:55]Write i2c OK [01:17:55]MH_I2C_Read... [01:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:55]Read from MH i2c: E2 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: E2 03 00 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: E2 03 00 D6 69 00 90 00 B3 [01:17:55]RAPDU: 90 00 [01:17:55]wFMCommunicate OK [01:17:55]wFMCommunicate request_size=4 [01:17:55]MH_SAM_APDU [01:17:55]CAPDU: 80 0D 03 02 [01:17:55]Write to MH i2c: E2 08 00 D7 69 80 0D 03 02 00 00 00 00 BB [01:17:55]Write i2c OK [01:17:55]MH_I2C_Read... [01:17:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:17:55]Read from MH i2c: E2 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: E2 0B 00 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: E2 0B 00 D7 69 00 DF 71 C6 4F F1 47 6E D3 90 00 9A [01:17:55]RAPDU: DF 71 C6 4F F1 47 6E D3 90 00 [01:17:55]wFMCommunicate OK [01:17:55]SAM_PROTO_SignData done [01:17:55]FM_MakeSignedData done [01:17:55]CreateOFDProtocolMessage [01:17:55]wFMCommunicate request_size=4 [01:17:55]MH_SAM_APDU [01:17:55]CAPDU: 80 11 00 00 [01:17:55]Write to MH i2c: E2 08 00 D8 69 80 11 00 00 00 00 00 00 BB [01:17:55]Write i2c OK [01:17:55]MH_I2C_Read... [01:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:55]Read from MH i2c: E2 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: E2 17 00 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: E2 17 00 D8 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 17 [01:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:17:55]wFMCommunicate OK [01:17:55]CreateOFDProtocolMessage done [01:17:55]OFDSenderStorePacket 69313 [01:17:55]StoreOFDPacket docnum=69313 [01:17:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 33 01 00 00 29 A1 2B 01 A2 AE 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CE ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C1 0E 01 00 35 04 06 00 7D 2C 44 D0 B3 C1 DF 71 C6 4F F1 47 6E D3 [01:17:55]CheckFolder [01:17:55]dirname=/storage/ofd_packets [01:17:55]CheckFolder done [01:17:55]ProducePacketName [01:17:55]name=ofd_packets/00069313 [01:17:55]NVStorageSaveData ofd_packets/00069313 [01:17:55]File name is /storage/ofd_packets/00069313 [01:17:55]Write 337 bytes [01:17:55]NVStorageSaveData done [01:17:55]OFDSenderStorePacket done [01:17:55]KKMCreateOFDPacket done [01:17:55]NVStorageSaveData kkm_last_timestamp [01:17:55]File name is /storage/kkm_last_timestamp [01:17:55]Write 4 bytes [01:17:55]NVStorageSaveData done [01:17:55]ExternCall_PrintAddStr [01:17:55]wPrintStart [01:17:55]Write to MH i2c: 01 00 00 D9 69 42 [01:17:55]Write i2c OK [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: 01 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: 01 07 00 [01:17:55]MH_I2C_Read... [01:17:55]Read from MH i2c: 01 07 00 D9 69 00 00 00 00 00 FF 0F 57 [01:17:55]RasterBufferAndPrint [01:17:55]line Счет N : (3)136643 [01:17:55]line ИНН: 02508201610067 [01:17:55]line Контрольно-Кассовый Чек [01:17:55]line ПРОДАЖА [01:17:55]line Товар: 5449000176448 [01:17:55]line Сок Piko Pulpy апельсин ПЭТ 1л [01:17:55]line 1.000 * 180.00 [01:17:55]line = 180.00 [01:17:55]line НДС 12% НСП 1% [01:17:55]line > о реализуемом товаре [01:17:55]line ИТОГО: 180.00 [01:17:55]line НСП 1% : 1.59 [01:17:55]line НДС 12% : 19.11 [01:17:55]line Наличными: 180.00 [01:17:55]line Безнал.: 0.00 [01:17:55]line Место: АЗС № 125 "Партнер Нефть" [01:17:55]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [01:17:55]line СНО: Общий режим [01:17:55]line Чек 17 29.07.2024 01:18 [01:17:55]line Смена: 430 ФФД: 1.0 [01:17:55]line ЗНМ: 0300000049 [01:17:55]line РНМ: 0000000000092638 [01:17:55]line Версия ККМ: 001 [01:17:55]line ФМ: 0000000000874949 [01:17:55]line ФД: 69313 [01:17:55]line ФПД: 137629086561217 [01:17:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011806&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69313&fm=137629086561217&tin=02508201610067®Number=0000000000092638&sum=18000 [01:17:55]line 0 [01:17:55]OFD Sender: Processing packet 69313 [packets to send 19, broken 18] [01:17:55]ProducePacketName [01:17:55]name=ofd_packets/00069313 [01:17:55]OFD Sender: To server: pG, [01:17:55]CommunicateWithHost lk.salyk.kg:30040 [01:17:55]ConnectInit lk.salyk.kg [01:17:55]written 0, free lines is 4095 [01:17:56]Connected sock=11 [01:17:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 33 01 00 00 29 A1 2B 01 A2 AE 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CE ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C1 0E 01 00 35 04 06 00 7D 2C 44 D0 B3 C1 DF 71 C6 4F F1 47 6E D3 [01:17:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 99 82 47 00 56 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C1 0E 01 00 F4 03 04 00 3B 94 A6 66 B6 04 01 00 00 6A C8 5A 88 C0 2F 16 B0 [01:17:56]CommunicateWithHost err = 0 [01:17:56]CheckOFDResponse [01:17:56]1017 (14) - 77093643461234 [01:17:56]1041 (16) - 0000000000874949 [01:17:56]1040 (4) - 69313 [01:17:56]1012 (4) - 28.07.2024 18:55 [01:17:56]1206 (1) - 0 [01:17:56]OFD Sender: Remove packet 69313 [01:17:56]ProducePacketName [01:17:56]name=ofd_packets/00069313 [01:17:56]NVStorageDeleteData [01:17:56]Write to MH i2c: 01 00 00 02 6A 6C [01:17:56]Write i2c OK [01:17:56]MH_I2C_Read... [01:17:56]Read from MH i2c: 01 [01:17:56]MH_I2C_Read... [01:17:56]Read from MH i2c: 01 07 00 [01:17:56]MH_I2C_Read... [01:17:56]Read from MH i2c: 01 07 00 02 6A 00 00 00 00 00 0D 0D 8D [01:17:56]RasterBufferAndPrint [01:17:56]line [01:17:56]line [01:17:56]line [01:17:56]line [01:17:56]line [01:17:56]written 0, free lines is 3347 [01:17:56]MH_Cut [01:17:56]Write to MH i2c: D1 01 00 09 6A 01 45 [01:17:56]Write i2c OK [01:17:56]MH_I2C_Read... [01:17:56]Read from MH i2c: D1 [01:17:56]MH_I2C_Read... [01:17:56]Read from MH i2c: D1 01 00 [01:17:56]MH_I2C_Read... [01:17:56]Read from MH i2c: D1 01 00 09 6A 00 44 [01:17:56]Write to MH i2c: 01 00 00 0A 6A 74 [01:17:56]Write i2c OK [01:17:56]MH_I2C_Read... [01:17:56]OFD Sender: No OFD packet to send [01:17:57]*** Cut start [01:17:57]*** Partial cut [01:17:57]*** CUTSNS_PIN = 1 [01:17:57]*** CUTSNS_PIN = 0 [01:17:57]*** Brake cut motor [01:17:57]Read from MH i2c: 01 [01:17:57]MH_I2C_Read... [01:17:57]*** Stop cut motor [01:17:57]*** Cut end [01:17:57]Read from MH i2c: 01 07 00 [01:17:57]MH_I2C_Read... [01:17:57]Read from MH i2c: 01 07 00 0A 6A 00 00 00 00 00 FF 0F 89 [01:17:57]process_action close_receipt done [01:17:57]requested_data is exist [01:17:57]produce_requested_data [01:17:57]requested_item fm.sn is exist - process it [01:17:57]wFMCommunicate request_size=4 [01:17:57]MH_SAM_APDU [01:17:57]CAPDU: 80 11 00 00 [01:17:57]Write to MH i2c: E2 08 00 0B 6A 80 11 00 00 00 00 00 00 EF [01:17:57]Write i2c OK [01:17:57]MH_I2C_Read... [01:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:57]Read from MH i2c: E2 [01:17:57]MH_I2C_Read... [01:17:57]Read from MH i2c: E2 17 00 [01:17:57]MH_I2C_Read... [01:17:57]Read from MH i2c: E2 17 00 0B 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 4B [01:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:17:57]wFMCommunicate OK [01:17:57]requested_item fd.num is exist - process it [01:17:57]SAM_PROTO_GetFieldsCounters [01:17:57]wFMCommunicate request_size=4 [01:17:57]MH_SAM_APDU [01:17:57]CAPDU: 80 13 00 00 [01:17:57]Write to MH i2c: E2 08 00 0C 6A 80 13 00 00 00 00 00 00 F2 [01:17:57]Write i2c OK [01:17:57]MH_I2C_Read... [01:17:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:17:57]Read from MH i2c: E2 [01:17:57]MH_I2C_Read... [01:17:57]Read from MH i2c: E2 62 00 [01:17:57]MH_I2C_Read... [01:17:57]Read from MH i2c: E2 62 00 0C 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C1 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [01:17:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C1 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:17:57]wFMCommunicate OK [01:17:57]SAM_PROTO_GetFieldsCounters done [01:17:57]requested_item shift.num is exist - process it [01:17:57]requested_item shift.opened is exist - process it [01:17:57]req_shift_opened [01:17:57]FM_GetShiftState [01:17:57]SAM_PROTO_GetShiftState [01:17:57]wFMCommunicate request_size=4 [01:17:57]MH_SAM_APDU [01:17:57]CAPDU: 80 13 01 00 [01:17:57]Write to MH i2c: E2 08 00 0D 6A 80 13 01 00 00 00 00 00 F4 [01:17:57]Write i2c OK [01:17:57]MH_I2C_Read... [01:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:57]Read from MH i2c: E2 [01:17:57]MH_I2C_Read... [01:17:57]Read from MH i2c: E2 0E 00 [01:17:57]MH_I2C_Read... [01:17:57]Read from MH i2c: E2 0E 00 0D 6A 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 AB [01:17:57]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:17:57]wFMCommunicate OK [01:17:57]SAM_PROTO_GetShiftState done [01:17:57]FM_GetShiftState done [01:17:57]req_shift_opened done [01:17:57]requested_item shift.open_date is exist - process it [01:17:57]req_shift_open_date [01:17:57]req_shift_open_date done [01:17:57]produce_requested_data done [01:17:57]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69313,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [01:17:57]process_action_free close_receipt [01:17:57]json_value_free [01:17:57]json_value_free done [01:17:57]process_json_proto returns [01:17:57]Send response to host [01:17:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69313,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [01:17:57]free response buf [01:17:57]execute_script done [01:17:57]execute_script returns [01:17:57]free content buf [01:17:57]Sock 7.Close socket [01:17:57]Sock 7.Thread stoped [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:31]accept exits with 9 [01:18:31]New connection [01:18:31]New thread 3066785124 created [01:18:31]Thread 3066641764 joined [01:18:31]Waiting for new connection... [01:18:31] Sock 9.Parse request [01:18:31]Sock 9.Check first char [01:18:31]Sock 9.First char is OK [01:18:31]request: POST /json_proto HTTP/1.0 [01:18:31]Method: POST [01:18:31]URL: /json_proto [01:18:31]Method is POST - this is cgi request [01:18:31]url: /json_proto [01:18:31]query_string will be loaded in cgi processing [01:18:31]execute_cgi json_proto POST (null) [01:18:31]execute_cgi path=json_proto method=POST [01:18:31]POST find Content-Length [01:18:31]Host: 172.17.49.132:8080 [01:18:31]Content-Length: 621 [01:18:31]Content-Type: application/json [01:18:31] [01:18:31]POST finish read [01:18:31]Found Content-Length = 621 [01:18:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136644", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 7.000, "sum" : 980.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 980.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:31]execute_script... [01:18: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)136644", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 7.000, "sum" : 980.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 980.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:31]POST & json_proto [01:18:31]process_json_proto [01:18:31]json parsed OK: [01:18:31]protocol is kg_v1.0 [01:18:31]action value=close_receipt [01:18:31]process_action close_receipt [01:18:31]cmd_close_receipt [01:18:31]MH_GetDate [01:18:31]Write to MH i2c: F0 00 00 0E 6A 67 [01:18:31]Write i2c OK [01:18:31]MH_I2C_Read... [01:18:31]Read from MH i2c: F0 [01:18:31]MH_I2C_Read... [01:18:31]Read from MH i2c: F0 09 00 [01:18:31]MH_I2C_Read... [01:18:31]Read from MH i2c: F0 09 00 0E 6A 00 F4 ED A6 66 E7 4B C0 64 B3 [01:18:31]GetLastDocTimeStamp 1722215886 [01:18:31]current date 1722215924 [01:18:31]FM_GetShiftState [01:18:31]SAM_PROTO_GetShiftState [01:18:31]wFMCommunicate request_size=4 [01:18:31]MH_SAM_APDU [01:18:31]CAPDU: 80 13 01 00 [01:18:31]Write to MH i2c: E2 08 00 0F 6A 80 13 01 00 00 00 00 00 F6 [01:18:31]Write i2c OK [01:18:31]MH_I2C_Read... [01:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:31]Read from MH i2c: E2 [01:18:31]MH_I2C_Read... [01:18:31]Read from MH i2c: E2 0E 00 [01:18:31]MH_I2C_Read... [01:18:31]Read from MH i2c: E2 0E 00 0F 6A 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 AD [01:18:31]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:18:31]wFMCommunicate OK [01:18:31]SAM_PROTO_GetShiftState done [01:18:31]FM_GetShiftState done [01:18:31]opened in 1722213563 [01:18:31]opened+sec_in_day 1722299963 [01:18:31]quantity*price = 98000 [01:18:31]sum+1 = 98001 [01:18:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 980.00 НСП 1% : 8.67 НДС 12% : 104.07 Наличными: 980.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 18 29.07.2024 01:18 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69314 ФПД: 52728577103014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011844&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69314&fm=52728577103014&tin=02508201610067®Number=0000000000092638&sum=98000 0 [01:18:33]StoreToDocumentArchive [01:18:33]shift 430 fd 69314 [01:18:33]save to /storage/0430/doc_00069314 [01:18:33]save last doc name /storage/0430/doc_00069314 to /storage/kkm_last_doc_name [01:18:33]save OK [01:18:33]Clear old archive folders... [01:18:33]ProcessDocumentItem done err = 0, tmpTLVsize=273 [01:18:33]tlvbuf is 00BAB670 [01:18:33]SAM_PROTO_ClearQueue [01:18:33]wFMCommunicate request_size=4 [01:18:33]MH_SAM_APDU [01:18:33]CAPDU: 80 09 00 00 [01:18:33]Write to MH i2c: E2 08 00 1C 6A 80 09 00 00 00 00 00 00 F8 [01:18:33]Write i2c OK [01:18:33]MH_I2C_Read... [01:18:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:18:33]Read from MH i2c: E2 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: E2 03 00 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: E2 03 00 1C 6A 00 90 00 FA [01:18:33]RAPDU: 90 00 [01:18:33]wFMCommunicate OK [01:18:33]SAM_PROTO_ClearQueue done [01:18:33]KKMCreateOFDPacket [01:18:33]OFDProtocolAddRootSTLVToBuf [01:18:33]FM_MakeSignedData [01:18:33]FM_MakeSignedData [01:18:33]SAM_PROTO_SignData [01:18:33]wFMCommunicate request_size=4 [01:18:33]MH_SAM_APDU [01:18:33]CAPDU: 80 0D 01 02 [01:18:33]Write to MH i2c: E2 08 00 1D 6A 80 0D 01 02 00 00 00 00 00 [01:18:33]Write i2c OK [01:18:33]MH_I2C_Read... [01:18:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:18:33]Read from MH i2c: E2 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: E2 03 00 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: E2 03 00 1D 6A 00 90 00 FB [01:18:33]RAPDU: 90 00 [01:18:33]wFMCommunicate OK [01:18:33]wFMCommunicate request_size=255 [01:18:33]MH_SAM_APDU [01:18:33]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 58 1B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 D0 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F4 ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 [01:18:33]Write to MH i2c: E2 02 01 1E 6A 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 58 1B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 D0 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F4 ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 00 00 3A [01:18:33]Write i2c OK [01:18:33]MH_I2C_Read... [01:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:33]Read from MH i2c: E2 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: E2 03 00 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: E2 03 00 1E 6A 00 90 00 FC [01:18:33]RAPDU: 90 00 [01:18:33]wFMCommunicate OK [01:18:33]wFMCommunicate request_size=32 [01:18:33]MH_SAM_APDU [01:18:33]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 39 10 04 04 00 C2 0E 01 00 35 04 06 00 2F F4 D4 1B 94 A6 [01:18:33]Write to MH i2c: E2 23 00 1F 6A 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 39 10 04 04 00 C2 0E 01 00 35 04 06 00 2F F4 D4 1B 94 A6 00 00 86 [01:18:33]Write i2c OK [01:18:33]MH_I2C_Read... [01:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:33]Read from MH i2c: E2 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: E2 03 00 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: E2 03 00 1F 6A 00 90 00 FD [01:18:33]RAPDU: 90 00 [01:18:33]wFMCommunicate OK [01:18:33]wFMCommunicate request_size=4 [01:18:33]MH_SAM_APDU [01:18:33]CAPDU: 80 0D 03 02 [01:18:33]Write to MH i2c: E2 08 00 20 6A 80 0D 03 02 00 00 00 00 05 [01:18:33]Write i2c OK [01:18:33]MH_I2C_Read... [01:18:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:18:33]Read from MH i2c: E2 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: E2 0B 00 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: E2 0B 00 20 6A 00 F6 37 F8 86 B9 6F 84 C4 90 00 21 [01:18:33]RAPDU: F6 37 F8 86 B9 6F 84 C4 90 00 [01:18:33]wFMCommunicate OK [01:18:33]SAM_PROTO_SignData done [01:18:33]FM_MakeSignedData done [01:18:33]CreateOFDProtocolMessage [01:18:33]wFMCommunicate request_size=4 [01:18:33]MH_SAM_APDU [01:18:33]CAPDU: 80 11 00 00 [01:18:33]Write to MH i2c: E2 08 00 21 6A 80 11 00 00 00 00 00 00 05 [01:18:33]Write i2c OK [01:18:33]MH_I2C_Read... [01:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:33]Read from MH i2c: E2 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: E2 17 00 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: E2 17 00 21 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 61 [01:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:18:33]wFMCommunicate OK [01:18:33]CreateOFDProtocolMessage done [01:18:33]OFDSenderStorePacket 69314 [01:18:33]StoreOFDPacket docnum=69314 [01:18:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 DF 00 1D 01 0B B7 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 58 1B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 D0 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F4 ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C2 0E 01 00 35 04 06 00 2F F4 D4 1B 94 A6 F6 37 F8 86 B9 6F 84 C4 [01:18:33]CheckFolder [01:18:33]dirname=/storage/ofd_packets [01:18:33]CheckFolder done [01:18:33]ProducePacketName [01:18:33]name=ofd_packets/00069314 [01:18:33]NVStorageSaveData ofd_packets/00069314 [01:18:33]File name is /storage/ofd_packets/00069314 [01:18:33]Write 323 bytes [01:18:33]NVStorageSaveData done [01:18:33]OFDSenderStorePacket done [01:18:33]KKMCreateOFDPacket done [01:18:33]NVStorageSaveData kkm_last_timestamp [01:18:33]File name is /storage/kkm_last_timestamp [01:18:33]Write 4 bytes [01:18:33]NVStorageSaveData done [01:18:33]ExternCall_PrintAddStr [01:18:33]wPrintStart [01:18:33]Write to MH i2c: 01 00 00 22 6A 8C [01:18:33]Write i2c OK [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: 01 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: 01 07 00 [01:18:33]MH_I2C_Read... [01:18:33]Read from MH i2c: 01 07 00 22 6A 00 00 00 00 00 FF 0F A1 [01:18:33]RasterBufferAndPrint [01:18:33]line Счет N : (3)136644 [01:18:33]line ИНН: 02508201610067 [01:18:33]line Контрольно-Кассовый Чек [01:18:33]line ПРОДАЖА [01:18:33]line Товар: 48747059 [01:18:33]line Сигареты Winston Legend Blue [01:18:33]line 7.000 * 140.00 [01:18:33]line = 980.00 [01:18:33]line НДС 12% НСП 1% [01:18:33]line > о реализуемом товаре [01:18:33]line ИТОГО: 980.00 [01:18:33]line НСП 1% : 8.67 [01:18:33]line НДС 12% : 104.07 [01:18:33]line Наличными: 980.00 [01:18:33]line Безнал.: 0.00 [01:18:33]line Место: АЗС № 125 "Партнер Нефть" [01:18:33]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [01:18:33]line СНО: Общий режим [01:18:33]line Чек 18 29.07.2024 01:18 [01:18:33]line Смена: 430 ФФД: 1.0 [01:18:33]line ЗНМ: 0300000049 [01:18:33]line РНМ: 0000000000092638 [01:18:33]line Версия ККМ: 001 [01:18:33]line ФМ: 0000000000874949 [01:18:33]line ФД: 69314 [01:18:33]line ФПД: 52728577103014 [01:18:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T011844&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69314&fm=52728577103014&tin=02508201610067®Number=0000000000092638&sum=98000 [01:18:33]line 0 [01:18:33]OFD Sender: Processing packet 69314 [packets to send 19, broken 18] [01:18:33]ProducePacketName [01:18:33]name=ofd_packets/00069314 [01:18:33]OFD Sender: To server: pG, [01:18:33]CommunicateWithHost lk.salyk.kg:30040 [01:18:33]ConnectInit lk.salyk.kg [01:18:33]written 0, free lines is 4095 [01:18:33]Connected sock=10 [01:18: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 39 34 39 25 01 00 00 DF 00 1D 01 0B B7 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 58 1B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 D0 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F4 ED A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C2 0E 01 00 35 04 06 00 2F F4 D4 1B 94 A6 F6 37 F8 86 B9 6F 84 C4 [01:18:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 FF E2 47 00 58 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C2 0E 01 00 F4 03 04 00 61 94 A6 66 B6 04 01 00 00 49 B1 89 05 63 50 25 A9 [01:18:34]CommunicateWithHost err = 0 [01:18:34]CheckOFDResponse [01:18:34]1017 (14) - 77093643461234 [01:18:34]1041 (16) - 0000000000874949 [01:18:34]1040 (4) - 69314 [01:18:34]1012 (4) - 28.07.2024 18:56 [01:18:34]1206 (1) - 0 [01:18:34]OFD Sender: Remove packet 69314 [01:18:34]ProducePacketName [01:18:34]name=ofd_packets/00069314 [01:18:34]NVStorageDeleteData [01:18:34]Write to MH i2c: 01 00 00 4B 6A B5 [01:18:34]Write i2c OK [01:18:34]MH_I2C_Read... [01:18:34]Read from MH i2c: 01 [01:18:34]MH_I2C_Read... [01:18:34]Read from MH i2c: 01 07 00 [01:18:34]MH_I2C_Read... [01:18:34]Read from MH i2c: 01 07 00 4B 6A 00 00 00 00 00 05 0D CE [01:18:34]RasterBufferAndPrint [01:18:34]line [01:18:34]line [01:18:34]line [01:18:34]line [01:18:34]line [01:18:34]written 0, free lines is 3339 [01:18:34]MH_Cut [01:18:34]Write to MH i2c: D1 01 00 52 6A 01 8E [01:18:34]Write i2c OK [01:18:34]MH_I2C_Read... [01:18:34]Read from MH i2c: D1 [01:18:34]MH_I2C_Read... [01:18:34]Read from MH i2c: D1 01 00 [01:18:34]MH_I2C_Read... [01:18:34]Read from MH i2c: D1 01 00 52 6A 00 8D [01:18:34]Write to MH i2c: 01 00 00 53 6A BD [01:18:34]Write i2c OK [01:18:34]MH_I2C_Read... [01:18:34]OFD Sender: No OFD packet to send [01:18:34]*** Cut start [01:18:34]*** Partial cut [01:18:34]*** CUTSNS_PIN = 1 [01:18:35]*** CUTSNS_PIN = 0 [01:18:35]*** Brake cut motor [01:18:35]Read from MH i2c: 01 [01:18:35]MH_I2C_Read... [01:18:35]*** Stop cut motor [01:18:35]*** Cut end [01:18:35]Read from MH i2c: 01 07 00 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: 01 07 00 53 6A 00 00 00 00 00 FF 0F D2 [01:18:35]process_action close_receipt done [01:18:35]requested_data is exist [01:18:35]produce_requested_data [01:18:35]requested_item fm.sn is exist - process it [01:18:35]wFMCommunicate request_size=4 [01:18:35]MH_SAM_APDU [01:18:35]CAPDU: 80 11 00 00 [01:18:35]Write to MH i2c: E2 08 00 54 6A 80 11 00 00 00 00 00 00 38 [01:18:35]Write i2c OK [01:18:35]MH_I2C_Read... [01:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:35]Read from MH i2c: E2 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 17 00 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 17 00 54 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 94 [01:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:18:35]wFMCommunicate OK [01:18:35]requested_item fd.num is exist - process it [01:18:35]SAM_PROTO_GetFieldsCounters [01:18:35]wFMCommunicate request_size=4 [01:18:35]MH_SAM_APDU [01:18:35]CAPDU: 80 13 00 00 [01:18:35]Write to MH i2c: E2 08 00 55 6A 80 13 00 00 00 00 00 00 3B [01:18:35]Write i2c OK [01:18:35]MH_I2C_Read... [01:18:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:18:35]Read from MH i2c: E2 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 62 00 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 62 00 55 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C2 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [01:18: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C2 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:18:35]wFMCommunicate OK [01:18:35]SAM_PROTO_GetFieldsCounters done [01:18:35]requested_item shift.num is exist - process it [01:18:35]requested_item shift.opened is exist - process it [01:18:35]req_shift_opened [01:18:35]FM_GetShiftState [01:18:35]SAM_PROTO_GetShiftState [01:18:35]wFMCommunicate request_size=4 [01:18:35]MH_SAM_APDU [01:18:35]CAPDU: 80 13 01 00 [01:18:35]Write to MH i2c: E2 08 00 56 6A 80 13 01 00 00 00 00 00 3D [01:18:35]Write i2c OK [01:18:35]MH_I2C_Read... [01:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:35]Read from MH i2c: E2 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 0E 00 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 0E 00 56 6A 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 F4 [01:18:35]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:18:35]wFMCommunicate OK [01:18:35]SAM_PROTO_GetShiftState done [01:18:35]FM_GetShiftState done [01:18:35]req_shift_opened done [01:18:35]requested_item shift.open_date is exist - process it [01:18:35]req_shift_open_date [01:18:35]req_shift_open_date done [01:18:35]produce_requested_data done [01:18:35]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69314,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [01:18:35]process_action_free close_receipt [01:18:35]json_value_free [01:18:35]json_value_free done [01:18:35]process_json_proto returns [01:18:35]Send response to host [01:18:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69314,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [01:18:35]free response buf [01:18:35]execute_script done [01:18:35]execute_script returns [01:18:35]free content buf [01:18:35]Sock 9.Close socket [01:18:35]Sock 9.Thread stoped [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:28]accept exits with 7 [01:20:28]New connection [01:20:28]New thread 3066641764 created [01:20:28]Thread 3066785124 joined [01:20:28]Waiting for new connection... [01:20:28] Sock 7.Parse request [01:20:28]Sock 7.Check first char [01:20:28]Sock 7.First char is OK [01:20:28]request: POST /json_proto HTTP/1.0 [01:20:28]Method: POST [01:20:28]URL: /json_proto [01:20:28]Method is POST - this is cgi request [01:20:28]url: /json_proto [01:20:28]query_string will be loaded in cgi processing [01:20:28]execute_cgi json_proto POST (null) [01:20:28]execute_cgi path=json_proto method=POST [01:20:28]POST find Content-Length [01:20:28]Host: 172.17.49.132:8080 [01:20:28]Content-Length: 1482 [01:20:28]Content-Type: application/json [01:20:28] [01:20:28]POST finish read [01:20:28]Found Content-Length = 1482 [01:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136645", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400266", "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 90 \u0433\u0440", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 544.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:28]execute_script... [01:20: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)136645", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400266", "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 90 \u0433\u0440", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 544.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:28]POST & json_proto [01:20:28]process_json_proto [01:20:28]json parsed OK: [01:20:28]protocol is kg_v1.0 [01:20:28]action value=close_receipt [01:20:28]process_action close_receipt [01:20:28]cmd_close_receipt [01:20:28]MH_GetDate [01:20:28]Write to MH i2c: F0 00 00 57 6A B0 [01:20:28]Write i2c OK [01:20:28]MH_I2C_Read... [01:20:28]Read from MH i2c: F0 [01:20:28]MH_I2C_Read... [01:20:28]Read from MH i2c: F0 09 00 [01:20:28]MH_I2C_Read... [01:20:28]Read from MH i2c: F0 09 00 57 6A 00 68 EE A6 66 E7 4B C0 64 71 [01:20:28]GetLastDocTimeStamp 1722215924 [01:20:28]current date 1722216040 [01:20:28]FM_GetShiftState [01:20:28]SAM_PROTO_GetShiftState [01:20:28]wFMCommunicate request_size=4 [01:20:28]MH_SAM_APDU [01:20:28]CAPDU: 80 13 01 00 [01:20:28]Write to MH i2c: E2 08 00 58 6A 80 13 01 00 00 00 00 00 3F [01:20:28]Write i2c OK [01:20:28]MH_I2C_Read... [01:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:28]Read from MH i2c: E2 [01:20:28]MH_I2C_Read... [01:20:28]Read from MH i2c: E2 0E 00 [01:20:28]MH_I2C_Read... [01:20:28]Read from MH i2c: E2 0E 00 58 6A 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 F6 [01:20:28]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:20:28]wFMCommunicate OK [01:20:28]SAM_PROTO_GetShiftState done [01:20:28]FM_GetShiftState done [01:20:28]opened in 1722213563 [01:20:28]opened+sec_in_day 1722299963 [01:20:28]quantity*price = 34000 [01:20:28]sum+1 = 34001 [01:20:28]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400266 Арахис жарен Караван орехов 90 гр 2.000 * 100.00 = 200.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 544.00 НСП 1% : 4.81 НДС 12% : 57.77 Наличными: 0.00 Безнал.: 544.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 19 29.07.2024 01:20 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69315 ФПД: 267538969739366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T012040&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69315&fm=267538969739366&tin=02508201610067®Number=0000000000092638&sum=54400 0 [01:20:29]StoreToDocumentArchive [01:20:29]shift 430 fd 69315 [01:20:29]save to /storage/0430/doc_00069315 [01:20:29]save last doc name /storage/0430/doc_00069315 to /storage/kkm_last_doc_name [01:20:29]save OK [01:20:29]Clear old archive folders... [01:20:29]ProcessDocumentItem done err = 0, tmpTLVsize=521 [01:20:29]tlvbuf is 00BCB180 [01:20:29]SAM_PROTO_ClearQueue [01:20:29]wFMCommunicate request_size=4 [01:20:29]MH_SAM_APDU [01:20:29]CAPDU: 80 09 00 00 [01:20:29]Write to MH i2c: E2 08 00 65 6A 80 09 00 00 00 00 00 00 41 [01:20:29]Write i2c OK [01:20:29]MH_I2C_Read... [01:20:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:20:29]Read from MH i2c: E2 [01:20:29]MH_I2C_Read... [01:20:29]Read from MH i2c: E2 03 00 [01:20:29]MH_I2C_Read... [01:20:29]Read from MH i2c: E2 03 00 65 6A 00 90 00 43 [01:20:29]RAPDU: 90 00 [01:20:29]wFMCommunicate OK [01:20:29]SAM_PROTO_ClearQueue done [01:20:29]KKMCreateOFDPacket [01:20:29]OFDProtocolAddRootSTLVToBuf [01:20:29]FM_MakeSignedData [01:20:29]FM_MakeSignedData [01:20:29]SAM_PROTO_SignData [01:20:29]wFMCommunicate request_size=4 [01:20:29]MH_SAM_APDU [01:20:29]CAPDU: 80 0D 01 02 [01:20:29]Write to MH i2c: E2 08 00 66 6A 80 0D 01 02 00 00 00 00 49 [01:20:29]Write i2c OK [01:20:29]MH_I2C_Read... [01:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:20:29]Read from MH i2c: E2 [01:20:29]MH_I2C_Read... [01:20:29]Read from MH i2c: E2 03 00 [01:20:29]MH_I2C_Read... [01:20:29]Read from MH i2c: E2 03 00 66 6A 00 90 00 44 [01:20:29]RAPDU: 90 00 [01:20:29]wFMCommunicate OK [01:20:29]wFMCommunicate request_size=255 [01:20:29]MH_SAM_APDU [01:20:29]CAPDU: 80 0D 02 02 FA 03 00 09 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 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 39 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [01:20:29]Write to MH i2c: E2 02 01 67 6A 80 0D 02 02 FA 00 03 00 09 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 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 39 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 95 [01:20:29]Write i2c OK [01:20:29]MH_I2C_Read... [01:20:29]OFD Sender: No OFD packet to send [01:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:30]Read from MH i2c: E2 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 03 00 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 03 00 67 6A 00 90 00 45 [01:20:30]RAPDU: 90 00 [01:20:30]wFMCommunicate OK [01:20:30]wFMCommunicate request_size=255 [01:20:30]MH_SAM_APDU [01:20:30]CAPDU: 80 0D 02 02 FA 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 D4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 D4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 68 EE A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 [01:20:30]Write to MH i2c: E2 02 01 68 6A 80 0D 02 02 FA 00 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 D4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 D4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 68 EE A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A3 [01:20:30]Write i2c OK [01:20:30]MH_I2C_Read... [01:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:30]Read from MH i2c: E2 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 03 00 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 03 00 68 6A 00 90 00 46 [01:20:30]RAPDU: 90 00 [01:20:30]wFMCommunicate OK [01:20:30]wFMCommunicate request_size=30 [01:20:30]MH_SAM_APDU [01:20:30]CAPDU: 80 0D 02 02 19 30 38 37 34 39 34 39 10 04 04 00 C3 0E 01 00 35 04 06 00 F3 53 45 41 40 66 [01:20:30]Write to MH i2c: E2 21 00 69 6A 80 0D 02 02 19 00 30 38 37 34 39 34 39 10 04 04 00 C3 0E 01 00 35 04 06 00 F3 53 45 41 40 66 00 00 93 [01:20:30]Write i2c OK [01:20:30]MH_I2C_Read... [01:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:30]Read from MH i2c: E2 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 03 00 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 03 00 69 6A 00 90 00 47 [01:20:30]RAPDU: 90 00 [01:20:30]wFMCommunicate OK [01:20:30]wFMCommunicate request_size=4 [01:20:30]MH_SAM_APDU [01:20:30]CAPDU: 80 0D 03 02 [01:20:30]Write to MH i2c: E2 08 00 6A 6A 80 0D 03 02 00 00 00 00 4F [01:20:30]Write i2c OK [01:20:30]MH_I2C_Read... [01:20:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:20:30]Read from MH i2c: E2 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 0B 00 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 0B 00 6A 6A 00 4A E3 A8 8E C8 CF F3 0F 90 00 4C [01:20:30]RAPDU: 4A E3 A8 8E C8 CF F3 0F 90 00 [01:20:30]wFMCommunicate OK [01:20:30]SAM_PROTO_SignData done [01:20:30]FM_MakeSignedData done [01:20:30]CreateOFDProtocolMessage [01:20:30]wFMCommunicate request_size=4 [01:20:30]MH_SAM_APDU [01:20:30]CAPDU: 80 11 00 00 [01:20:30]Write to MH i2c: E2 08 00 6B 6A 80 11 00 00 00 00 00 00 4F [01:20:30]Write i2c OK [01:20:30]MH_I2C_Read... [01:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:30]Read from MH i2c: E2 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 17 00 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 17 00 6B 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AB [01:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:20:30]wFMCommunicate OK [01:20:30]CreateOFDProtocolMessage done [01:20:30]OFDSenderStorePacket 69315 [01:20:30]StoreOFDPacket docnum=69315 [01:20:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 1D 02 00 00 64 D6 15 02 5A 10 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 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 39 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 D4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 D4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 68 EE A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C3 0E 01 00 35 04 06 00 F3 53 45 41 40 66 4A E3 A8 8E C8 CF F3 0F [01:20:30]CheckFolder [01:20:30]dirname=/storage/ofd_packets [01:20:30]CheckFolder done [01:20:30]ProducePacketName [01:20:30]name=ofd_packets/00069315 [01:20:30]NVStorageSaveData ofd_packets/00069315 [01:20:30]File name is /storage/ofd_packets/00069315 [01:20:30]Write 571 bytes [01:20:30]NVStorageSaveData done [01:20:30]OFDSenderStorePacket done [01:20:30]KKMCreateOFDPacket done [01:20:30]NVStorageSaveData kkm_last_timestamp [01:20:30]File name is /storage/kkm_last_timestamp [01:20:30]Write 4 bytes [01:20:30]NVStorageSaveData done [01:20:30]ExternCall_PrintAddStr [01:20:30]wPrintStart [01:20:30]Write to MH i2c: 01 00 00 6C 6A D6 [01:20:30]Write i2c OK [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: 01 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: 01 07 00 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: 01 07 00 6C 6A 00 00 00 00 00 FF 0F EB [01:20:30]RasterBufferAndPrint [01:20:30]line Счет N : (3)136645 [01:20:30]line ИНН: 02508201610067 [01:20:30]line Контрольно-Кассовый Чек [01:20:30]line ПРОДАЖА [01:20:30]line Товар: 4700000480357 [01:20:30]line Пиво шахтерское 1л ПЭТ [01:20:30]line 2.000 * 170.00 [01:20:30]line = 340.00 [01:20:30]line НДС 12% НСП 1% [01:20:30]line > о реализуемом товаре [01:20:30]line Товар: 4630007400266 [01:20:30]line Арахис жарен Караван орехов 90 гр [01:20:30]line 2.000 * 100.00 [01:20:30]line = 200.00 [01:20:30]line НДС 12% НСП 1% [01:20:30]line > о реализуемом товаре [01:20:30]line Товар: 2000031750019 [01:20:30]line Пакет Партнер Нефть [01:20:30]line 1.000 * 4.00 [01:20:30]line = 4.00 [01:20:30]line НДС 12% НСП 1% [01:20:30]line > о реализуемом товаре [01:20:30]line ИТОГО: 544.00 [01:20:30]line НСП 1% : 4.81 [01:20:30]line НДС 12% : 57.77 [01:20:30]line Наличными: 0.00 [01:20:30]line Безнал.: 544.00 [01:20:30]line Место: АЗС № 125 "Партнер Нефть" [01:20:30]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [01:20:30]line СНО: Общий режим [01:20:30]line Чек 19 29.07.2024 01:20 [01:20:30]line Смена: 430 ФФД: 1.0 [01:20:30]line ЗНМ: 0300000049 [01:20:30]line РНМ: 0000000000092638 [01:20:30]line Версия ККМ: 001 [01:20:30]line Платежная система: АКБ Кыргызстан [01:20:30]line ФМ: 0000000000874949 [01:20:30]line ФД: 69315 [01:20:30]line ФПД: 267538969739366 [01:20:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T012040&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69315&fm=267538969739366&tin=02508201610067®Number=0000000000092638&sum=54400 [01:20:30]line 0 [01:20:30]OFD Sender: Processing packet 69315 [packets to send 19, broken 18] [01:20:30]ProducePacketName [01:20:30]name=ofd_packets/00069315 [01:20:30]OFD Sender: To server: pG, [01:20:30]CommunicateWithHost lk.salyk.kg:30040 [01:20:30]ConnectInit lk.salyk.kg [01:20:30]written 0, free lines is 4095 [01:20:30]Connected sock=10 [01:20: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 39 34 39 1D 02 00 00 64 D6 15 02 5A 10 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 36 36 06 04 3B 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 39 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 D4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 D4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 68 EE A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C3 0E 01 00 35 04 06 00 F3 53 45 41 40 66 4A E3 A8 8E C8 CF F3 0F [01:20:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 00 03 47 00 C0 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C3 0E 01 00 F4 03 04 00 D6 94 A6 66 B6 04 01 00 00 11 C5 4C 3F AF 11 BD 0B [01:20:31]CommunicateWithHost err = 0 [01:20:31]CheckOFDResponse [01:20:31]1017 (14) - 77093643461234 [01:20:31]1041 (16) - 0000000000874949 [01:20:31]1040 (4) - 69315 [01:20:31]1012 (4) - 28.07.2024 18:58 [01:20:31]1206 (1) - 0 [01:20:31]OFD Sender: Remove packet 69315 [01:20:31]ProducePacketName [01:20:31]name=ofd_packets/00069315 [01:20:31]NVStorageDeleteData [01:20:31]Write to MH i2c: 01 00 00 A3 6A 0D [01:20:31]Write i2c OK [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: 01 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: 01 07 00 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: 01 07 00 A3 6A 00 00 00 00 00 62 0C 82 [01:20:31]RasterBufferAndPrint [01:20:31]line [01:20:31]line [01:20:31]line [01:20:31]line [01:20:31]line [01:20:31]written 0, free lines is 3177 [01:20:31]MH_Cut [01:20:31]Write to MH i2c: D1 01 00 AA 6A 01 E6 [01:20:31]Write i2c OK [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: D1 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: D1 01 00 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: D1 01 00 AA 6A 00 E5 [01:20:31]Write to MH i2c: 01 00 00 AB 6A 15 [01:20:31]Write i2c OK [01:20:31]MH_I2C_Read... [01:20:31]OFD Sender: No OFD packet to send [01:20:32]*** Cut start [01:20:32]*** Partial cut [01:20:32]*** CUTSNS_PIN = 1 [01:20:32]*** CUTSNS_PIN = 0 [01:20:32]*** Brake cut motor [01:20:32]Read from MH i2c: 01 [01:20:32]MH_I2C_Read... [01:20:32]*** Stop cut motor [01:20:32]*** Cut end [01:20:32]Read from MH i2c: 01 07 00 [01:20:32]MH_I2C_Read... [01:20:32]Read from MH i2c: 01 07 00 AB 6A 00 00 00 00 00 FF 0F 2A [01:20:32]process_action close_receipt done [01:20:32]requested_data is exist [01:20:32]produce_requested_data [01:20:32]requested_item fm.sn is exist - process it [01:20:32]wFMCommunicate request_size=4 [01:20:32]MH_SAM_APDU [01:20:32]CAPDU: 80 11 00 00 [01:20:32]Write to MH i2c: E2 08 00 AC 6A 80 11 00 00 00 00 00 00 90 [01:20:32]Write i2c OK [01:20:32]MH_I2C_Read... [01:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:32]Read from MH i2c: E2 [01:20:32]MH_I2C_Read... [01:20:32]Read from MH i2c: E2 17 00 [01:20:32]MH_I2C_Read... [01:20:32]Read from MH i2c: E2 17 00 AC 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 EC [01:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:20:32]wFMCommunicate OK [01:20:32]requested_item fd.num is exist - process it [01:20:32]SAM_PROTO_GetFieldsCounters [01:20:32]wFMCommunicate request_size=4 [01:20:32]MH_SAM_APDU [01:20:32]CAPDU: 80 13 00 00 [01:20:32]Write to MH i2c: E2 08 00 AD 6A 80 13 00 00 00 00 00 00 93 [01:20:32]Write i2c OK [01:20:32]MH_I2C_Read... [01:20:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:32]Read from MH i2c: E2 [01:20:32]MH_I2C_Read... [01:20:32]Read from MH i2c: E2 62 00 [01:20:32]MH_I2C_Read... [01:20:32]Read from MH i2c: E2 62 00 AD 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C3 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [01:20: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C3 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:20:32]wFMCommunicate OK [01:20:32]SAM_PROTO_GetFieldsCounters done [01:20:32]requested_item shift.num is exist - process it [01:20:32]requested_item shift.opened is exist - process it [01:20:32]req_shift_opened [01:20:32]FM_GetShiftState [01:20:32]SAM_PROTO_GetShiftState [01:20:32]wFMCommunicate request_size=4 [01:20:32]MH_SAM_APDU [01:20:32]CAPDU: 80 13 01 00 [01:20:32]Write to MH i2c: E2 08 00 AE 6A 80 13 01 00 00 00 00 00 95 [01:20:32]Write i2c OK [01:20:32]MH_I2C_Read... [01:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:33]Read from MH i2c: E2 [01:20:33]MH_I2C_Read... [01:20:33]Read from MH i2c: E2 0E 00 [01:20:33]MH_I2C_Read... [01:20:33]Read from MH i2c: E2 0E 00 AE 6A 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 4C [01:20:33]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:20:33]wFMCommunicate OK [01:20:33]SAM_PROTO_GetShiftState done [01:20:33]FM_GetShiftState done [01:20:33]req_shift_opened done [01:20:33]requested_item shift.open_date is exist - process it [01:20:33]req_shift_open_date [01:20:33]req_shift_open_date done [01:20:33]produce_requested_data done [01:20:33]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69315,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [01:20:33]process_action_free close_receipt [01:20:33]json_value_free [01:20:33]json_value_free done [01:20:33]process_json_proto returns [01:20:33]Send response to host [01:20:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69315,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [01:20:33]free response buf [01:20:33]execute_script done [01:20:33]execute_script returns [01:20:33]free content buf [01:20:33]Sock 7.Close socket [01:20:33]Sock 7.Thread stoped [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:50]accept exits with 9 [01:21:50]New connection [01:21:50]New thread 3066785124 created [01:21:50]Thread 3066641764 joined [01:21:50]Waiting for new connection... [01:21:50] Sock 9.Parse request [01:21:50]Sock 9.Check first char [01:21:50]Sock 9.First char is OK [01:21:50]request: POST /json_proto HTTP/1.0 [01:21:50]Method: POST [01:21:50]URL: /json_proto [01:21:50]Method is POST - this is cgi request [01:21:50]url: /json_proto [01:21:50]query_string will be loaded in cgi processing [01:21:50]execute_cgi json_proto POST (null) [01:21:50]execute_cgi path=json_proto method=POST [01:21:50]POST find Content-Length [01:21:50]Host: 172.17.49.132:8080 [01:21:50]Content-Length: 630 [01:21:50]Content-Type: application/json [01:21:50] [01:21:50]POST finish read [01:21:50]Found Content-Length = 630 [01:21:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136646", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:21:50]execute_script... [01:21:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136646", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:21:50]POST & json_proto [01:21:50]process_json_proto [01:21:50]json parsed OK: [01:21:50]protocol is kg_v1.0 [01:21:50]action value=close_receipt [01:21:50]process_action close_receipt [01:21:50]cmd_close_receipt [01:21:50]MH_GetDate [01:21:50]Write to MH i2c: F0 00 00 AF 6A 08 [01:21:50]Write i2c OK [01:21:50]MH_I2C_Read... [01:21:50]Read from MH i2c: F0 [01:21:50]MH_I2C_Read... [01:21:50]Read from MH i2c: F0 09 00 [01:21:50]MH_I2C_Read... [01:21:50]Read from MH i2c: F0 09 00 AF 6A 00 BA EE A6 66 E7 4B C0 64 1B [01:21:50]GetLastDocTimeStamp 1722216040 [01:21:50]current date 1722216122 [01:21:50]FM_GetShiftState [01:21:50]SAM_PROTO_GetShiftState [01:21:50]wFMCommunicate request_size=4 [01:21:50]MH_SAM_APDU [01:21:50]CAPDU: 80 13 01 00 [01:21:50]Write to MH i2c: E2 08 00 B0 6A 80 13 01 00 00 00 00 00 97 [01:21:50]Write i2c OK [01:21:50]MH_I2C_Read... [01:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:50]Read from MH i2c: E2 [01:21:50]MH_I2C_Read... [01:21:50]Read from MH i2c: E2 0E 00 [01:21:50]MH_I2C_Read... [01:21:50]Read from MH i2c: E2 0E 00 B0 6A 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 4E [01:21:50]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:21:50]wFMCommunicate OK [01:21:50]SAM_PROTO_GetShiftState done [01:21:50]FM_GetShiftState done [01:21:50]opened in 1722213563 [01:21:50]opened+sec_in_day 1722299963 [01:21:50]quantity*price = 5000 [01:21:50]sum+1 = 5001 [01:21:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 20 29.07.2024 01:22 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69316 ФПД: 98214825702372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T012202&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69316&fm=98214825702372&tin=02508201610067®Number=0000000000092638&sum=5000 0 [01:21:51]StoreToDocumentArchive [01:21:51]shift 430 fd 69316 [01:21:51]save to /storage/0430/doc_00069316 [01:21:51]save last doc name /storage/0430/doc_00069316 to /storage/kkm_last_doc_name [01:21:51]save OK [01:21:51]Clear old archive folders... [01:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=269 [01:21:51]tlvbuf is 00B2BB00 [01:21:51]SAM_PROTO_ClearQueue [01:21:51]wFMCommunicate request_size=4 [01:21:51]MH_SAM_APDU [01:21:51]CAPDU: 80 09 00 00 [01:21:51]Write to MH i2c: E2 08 00 BD 6A 80 09 00 00 00 00 00 00 99 [01:21:51]Write i2c OK [01:21:51]MH_I2C_Read... [01:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:21:51]Read from MH i2c: E2 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 03 00 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 03 00 BD 6A 00 90 00 9B [01:21:51]RAPDU: 90 00 [01:21:51]wFMCommunicate OK [01:21:51]SAM_PROTO_ClearQueue done [01:21:51]KKMCreateOFDPacket [01:21:51]OFDProtocolAddRootSTLVToBuf [01:21:51]FM_MakeSignedData [01:21:51]FM_MakeSignedData [01:21:51]SAM_PROTO_SignData [01:21:51]wFMCommunicate request_size=4 [01:21:51]MH_SAM_APDU [01:21:51]CAPDU: 80 0D 01 02 [01:21:51]Write to MH i2c: E2 08 00 BE 6A 80 0D 01 02 00 00 00 00 A1 [01:21:51]Write i2c OK [01:21:51]MH_I2C_Read... [01:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:21:51]Read from MH i2c: E2 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 03 00 [01:21:51]MH_I2C_Read... [01:21:51]Read from MH i2c: E2 03 00 BE 6A 00 90 00 9C [01:21:51]RAPDU: 90 00 [01:21:51]wFMCommunicate OK [01:21:51]wFMCommunicate request_size=255 [01:21:51]MH_SAM_APDU [01:21:51]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BA EE A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [01:21:51]Write to MH i2c: E2 02 01 BF 6A 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BA EE A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 32 [01:21:52]Write i2c OK [01:21:52]MH_I2C_Read... [01:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:52]Read from MH i2c: E2 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: E2 03 00 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: E2 03 00 BF 6A 00 90 00 9D [01:21:52]RAPDU: 90 00 [01:21:52]wFMCommunicate OK [01:21:52]wFMCommunicate request_size=28 [01:21:52]MH_SAM_APDU [01:21:52]CAPDU: 80 0D 02 02 17 37 34 39 34 39 10 04 04 00 C4 0E 01 00 35 04 06 00 59 53 6B CC 33 E4 [01:21:52]Write to MH i2c: E2 1F 00 C0 6A 80 0D 02 02 17 00 37 34 39 34 39 10 04 04 00 C4 0E 01 00 35 04 06 00 59 53 6B CC 33 E4 00 00 07 [01:21:52]Write i2c OK [01:21:52]MH_I2C_Read... [01:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:52]Read from MH i2c: E2 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: E2 03 00 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: E2 03 00 C0 6A 00 90 00 9E [01:21:52]RAPDU: 90 00 [01:21:52]wFMCommunicate OK [01:21:52]wFMCommunicate request_size=4 [01:21:52]MH_SAM_APDU [01:21:52]CAPDU: 80 0D 03 02 [01:21:52]Write to MH i2c: E2 08 00 C1 6A 80 0D 03 02 00 00 00 00 A6 [01:21:52]Write i2c OK [01:21:52]MH_I2C_Read... [01:21:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:21:52]Read from MH i2c: E2 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: E2 0B 00 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: E2 0B 00 C1 6A 00 C8 9B 05 81 48 D5 0E 19 90 00 D4 [01:21:52]RAPDU: C8 9B 05 81 48 D5 0E 19 90 00 [01:21:52]wFMCommunicate OK [01:21:52]SAM_PROTO_SignData done [01:21:52]FM_MakeSignedData done [01:21:52]CreateOFDProtocolMessage [01:21:52]wFMCommunicate request_size=4 [01:21:52]MH_SAM_APDU [01:21:52]CAPDU: 80 11 00 00 [01:21:52]Write to MH i2c: E2 08 00 C2 6A 80 11 00 00 00 00 00 00 A6 [01:21:52]Write i2c OK [01:21:52]MH_I2C_Read... [01:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:52]Read from MH i2c: E2 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: E2 17 00 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: E2 17 00 C2 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 02 [01:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:21:52]wFMCommunicate OK [01:21:52]CreateOFDProtocolMessage done [01:21:52]OFDSenderStorePacket 69316 [01:21:52]StoreOFDPacket docnum=69316 [01:21:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 21 01 00 00 51 C1 19 01 72 B1 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BA EE A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C4 0E 01 00 35 04 06 00 59 53 6B CC 33 E4 C8 9B 05 81 48 D5 0E 19 [01:21:52]CheckFolder [01:21:52]dirname=/storage/ofd_packets [01:21:52]CheckFolder done [01:21:52]ProducePacketName [01:21:52]name=ofd_packets/00069316 [01:21:52]NVStorageSaveData ofd_packets/00069316 [01:21:52]File name is /storage/ofd_packets/00069316 [01:21:52]Write 319 bytes [01:21:52]NVStorageSaveData done [01:21:52]OFDSenderStorePacket done [01:21:52]KKMCreateOFDPacket done [01:21:52]NVStorageSaveData kkm_last_timestamp [01:21:52]File name is /storage/kkm_last_timestamp [01:21:52]Write 4 bytes [01:21:52]NVStorageSaveData done [01:21:52]ExternCall_PrintAddStr [01:21:52]wPrintStart [01:21:52]Write to MH i2c: 01 00 00 C3 6A 2D [01:21:52]OFD Sender: Processing packet 69316 [packets to send 19, broken 18] [01:21:52]ProducePacketName [01:21:52]name=ofd_packets/00069316 [01:21:52]OFD Sender: To server: pG, [01:21:52]CommunicateWithHost lk.salyk.kg:30040 [01:21:52]ConnectInit lk.salyk.kg [01:21:52]Write i2c OK [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: 01 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: 01 07 00 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: 01 07 00 C3 6A 00 00 00 00 00 FF 0F 42 [01:21:52]RasterBufferAndPrint [01:21:52]line Счет N : (3)136646 [01:21:52]line ИНН: 02508201610067 [01:21:52]line Контрольно-Кассовый Чек [01:21:52]line ПРОДАЖА [01:21:52]line Товар: 4700000160358 [01:21:52]line Вода Легенда 1л [01:21:52]line 1.000 * 50.00 [01:21:52]line = 50.00 [01:21:52]line НДС 12% НСП 1% [01:21:52]line > о реализуемом товаре [01:21:52]line ИТОГО: 50.00 [01:21:52]line НСП 1% : 0.44 [01:21:52]line НДС 12% : 5.31 [01:21:52]line Наличными: 50.00 [01:21:52]line Безнал.: 0.00 [01:21:52]line Место: АЗС № 125 "Партнер Нефть" [01:21:52]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [01:21:52]line СНО: Общий режим [01:21:52]line Чек 20 29.07.2024 01:22 [01:21:52]line Смена: 430 ФФД: 1.0 [01:21:52]line ЗНМ: 0300000049 [01:21:52]line РНМ: 0000000000092638 [01:21:52]line Версия ККМ: 001 [01:21:52]line ФМ: 0000000000874949 [01:21:52]line ФД: 69316 [01:21:52]line ФПД: 98214825702372 [01:21:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T012202&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69316&fm=98214825702372&tin=02508201610067®Number=0000000000092638&sum=5000 [01:21:52]line 0 [01:21:52]written 0, free lines is 4095 [01:21:52]Connected sock=10 [01:21:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 21 01 00 00 51 C1 19 01 72 B1 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BA EE A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C4 0E 01 00 35 04 06 00 59 53 6B CC 33 E4 C8 9B 05 81 48 D5 0E 19 [01:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 FF 6C 47 00 A1 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C4 0E 01 00 F4 03 04 00 28 95 A6 66 B6 04 01 00 00 A4 34 28 4F FA 4E FF 1B [01:21:52]CommunicateWithHost err = 0 [01:21:52]CheckOFDResponse [01:21:52]1017 (14) - 77093643461234 [01:21:52]1041 (16) - 0000000000874949 [01:21:52]1040 (4) - 69316 [01:21:52]1012 (4) - 28.07.2024 18:59 [01:21:52]1206 (1) - 0 [01:21:52]OFD Sender: Remove packet 69316 [01:21:52]ProducePacketName [01:21:52]name=ofd_packets/00069316 [01:21:52]NVStorageDeleteData [01:21:52]Write to MH i2c: 01 00 00 EB 6A 55 [01:21:52]Write i2c OK [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: 01 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: 01 07 00 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: 01 07 00 EB 6A 00 00 00 00 00 23 0D 8C [01:21:52]RasterBufferAndPrint [01:21:52]line [01:21:52]line [01:21:52]line [01:21:52]line [01:21:52]line [01:21:52]written 0, free lines is 3369 [01:21:52]MH_Cut [01:21:52]Write to MH i2c: D1 01 00 F2 6A 01 2E [01:21:52]Write i2c OK [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: D1 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: D1 01 00 [01:21:52]MH_I2C_Read... [01:21:52]Read from MH i2c: D1 01 00 F2 6A 00 2D [01:21:52]Write to MH i2c: 01 00 00 F3 6A 5D [01:21:52]Write i2c OK [01:21:52]MH_I2C_Read... [01:21:53]OFD Sender: No OFD packet to send [01:21:53]*** Cut start [01:21:53]*** Partial cut [01:21:53]*** CUTSNS_PIN = 1 [01:21:53]*** CUTSNS_PIN = 0 [01:21:53]*** Brake cut motor [01:21:54]Read from MH i2c: 01 [01:21:54]MH_I2C_Read... [01:21:54]*** Stop cut motor [01:21:54]*** Cut end [01:21:54]Read from MH i2c: 01 07 00 [01:21:54]MH_I2C_Read... [01:21:54]Read from MH i2c: 01 07 00 F3 6A 00 00 00 00 00 FF 0F 72 [01:21:54]process_action close_receipt done [01:21:54]requested_data is exist [01:21:54]produce_requested_data [01:21:54]requested_item fm.sn is exist - process it [01:21:54]wFMCommunicate request_size=4 [01:21:54]MH_SAM_APDU [01:21:54]CAPDU: 80 11 00 00 [01:21:54]Write to MH i2c: E2 08 00 F4 6A 80 11 00 00 00 00 00 00 D8 [01:21:54]Write i2c OK [01:21:54]MH_I2C_Read... [01:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:54]Read from MH i2c: E2 [01:21:54]MH_I2C_Read... [01:21:54]Read from MH i2c: E2 17 00 [01:21:54]MH_I2C_Read... [01:21:54]Read from MH i2c: E2 17 00 F4 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 34 [01:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:21:54]wFMCommunicate OK [01:21:54]requested_item fd.num is exist - process it [01:21:54]SAM_PROTO_GetFieldsCounters [01:21:54]wFMCommunicate request_size=4 [01:21:54]MH_SAM_APDU [01:21:54]CAPDU: 80 13 00 00 [01:21:54]Write to MH i2c: E2 08 00 F5 6A 80 13 00 00 00 00 00 00 DB [01:21:54]Write i2c OK [01:21:54]MH_I2C_Read... [01:21:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:21:54]Read from MH i2c: E2 [01:21:54]MH_I2C_Read... [01:21:54]Read from MH i2c: E2 62 00 [01:21:54]MH_I2C_Read... [01:21:54]Read from MH i2c: E2 62 00 F5 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C4 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [01:21:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C4 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:21:54]wFMCommunicate OK [01:21:54]SAM_PROTO_GetFieldsCounters done [01:21:54]requested_item shift.num is exist - process it [01:21:54]requested_item shift.opened is exist - process it [01:21:54]req_shift_opened [01:21:54]FM_GetShiftState [01:21:54]SAM_PROTO_GetShiftState [01:21:54]wFMCommunicate request_size=4 [01:21:54]MH_SAM_APDU [01:21:54]CAPDU: 80 13 01 00 [01:21:54]Write to MH i2c: E2 08 00 F6 6A 80 13 01 00 00 00 00 00 DD [01:21:54]Write i2c OK [01:21:54]MH_I2C_Read... [01:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:54]Read from MH i2c: E2 [01:21:54]MH_I2C_Read... [01:21:54]Read from MH i2c: E2 0E 00 [01:21:54]MH_I2C_Read... [01:21:54]Read from MH i2c: E2 0E 00 F6 6A 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 94 [01:21:54]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:21:54]wFMCommunicate OK [01:21:54]SAM_PROTO_GetShiftState done [01:21:54]FM_GetShiftState done [01:21:54]req_shift_opened done [01:21:54]requested_item shift.open_date is exist - process it [01:21:54]req_shift_open_date [01:21:54]req_shift_open_date done [01:21:54]produce_requested_data done [01:21:54]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69316,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [01:21:54]process_action_free close_receipt [01:21:54]json_value_free [01:21:54]json_value_free done [01:21:54]process_json_proto returns [01:21:54]Send response to host [01:21:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69316,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [01:21:54]free response buf [01:21:54]execute_script done [01:21:54]execute_script returns [01:21:54]free content buf [01:21:54]Sock 9.Close socket [01:21:54]Sock 9.Thread stoped [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]accept exits with 7 [01:26:23]New connection [01:26:23]New thread 3066641764 created [01:26:23]Thread 3066785124 joined [01:26:23]Waiting for new connection... [01:26:23] Sock 7.Parse request [01:26:23]Sock 7.Check first char [01:26:23]Sock 7.First char is OK [01:26:23]request: POST /json_proto HTTP/1.0 [01:26:23]Method: POST [01:26:23]URL: /json_proto [01:26:23]Method is POST - this is cgi request [01:26:23]url: /json_proto [01:26:23]query_string will be loaded in cgi processing [01:26:23]execute_cgi json_proto POST (null) [01:26:23]execute_cgi path=json_proto method=POST [01:26:23]POST find Content-Length [01:26:23]Host: 172.17.49.132:8080 [01:26:23]Content-Length: 1559 [01:26:23]Content-Type: application/json [01:26:23] [01:26:23]POST finish read [01:26:23]Found Content-Length = 1559 [01:26:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136647", "tax_sys" : 0, "items" : [ { "code": "4700001610043", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 1,5\u043B \u041F\u042D\u0422", "price" : 325.00, "quantity" : 1.000, "sum" : 325.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 576.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:23]execute_script... [01:26:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136647", "tax_sys" : 0, "items" : [ { "code": "4700001610043", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 1,5\u043B \u041F\u042D\u0422", "price" : 325.00, "quantity" : 1.000, "sum" : 325.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 576.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:23]POST & json_proto [01:26:23]process_json_proto [01:26:23]json parsed OK: [01:26:23]protocol is kg_v1.0 [01:26:23]action value=close_receipt [01:26:23]process_action close_receipt [01:26:23]cmd_close_receipt [01:26:23]MH_GetDate [01:26:23]Write to MH i2c: F0 00 00 F7 6A 50 [01:26:23]Write i2c OK [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: F0 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: F0 09 00 [01:26:23]MH_I2C_Read... [01:26:23]OFD Sender: No OFD packet to send [01:26:23]Read from MH i2c: F0 09 00 F7 6A 00 CB EF A6 66 E7 4B C0 64 75 [01:26:23]GetLastDocTimeStamp 1722216122 [01:26:23]current date 1722216395 [01:26:23]FM_GetShiftState [01:26:23]SAM_PROTO_GetShiftState [01:26:23]wFMCommunicate request_size=4 [01:26:23]MH_SAM_APDU [01:26:23]CAPDU: 80 13 01 00 [01:26:23]Write to MH i2c: E2 08 00 F8 6A 80 13 01 00 00 00 00 00 DF [01:26:23]Write i2c OK [01:26:23]MH_I2C_Read... [01:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:23]Read from MH i2c: E2 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 0E 00 [01:26:23]MH_I2C_Read... [01:26:23]Read from MH i2c: E2 0E 00 F8 6A 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 96 [01:26:23]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:26:23]wFMCommunicate OK [01:26:23]SAM_PROTO_GetShiftState done [01:26:23]FM_GetShiftState done [01:26:23]opened in 1722213563 [01:26:23]opened+sec_in_day 1722299963 [01:26:23]quantity*price = 32500 [01:26:23]sum+1 = 32501 [01:26:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480357 Пиво шахтерское 1л ПЭТ 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 3.000 * 7.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 576.00 НСП 1% : 5.10 НДС 12% : 61.16 Наличными: 576.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 21 29.07.2024 01:26 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69317 ФПД: 119881578218845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T012636&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69317&fm=119881578218845&tin=02508201610067®Number=0000000000092638&sum=57600 0 [01:26:24]StoreToDocumentArchive [01:26:24]shift 430 fd 69317 [01:26:24]save to /storage/0430/doc_00069317 [01:26:24]save last doc name /storage/0430/doc_00069317 to /storage/kkm_last_doc_name [01:26:24]save OK [01:26:24]Clear old archive folders... [01:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=634 [01:26:24]tlvbuf is 00BAB450 [01:26:24]SAM_PROTO_ClearQueue [01:26:24]wFMCommunicate request_size=4 [01:26:24]MH_SAM_APDU [01:26:24]CAPDU: 80 09 00 00 [01:26:24]Write to MH i2c: E2 08 00 05 6B 80 09 00 00 00 00 00 00 E2 [01:26:24]Write i2c OK [01:26:24]MH_I2C_Read... [01:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:26:25]Read from MH i2c: E2 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 03 00 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 03 00 05 6B 00 90 00 E4 [01:26:25]RAPDU: 90 00 [01:26:25]wFMCommunicate OK [01:26:25]SAM_PROTO_ClearQueue done [01:26:25]KKMCreateOFDPacket [01:26:25]OFDProtocolAddRootSTLVToBuf [01:26:25]FM_MakeSignedData [01:26:25]FM_MakeSignedData [01:26:25]SAM_PROTO_SignData [01:26:25]wFMCommunicate request_size=4 [01:26:25]MH_SAM_APDU [01:26:25]CAPDU: 80 0D 01 02 [01:26:25]Write to MH i2c: E2 08 00 06 6B 80 0D 01 02 00 00 00 00 EA [01:26:25]Write i2c OK [01:26:25]MH_I2C_Read... [01:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:26:25]Read from MH i2c: E2 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 03 00 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 03 00 06 6B 00 90 00 E5 [01:26:25]RAPDU: 90 00 [01:26:25]wFMCommunicate OK [01:26:25]wFMCommunicate request_size=255 [01:26:25]MH_SAM_APDU [01:26:25]CAPDU: 80 0D 02 02 FA 03 00 7A 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 [01:26:25]Write to MH i2c: E2 02 01 07 6B 80 0D 02 02 FA 00 03 00 7A 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 00 00 53 [01:26:25]Write i2c OK [01:26:25]MH_I2C_Read... [01:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:25]Read from MH i2c: E2 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 03 00 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 03 00 07 6B 00 90 00 E6 [01:26:25]RAPDU: 90 00 [01:26:25]wFMCommunicate OK [01:26:25]wFMCommunicate request_size=255 [01:26:25]MH_SAM_APDU [01:26:25]CAPDU: 80 0D 02 02 FA D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [01:26:25]Write to MH i2c: E2 02 01 08 6B 80 0D 02 02 FA 00 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 62 [01:26:25]Write i2c OK [01:26:25]MH_I2C_Read... [01:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:25]Read from MH i2c: E2 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 03 00 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 03 00 08 6B 00 90 00 E7 [01:26:25]RAPDU: 90 00 [01:26:25]wFMCommunicate OK [01:26:25]wFMCommunicate request_size=143 [01:26:25]MH_SAM_APDU [01:26:25]CAPDU: 80 0D 02 02 8A FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 17 00 00 00 00 07 04 06 00 00 E1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 CC EF A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C5 0E 01 00 35 04 06 00 6D 08 1A E2 85 5D [01:26:25]Write to MH i2c: E2 92 00 09 6B 80 0D 02 02 8A 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 17 00 00 00 00 07 04 06 00 00 E1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 CC EF A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C5 0E 01 00 35 04 06 00 6D 08 1A E2 85 5D 00 00 C8 [01:26:25]Write i2c OK [01:26:25]MH_I2C_Read... [01:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:25]Read from MH i2c: E2 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 03 00 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 03 00 09 6B 00 90 00 E8 [01:26:25]RAPDU: 90 00 [01:26:25]wFMCommunicate OK [01:26:25]wFMCommunicate request_size=4 [01:26:25]MH_SAM_APDU [01:26:25]CAPDU: 80 0D 03 02 [01:26:25]Write to MH i2c: E2 08 00 0A 6B 80 0D 03 02 00 00 00 00 F0 [01:26:25]Write i2c OK [01:26:25]MH_I2C_Read... [01:26:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:26:25]Read from MH i2c: E2 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 0B 00 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 0B 00 0A 6B 00 62 38 4C 5F 0A B3 3E 13 90 00 44 [01:26:25]RAPDU: 62 38 4C 5F 0A B3 3E 13 90 00 [01:26:25]wFMCommunicate OK [01:26:25]SAM_PROTO_SignData done [01:26:25]FM_MakeSignedData done [01:26:25]CreateOFDProtocolMessage [01:26:25]wFMCommunicate request_size=4 [01:26:25]MH_SAM_APDU [01:26:25]CAPDU: 80 11 00 00 [01:26:25]Write to MH i2c: E2 08 00 0B 6B 80 11 00 00 00 00 00 00 F0 [01:26:25]Write i2c OK [01:26:25]MH_I2C_Read... [01:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:25]Read from MH i2c: E2 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 17 00 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: E2 17 00 0B 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 4C [01:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:26:25]wFMCommunicate OK [01:26:25]CreateOFDProtocolMessage done [01:26:25]OFDSenderStorePacket 69317 [01:26:25]StoreOFDPacket docnum=69317 [01:26:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 8E 02 00 00 8D 8E 86 02 5A B3 5A 03 01 00 03 00 7A 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 17 00 00 00 00 07 04 06 00 00 E1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 CC EF A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C5 0E 01 00 35 04 06 00 6D 08 1A E2 85 5D 62 38 4C 5F 0A B3 3E 13 [01:26:25]CheckFolder [01:26:25]dirname=/storage/ofd_packets [01:26:25]CheckFolder done [01:26:25]ProducePacketName [01:26:25]name=ofd_packets/00069317 [01:26:25]NVStorageSaveData ofd_packets/00069317 [01:26:25]File name is /storage/ofd_packets/00069317 [01:26:25]Write 684 bytes [01:26:25]NVStorageSaveData done [01:26:25]OFDSenderStorePacket done [01:26:25]KKMCreateOFDPacket done [01:26:25]NVStorageSaveData kkm_last_timestamp [01:26:25]File name is /storage/kkm_last_timestamp [01:26:25]Write 4 bytes [01:26:25]NVStorageSaveData done [01:26:25]ExternCall_PrintAddStr [01:26:25]wPrintStart [01:26:25]Write to MH i2c: 01 00 00 0C 6B 77 [01:26:25]Write i2c OK [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: 01 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: 01 07 00 [01:26:25]MH_I2C_Read... [01:26:25]Read from MH i2c: 01 07 00 0C 6B 00 00 00 00 00 FF 0F 8C [01:26:25]RasterBufferAndPrint [01:26:25]line Счет N : (3)136647 [01:26:25]line ИНН: 02508201610067 [01:26:25]line Контрольно-Кассовый Чек [01:26:25]line ПРОДАЖА [01:26:25]line Товар: 4700001610043 [01:26:25]line Пиво Арпа 1,5л ПЭТ [01:26:25]line 1.000 * 325.00 [01:26:25]line = 325.00 [01:26:25]line НДС 12% НСП 1% [01:26:25]line > о реализуемом товаре [01:26:25]line Товар: 4700000480357 [01:26:26]line Пиво шахтерское 1л ПЭТ [01:26:26]line 1.000 * 170.00 [01:26:26]line = 170.00 [01:26:26]line НДС 12% НСП 1% [01:26:26]line > о реализуемом товаре [01:26:26]line Товар: 2000053020015 [01:26:26]line Бумажные стаканы 250мл 1шт [01:26:26]line 3.000 * 7.00 [01:26:26]line = 21.00 [01:26:26]line НДС 12% НСП 1% [01:26:26]line > о реализуемом товаре [01:26:26]line Товар: 4700000160792 [01:26:26]line Снек Курут классический (круглый) [01:26:26]line 1.000 * 60.00 [01:26:26]line = 60.00 [01:26:26]line НДС 12% НСП 1% [01:26:26]line > о реализуемом товаре [01:26:26]line ИТОГО: 576.00 [01:26:26]line НСП 1% : 5.10 [01:26:26]line НДС 12% : 61.16 [01:26:26]line Наличными: 576.00 [01:26:26]line Безнал.: 0.00 [01:26:26]line Место: АЗС № 125 "Партнер Нефть" [01:26:26]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [01:26:26]line СНО: Общий режим [01:26:26]line Чек 21 29.07.2024 01:26 [01:26:26]line Смена: 430 ФФД: 1.0 [01:26:26]line ЗНМ: 0300000049 [01:26:26]line РНМ: 0000000000092638 [01:26:26]line Версия ККМ: 001 [01:26:26]line ФМ: 0000000000874949 [01:26:26]line ФД: 69317 [01:26:26]line ФПД: 119881578218845 [01:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T012636&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69317&fm=119881578218845&tin=02508201610067®Number=0000000000092638&sum=57600 [01:26:26]line 0 [01:26:26]OFD Sender: Processing packet 69317 [packets to send 19, broken 18] [01:26:26]ProducePacketName [01:26:26]name=ofd_packets/00069317 [01:26:26]OFD Sender: To server: pG, [01:26:26]CommunicateWithHost lk.salyk.kg:30040 [01:26:26]ConnectInit lk.salyk.kg [01:26:26]written 0, free lines is 4095 [01:26:26]Connected sock=10 [01: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 39 34 39 8E 02 00 00 8D 8E 86 02 5A B3 5A 03 01 00 03 00 7A 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 FC 03 06 00 00 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 17 00 00 00 00 07 04 06 00 00 E1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 CC EF A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C5 0E 01 00 35 04 06 00 6D 08 1A E2 85 5D 62 38 4C 5F 0A B3 3E 13 [01: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 39 34 39 4F 00 00 00 58 94 47 00 82 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C5 0E 01 00 F4 03 04 00 3A 96 A6 66 B6 04 01 00 00 08 72 20 02 FE 37 87 5F [01:26:26]CommunicateWithHost err = 0 [01:26:26]CheckOFDResponse [01:26:26]1017 (14) - 77093643461234 [01:26:26]1041 (16) - 0000000000874949 [01:26:26]1040 (4) - 69317 [01:26:26]1012 (4) - 28.07.2024 19:04 [01:26:26]1206 (1) - 0 [01:26:26]OFD Sender: Remove packet 69317 [01:26:26]ProducePacketName [01:26:26]name=ofd_packets/00069317 [01:26:26]NVStorageDeleteData [01:26:26]Write to MH i2c: 01 00 00 48 6B B3 [01:26:26]Write i2c OK [01:26:26]MH_I2C_Read... [01:26:26]Read from MH i2c: 01 [01:26:26]MH_I2C_Read... [01:26:26]Read from MH i2c: 01 07 00 [01:26:26]MH_I2C_Read... [01:26:26]Read from MH i2c: 01 07 00 48 6B 00 00 00 00 00 19 0C DF [01:26:26]RasterBufferAndPrint [01:26:26]line [01:26:26]line [01:26:26]line [01:26:26]line [01:26:26]line [01:26:26]written 0, free lines is 3110 [01:26:26]MH_Cut [01:26:26]Write to MH i2c: D1 01 00 4F 6B 01 8C [01:26:26]Write i2c OK [01:26:26]MH_I2C_Read... [01:26:26]Read from MH i2c: D1 [01:26:26]MH_I2C_Read... [01:26:26]Read from MH i2c: D1 01 00 [01:26:26]MH_I2C_Read... [01:26:26]Read from MH i2c: D1 01 00 4F 6B 00 8B [01:26:26]Write to MH i2c: 01 00 00 50 6B BB [01:26:26]Write i2c OK [01:26:26]MH_I2C_Read... [01:26:27]OFD Sender: No OFD packet to send [01:26:27]*** Cut start [01:26:27]*** Partial cut [01:26:27]*** CUTSNS_PIN = 1 [01:26:27]*** CUTSNS_PIN = 0 [01:26:27]*** Brake cut motor [01:26:28]Read from MH i2c: 01 [01:26:28]MH_I2C_Read... [01:26:28]*** Stop cut motor [01:26:28]*** Cut end [01:26:28]Read from MH i2c: 01 07 00 [01:26:28]MH_I2C_Read... [01:26:28]Read from MH i2c: 01 07 00 50 6B 00 00 00 00 00 FF 0F D0 [01:26:28]process_action close_receipt done [01:26:28]requested_data is exist [01:26:28]produce_requested_data [01:26:28]requested_item fm.sn is exist - process it [01:26:28]wFMCommunicate request_size=4 [01:26:28]MH_SAM_APDU [01:26:28]CAPDU: 80 11 00 00 [01:26:28]Write to MH i2c: E2 08 00 51 6B 80 11 00 00 00 00 00 00 36 [01:26:28]Write i2c OK [01:26:28]MH_I2C_Read... [01:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:28]Read from MH i2c: E2 [01:26:28]MH_I2C_Read... [01:26:28]Read from MH i2c: E2 17 00 [01:26:28]MH_I2C_Read... [01:26:28]Read from MH i2c: E2 17 00 51 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 92 [01:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:26:28]wFMCommunicate OK [01:26:28]requested_item fd.num is exist - process it [01:26:28]SAM_PROTO_GetFieldsCounters [01:26:28]wFMCommunicate request_size=4 [01:26:28]MH_SAM_APDU [01:26:28]CAPDU: 80 13 00 00 [01:26:28]Write to MH i2c: E2 08 00 52 6B 80 13 00 00 00 00 00 00 39 [01:26:28]Write i2c OK [01:26:28]MH_I2C_Read... [01:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:28]Read from MH i2c: E2 [01:26:28]MH_I2C_Read... [01:26:28]Read from MH i2c: E2 62 00 [01:26:28]MH_I2C_Read... [01:26:28]Read from MH i2c: E2 62 00 52 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C5 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [01: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C5 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:26:28]wFMCommunicate OK [01:26:28]SAM_PROTO_GetFieldsCounters done [01:26:28]requested_item shift.num is exist - process it [01:26:28]requested_item shift.opened is exist - process it [01:26:28]req_shift_opened [01:26:28]FM_GetShiftState [01:26:28]SAM_PROTO_GetShiftState [01:26:28]wFMCommunicate request_size=4 [01:26:28]MH_SAM_APDU [01:26:28]CAPDU: 80 13 01 00 [01:26:28]Write to MH i2c: E2 08 00 53 6B 80 13 01 00 00 00 00 00 3B [01:26:28]Write i2c OK [01:26:28]MH_I2C_Read... [01:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:28]Read from MH i2c: E2 [01:26:28]MH_I2C_Read... [01:26:28]Read from MH i2c: E2 0E 00 [01:26:28]MH_I2C_Read... [01:26:28]Read from MH i2c: E2 0E 00 53 6B 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 F2 [01:26:28]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:26:28]wFMCommunicate OK [01:26:28]SAM_PROTO_GetShiftState done [01:26:28]FM_GetShiftState done [01:26:28]req_shift_opened done [01:26:28]requested_item shift.open_date is exist - process it [01:26:28]req_shift_open_date [01:26:28]req_shift_open_date done [01:26:28]produce_requested_data done [01:26:28]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69317,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [01:26:28]process_action_free close_receipt [01:26:28]json_value_free [01:26:28]json_value_free done [01:26:28]process_json_proto returns [01:26:28]Send response to host [01:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69317,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [01:26:28]free response buf [01:26:28]execute_script done [01:26:28]execute_script returns [01:26:28]free content buf [01:26:28]Sock 7.Close socket [01:26:28]Sock 7.Thread stoped [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:01]accept exits with 9 [01:32:01]New connection [01:32:01]New thread 3066785124 created [01:32:01]Thread 3066641764 joined [01:32:01]Waiting for new connection... [01:32:01] Sock 9.Parse request [01:32:01]Sock 9.Check first char [01:32:01]Sock 9.First char is OK [01:32:01]request: POST /json_proto HTTP/1.0 [01:32:01]Method: POST [01:32:01]URL: /json_proto [01:32:01]Method is POST - this is cgi request [01:32:01]url: /json_proto [01:32:01]query_string will be loaded in cgi processing [01:32:01]execute_cgi json_proto POST (null) [01:32:01]execute_cgi path=json_proto method=POST [01:32:01]POST find Content-Length [01:32:01]Host: 172.17.49.132:8080 [01:32:01]Content-Length: 1472 [01:32:01]Content-Type: application/json [01:32:01] [01:32:01]POST finish read [01:32:01]Found Content-Length = 1472 [01:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136648", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004760", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard black cherry \u0441\u04420,44\u043B", "price" : 120.00, "quantity" : 2.000, "sum" : 240.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 }]} ], "payments": [ { "type": 0, "sum" : 601.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:01]execute_script... [01:32:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136648", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004760", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard black cherry \u0441\u04420,44\u043B", "price" : 120.00, "quantity" : 2.000, "sum" : 240.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 }]} ], "payments": [ { "type": 0, "sum" : 601.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:01]POST & json_proto [01:32:01]process_json_proto [01:32:01]json parsed OK: [01:32:01]protocol is kg_v1.0 [01:32:01]action value=close_receipt [01:32:01]process_action close_receipt [01:32:01]cmd_close_receipt [01:32:01]MH_GetDate [01:32:01]Write to MH i2c: F0 00 00 54 6B AE [01:32:01]Write i2c OK [01:32:01]MH_I2C_Read... [01:32:01]Read from MH i2c: F0 [01:32:01]MH_I2C_Read... [01:32:01]Read from MH i2c: F0 09 00 [01:32:01]MH_I2C_Read... [01:32:01]Read from MH i2c: F0 09 00 54 6B 00 1D F1 A6 66 E7 4B C0 64 27 [01:32:01]GetLastDocTimeStamp 1722216396 [01:32:01]current date 1722216733 [01:32:01]FM_GetShiftState [01:32:01]SAM_PROTO_GetShiftState [01:32:01]wFMCommunicate request_size=4 [01:32:01]MH_SAM_APDU [01:32:01]CAPDU: 80 13 01 00 [01:32:01]Write to MH i2c: E2 08 00 55 6B 80 13 01 00 00 00 00 00 3D [01:32:01]Write i2c OK [01:32:01]MH_I2C_Read... [01:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:01]Read from MH i2c: E2 [01:32:01]MH_I2C_Read... [01:32:01]Read from MH i2c: E2 0E 00 [01:32:01]MH_I2C_Read... [01:32:01]Read from MH i2c: E2 0E 00 55 6B 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 F4 [01:32:01]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:32:01]wFMCommunicate OK [01:32:01]SAM_PROTO_GetShiftState done [01:32:01]FM_GetShiftState done [01:32:01]opened in 1722213563 [01:32:01]opened+sec_in_day 1722299963 [01:32:01]quantity*price = 15100 [01:32:01]sum+1 = 15101 [01:32:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230607 Сигареты Richmond Bronze Edition 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870145004760 Напиток Garage hard black cherry ст0,44л 2.000 * 120.00 = 240.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 601.00 НСП 1% : 5.32 НДС 12% : 63.82 Наличными: 601.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 22 29.07.2024 01:32 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69318 ФПД: 232211454600143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T013213&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69318&fm=232211454600143&tin=02508201610067®Number=0000000000092638&sum=60100 0 [01:32:02]StoreToDocumentArchive [01:32:02]shift 430 fd 69318 [01:32:02]save to /storage/0430/doc_00069318 [01:32:02]save last doc name /storage/0430/doc_00069318 to /storage/kkm_last_doc_name [01:32:02]save OK [01:32:02]Clear old archive folders... [01:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=636 [01:32:02]tlvbuf is 00B2DFC0 [01:32:02]SAM_PROTO_ClearQueue [01:32:02]wFMCommunicate request_size=4 [01:32:02]MH_SAM_APDU [01:32:02]CAPDU: 80 09 00 00 [01:32:02]Write to MH i2c: E2 08 00 62 6B 80 09 00 00 00 00 00 00 3F [01:32:02]Write i2c OK [01:32:02]MH_I2C_Read... [01:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:32:02]Read from MH i2c: E2 [01:32:02]MH_I2C_Read... [01:32:02]Read from MH i2c: E2 03 00 [01:32:02]MH_I2C_Read... [01:32:02]Read from MH i2c: E2 03 00 62 6B 00 90 00 41 [01:32:02]RAPDU: 90 00 [01:32:02]wFMCommunicate OK [01:32:02]SAM_PROTO_ClearQueue done [01:32:02]KKMCreateOFDPacket [01:32:02]OFDProtocolAddRootSTLVToBuf [01:32:02]FM_MakeSignedData [01:32:02]FM_MakeSignedData [01:32:02]SAM_PROTO_SignData [01:32:02]wFMCommunicate request_size=4 [01:32:02]MH_SAM_APDU [01:32:02]CAPDU: 80 0D 01 02 [01:32:02]Write to MH i2c: E2 08 00 63 6B 80 0D 01 02 00 00 00 00 47 [01:32:02]Write i2c OK [01:32:02]MH_I2C_Read... [01:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:32:02]Read from MH i2c: E2 [01:32:02]MH_I2C_Read... [01:32:02]Read from MH i2c: E2 03 00 [01:32:02]MH_I2C_Read... [01:32:02]Read from MH i2c: E2 03 00 63 6B 00 90 00 42 [01:32:02]RAPDU: 90 00 [01:32:02]wFMCommunicate OK [01:32:02]wFMCommunicate request_size=255 [01:32:02]MH_SAM_APDU [01:32:02]CAPDU: 80 0D 02 02 FA 03 00 7C 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 36 30 06 04 32 00 D0 9D D0 B0 D0 [01:32:02]Write to MH i2c: E2 02 01 64 6B 80 0D 02 02 FA 00 03 00 7C 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 36 30 06 04 32 00 D0 9D D0 B0 D0 00 00 15 [01:32:02]Write i2c OK [01:32:02]MH_I2C_Read... [01:32:03]Read from MH i2c: E2 [01:32:03]MH_I2C_Read... [01:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:03]Read from MH i2c: E2 03 00 [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: E2 03 00 64 6B 00 90 00 43 [01:32:03]RAPDU: 90 00 [01:32:03]wFMCommunicate OK [01:32:03]wFMCommunicate request_size=255 [01:32:03]MH_SAM_APDU [01:32:03]CAPDU: 80 0D 02 02 FA BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 62 6C 61 63 6B 20 63 68 65 72 72 79 20 D1 81 D1 82 30 2C 34 34 D0 BB 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 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 FC 03 06 00 C4 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [01:32:03]Write to MH i2c: E2 02 01 65 6B 80 0D 02 02 FA 00 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 62 6C 61 63 6B 20 63 68 65 72 72 79 20 D1 81 D1 82 30 2C 34 34 D0 BB 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 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 FC 03 06 00 C4 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 2A [01:32:03]Write i2c OK [01:32:03]MH_I2C_Read... [01:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:03]Read from MH i2c: E2 [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: E2 03 00 [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: E2 03 00 65 6B 00 90 00 44 [01:32:03]RAPDU: 90 00 [01:32:03]wFMCommunicate OK [01:32:03]wFMCommunicate request_size=145 [01:32:03]MH_SAM_APDU [01:32:03]CAPDU: 80 0D 02 02 8C 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 18 00 00 00 00 07 04 06 00 C4 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 1D F1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C6 0E 01 00 35 04 06 00 D3 31 F1 43 A3 CF [01:32:03]Write to MH i2c: E2 94 00 66 6B 80 0D 02 02 8C 00 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 18 00 00 00 00 07 04 06 00 C4 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 1D F1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C6 0E 01 00 35 04 06 00 D3 31 F1 43 A3 CF 00 00 CA [01:32:03]Write i2c OK [01:32:03]MH_I2C_Read... [01:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:03]Read from MH i2c: E2 [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: E2 03 00 [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: E2 03 00 66 6B 00 90 00 45 [01:32:03]RAPDU: 90 00 [01:32:03]wFMCommunicate OK [01:32:03]wFMCommunicate request_size=4 [01:32:03]MH_SAM_APDU [01:32:03]CAPDU: 80 0D 03 02 [01:32:03]Write to MH i2c: E2 08 00 67 6B 80 0D 03 02 00 00 00 00 4D [01:32:03]Write i2c OK [01:32:03]MH_I2C_Read... [01:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:32:03]Read from MH i2c: E2 [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: E2 0B 00 [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: E2 0B 00 67 6B 00 59 4C F7 73 8B F6 9B FD 90 00 76 [01:32:03]RAPDU: 59 4C F7 73 8B F6 9B FD 90 00 [01:32:03]wFMCommunicate OK [01:32:03]SAM_PROTO_SignData done [01:32:03]FM_MakeSignedData done [01:32:03]CreateOFDProtocolMessage [01:32:03]wFMCommunicate request_size=4 [01:32:03]MH_SAM_APDU [01:32:03]CAPDU: 80 11 00 00 [01:32:03]Write to MH i2c: E2 08 00 68 6B 80 11 00 00 00 00 00 00 4D [01:32:03]Write i2c OK [01:32:03]MH_I2C_Read... [01:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:03]Read from MH i2c: E2 [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: E2 17 00 [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: E2 17 00 68 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A9 [01:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:32:03]wFMCommunicate OK [01:32:03]CreateOFDProtocolMessage done [01:32:03]OFDSenderStorePacket 69318 [01:32:03]StoreOFDPacket docnum=69318 [01:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 02 00 00 F3 C3 88 02 16 2E 5A 03 01 00 03 00 7C 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 36 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 62 6C 61 63 6B 20 63 68 65 72 72 79 20 D1 81 D1 82 30 2C 34 34 D0 BB 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 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 FC 03 06 00 C4 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 18 00 00 00 00 07 04 06 00 C4 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 1D F1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C6 0E 01 00 35 04 06 00 D3 31 F1 43 A3 CF 59 4C F7 73 8B F6 9B FD [01:32:03]CheckFolder [01:32:03]dirname=/storage/ofd_packets [01:32:03]CheckFolder done [01:32:03]ProducePacketName [01:32:03]name=ofd_packets/00069318 [01:32:03]NVStorageSaveData ofd_packets/00069318 [01:32:03]File name is /storage/ofd_packets/00069318 [01:32:03]Write 686 bytes [01:32:03]NVStorageSaveData done [01:32:03]OFDSenderStorePacket done [01:32:03]KKMCreateOFDPacket done [01:32:03]NVStorageSaveData kkm_last_timestamp [01:32:03]File name is /storage/kkm_last_timestamp [01:32:03]Write 4 bytes [01:32:03]NVStorageSaveData done [01:32:03]ExternCall_PrintAddStr [01:32:03]wPrintStart [01:32:03]Write to MH i2c: 01 00 00 69 6B D4 [01:32:03]Write i2c OK [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: 01 [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: 01 07 00 [01:32:03]MH_I2C_Read... [01:32:03]Read from MH i2c: 01 07 00 69 6B 00 00 00 00 00 FF 0F E9 [01:32:03]RasterBufferAndPrint [01:32:03]line Счет N : (3)136648 [01:32:03]line ИНН: 02508201610067 [01:32:03]line Контрольно-Кассовый Чек [01:32:03]line ПРОДАЖА [01:32:03]line Товар: 48741958 [01:32:03]line Сигареты Parliament Aqua Blue [01:32:03]line 1.000 * 151.00 [01:32:03]line = 151.00 [01:32:03]line НДС 12% НСП 1% [01:32:03]line > о реализуемом товаре [01:32:03]line Товар: 46230607 [01:32:04]line Сигареты Richmond Bronze Edition [01:32:04]line 1.000 * 150.00 [01:32:04]line = 150.00 [01:32:04]line НДС 12% НСП 1% [01:32:04]line > о реализуемом товаре [01:32:04]line Товар: 4870145004760 [01:32:04]line Напиток Garage hard black cherry ст0,44л [01:32:04]line 2.000 * 120.00 [01:32:04]line = 240.00 [01:32:04]line НДС 12% НСП 1% [01:32:04]line > о реализуемом товаре [01:32:04]line Товар: 4700000160792 [01:32:04]line Снек Курут классический (круглый) [01:32:04]line 1.000 * 60.00 [01:32:04]line = 60.00 [01:32:04]line НДС 12% НСП 1% [01:32:04]line > о реализуемом товаре [01:32:04]line ИТОГО: 601.00 [01:32:04]line НСП 1% : 5.32 [01:32:04]line НДС 12% : 63.82 [01:32:04]line Наличными: 601.00 [01:32:04]line Безнал.: 0.00 [01:32:04]line Место: АЗС № 125 "Партнер Нефть" [01:32:04]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [01:32:04]line СНО: Общий режим [01:32:04]line Чек 22 29.07.2024 01:32 [01:32:04]line Смена: 430 ФФД: 1.0 [01:32:04]line ЗНМ: 0300000049 [01:32:04]line РНМ: 0000000000092638 [01:32:04]line Версия ККМ: 001 [01:32:04]line ФМ: 0000000000874949 [01:32:04]line ФД: 69318 [01:32:04]line ФПД: 232211454600143 [01:32:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T013213&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69318&fm=232211454600143&tin=02508201610067®Number=0000000000092638&sum=60100 [01:32:04]OFD Sender: Processing packet 69318 [packets to send 19, broken 18] [01:32:04]ProducePacketName [01:32:04]name=ofd_packets/00069318 [01:32:04]OFD Sender: To server: pG, [01:32:04]CommunicateWithHost lk.salyk.kg:30040 [01:32:04]ConnectInit lk.salyk.kg [01:32:04]line 0 [01:32:04]written 0, free lines is 4095 [01:32:04]Connected sock=10 [01:32:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 02 00 00 F3 C3 88 02 16 2E 5A 03 01 00 03 00 7C 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 36 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 62 6C 61 63 6B 20 63 68 65 72 72 79 20 D1 81 D1 82 30 2C 34 34 D0 BB 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 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 FC 03 06 00 C4 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 18 00 00 00 00 07 04 06 00 C4 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 1D F1 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C6 0E 01 00 35 04 06 00 D3 31 F1 43 A3 CF 59 4C F7 73 8B F6 9B FD [01:32:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 D6 8A 47 00 46 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C6 0E 01 00 F4 03 04 00 8C 97 A6 66 B6 04 01 00 00 0E 31 60 08 03 F2 E7 1D [01:32:04]CommunicateWithHost err = 0 [01:32:04]CheckOFDResponse [01:32:04]1017 (14) - 77093643461234 [01:32:04]1041 (16) - 0000000000874949 [01:32:04]1040 (4) - 69318 [01:32:04]1012 (4) - 28.07.2024 19:10 [01:32:04]1206 (1) - 0 [01:32:04]OFD Sender: Remove packet 69318 [01:32:04]ProducePacketName [01:32:04]name=ofd_packets/00069318 [01:32:04]NVStorageDeleteData [01:32:04]Write to MH i2c: 01 00 00 A7 6B 12 [01:32:04]Write i2c OK [01:32:04]MH_I2C_Read... [01:32:04]Read from MH i2c: 01 [01:32:04]MH_I2C_Read... [01:32:04]Read from MH i2c: 01 07 00 [01:32:04]MH_I2C_Read... [01:32:04]Read from MH i2c: 01 07 00 A7 6B 00 00 00 00 00 DA 0B FE [01:32:04]RasterBufferAndPrint [01:32:04]line [01:32:04]line [01:32:04]line [01:32:04]line [01:32:04]line [01:32:04]written 0, free lines is 3043 [01:32:04]MH_Cut [01:32:04]Write to MH i2c: D1 01 00 AE 6B 01 EB [01:32:04]Write i2c OK [01:32:04]MH_I2C_Read... [01:32:04]Read from MH i2c: D1 [01:32:04]MH_I2C_Read... [01:32:04]Read from MH i2c: D1 01 00 [01:32:04]MH_I2C_Read... [01:32:04]Read from MH i2c: D1 01 00 AE 6B 00 EA [01:32:04]Write to MH i2c: 01 00 00 AF 6B 1A [01:32:04]Write i2c OK [01:32:04]MH_I2C_Read... [01:32:04]OFD Sender: No OFD packet to send [01:32:05]*** Cut start [01:32:05]*** Partial cut [01:32:05]*** CUTSNS_PIN = 1 [01:32:05]*** CUTSNS_PIN = 0 [01:32:05]*** Brake cut motor [01:32:06]Read from MH i2c: 01 [01:32:06]MH_I2C_Read... [01:32:06]*** Stop cut motor [01:32:06]*** Cut end [01:32:06]Read from MH i2c: 01 07 00 [01:32:06]MH_I2C_Read... [01:32:06]Read from MH i2c: 01 07 00 AF 6B 00 00 00 00 00 FF 0F 2F [01:32:06]process_action close_receipt done [01:32:06]requested_data is exist [01:32:06]produce_requested_data [01:32:06]requested_item fm.sn is exist - process it [01:32:06]wFMCommunicate request_size=4 [01:32:06]MH_SAM_APDU [01:32:06]CAPDU: 80 11 00 00 [01:32:06]Write to MH i2c: E2 08 00 B0 6B 80 11 00 00 00 00 00 00 95 [01:32:06]Write i2c OK [01:32:06]MH_I2C_Read... [01:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:06]Read from MH i2c: E2 [01:32:06]MH_I2C_Read... [01:32:06]Read from MH i2c: E2 17 00 [01:32:06]MH_I2C_Read... [01:32:06]Read from MH i2c: E2 17 00 B0 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F1 [01:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:32:06]wFMCommunicate OK [01:32:06]requested_item fd.num is exist - process it [01:32:06]SAM_PROTO_GetFieldsCounters [01:32:06]wFMCommunicate request_size=4 [01:32:06]MH_SAM_APDU [01:32:06]CAPDU: 80 13 00 00 [01:32:06]Write to MH i2c: E2 08 00 B1 6B 80 13 00 00 00 00 00 00 98 [01:32:06]Write i2c OK [01:32:06]MH_I2C_Read... [01:32:06]Read from MH i2c: E2 [01:32:06]MH_I2C_Read... [01:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:32:06]Read from MH i2c: E2 62 00 [01:32:06]MH_I2C_Read... [01:32:06]Read from MH i2c: E2 62 00 B1 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C6 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [01:32: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C6 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:32:06]wFMCommunicate OK [01:32:06]SAM_PROTO_GetFieldsCounters done [01:32:06]requested_item shift.num is exist - process it [01:32:06]requested_item shift.opened is exist - process it [01:32:06]req_shift_opened [01:32:06]FM_GetShiftState [01:32:06]SAM_PROTO_GetShiftState [01:32:06]wFMCommunicate request_size=4 [01:32:06]MH_SAM_APDU [01:32:06]CAPDU: 80 13 01 00 [01:32:06]Write to MH i2c: E2 08 00 B2 6B 80 13 01 00 00 00 00 00 9A [01:32:06]Write i2c OK [01:32:06]MH_I2C_Read... [01:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:06]Read from MH i2c: E2 [01:32:06]MH_I2C_Read... [01:32:06]Read from MH i2c: E2 0E 00 [01:32:06]MH_I2C_Read... [01:32:06]Read from MH i2c: E2 0E 00 B2 6B 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 51 [01:32:06]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:32:06]wFMCommunicate OK [01:32:06]SAM_PROTO_GetShiftState done [01:32:06]FM_GetShiftState done [01:32:06]req_shift_opened done [01:32:06]requested_item shift.open_date is exist - process it [01:32:06]req_shift_open_date [01:32:06]req_shift_open_date done [01:32:06]produce_requested_data done [01:32:06]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69318,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [01:32:06]process_action_free close_receipt [01:32:06]json_value_free [01:32:06]json_value_free done [01:32:06]process_json_proto returns [01:32:06]Send response to host [01:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69318,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [01:32:06]free response buf [01:32:06]execute_script done [01:32:06]execute_script returns [01:32:06]free content buf [01:32:06]Sock 9.Close socket [01:32:06]Sock 9.Thread stoped [01:32:09]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:48]accept exits with 7 [01:35:48]New connection [01:35:48]New thread 3066641764 created [01:35:48]Thread 3066785124 joined [01:35:48]Waiting for new connection... [01:35:48] Sock 7.Parse request [01:35:48]Sock 7.Check first char [01:35:48]Sock 7.First char is OK [01:35:48]request: POST /json_proto HTTP/1.0 [01:35:48]Method: POST [01:35:48]URL: /json_proto [01:35:48]Method is POST - this is cgi request [01:35:48]url: /json_proto [01:35:48]query_string will be loaded in cgi processing [01:35:48]execute_cgi json_proto POST (null) [01:35:48]execute_cgi path=json_proto method=POST [01:35:48]POST find Content-Length [01:35:48]Host: 172.17.49.132:8080 [01:35:48]Content-Length: 1203 [01:35:48]Content-Type: application/json [01:35:48] [01:35:48]POST finish read [01:35:48]Found Content-Length = 1203 [01:35:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136649", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000482733", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043A\u043B\u0430\u0441\u0441 \u0436/\u0431 0,45\u043B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 457.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:48]execute_script... [01:35: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)136649", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000482733", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043A\u043B\u0430\u0441\u0441 \u0436/\u0431 0,45\u043B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 457.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:48]POST & json_proto [01:35:48]process_json_proto [01:35:48]json parsed OK: [01:35:48]protocol is kg_v1.0 [01:35:48]action value=close_receipt [01:35:48]process_action close_receipt [01:35:48]cmd_close_receipt [01:35:48]MH_GetDate [01:35:48]Write to MH i2c: F0 00 00 B3 6B 0D [01:35:48]Write i2c OK [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: F0 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: F0 09 00 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: F0 09 00 B3 6B 00 00 F2 A6 66 E7 4B C0 64 6A [01:35:48]GetLastDocTimeStamp 1722216733 [01:35:48]current date 1722216960 [01:35:48]FM_GetShiftState [01:35:48]SAM_PROTO_GetShiftState [01:35:48]wFMCommunicate request_size=4 [01:35:48]MH_SAM_APDU [01:35:48]CAPDU: 80 13 01 00 [01:35:48]Write to MH i2c: E2 08 00 B4 6B 80 13 01 00 00 00 00 00 9C [01:35:48]Write i2c OK [01:35:48]MH_I2C_Read... [01:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:48]Read from MH i2c: E2 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 0E 00 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 0E 00 B4 6B 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 53 [01:35:48]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:35:48]wFMCommunicate OK [01:35:48]SAM_PROTO_GetShiftState done [01:35:48]FM_GetShiftState done [01:35:48]opened in 1722213563 [01:35:48]opened+sec_in_day 1722299963 [01:35:48]quantity*price = 22000 [01:35:48]sum+1 = 22001 [01:35:48]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000482733 Напиток Nitro Fr газ класс ж/б 0,45л 1.000 * 82.00 = 82.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 47803152 Сигареты Mevius Revo 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 457.00 НСП 1% : 4.05 НДС 12% : 48.53 Наличными: 457.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 23 29.07.2024 01:36 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69319 ФПД: 97780101175819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T013600&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69319&fm=97780101175819&tin=02508201610067®Number=0000000000092638&sum=45700 0 [01:35:49]StoreToDocumentArchive [01:35:49]shift 430 fd 69319 [01:35:49]save to /storage/0430/doc_00069319 [01:35:49]save last doc name /storage/0430/doc_00069319 to /storage/kkm_last_doc_name [01:35:49]save OK [01:35:49]Clear old archive folders... [01:35:49]ProcessDocumentItem done err = 0, tmpTLVsize=505 [01:35:49]tlvbuf is 00A887D0 [01:35:49]SAM_PROTO_ClearQueue [01:35:49]wFMCommunicate request_size=4 [01:35:49]MH_SAM_APDU [01:35:49]CAPDU: 80 09 00 00 [01:35:49]Write to MH i2c: E2 08 00 C1 6B 80 09 00 00 00 00 00 00 9E [01:35:49]Write i2c OK [01:35:49]MH_I2C_Read... [01:35:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:35:49]Read from MH i2c: E2 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 03 00 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 03 00 C1 6B 00 90 00 A0 [01:35:49]RAPDU: 90 00 [01:35:49]wFMCommunicate OK [01:35:49]SAM_PROTO_ClearQueue done [01:35:49]KKMCreateOFDPacket [01:35:49]OFDProtocolAddRootSTLVToBuf [01:35:49]FM_MakeSignedData [01:35:49]FM_MakeSignedData [01:35:49]SAM_PROTO_SignData [01:35:49]wFMCommunicate request_size=4 [01:35:49]MH_SAM_APDU [01:35:49]CAPDU: 80 0D 01 02 [01:35:49]Write to MH i2c: E2 08 00 C2 6B 80 0D 01 02 00 00 00 00 A6 [01:35:49]Write i2c OK [01:35:49]MH_I2C_Read... [01:35:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:35:49]Read from MH i2c: E2 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 03 00 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 03 00 C2 6B 00 90 00 A1 [01:35:49]RAPDU: 90 00 [01:35:49]wFMCommunicate OK [01:35:49]wFMCommunicate request_size=255 [01:35:49]MH_SAM_APDU [01:35:49]CAPDU: 80 0D 02 02 FA 03 00 F9 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [01:35:49]Write to MH i2c: E2 02 01 C3 6B 80 0D 02 02 FA 00 03 00 F9 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 00 00 85 [01:35:49]Write i2c OK [01:35:49]MH_I2C_Read... [01:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:50]Read from MH i2c: E2 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: E2 03 00 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: E2 03 00 C3 6B 00 90 00 A2 [01:35:50]RAPDU: 90 00 [01:35:50]wFMCommunicate OK [01:35:50]wFMCommunicate request_size=255 [01:35:50]MH_SAM_APDU [01:35:50]CAPDU: 80 0D 02 02 FA 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 12 00 00 00 00 07 04 06 00 84 B2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 00 F2 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C7 0E 01 00 35 [01:35:50]Write to MH i2c: E2 02 01 C4 6B 80 0D 02 02 FA 00 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 12 00 00 00 00 07 04 06 00 84 B2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 00 F2 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C7 0E 01 00 35 00 00 AE [01:35:50]Write i2c OK [01:35:50]MH_I2C_Read... [01:35:50]OFD Sender: No OFD packet to send [01:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:50]Read from MH i2c: E2 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: E2 03 00 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: E2 03 00 C4 6B 00 90 00 A3 [01:35:50]RAPDU: 90 00 [01:35:50]wFMCommunicate OK [01:35:50]wFMCommunicate request_size=14 [01:35:50]MH_SAM_APDU [01:35:50]CAPDU: 80 0D 02 02 09 04 06 00 58 EE 34 32 5A 0B [01:35:50]Write to MH i2c: E2 11 00 C5 6B 80 0D 02 02 09 00 04 06 00 58 EE 34 32 5A 0B 00 00 D7 [01:35:50]Write i2c OK [01:35:50]MH_I2C_Read... [01:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:50]Read from MH i2c: E2 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: E2 03 00 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: E2 03 00 C5 6B 00 90 00 A4 [01:35:50]RAPDU: 90 00 [01:35:50]wFMCommunicate OK [01:35:50]wFMCommunicate request_size=4 [01:35:50]MH_SAM_APDU [01:35:50]CAPDU: 80 0D 03 02 [01:35:50]Write to MH i2c: E2 08 00 C6 6B 80 0D 03 02 00 00 00 00 AC [01:35:50]Write i2c OK [01:35:50]MH_I2C_Read... [01:35:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:35:50]Read from MH i2c: E2 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: E2 0B 00 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: E2 0B 00 C6 6B 00 4F 90 5D 24 5C 22 87 B2 90 00 C4 [01:35:50]RAPDU: 4F 90 5D 24 5C 22 87 B2 90 00 [01:35:50]wFMCommunicate OK [01:35:50]SAM_PROTO_SignData done [01:35:50]FM_MakeSignedData done [01:35:50]CreateOFDProtocolMessage [01:35:50]wFMCommunicate request_size=4 [01:35:50]MH_SAM_APDU [01:35:50]CAPDU: 80 11 00 00 [01:35:50]Write to MH i2c: E2 08 00 C7 6B 80 11 00 00 00 00 00 00 AC [01:35:50]Write i2c OK [01:35:50]MH_I2C_Read... [01:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:50]Read from MH i2c: E2 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: E2 17 00 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: E2 17 00 C7 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 08 [01:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:35:50]wFMCommunicate OK [01:35:50]CreateOFDProtocolMessage done [01:35:50]OFDSenderStorePacket 69319 [01:35:50]StoreOFDPacket docnum=69319 [01:35:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 02 00 00 95 67 05 02 28 1C 5A 03 01 00 03 00 F9 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 12 00 00 00 00 07 04 06 00 84 B2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 00 F2 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C7 0E 01 00 35 04 06 00 58 EE 34 32 5A 0B 4F 90 5D 24 5C 22 87 B2 [01:35:50]CheckFolder [01:35:50]dirname=/storage/ofd_packets [01:35:50]CheckFolder done [01:35:50]ProducePacketName [01:35:50]name=ofd_packets/00069319 [01:35:50]NVStorageSaveData ofd_packets/00069319 [01:35:50]File name is /storage/ofd_packets/00069319 [01:35:50]Write 555 bytes [01:35:50]NVStorageSaveData done [01:35:50]OFDSenderStorePacket done [01:35:50]KKMCreateOFDPacket done [01:35:50]NVStorageSaveData kkm_last_timestamp [01:35:50]File name is /storage/kkm_last_timestamp [01:35:50]Write 4 bytes [01:35:50]NVStorageSaveData done [01:35:50]ExternCall_PrintAddStr [01:35:50]wPrintStart [01:35:50]Write to MH i2c: 01 00 00 C8 6B 33 [01:35:50]Write i2c OK [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: 01 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: 01 07 00 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: 01 07 00 C8 6B 00 00 00 00 00 FF 0F 48 [01:35:50]RasterBufferAndPrint [01:35:50]line Счет N : (3)136649 [01:35:50]line ИНН: 02508201610067 [01:35:50]line Контрольно-Кассовый Чек [01:35:50]line ПРОДАЖА [01:35:50]line Товар: 4700003241276 [01:35:50]line Напиток Молочный ТАН 1л [01:35:50]line 2.000 * 110.00 [01:35:50]line = 220.00 [01:35:50]line НДС 12% НСП 1% [01:35:50]line > о реализуемом товаре [01:35:50]line Товар: 4700000482733 [01:35:50]line Напиток Nitro Fr газ класс ж/б 0,45л [01:35:50]line 1.000 * 82.00 [01:35:50]line = 82.00 [01:35:50]line НДС 12% НСП 1% [01:35:50]line > о реализуемом товаре [01:35:50]line Товар: 47803152 [01:35:50]line Сигареты Mevius Revo [01:35:50]line 1.000 * 155.00 [01:35:50]line = 155.00 [01:35:50]line НДС 12% НСП 1% [01:35:50]line > о реализуемом товаре [01:35:50]line ИТОГО: 457.00 [01:35:50]line НСП 1% : 4.05 [01:35:50]line НДС 12% : 48.53 [01:35:50]line Наличными: 457.00 [01:35:50]line Безнал.: 0.00 [01:35:50]line Место: АЗС № 125 "Партнер Нефть" [01:35:50]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [01:35:50]line СНО: Общий режим [01:35:50]line Чек 23 29.07.2024 01:36 [01:35:50]line Смена: 430 ФФД: 1.0 [01:35:50]line ЗНМ: 0300000049 [01:35:50]line РНМ: 0000000000092638 [01:35:50]line Версия ККМ: 001 [01:35:50]line ФМ: 0000000000874949 [01:35:50]line ФД: 69319 [01:35:50]line ФПД: 97780101175819 [01:35:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T013600&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69319&fm=97780101175819&tin=02508201610067®Number=0000000000092638&sum=45700 [01:35:50]line 0 [01:35:50]written 0, free lines is 4095 [01:35:50]OFD Sender: Processing packet 69319 [packets to send 19, broken 18] [01:35:50]ProducePacketName [01:35:50]name=ofd_packets/00069319 [01:35:50]OFD Sender: To server: pG, [01:35:50]CommunicateWithHost lk.salyk.kg:30040 [01:35:50]ConnectInit lk.salyk.kg [01:35:50]Connected sock=10 [01:35: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 39 34 39 0D 02 00 00 95 67 05 02 28 1C 5A 03 01 00 03 00 F9 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 37 30 30 30 30 30 34 38 32 37 33 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D0 B0 D1 81 D1 81 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 B2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 12 00 00 00 00 07 04 06 00 84 B2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 00 F2 A6 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C7 0E 01 00 35 04 06 00 58 EE 34 32 5A 0B 4F 90 5D 24 5C 22 87 B2 [01:35:51]Write to MH i2c: 01 00 00 FD 6B 68 [01:35:51]Write i2c OK [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: 01 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: 01 07 00 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: 01 07 00 FD 6B 00 00 00 00 00 8C 0C 07 [01:35:51]RasterBufferAndPrint [01:35:51]line [01:35:51]line [01:35:51]line [01:35:51]line [01:35:51]line [01:35:51]written 0, free lines is 3221 [01:35:51]MH_Cut [01:35:51]Write to MH i2c: D1 01 00 04 6C 01 42 [01:35:51]Write i2c OK [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: D1 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: D1 01 00 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: D1 01 00 04 6C 00 41 [01:35:51]Write to MH i2c: 01 00 00 05 6C 71 [01:35:51]Write i2c OK [01:35:51]MH_I2C_Read... [01:35:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 28 CC 47 00 6E 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C7 0E 01 00 F4 03 04 00 6E 98 A6 66 B6 04 01 00 00 3B FA 42 32 EC 37 84 B1 [01:35:51]CommunicateWithHost err = 0 [01:35:51]CheckOFDResponse [01:35:51]1017 (14) - 77093643461234 [01:35:51]1041 (16) - 0000000000874949 [01:35:51]1040 (4) - 69319 [01:35:51]1012 (4) - 28.07.2024 19:13 [01:35:51]1206 (1) - 0 [01:35:51]OFD Sender: Remove packet 69319 [01:35:51]ProducePacketName [01:35:51]name=ofd_packets/00069319 [01:35:51]NVStorageDeleteData [01:35:51]OFD Sender: No OFD packet to send [01:35:51]*** Cut start [01:35:51]*** Partial cut [01:35:51]*** CUTSNS_PIN = 1 [01:35:51]*** CUTSNS_PIN = 0 [01:35:52]*** Brake cut motor [01:35:52]Read from MH i2c: 01 [01:35:52]MH_I2C_Read... [01:35:52]*** Stop cut motor [01:35:52]*** Cut end [01:35:52]Read from MH i2c: 01 07 00 [01:35:52]MH_I2C_Read... [01:35:52]Read from MH i2c: 01 07 00 05 6C 00 00 00 00 00 FF 0F 86 [01:35:52]process_action close_receipt done [01:35:52]requested_data is exist [01:35:52]produce_requested_data [01:35:52]requested_item fm.sn is exist - process it [01:35:52]wFMCommunicate request_size=4 [01:35:52]MH_SAM_APDU [01:35:52]CAPDU: 80 11 00 00 [01:35:52]Write to MH i2c: E2 08 00 06 6C 80 11 00 00 00 00 00 00 EC [01:35:52]Write i2c OK [01:35:52]MH_I2C_Read... [01:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:52]Read from MH i2c: E2 [01:35:52]MH_I2C_Read... [01:35:52]Read from MH i2c: E2 17 00 [01:35:52]MH_I2C_Read... [01:35:52]Read from MH i2c: E2 17 00 06 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 48 [01:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [01:35:52]wFMCommunicate OK [01:35:52]requested_item fd.num is exist - process it [01:35:52]SAM_PROTO_GetFieldsCounters [01:35:52]wFMCommunicate request_size=4 [01:35:52]MH_SAM_APDU [01:35:52]CAPDU: 80 13 00 00 [01:35:52]Write to MH i2c: E2 08 00 07 6C 80 13 00 00 00 00 00 00 EF [01:35:52]Write i2c OK [01:35:52]MH_I2C_Read... [01:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:35:52]Read from MH i2c: E2 [01:35:52]MH_I2C_Read... [01:35:52]Read from MH i2c: E2 62 00 [01:35:52]MH_I2C_Read... [01:35:52]Read from MH i2c: E2 62 00 07 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C7 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [01:35: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C7 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:35:52]wFMCommunicate OK [01:35:52]SAM_PROTO_GetFieldsCounters done [01:35:52]requested_item shift.num is exist - process it [01:35:52]requested_item shift.opened is exist - process it [01:35:52]req_shift_opened [01:35:52]FM_GetShiftState [01:35:52]SAM_PROTO_GetShiftState [01:35:52]wFMCommunicate request_size=4 [01:35:52]MH_SAM_APDU [01:35:52]CAPDU: 80 13 01 00 [01:35:52]Write to MH i2c: E2 08 00 08 6C 80 13 01 00 00 00 00 00 F1 [01:35:52]Write i2c OK [01:35:52]MH_I2C_Read... [01:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:52]Read from MH i2c: E2 [01:35:52]MH_I2C_Read... [01:35:52]Read from MH i2c: E2 0E 00 [01:35:52]MH_I2C_Read... [01:35:52]Read from MH i2c: E2 0E 00 08 6C 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 A8 [01:35:52]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [01:35:52]wFMCommunicate OK [01:35:52]SAM_PROTO_GetShiftState done [01:35:52]FM_GetShiftState done [01:35:52]req_shift_opened done [01:35:52]requested_item shift.open_date is exist - process it [01:35:52]req_shift_open_date [01:35:52]req_shift_open_date done [01:35:52]produce_requested_data done [01:35:52]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69319,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [01:35:52]process_action_free close_receipt [01:35:52]json_value_free [01:35:52]json_value_free done [01:35:52]process_json_proto returns [01:35:52]Send response to host [01:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69319,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [01:35:52]free response buf [01:35:52]execute_script done [01:35:52]execute_script returns [01:35:52]free content buf [01:35:52]Sock 7.Close socket [01:35:52]Sock 7.Thread stoped [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:15]accept exits with 9 [02:38:15]New connection [02:38:15]New thread 3066785124 created [02:38:15]Thread 3066641764 joined [02:38:15]Waiting for new connection... [02:38:15] Sock 9.Parse request [02:38:15]Sock 9.Check first char [02:38:15]Sock 9.First char is OK [02:38:15]request: POST /json_proto HTTP/1.0 [02:38:15]Method: POST [02:38:15]URL: /json_proto [02:38:15]Method is POST - this is cgi request [02:38:15]url: /json_proto [02:38:15]query_string will be loaded in cgi processing [02:38:15]execute_cgi json_proto POST (null) [02:38:15]execute_cgi path=json_proto method=POST [02:38:15]POST find Content-Length [02:38:15]Host: 172.17.49.132:8080 [02:38:15]Content-Length: 822 [02:38:15]Content-Type: application/json [02:38:15] [02:38:15]POST finish read [02:38:15]Found Content-Length = 822 [02:38:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)136650", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:38:15]execute_script... [02:38: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)136650", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:38:15]POST & json_proto [02:38:15]process_json_proto [02:38:15]json parsed OK: [02:38:15]protocol is kg_v1.0 [02:38:15]action value=close_receipt [02:38:15]process_action close_receipt [02:38:15]cmd_close_receipt [02:38:15]MH_GetDate [02:38:15]Write to MH i2c: F0 00 00 09 6C 64 [02:38:15]Write i2c OK [02:38:15]MH_I2C_Read... [02:38:15]Read from MH i2c: F0 [02:38:15]MH_I2C_Read... [02:38:15]Read from MH i2c: F0 09 00 [02:38:15]MH_I2C_Read... [02:38:15]Read from MH i2c: F0 09 00 09 6C 00 A4 00 A7 66 E7 4B C0 64 74 [02:38:15]GetLastDocTimeStamp 1722216960 [02:38:15]current date 1722220708 [02:38:15]FM_GetShiftState [02:38:15]SAM_PROTO_GetShiftState [02:38:15]wFMCommunicate request_size=4 [02:38:15]MH_SAM_APDU [02:38:15]CAPDU: 80 13 01 00 [02:38:15]Write to MH i2c: E2 08 00 0A 6C 80 13 01 00 00 00 00 00 F3 [02:38:15]Write i2c OK [02:38:15]MH_I2C_Read... [02:38:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:15]Read from MH i2c: E2 [02:38:15]MH_I2C_Read... [02:38:15]Read from MH i2c: E2 0E 00 [02:38:15]MH_I2C_Read... [02:38:15]Read from MH i2c: E2 0E 00 0A 6C 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 AA [02:38:15]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [02:38:15]wFMCommunicate OK [02:38:15]SAM_PROTO_GetShiftState done [02:38:15]FM_GetShiftState done [02:38:15]opened in 1722213563 [02:38:15]opened+sec_in_day 1722299963 [02:38:15]quantity*price = 14000 [02:38:15]sum+1 = 14001 [02:38:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 24 29.07.2024 02:38 Смена: 430 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69320 ФПД: 95024202457479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T023828&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69320&fm=95024202457479&tin=02508201610067®Number=0000000000092638&sum=14000 0 [02:38:16]StoreToDocumentArchive [02:38:16]shift 430 fd 69320 [02:38:16]save to /storage/0430/doc_00069320 [02:38:16]save last doc name /storage/0430/doc_00069320 to /storage/kkm_last_doc_name [02:38:16]save OK [02:38:16]Clear old archive folders... [02:38:16]ProcessDocumentItem done err = 0, tmpTLVsize=273 [02:38:16]tlvbuf is 00A375B0 [02:38:16]SAM_PROTO_ClearQueue [02:38:16]wFMCommunicate request_size=4 [02:38:16]MH_SAM_APDU [02:38:16]CAPDU: 80 09 00 00 [02:38:16]Write to MH i2c: E2 08 00 17 6C 80 09 00 00 00 00 00 00 F5 [02:38:16]Write i2c OK [02:38:16]MH_I2C_Read... [02:38:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:38:17]Read from MH i2c: E2 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: E2 03 00 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: E2 03 00 17 6C 00 90 00 F7 [02:38:17]RAPDU: 90 00 [02:38:17]wFMCommunicate OK [02:38:17]SAM_PROTO_ClearQueue done [02:38:17]KKMCreateOFDPacket [02:38:17]OFDProtocolAddRootSTLVToBuf [02:38:17]FM_MakeSignedData [02:38:17]FM_MakeSignedData [02:38:17]SAM_PROTO_SignData [02:38:17]wFMCommunicate request_size=4 [02:38:17]MH_SAM_APDU [02:38:17]CAPDU: 80 0D 01 02 [02:38:17]Write to MH i2c: E2 08 00 18 6C 80 0D 01 02 00 00 00 00 FD [02:38:17]Write i2c OK [02:38:17]MH_I2C_Read... [02:38:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:38:17]Read from MH i2c: E2 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: E2 03 00 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: E2 03 00 18 6C 00 90 00 F8 [02:38:17]RAPDU: 90 00 [02:38:17]wFMCommunicate OK [02:38:17]wFMCommunicate request_size=255 [02:38:17]MH_SAM_APDU [02:38:17]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A4 00 A7 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 [02:38:17]Write to MH i2c: E2 02 01 19 6C 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A4 00 A7 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 00 00 6D [02:38:17]Write i2c OK [02:38:17]MH_I2C_Read... [02:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:17]Read from MH i2c: E2 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: E2 03 00 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: E2 03 00 19 6C 00 90 00 F9 [02:38:17]RAPDU: 90 00 [02:38:17]wFMCommunicate OK [02:38:17]wFMCommunicate request_size=32 [02:38:17]MH_SAM_APDU [02:38:17]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 39 10 04 04 00 C8 0E 01 00 35 04 06 00 56 6C 8B D5 21 87 [02:38:17]Write to MH i2c: E2 23 00 1A 6C 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 39 10 04 04 00 C8 0E 01 00 35 04 06 00 56 6C 8B D5 21 87 00 00 07 [02:38:17]Write i2c OK [02:38:17]MH_I2C_Read... [02:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:17]Read from MH i2c: E2 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: E2 03 00 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: E2 03 00 1A 6C 00 90 00 FA [02:38:17]RAPDU: 90 00 [02:38:17]wFMCommunicate OK [02:38:17]wFMCommunicate request_size=4 [02:38:17]MH_SAM_APDU [02:38:17]CAPDU: 80 0D 03 02 [02:38:17]Write to MH i2c: E2 08 00 1B 6C 80 0D 03 02 00 00 00 00 02 [02:38:17]Write i2c OK [02:38:17]MH_I2C_Read... [02:38:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:38:17]Read from MH i2c: E2 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: E2 0B 00 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: E2 0B 00 1B 6C 00 20 91 48 05 24 FC F7 08 90 00 20 [02:38:17]RAPDU: 20 91 48 05 24 FC F7 08 90 00 [02:38:17]wFMCommunicate OK [02:38:17]SAM_PROTO_SignData done [02:38:17]FM_MakeSignedData done [02:38:17]CreateOFDProtocolMessage [02:38:17]wFMCommunicate request_size=4 [02:38:17]MH_SAM_APDU [02:38:17]CAPDU: 80 11 00 00 [02:38:17]Write to MH i2c: E2 08 00 1C 6C 80 11 00 00 00 00 00 00 02 [02:38:17]Write i2c OK [02:38:17]MH_I2C_Read... [02:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:17]Read from MH i2c: E2 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: E2 17 00 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: E2 17 00 1C 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 5E [02:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [02:38:17]wFMCommunicate OK [02:38:17]CreateOFDProtocolMessage done [02:38:17]OFDSenderStorePacket 69320 [02:38:17]StoreOFDPacket docnum=69320 [02:38:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 BF C3 1D 01 18 54 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A4 00 A7 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C8 0E 01 00 35 04 06 00 56 6C 8B D5 21 87 20 91 48 05 24 FC F7 08 [02:38:17]CheckFolder [02:38:17]dirname=/storage/ofd_packets [02:38:17]CheckFolder done [02:38:17]ProducePacketName [02:38:17]name=ofd_packets/00069320 [02:38:17]NVStorageSaveData ofd_packets/00069320 [02:38:17]File name is /storage/ofd_packets/00069320 [02:38:17]Write 323 bytes [02:38:17]NVStorageSaveData done [02:38:17]OFDSenderStorePacket done [02:38:17]KKMCreateOFDPacket done [02:38:17]NVStorageSaveData kkm_last_timestamp [02:38:17]File name is /storage/kkm_last_timestamp [02:38:17]Write 4 bytes [02:38:17]NVStorageSaveData done [02:38:17]ExternCall_PrintAddStr [02:38:17]wPrintStart [02:38:17]Write to MH i2c: 01 00 00 1D 6C 89 [02:38:17]Write i2c OK [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: 01 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: 01 07 00 [02:38:17]MH_I2C_Read... [02:38:17]Read from MH i2c: 01 07 00 1D 6C 00 00 00 00 00 FF 0F 9E [02:38:17]RasterBufferAndPrint [02:38:17]line Счет N : (3)136650 [02:38:17]line ИНН: 02508201610067 [02:38:17]line Контрольно-Кассовый Чек [02:38:17]line ПРОДАЖА [02:38:17]line Товар: 48743570 [02:38:17]line Сигареты Winston XStyle Blue [02:38:17]line 1.000 * 140.00 [02:38:17]line = 140.00 [02:38:17]line НДС 12% НСП 1% [02:38:17]line > о реализуемом товаре [02:38:17]line ИТОГО: 140.00 [02:38:17]line НСП 1% : 1.24 [02:38:17]line НДС 12% : 14.87 [02:38:17]line Наличными: 0.00 [02:38:17]line Безнал.: 140.00 [02:38:17]line Место: АЗС № 125 "Партнер Нефть" [02:38:17]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [02:38:17]line СНО: Общий режим [02:38:17]line Чек 24 29.07.2024 02:38 [02:38:17]line Смена: 430 ФФД: 1.0 [02:38:17]line ЗНМ: 0300000049 [02:38:17]line РНМ: 0000000000092638 [02:38:17]line Версия ККМ: 001 [02:38:17]line Платежная система: АКБ Кыргызстан [02:38:17]line ФМ: 0000000000874949 [02:38:17]line ФД: 69320 [02:38:17]line ФПД: 95024202457479 [02:38:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T023828&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69320&fm=95024202457479&tin=02508201610067®Number=0000000000092638&sum=14000 [02:38:17]OFD Sender: Processing packet 69320 [packets to send 19, broken 18] [02:38:17]ProducePacketName [02:38:17]name=ofd_packets/00069320 [02:38:17]OFD Sender: To server: pG, [02:38:17]CommunicateWithHost lk.salyk.kg:30040 [02:38:17]ConnectInit lk.salyk.kg [02:38:17]line 0 [02:38:17]written 0, free lines is 4095 [02:38:17]Connected sock=11 [02:38:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 BF C3 1D 01 18 54 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A4 00 A7 66 0E 04 04 00 AE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 C8 0E 01 00 35 04 06 00 56 6C 8B D5 21 87 20 91 48 05 24 FC F7 08 [02:38:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 62 A1 47 00 33 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 39 34 39 10 04 04 00 C8 0E 01 00 F4 03 04 00 11 A7 A6 66 B6 04 01 00 00 A9 F4 C9 B2 B7 AC 04 E6 [02:38:18]CommunicateWithHost err = 0 [02:38:18]CheckOFDResponse [02:38:18]1017 (14) - 77093643461234 [02:38:18]1041 (16) - 0000000000874949 [02:38:18]1040 (4) - 69320 [02:38:18]1012 (4) - 28.07.2024 20:16 [02:38:18]1206 (1) - 0 [02:38:18]OFD Sender: Remove packet 69320 [02:38:18]ProducePacketName [02:38:18]name=ofd_packets/00069320 [02:38:18]NVStorageDeleteData [02:38:18]Write to MH i2c: 01 00 00 47 6C B3 [02:38:18]Write i2c OK [02:38:18]MH_I2C_Read... [02:38:18]Read from MH i2c: 01 [02:38:18]MH_I2C_Read... [02:38:18]Read from MH i2c: 01 07 00 [02:38:18]MH_I2C_Read... [02:38:18]Read from MH i2c: 01 07 00 47 6C 00 00 00 00 00 FA 0C C0 [02:38:18]RasterBufferAndPrint [02:38:18]line [02:38:18]line [02:38:18]line [02:38:18]line [02:38:18]line [02:38:18]written 0, free lines is 3328 [02:38:18]MH_Cut [02:38:18]Write to MH i2c: D1 01 00 4E 6C 01 8C [02:38:18]Write i2c OK [02:38:18]MH_I2C_Read... [02:38:18]Read from MH i2c: D1 [02:38:18]MH_I2C_Read... [02:38:18]Read from MH i2c: D1 01 00 [02:38:18]MH_I2C_Read... [02:38:18]Read from MH i2c: D1 01 00 4E 6C 00 8B [02:38:18]Write to MH i2c: 01 00 00 4F 6C BB [02:38:18]Write i2c OK [02:38:18]MH_I2C_Read... [02:38:18]OFD Sender: No OFD packet to send [02:38:18]*** Cut start [02:38:18]*** Partial cut [02:38:18]*** CUTSNS_PIN = 1 [02:38:19]*** CUTSNS_PIN = 0 [02:38:19]*** Brake cut motor [02:38:19]Read from MH i2c: 01 [02:38:19]MH_I2C_Read... [02:38:19]*** Stop cut motor [02:38:19]*** Cut end [02:38:19]Read from MH i2c: 01 07 00 [02:38:19]MH_I2C_Read... [02:38:19]Read from MH i2c: 01 07 00 4F 6C 00 00 00 00 00 FF 0F D0 [02:38:19]process_action close_receipt done [02:38:19]requested_data is exist [02:38:19]produce_requested_data [02:38:19]requested_item fm.sn is exist - process it [02:38:19]wFMCommunicate request_size=4 [02:38:19]MH_SAM_APDU [02:38:19]CAPDU: 80 11 00 00 [02:38:19]Write to MH i2c: E2 08 00 50 6C 80 11 00 00 00 00 00 00 36 [02:38:19]Write i2c OK [02:38:19]MH_I2C_Read... [02:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:19]Read from MH i2c: E2 [02:38:19]MH_I2C_Read... [02:38:19]Read from MH i2c: E2 17 00 [02:38:19]MH_I2C_Read... [02:38:19]Read from MH i2c: E2 17 00 50 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 92 [02:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [02:38:19]wFMCommunicate OK [02:38:19]requested_item fd.num is exist - process it [02:38:19]SAM_PROTO_GetFieldsCounters [02:38:19]wFMCommunicate request_size=4 [02:38:19]MH_SAM_APDU [02:38:19]CAPDU: 80 13 00 00 [02:38:19]Write to MH i2c: E2 08 00 51 6C 80 13 00 00 00 00 00 00 39 [02:38:19]Write i2c OK [02:38:19]MH_I2C_Read... [02:38:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:38:19]Read from MH i2c: E2 [02:38:19]MH_I2C_Read... [02:38:19]Read from MH i2c: E2 62 00 [02:38:19]MH_I2C_Read... [02:38:19]Read from MH i2c: E2 62 00 51 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C8 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [02:38: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 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 C8 0E 01 00 0E 04 04 00 AE 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:38:19]wFMCommunicate OK [02:38:19]SAM_PROTO_GetFieldsCounters done [02:38:19]requested_item shift.num is exist - process it [02:38:19]requested_item shift.opened is exist - process it [02:38:19]req_shift_opened [02:38:19]FM_GetShiftState [02:38:19]SAM_PROTO_GetShiftState [02:38:19]wFMCommunicate request_size=4 [02:38:19]MH_SAM_APDU [02:38:19]CAPDU: 80 13 01 00 [02:38:19]Write to MH i2c: E2 08 00 52 6C 80 13 01 00 00 00 00 00 3B [02:38:19]Write i2c OK [02:38:19]MH_I2C_Read... [02:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:19]Read from MH i2c: E2 [02:38:19]MH_I2C_Read... [02:38:19]Read from MH i2c: E2 0E 00 [02:38:19]MH_I2C_Read... [02:38:19]Read from MH i2c: E2 0E 00 52 6C 00 09 00 01 BB E4 A6 66 00 00 00 00 90 00 F2 [02:38:19]RAPDU: 09 00 01 BB E4 A6 66 00 00 00 00 90 00 [02:38:19]wFMCommunicate OK [02:38:19]SAM_PROTO_GetShiftState done [02:38:19]FM_GetShiftState done [02:38:19]req_shift_opened done [02:38:19]requested_item shift.open_date is exist - process it [02:38:19]req_shift_open_date [02:38:19]req_shift_open_date done [02:38:19]produce_requested_data done [02:38:19]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69320,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563} [02:38:19]process_action_free close_receipt [02:38:19]json_value_free [02:38:19]json_value_free done [02:38:19]process_json_proto returns [02:38:19]Send response to host [02:38:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69320,"shift.num":430,"shift.opened":1,"shift.open_date":1722213563}}} [02:38:19]free response buf [02:38:19]execute_script done [02:38:19]execute_script returns [02:38:19]free content buf [02:38:19]Sock 9.Close socket [02:38:19]Sock 9.Thread stoped [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send